Discussions
- General Development
- Schema Development
- Apex Code Development
- Visualforce Development
- Formulas & Validation Rules
- Security
- Mobile
- Force.com Sites & Site.com
- Chatter Development
- Java Development
- .NET Development
- Perl, PHP, Python & Ruby
- Desktop Integration
- APIs and Integrations
- Visual Workflow
- Apple, Mac and OS X
- VB and Office Development
- AppExchange Directory & Packaging
- Salesforce Labs & Open Source Projects
- Other Salesforce Applications
- Jobs Board
- Force.com Discussion Boards
- :
- Developer Boards for Force.com and Database.com
- :
- Apex Code Development
- :
- Problem Updating Record
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic to the Top
- Bookmark
- Subscribe
- Printer Friendly Page
Problem Updating Record
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content
02-05-2013 04:05 AM
I am not able to update the Record i.e on save() method
public class editcontroller {
public UseCase_Point__c up{get;set;}
public Decimal h1{get;set;}
public String password{get;set;}
public String AccountName{get;set;}
public String ProjectName{get;set;}
public String EstTeam{get;set;}
public Date EstDate{get;set;}
public String Assumptions{get;set;}
public String Risks{get;set;}
public Decimal SimpleUCP{get;set;}
public Decimal AverageUCP{get;set;}
public Decimal ComplexUCP{get;set;}
public Decimal CalculatedUCP{get;set;}
public Decimal SimpleAW{get;set;}
public Decimal AverageAW{get;set;}
public Decimal ComplexAW{get;set;}
public Decimal CalculatedAW{get;set;}
public Decimal ProjectFamilarity{get;set;}
public Decimal ApplicationExp{get;set;}
public Decimal ProgExp{get;set;}
public Decimal AnalystCapability{get;set;}
public Decimal Motivation{get;set;}
public Decimal StableReq{get;set;}
public Decimal Staff{get;set;}
public Decimal ProgLang{get;set;}
public Decimal DistributedSys{get;Set;}
public Decimal ResponseTime{get;set;}
public Decimal EndUser{get;set;}
public Decimal ComplexProcess{get;set;}
public Decimal ReusableCode{get;set;}
public Decimal InstallationEase{get;set;}
public Decimal Usability{get;set;}
public Decimal PlatformSupport{get;set;}
public Decimal EasyToChange{get;set;}
public Decimal HighlyConcurrent{get;set;}
public Decimal CustomSecurity{get;set;}
public Decimal CodeDependency{get;set;}
public Decimal UserTraining{get;set;}
public String text{get;set;}
public String pass{get;set;}
public Decimal tcf{get;set;}
public Decimal ef{get;set;}
public Decimal uc{get;set;}
public Decimal productivity{get;set;}
public Decimal EstimatedEffort{get;set;}
public String showMessage{get;set;}
public String filter{get;set;}
public String hiddenfield1{get;set;}
public String num{get;set;}
public editcontroller(){
up = new Usecase_point__c();
}
public List<SelectOption> getClients() {
List<SelectOption> options = new List<SelectOption>();
List<Usecase_point__c> ids= [SELECT Name FROM UseCase_Point__c ORDER BY CreatedDate ASC NULLS FIRST];
options.add(new SelectOption('0001', '--Select--'));
for(Usecase_point__c c : ids){
options.add(new SelectOption(c.Name,c.Name));
}
return options;
}
public PageReference next() {
List<Usecase_point__c> Clients = [SELECT Account_Name__c,Assumptions__c,Date_of_Estimation_
Project_Name__c,Risk__c,Average_UUCP__c,Calculated
Calculated_ActorWeightage__c,Complex_ActorWeightag
Calculated_Environmetal_Factor__c,Difficult_Progra
Lead_Analyst_Capability__c,Motivation__c,OO_Progra
Calculated_Technical_factor__c,Complex_internal_Pr
Dependence_On_Third_Party_Code__c,Distributed_Syst
Highly_Concurrent__c,Installation_Ease__c,Response
User_Training__c,Actor_Weight__c,Environmental_Fac
Technical_Complexity_Factor__c,Unadjusted_UseCase_
if(Clients != null){
num = Clients.get(0).Id;
AccountName = Clients.get(0).Account_Name__c;
ProjectName = Clients.get(0).Project_Name__c;
EstTeam = Clients.get(0).Estimation_team__c;
EstDate = Clients.get(0).Date_of_Estimation__c;
Assumptions = Clients.get(0).Assumptions__c;
Risks = Clients.get(0).Risk__c;
SimpleUCP = Clients.get(0).Simple_UUCP__c;
AverageUCP = Clients.get(0).Average_UUCP__c;
ComplexUCP = Clients.get(0).Complex_UUCP__c;
CalculatedUCP = Clients.get(0).Calculated_UUCP__c;
SimpleAW = Clients.get(0).Simple_ActorWeightage__c;
AverageAW = Clients.get(0).Average_ActorWeightage__c;
ComplexAW = Clients.get(0).Complex_ActorWeightage__c;
CalculatedAW = Clients.get(0).Calculated_ActorWeightage__c;
ProjectFamilarity = Clients.get(0).Familiarity_With_The_Project__c;
ApplicationExp = Clients.get(0).Application_Experience__c;
ProgExp = Clients.get(0).OO_Programing_Experience__c;
AnalystCapability = Clients.get(0).Lead_Analyst_Capability__c;
Motivation = Clients.get(0).Motivation__c;
StableReq = Clients.get(0).Stable_Requirements__c;
Staff = Clients.get(0).Part_Time_Staff__c;
ProgLang = Clients.get(0).Difficult_Programming_Language__c;
DistributedSys = Clients.get(0).Distributed_System_Required__c;
ResponseTime = Clients.get(0).Response_Time_Is_Important__c;
EndUser = Clients.get(0).End_User_Efficiency__c;
ComplexProcess = Clients.get(0).Complex_internal_Processing_Require
ReusableCode = Clients.get(0).Reusable_Code_Must_Be_A_Focus__c;
InstallationEase = Clients.get(0).Installation_Ease__c;
Usability = Clients.get(0).Usability__c;
PlatformSupport = Clients.get(0).Cross_Plateform_Support__c;
EasyToChange = Clients.get(0).Easy_To_Change__c;
HighlyConcurrent = Clients.get(0).Highly_Concurrent__c;
CustomSecurity = Clients.get(0).Custom_Security__c;
CodeDependency = Clients.get(0).Dependence_On_Third_Party_Code__c;
UserTraining = Clients.get(0).User_Training__c;
pass = Clients.get(0).Password__c;
tcf = Clients.get(0).Calculated_Technical_factor__c;
ef = Clients.get(0).Calculated_Environmetal_Factor__c;
uc = Clients.get(0).UseCase_Point__c;
productivity = Clients.get(0).Productivity_Hours_Per_Use_Case__c;
EstimatedEffort = Clients.get(0).Estimated_Effort_Hours__c;
}
else{
}
if(pass == password){
PageReference pg=Page.EditingPage2;
return pg;
}
return null;
}
public PageReference save() {
UseCase_Point__c auc;
auc = [SELECT Account_Name__c,Assumptions__c,Date_of_Estimation_
Project_Name__c,Risk__c,Average_UUCP__c,Calculated
Calculated_ActorWeightage__c,Complex_ActorWeightag
Calculated_Environmetal_Factor__c,Difficult_Progra
Lead_Analyst_Capability__c,Motivation__c,OO_Progra
Calculated_Technical_factor__c,Complex_internal_Pr
Dependence_On_Third_Party_Code__c,Distributed_Syst
Highly_Concurrent__c,Installation_Ease__c,Response
User_Training__c,Actor_Weight__c,Environmental_Fac
Technical_Complexity_Factor__c,Unadjusted_UseCase_
auc.Simple_UUCP__c = h1;
update auc;
/*auc.Account_Name__c = AccountName;
auc.Project_Name__c = ProjectName;
auc.Estimation_team__c = EstTeam;
auc.Date_of_Estimation__c = EstDate;
auc.Assumptions__c = Assumptions;
auc.Risk__c = Risks;*/
//auc.Simple_UUCP__c = 4;
/*auc.Average_UUCP__c = AverageUCP;
auc.Complex_UUCP__c = ComplexUCP;
auc.Simple_ActorWeightage__c = SimpleAW;
auc.Average_ActorWeightage__c = AverageAW;
auc.Complex_ActorWeightage__c = ComplexAW;
auc.Familiarity_With_The_Project__c = ProjectFamilarity;
auc.Application_Experience__c = ApplicationExp;
auc.OO_Programing_Experience__c = ProgExp;
auc.Lead_Analyst_Capability__c = AnalystCapability;
auc.Motivation__c = Motivation;
auc.Stable_Requirements__c = StableReq;
auc.Part_Time_Staff__c = Staff;
auc.Difficult_Programming_Language__c = ProgLang;
auc.Distributed_System_Required__c = DistributedSys;
auc.Response_Time_Is_Important__c = ResponseTime;
auc.End_User_Efficiency__c = EndUser;
auc.Complex_internal_Processing_Required__c = ComplexProcess;
auc.Reusable_Code_Must_Be_A_Focus__c = ReusableCode;
auc.Installation_Ease__c = InstallationEase;
auc.Usability__c = Usability;
auc.Cross_Plateform_Support__c = PlatformSupport;
auc.Easy_To_Change__c = EasyToChange;
auc.Highly_Concurrent__c = HighlyConcurrent;
auc.Custom_Security__c = CustomSecurity;
auc.Dependence_On_Third_Party_Code__c = CodeDependency;
auc.User_Training__c = UserTraining;
auc.Productivity_Hours_Per_Use_Case__c = productivity;*/
PageReference pg = Page.Editingpage1;
return pg;
}
public List<SelectOption> getItems() {
List<SelectOption> options = new List<SelectOption>();
options.add(new SelectOption('Select','Select'));
options.add(new SelectOption('WideBand','WideBand'));
options.add(new SelectOption('Story Point','Story Point'));
options.add(new SelectOption('UseCase Point','UseCase Point'));
options.add(new SelectOption('Function Point','Function Point'));
return options;
}
}
Re: Problem Updating Record
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content
02-05-2013 04:08 AM
Certified Salesforce Technical Architect, Developer, Advanced Developer, Administrator, Advanced Administrator, Consultant, Sales Cloud Consultant,Service Cloud Consultant
Force.com MVP | The Bob Buzzard Blog | Linked In | Twitter
I don't respond to private messages/emails asking for help.
Take the Bob Buzzard Sobject Fields quiz.
Re: Problem Updating Record
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content
02-05-2013 04:57 AM
Re: Problem Updating Record
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content
02-05-2013 05:02 AM
Code of Controller:
public class editcontroller {
public UseCase_Point__c up{get;set;}
public Decimal h1{get;set;}
public String password{get;set;}
public String AccountName{get;set;}
public String ProjectName{get;set;}
public String EstTeam{get;set;}
public Date EstDate{get;set;}
public String Assumptions{get;set;}
public String Risks{get;set;}
public Decimal SimpleUCP{get;set;}
public Decimal AverageUCP{get;set;}
public Decimal ComplexUCP{get;set;}
public Decimal CalculatedUCP{get;set;}
public Decimal SimpleAW{get;set;}
public Decimal AverageAW{get;set;}
public Decimal ComplexAW{get;set;}
public Decimal CalculatedAW{get;set;}
public Decimal ProjectFamilarity{get;set;}
public Decimal ApplicationExp{get;set;}
public Decimal ProgExp{get;set;}
public Decimal AnalystCapability{get;set;}
public Decimal Motivation{get;set;}
public Decimal StableReq{get;set;}
public Decimal Staff{get;set;}
public Decimal ProgLang{get;set;}
public Decimal DistributedSys{get;Set;}
public Decimal ResponseTime{get;set;}
public Decimal EndUser{get;set;}
public Decimal ComplexProcess{get;set;}
public Decimal ReusableCode{get;set;}
public Decimal InstallationEase{get;set;}
public Decimal Usability{get;set;}
public Decimal PlatformSupport{get;set;}
public Decimal EasyToChange{get;set;}
public Decimal HighlyConcurrent{get;set;}
public Decimal CustomSecurity{get;set;}
public Decimal CodeDependency{get;set;}
public Decimal UserTraining{get;set;}
public String text{get;set;}
public String pass{get;set;}
public Decimal tcf{get;set;}
public Decimal ef{get;set;}
public Decimal uc{get;set;}
public Decimal productivity{get;set;}
public Decimal EstimatedEffort{get;set;}
public String showMessage{get;set;}
public String filter{get;set;}
public String hiddenfield1{get;set;}
public String num{get;set;}
public editcontroller(){
up = new Usecase_point__c();
}
public List<SelectOption> getClients() {
List<SelectOption> options = new List<SelectOption>();
List<Usecase_point__c> ids= [SELECT Name FROM UseCase_Point__c ORDER BY CreatedDate ASC NULLS FIRST];
options.add(new SelectOption('0001', '--Select--'));
for(Usecase_point__c c : ids){
options.add(new SelectOption(c.Name,c.Name));
}
return options;
}
public PageReference next() {
List<Usecase_point__c> Clients = [SELECT Account_Name__c,Assumptions__c,Date_of_Estimation_
Project_Name__c,Risk__c,Average_UUCP__c,Calculated
Calculated_ActorWeightage__c,Complex_ActorWeightag
Calculated_Environmetal_Factor__c,Difficult_Progra
Lead_Analyst_Capability__c,Motivation__c,OO_Progra
Calculated_Technical_factor__c,Complex_internal_Pr
Dependence_On_Third_Party_Code__c,Distributed_Syst
Highly_Concurrent__c,Installation_Ease__c,Response
User_Training__c,Actor_Weight__c,Environmental_Fac
Technical_Complexity_Factor__c,Unadjusted_UseCase_
if(Clients != null){
num = Clients.get(0).Id;
AccountName = Clients.get(0).Account_Name__c;
ProjectName = Clients.get(0).Project_Name__c;
EstTeam = Clients.get(0).Estimation_team__c;
EstDate = Clients.get(0).Date_of_Estimation__c;
Assumptions = Clients.get(0).Assumptions__c;
Risks = Clients.get(0).Risk__c;
SimpleUCP = Clients.get(0).Simple_UUCP__c;
AverageUCP = Clients.get(0).Average_UUCP__c;
ComplexUCP = Clients.get(0).Complex_UUCP__c;
CalculatedUCP = Clients.get(0).Calculated_UUCP__c;
SimpleAW = Clients.get(0).Simple_ActorWeightage__c;
AverageAW = Clients.get(0).Average_ActorWeightage__c;
ComplexAW = Clients.get(0).Complex_ActorWeightage__c;
CalculatedAW = Clients.get(0).Calculated_ActorWeightage__c;
ProjectFamilarity = Clients.get(0).Familiarity_With_The_Project__c;
ApplicationExp = Clients.get(0).Application_Experience__c;
ProgExp = Clients.get(0).OO_Programing_Experience__c;
AnalystCapability = Clients.get(0).Lead_Analyst_Capability__c;
Motivation = Clients.get(0).Motivation__c;
StableReq = Clients.get(0).Stable_Requirements__c;
Staff = Clients.get(0).Part_Time_Staff__c;
ProgLang = Clients.get(0).Difficult_Programming_Language__c;
DistributedSys = Clients.get(0).Distributed_System_Required__c;
ResponseTime = Clients.get(0).Response_Time_Is_Important__c;
EndUser = Clients.get(0).End_User_Efficiency__c;
ComplexProcess = Clients.get(0).Complex_internal_Processing_Require
ReusableCode = Clients.get(0).Reusable_Code_Must_Be_A_Focus__c;
InstallationEase = Clients.get(0).Installation_Ease__c;
Usability = Clients.get(0).Usability__c;
PlatformSupport = Clients.get(0).Cross_Plateform_Support__c;
EasyToChange = Clients.get(0).Easy_To_Change__c;
HighlyConcurrent = Clients.get(0).Highly_Concurrent__c;
CustomSecurity = Clients.get(0).Custom_Security__c;
CodeDependency = Clients.get(0).Dependence_On_Third_Party_Code__c;
UserTraining = Clients.get(0).User_Training__c;
pass = Clients.get(0).Password__c;
tcf = Clients.get(0).Calculated_Technical_factor__c;
ef = Clients.get(0).Calculated_Environmetal_Factor__c;
uc = Clients.get(0).UseCase_Point__c;
productivity = Clients.get(0).Productivity_Hours_Per_Use_Case__c;
EstimatedEffort = Clients.get(0).Estimated_Effort_Hours__c;
}
else{
}
if(pass == password){
PageReference pg=Page.EditingPage2;
return pg;
}
return null;
}
public PageReference save() {
UseCase_Point__c auc;
auc = [SELECT Account_Name__c,Assumptions__c,Date_of_Estimation_
Project_Name__c,Risk__c,Average_UUCP__c,Calculated
Calculated_ActorWeightage__c,Complex_ActorWeightag
Calculated_Environmetal_Factor__c,Difficult_Progra
Lead_Analyst_Capability__c,Motivation__c,OO_Progra
Calculated_Technical_factor__c,Complex_internal_Pr
Dependence_On_Third_Party_Code__c,Distributed_Syst
Highly_Concurrent__c,Installation_Ease__c,Response
User_Training__c,Actor_Weight__c,Environmental_Fac
Technical_Complexity_Factor__c,Unadjusted_UseCase_
auc.Simple_UUCP__c = h1;
update auc;
/*auc.Account_Name__c = AccountName;
auc.Project_Name__c = ProjectName;
auc.Estimation_team__c = EstTeam;
auc.Date_of_Estimation__c = EstDate;
auc.Assumptions__c = Assumptions;
auc.Risk__c = Risks;*/
//auc.Simple_UUCP__c = 4;
/*auc.Average_UUCP__c = AverageUCP;
auc.Complex_UUCP__c = ComplexUCP;
auc.Simple_ActorWeightage__c = SimpleAW;
auc.Average_ActorWeightage__c = AverageAW;
auc.Complex_ActorWeightage__c = ComplexAW;
auc.Familiarity_With_The_Project__c = ProjectFamilarity;
auc.Application_Experience__c = ApplicationExp;
auc.OO_Programing_Experience__c = ProgExp;
auc.Lead_Analyst_Capability__c = AnalystCapability;
auc.Motivation__c = Motivation;
auc.Stable_Requirements__c = StableReq;
auc.Part_Time_Staff__c = Staff;
auc.Difficult_Programming_Language__c = ProgLang;
auc.Distributed_System_Required__c = DistributedSys;
auc.Response_Time_Is_Important__c = ResponseTime;
auc.End_User_Efficiency__c = EndUser;
auc.Complex_internal_Processing_Required__c = ComplexProcess;
auc.Reusable_Code_Must_Be_A_Focus__c = ReusableCode;
auc.Installation_Ease__c = InstallationEase;
auc.Usability__c = Usability;
auc.Cross_Plateform_Support__c = PlatformSupport;
auc.Easy_To_Change__c = EasyToChange;
auc.Highly_Concurrent__c = HighlyConcurrent;
auc.Custom_Security__c = CustomSecurity;
auc.Dependence_On_Third_Party_Code__c = CodeDependency;
auc.User_Training__c = UserTraining;
auc.Productivity_Hours_Per_Use_Case__c = productivity;*/
PageReference pg = Page.Editingpage1;
return pg;
}
public List<SelectOption> getItems() {
List<SelectOption> options = new List<SelectOption>();
options.add(new SelectOption('Select','Select'));
options.add(new SelectOption('WideBand','WideBand'));
options.add(new SelectOption('Story Point','Story Point'));
options.add(new SelectOption('UseCase Point','UseCase Point'));
options.add(new SelectOption('Function Point','Function Point'));
return options;
}
}
Re: Problem Updating Record
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content
02-05-2013 05:03 AM
code of visualforce page:
<apex:page id="page1" controller="editcontroller" standardStylesheets="false" showHeader="false" wizard="false">
<link href="{!URLFOR($Resource.bootstrap,'/css/bootstrap
<script src="http://code.jquery.com/jquery-latest.js"></script>
<body style="margin:00px 00px 00px,00px; background-color:CadetBlue ">
<c:Header_Home ></c:Header_Home>
<apex:form id="form1" style="background-color:CadetBlue ">
<div style="text-align:center; color:White; background-color:CadetBlue "><h3><b>Project Details</b></h3></div>
<div class="container" style="color:White">
<div style="float:left; margin-top:20px; ">
<div style="float:left; margin-left:70px; ">
<apex:outputLabel style="margin-top:5px"><b>Account Name:</b></apex:outputLabel><br/><br/>
<apex:outputLabel ><b>Estimation Team:</b></apex:outputLabel><br/><br/>
<apex:outputLabel ><b>Assumptions:</b></apex:outputLabel><br/><br/>
</div>
<div style="float:left; margin-left:50px">
<apex:inputText value="{!AccountName}" disabled="true" style="width:150px;" /><br/><br/>
<apex:inputText value="{!EstTeam}" disabled="true" style="width:150px; margin-top:5px" /><br/><br/>
<apex:inputText value="{!Assumptions}" disabled="true" style="width:150px; margin-top:5px" /><br/><br/>
</div>
</div>
<div style="float:left; margin-top:20px">
<div style="float:left; margin-left:70px">
<apex:outputLabel style="margin-top:5px" ><b>Project Name:</b></apex:outputLabel><br/><br/>
<apex:outputLabel ><b>Estimation Date:</b></apex:outputLabel><br/><br/>
<apex:outputLabel ><b>Risks:</b></apex:outputLabel><br/><br/>
</div>
<div style="float:left; margin-left:50px">
<apex:inputText value="{!ProjectName}" disabled="true" style="width:150px;" /><br/><br/>
<apex:inputText value="{!EstDate}" disabled="true" style="width:150px; margin-top:5px" /><br/><br/>
<apex:inputText value="{!Risks}" disabled="true" style="width:150px; margin-top:5px" /><br/><br/>
</div>
</div>
</div>
<div style="text-align:center; color:White; background-color:CadetBlue "><h4><b>Unadjusted Usecase Point</b></h4></div>
<div class="container" style="color:White" >
<div style="float:left; margin-top:20px">
<div style="float:left; margin-left:70px">
<apex:outputLabel style="margin-top:5px"><b>Simple UUCP:</b></apex:outputLabel><br/><br/>
<apex:outputLabel ><b>Complex UUCP:</b></apex:outputLabel><br/><br/>
</div>
<div style="float:left; margin-left:50px">
<apex:inputText id="inp1" value="{!SimpleUCP}" onblur="assignvalues()" style="width:150px;" /><br/><br/>
<apex:inputText value="{!ComplexUCP}" style="width:150px; margin-top:5px" /><br/><br/>
<apex:inputHidden id="hf1" value="{!h1}" />
</div>
</div>
<script>
function assignvalues(){
var a = document.getElementById('{!$Component.page1.form1.
alert(a);
document.getElementById('{!$Component.page1.form1.
alert( document.getElementById('{!$Component.page1.form1.
}
</script>
<div style="float:left; margin-top:20px">
<div style="float:left; margin-left:70px">
<apex:outputLabel style="margin-top:5px" ><b>Average UUCP:</b></apex:outputLabel><br/><br/>
<apex:outputLabel ><b>Calculated UUCP:</b></apex:outputLabel><br/><br/>
</div>
<div style="float:left; margin-left:50px">
<apex:inputText value="{!AverageUCP}" style="width:150px;" /><br/><br/>
<apex:inputText id="cup" value="{!CalculatedUCP}" disabled="true" style="width:150px; margin-top:5px" /><br/><br/>
</div>
</div>
</div>
<div style="text-align:center; color:White; background-color:CadetBlue "><h4><b>Unadjusted Actor Weight</b></h4></div>
<div class="container" style="color:White">
<div style="float:left; margin-top:20px">
<div style="float:left; margin-left:70px">
<apex:outputLabel style="margin-top:5px"><b>Simple AW:</b></apex:outputLabel><br/><br/>
<apex:outputLabel ><b>Complex AW:</b></apex:outputLabel><br/><br/>
</div>
<div style="float:left; margin-left:50px">
<apex:inputText value="{!SimpleAW}" style="width:150px;" /><br/><br/>
<apex:inputText value="{!ComplexAW}" style="width:150px; margin-top:5px" /><br/><br/>
</div>
</div>
<div style="float:left; margin-top:20px">
<div style="float:left; margin-left:70px">
<apex:outputLabel style="margin-top:5px" ><b>Average AW:</b></apex:outputLabel><br/><br/>
<apex:outputLabel ><b>Calculated AW:</b></apex:outputLabel><br/><br/>
</div>
<div style="float:left; margin-left:50px">
<apex:inputText value="{!AverageAW}" style="width:150px;" /><br/><br/>
<apex:inputText id="caw" value="{!CalculatedAW}" disabled="true" style="width:150px; margin-top:5px" /><br/><br/>
</div>
</div>
</div>
<div style="text-align:center; color:White; background-color:CadetBlue "><h4><b>Environmental Factors</b></h4></div>
<div id="chk1" class="container" style="color:White">
<div style="float:left; margin-top:20px">
<div style="float:left; margin-left:70px">
<apex:outputLabel style="margin-top:5px"><b>Familiarity With The Project:</b></apex:outputLabel><br/><br/>
<apex:outputLabel ><b>OO Programing Experience:</b></apex:outputLabel><br/><br/>
<apex:outputLabel ><b>Motivation:</b></apex:outputLabel><br/><br/>
<apex:outputLabel ><b>Part Time Staff:</b></apex:outputLabel><br/><br/>
</div>
<div style="float:left; margin-left:50px">
<apex:inputText id="ip1" onchange="cal1()" value="{!ProjectFamilarity}" style="width:150px;" /><br/><br/>
<apex:inputText id="ip2" onchange="cal1()" value="{!ProgExp}" style="width:150px; margin-top:5px" /><br/><br/>
<apex:inputText id="ip3" onchange="cal1()" value="{!Motivation}" style="width:150px; margin-top:5px" /><br/><br/>
<apex:inputText id="ip4" onchange="cal1()" value="{!Staff}" style="width:150px; margin-top:5px" /><br/><br/>
</div>
</div>
<div style="float:left; margin-top:20px">
<div style="float:left; margin-left:70px">
<apex:outputLabel style="margin-top:5px" ><b>Application Experience :</b></apex:outputLabel><br/><br/>
<apex:outputLabel ><b>Lead Analyst Capability:</b></apex:outputLabel><br/><br/>
<apex:outputLabel ><b>Stable Requirements:</b></apex:outputLabel><br/><br/>
<apex:outputLabel ><b>Difficult Prog. Language:</b></apex:outputLabel><br/><br/>
</div>
<div style="float:left; margin-left:50px">
<apex:inputText id="ip5" onchange="cal1()" value="{!ApplicationExp}" style="width:150px;" /><br/><br/>
<apex:inputText id="ip6" onchange="cal1()" value="{!AnalystCapability}" style="width:150px; margin-top:5px" /><br/><br/>
<apex:inputText id="ip7" onchange="cal1()" value="{!StableReq}" style="width:150px; margin-top:5px" /><br/><br/>
<apex:inputText id="ip8" onchange="cal1()" value="{!ProgLang}" style="width:150px; margin-top:5px" /><br/><br/>
</div>
</div>
</div>
<div style="text-align:center; color:White; background-color:CadetBlue "><h4><b>Technical Factors</b></h4></div>
<div id="chk2" class="container" style="color:White">
<div style="float:left; margin-top:20px">
<div style="float:left; margin-left:70px">
<apex:outputLabel style="margin-top:5px"><b>Distributed System Req.:</b></apex:outputLabel><br/><br/>
<apex:outputLabel ><b>End User Efficiency:</b></apex:outputLabel><br/><br/>
<apex:outputLabel ><b>Reusable Code:</b></apex:outputLabel><br/><br/>
<apex:outputLabel ><b>Usability:</b></apex:outputLabel><br/><br/>
<apex:outputLabel ><b>Easy To Change:</b></apex:outputLabel><br/><br/>
<apex:outputLabel ><b>Custom Security:</b></apex:outputLabel><br/><br/>
<apex:outputLabel ><b>User Training:</b></apex:outputLabel><br/><br/>
</div>
<div style="float:left; margin-left:50px">
<apex:inputText id="fe1" onchange="cal2()" value="{!DistributedSys}" style="width:150px;" /><br/><br/>
<apex:inputText id="fe2" onchange="cal2()" value="{!EndUser}" style="width:150px; margin-top:5px" /><br/><br/>
<apex:inputText id="fe3" onchange="cal2()" value="{!ReusableCode}" style="width:150px; margin-top:5px" /><br/><br/>
<apex:inputText id="fe4" onchange="cal2()" value="{!Usability}" style="width:150px; margin-top:5px" /><br/><br/>
<apex:inputText id="fe5" onchange="cal2()" value="{!EasyToChange}" style="width:150px; margin-top:5px" /><br/><br/>
<apex:inputText id="fe6" onchange="cal2()" value="{!CustomSecurity}" style="width:150px; margin-top:5px" /><br/><br/>
<apex:inputText id="fe7" onchange="cal2()" value="{!UserTraining}" style="width:150px; margin-top:5px" /><br/><br/>
</div>
</div>
<div style="float:left; margin-top:20px">
<div style="float:left; margin-left:70px">
<apex:outputLabel style="margin-top:5px" ><b>Response Time:</b></apex:outputLabel><br/><br/>
<apex:outputLabel ><b>Complex Internal Process:</b></apex:outputLabel><br/><br/>
<apex:outputLabel ><b>Installation Ease:</b></apex:outputLabel><br/><br/>
<apex:outputLabel ><b>Cross Platform Support:</b></apex:outputLabel><br/><br/>
<apex:outputLabel ><b>Highly Concurrent:</b></apex:outputLabel><br/><br/>
<apex:outputLabel ><b>Code Dependency:</b></apex:outputLabel><br/><br/>
</div>
<div style="float:left; margin-left:50px">
<apex:inputText id="fe8" onchange="cal2()" value="{!ResponseTime}" style="width:150px;" /><br/><br/>
<apex:inputText id="fe9" onchange="cal2()" value="{!ComplexProcess}" style="width:150px; margin-top:5px" /><br/><br/>
<apex:inputText id="fe10" onchange="cal2()" value="{!InstallationEase}" style="width:150px; margin-top:5px" /><br/><br/>
<apex:inputText id="fe11" onchange="cal2()" value="{!PlatformSupport}" style="width:150px; margin-top:5px" /><br/><br/>
<apex:inputText id="fe12" onchange="cal2()" value="{!HighlyConcurrent}" style="width:150px; margin-top:5px" /><br/><br/>
<apex:inputText id="fe13" onchange="cal2()" value="{!CodeDependency}" style="width:150px; margin-top:5px" /><br/><br/>
</div>
</div>
</div>
<div style="text-align:center; color:White; background-color:CadetBlue "><h4><b>Final Calculations</b></h4></div>
<div class="container" style="color:White">
<div style="float:left; margin-top:20px">
<div style="float:left; margin-left:70px">
<apex:outputLabel style="margin-top:5px"><b>Environmental Factor:</b></apex:outputLabel><br/><br/>
<apex:outputLabel style=""><b>UseCase Point:</b></apex:outputLabel><br/><br/>
<apex:outputLabel style=""><b>Estimated Effort Hours:</b></apex:outputLabel><br/><br/>
</div>
<div style="float:left; margin-left:50px">
<apex:inputText disabled="true" id="idef" value="{!ef}" style="width:150px;" /><br/><br/>
<apex:inputText disabled="true" id="ucp" value="{!uc}" style="width:150px; margin-top:5px" /><br/><br/>
<apex:inputText id="effort" disabled="true" value="{!EstimatedEffort}" style="width:150px; margin-top:5px" /><br/><br/>
</div>
</div>
<div style="float:left; margin-top:20px">
<div style="float:left; margin-left:70px">
<apex:outputLabel style="margin-top:5px" ><b>Technical Factor:</b></apex:outputLabel><br/><br/>
<apex:outputLabel style="" ><b>Productivity:</b></apex:outputLabel><br/><br/>
</div>
<div style="float:left; margin-left:50px">
<apex:inputText disabled="true" id="idtcf" value="{!tcf}" style="width:150px;" /><br/><br/>
<apex:inputText id="prod" onchange="cal3()" value="{!productivity}" style="width:150px; margin-top:5px" /><br/><br/>
</div>
</div>
</div>
<div style="text-align:center; background-color:CadetBlue ">
<apex:commandButton value="Save" styleClass="btn btn-inverse" action="{!save}"/>
</div>
</apex:form>
</body>
<script src="{!URLFOR($Resource.tiles1, 'js/tileJs.min.js')}"></script>
<script>
$(document).ready(function() {
$('#chk1 input[type="text"]').bind('change', function () {
var v = $(this).val();
if (!IsValidMagnitude(v)) {
alert("Please enter a number between 0 and 5");
$(this).val("").focus();
return false;
}
});
$('#chk2 input[type="text"]').bind('change', function () {
var v = $(this).val();
if (!IsValidMagnitude(v)) {
alert("Please enter a number between 0 and 5");
$(this).val("").focus();
return false;
}
});
});
function IsValidMagnitude(input)
{
var RE = /^([0-5])$/;
return (RE.test(input));
}
var x,z,ucp;
function cal1(){
var a = parseFloat(document.getElementById('{!$Component.p
var b = parseFloat(document.getElementById('{!$Component.p
var c = parseFloat(document.getElementById('{!$Component.p
var d = parseFloat(document.getElementById('{!$Component.p
var e = parseFloat(document.getElementById('{!$Component.p
var f = parseFloat(document.getElementById('{!$Component.p
var g = parseFloat(document.getElementById('{!$Component.p
var h = parseFloat(document.getElementById('{!$Component.p
x = 1.4-(0.03*((1.5*a)+(0.5*b)+(c)+(0.5*d)+(e)+(2*f)+(
document.getElementById('{!$Component.page1.form1.
}
function cal2(){
var a1 = parseFloat(document.getElementById('{!$Component.p
var b1 = parseFloat(document.getElementById('{!$Component.p
var c1 = parseFloat(document.getElementById('{!$Component.p
var d1 = parseFloat(document.getElementById('{!$Component.p
var e1 = parseFloat(document.getElementById('{!$Component.p
var f1 = parseFloat(document.getElementById('{!$Component.p
var g1 = parseFloat(document.getElementById('{!$Component.p
var h1 = parseFloat(document.getElementById('{!$Component.p
var i1 = parseFloat(document.getElementById('{!$Component.p
var j1 = parseFloat(document.getElementById('{!$Component.p
var k1 = parseFloat(document.getElementById('{!$Component.p
var l1 = parseFloat(document.getElementById('{!$Component.p
var m1 = parseFloat(document.getElementById('{!$Component.p
z = 0.6+(((2*a1)+(b1)+(c1)+(d1)+(e1)+(0.5*f1)+(0.5*g1)
document.getElementById('{!$Component.page1.form1.
var hf1 = parseFloat(document.getElementById('{!$Component.p
var hf2 = parseFloat(document.getElementById('{!$Component.p
ucp = (hf1+hf2)*x*z;
document.getElementById('{!$Component.page1.form1.
}
function cal3(){
var productivity = parseFloat(document.getElementById('{!$Component.p
var no_of_hours = productivity * ucp;
document.getElementById('{!$Component.page1.form1.
}
function home(){
window.location = "/apex/HomePage"
}
</script>
</apex:page>
Re: Problem Updating Record
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content
02-05-2013 05:23 AM
Certified Salesforce Technical Architect, Developer, Advanced Developer, Administrator, Advanced Administrator, Consultant, Sales Cloud Consultant,Service Cloud Consultant
Force.com MVP | The Bob Buzzard Blog | Linked In | Twitter
I don't respond to private messages/emails asking for help.
Take the Bob Buzzard Sobject Fields quiz.
Re: Problem Updating Record
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content
02-05-2013 05:28 AM
I have a proble in this part. My record does not get update.
public PageReference save() {
UseCase_Point__c auc;
auc = [SELECT Account_Name__c,Assumptions__c,Date_of_Estimation__c,Estimation_team__c,Name,
Project_Name__c,Risk__c,Average_UUCP__c,Calculated_UUCP__c,Complex_UUCP__c,Simple_UUCP__c,Average_ActorWeightage__c,
Calculated_ActorWeightage__c,Complex_ActorWeightage__c,Simple_ActorWeightage__c,Application_Experience__c,
Calculated_Environmetal_Factor__c,Difficult_Programming_Language__c,Familiarity_With_The_Project__c,
Lead_Analyst_Capability__c,Motivation__c,OO_Programing_Experience__c,Part_Time_Staff__c,Stable_Requirements__c,
Calculated_Technical_factor__c,Complex_internal_Processing_Required__c,Cross_Plateform_Support__c,Custom_Security__c,
Dependence_On_Third_Party_Code__c,Distributed_System_Required__c,Easy_To_Change__c,End_User_Efficiency__c,
Highly_Concurrent__c,Installation_Ease__c,Response_Time_Is_Important__c,Reusable_Code_Must_Be_A_Focus__c,Usability__c,
User_Training__c,Actor_Weight__c,Environmental_Factor__c,Estimated_Effort_Hours__c,Productivity_Hours_Per_Use_Case__c,
Technical_Complexity_Factor__c,Unadjusted_UseCase_Point__c,UseCase__c,Password__c,UseCase_Point__c,Id FROM UseCase_Point__c WHERE Name = :text limit 1];
auc.Simple_UUCP__c = h1;
update auc;
}
Re: Problem Updating Record
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content
02-05-2013 05:43 AM
Certified Salesforce Technical Architect, Developer, Advanced Developer, Administrator, Advanced Administrator, Consultant, Sales Cloud Consultant,Service Cloud Consultant
Force.com MVP | The Bob Buzzard Blog | Linked In | Twitter
I don't respond to private messages/emails asking for help.
Take the Bob Buzzard Sobject Fields quiz.
Re: Problem Updating Record
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content
02-05-2013 06:07 AM
Re: Problem Updating Record
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content
02-05-2013 06:32 AM
Have you turned on debug logging to see if there are any errors being thrown?
Certified Salesforce Technical Architect, Developer, Advanced Developer, Administrator, Advanced Administrator, Consultant, Sales Cloud Consultant,Service Cloud Consultant
Force.com MVP | The Bob Buzzard Blog | Linked In | Twitter
I don't respond to private messages/emails asking for help.
Take the Bob Buzzard Sobject Fields quiz.

