Difference between revisions of "Pandora - Update a System Variable"

From SmartWiki
Jump to: navigation, search
m (fixed it)
 
Line 25: Line 25:
 
  function setDeadlin() {
 
  function setDeadlin() {
 
     ss_developer_key="745757jj3389dl8783";
 
     ss_developer_key="745757jj3389dl8783";
     var sysvar_update(false,"","Submission Deadline","2015-12-31")
+
     var result = sysvar_update(false,"","Submission Deadline","2015-12-31");
 
  }
 
  }
  
 
[[Category: Pandora]]
 
[[Category: Pandora]]

Latest revision as of 10:10, 21 April 2015

This function will update or create a single system variable

sysvar_update(flag,callbackfunction,varname,value)
Parameter Description
Flag Asynchronous processing Flag

Set to False for synchronous processing.

Set to True for asynchronous processing.

Callbackfunc User created Java function to manage the callback from an asynchronous function.
varname name of the system variable to be updated or created
value The value of the system variable


Example

function setDeadlin() {
   ss_developer_key="745757jj3389dl8783";
   var result = sysvar_update(false,"","Submission Deadline","2015-12-31");
}