+ Start a Discussion
surasura 

Visualforce + Ajax tool kit

Hi 

 

could anyone pls tell me is this possible ??

 

I have a visualforce page that uses standard controller , in that page I have few fields I have to set values dynamically using  ajax set method.

but object must be saved when save button is clicked including ajax set values as well as input field values. So far I think this is not possible

:smileyfrustrated:
SurekaSureka

Hi,

 

Sample code to acheive the expected functionality:

 

<apex:page standardController="Account">
<apex:form >
<apex:inputField value="{!Account.Name}"/>
<apex:commandButton value="Save" action="{!save}"/>
</apex:form>
</apex:page>

 

The above code inserts/updates the corresponding Account. Let me know if it helps.

 

Thanks