Developer Function: Script: $p.set
Overview¶
This explains the method that allows you to change the value on the screen and store it in $p.data at the same time. If you change the value of a text box or other item in a script, the value will not be updated even if you change it like this: $('#Results_ClassA').val('changed value'); This is because only the value changed by the user is stored in the client-side variable "$p.data" of Pleasanter, and is posted.
Syntax¶
Javascript¶
Usage Example¶
If you set the following sample code to the Pleasanter script, when you click the "Update" button on the edit screen, the title column will be updated with the "Title" value set.