You need to sign in to do that
Don't have an account?
Swamy P
How to Update Child Records in visualforce page with out controller
Hello Folks,
I'm working in Professional Edition. So i don't have access for Apex. I was trying to update Contact Records from an Account Page by using Custom button(Through VF Page).
As i understood that we can query the records by using sforce.connection.query and also we can update by using sforce.connection.update. I need help on how to add list in vf page from a javascript.
<apex:PagebolckTable value="{!contactsForAccount}" var="c"> Showing Contact Records in editable mode in a visualforce page
<apex:column headervalue="Last Name">
<apex:inputfield value="{!c.LastName}"/>
</apex:column>
</apex:PagebolckTable>
contactsForAccount - > It is the list adding in PageBlock Table, how to add records to this list in PageBlock Table.
I'm working in Professional Edition. So i don't have access for Apex. I was trying to update Contact Records from an Account Page by using Custom button(Through VF Page).
As i understood that we can query the records by using sforce.connection.query and also we can update by using sforce.connection.update. I need help on how to add list in vf page from a javascript.
<apex:PagebolckTable value="{!contactsForAccount}" var="c"> Showing Contact Records in editable mode in a visualforce page
<apex:column headervalue="Last Name">
<apex:inputfield value="{!c.LastName}"/>
</apex:column>
</apex:PagebolckTable>
contactsForAccount - > It is the list adding in PageBlock Table, how to add records to this list in PageBlock Table.
Will you provide sample code that how to push data from javascript to a List(which is in PageblockTable).
Assuming you have the following Visualforce page:
The key points of the code above is including the jQuery script and setting the id on the pageBlockTable
Then from your JavaScript you can make the following call to append the data
This will append a new row into your table. I would also recommend that you look over a templating language [2][3]. This would help dramatically in making you JavaScript much more readable and make it easier to modify later.
[1] https://jquery.com/
[2] http://handlebarsjs.com/
[3] http://www.embeddedjs.com/