You need to sign in to do that
Don't have an account?
Supriya P 9
Error Saying Formula Expression is required on the action attributes
Hello ,
In VF page I need to display value of Contract ID
In VF:
<apex:commandButton action="{!ClickForContract}" value="Contract Id" />
<apex:outputText value="{!ContractId }"/>
In Class:
public String ContractId {get; set;}
public String ClickForContract() {
Quote q=[Select id,Contract.id,Contract_ID__c from quote];
ContractId=q.Contract.id; return ContractId ; }
Please help me.
In VF page I need to display value of Contract ID
In VF:
<apex:commandButton action="{!ClickForContract}" value="Contract Id" />
<apex:outputText value="{!ContractId }"/>
In Class:
public String ContractId {get; set;}
public String ClickForContract() {
Quote q=[Select id,Contract.id,Contract_ID__c from quote];
ContractId=q.Contract.id; return ContractId ; }
Please help me.
Please, replace your method with the folowing. It should work.
Thanks,
Sumit Kuamar Singh
Hello Supriya,
Where exactly are you facing issue. VF page or class?
Thanks,
Gaurav