You need to sign in to do that
Don't have an account?
Soumya sri yarava
visualForce page:
onclick on the button the values assigned to the particular outputlabel and display
thanks and regards
soumya reddy
how to pass the values in x co-ordinate and Y-cordinate in apex to display
public class OrignContrl { public decimal xvalue{get;set;} public decimal yvalue{get;set;} public string Totalcost{get;set;} public OrignContrl(){ Totalcost ='Testing'; } public void setvalues(){ xvalue =48.05; yvalue =50.06; } }
visualForce page:
<apex:page controller="OrignContrl" > <apex:form > <apex:commandButton value="Display in selected format" Action="{!setvalues}" /> <apex:outputLabel >{!Totalcost}</apex:outputLabel> </apex:form> </apex:page>
onclick on the button the values assigned to the particular outputlabel and display
thanks and regards
soumya reddy
If I understand your question you want to bind the values and display it on the page once button is clicked.
VF Page:
Apex Class:
As you want to add the value and display in TotalCost so I have changed the data type from String to Decimal.
Basically whatever value you want to display on page can be easily habdled with {get;set;}
If this answer helps you then please mark it as a Best Answer, so that it will help others.
Regards,
Santosh Kumar
it is like garph, need to assign the values in x-axis and y-axis as the values changes it should have to change the location.
NOTE: Depending upon the values, the location of the outputlabel should change.
its all about location
hope u understand my requirement,
thanks and regards
soumye
top: 0px; bottom: 0px; left: 0px; right: 0px; margin: auto; position: absolute; in style in css , can we take this scenario in the apex
to print the value in the particular desired position .
thanks
soumya
You can bind any value to style attribute in the way you bind normal variable. Refer below example:
If you will see I have applied some initial css to the label and I am changing it on button click same is reflected in Label as well you will see the updated value and the style is getting changed.
If this answer helps you then please mark it as a Best Answer, so that it will help others.
Regards,
Santosh Kumar