The EPCF Client Data Bag API provides methods to store data in a transient data buffer on the client. For background information, see Client Data Bag.
This method saves the value parameter under a key, which is a concatenation of the nameSpace and name parameters. If the key already exists, the stored data is overwritten.
Example
<SCRIPT language ="JavaScript"> var selectedPerson = "John Doe" EPCM.storeClientData( "urn:com.sap.myObjects", "person", selectedPerson ); </SCRIPT>
Retrieves the data stored under the key, which is a concatenation of the nameSpace and name parameters. If the key does not exist, the method returns null.
Example
<SCRIPT language ="JavaScript"> var person=EPCM.loadClientData("urn:com.sap.myObjects", "person"); if ( person != null ){ /* process person */ } </SCRIPT>
This method deletes the key, which is a concatenation of the nameSpace and name parameters.
Example
<SCRIPT language ="JavaScript"> EPCM.deleteClientData( "urn:com.sap.myObjects", "person" ); </SCRIPT>