Difference between revisions of "System Call"

From SmartWiki
Jump to: navigation, search
Line 3: Line 3:
 
<br/>Trigger Type
 
<br/>Trigger Type
  
<br/>on Load - SysCall is carried out by server  when page is requested(no javascript is required)
+
<br/>on Load - SysCall is carried out by server  when page is requested (no javascript is required)
 
<br/>on Page - SysCall is trigger by clicking a button on page
 
<br/>on Page - SysCall is trigger by clicking a button on page
<br/>on Save - SysCall is carried out by server when page is saved(no javascript is required)
+
<br/>on Save - SysCall is carried out by server when page is saved (no javascript is required)
  
 
<br/>Example :
 
<br/>Example :
Line 20: Line 20:
 
<br/>**@objtype@ and @objid@ are reserved words
 
<br/>**@objtype@ and @objid@ are reserved words
  
<br/>**Objtype can be integer(23,18,30,40) or constants {levelone,level1,leveltwo,level2,levelthree,level3,contact,people,company}
+
<br/>**Objtype can be integer (23, 18, 30, 40) or constants {levelone, level1, leveltwo, level2, levelthree, level3, contact, people, company}
  
  
Line 30: Line 30:
 
<br/>1. SysCall_updatestatus(objecttype,objectid,'StatusName')     
 
<br/>1. SysCall_updatestatus(objecttype,objectid,'StatusName')     
 
<br/>2. SysCall_workflow(objecttype,objectid,'WorkflowTriggerName')
 
<br/>2. SysCall_workflow(objecttype,objectid,'WorkflowTriggerName')
<br/>3. SysCall_activatepeople(userid,activateType) - activateType can be 0(deactivated), 1(activated),3(applicant job application only),5(web service login)
+
<br/>3. SysCall_activatepeople(userid,activateType) - activateType can be 0 (deactivated), 1 (activated), 3 (applicant job application only), 5 (web service login)
<br/>4. SysCall_updaterole(userid,updatetype,'rolesNamesDelimitedByCommas') -updatetype can be 1(add roles), 2(remove all existing roles and add new roles),3 (remove listed roles)
+
<br/>4. SysCall_updaterole(userid,updatetype,'rolesNamesDelimitedByCommas') - updatetype can be 1 (add roles), 2 (remove all existing roles and add new roles), 3 (remove listed roles)
  
 
<br>Proposed
 
<br>Proposed
  
   <br/>1. SysCall_updatesysvar('VariableName','Description', 'VariableValue')
+
   <br/>1. SysCall_updatesysvar('VariableName','Description','VariableValue')

Revision as of 14:55, 7 February 2013

System Call ( embedded in browser script custom field type )


Trigger Type


on Load - SysCall is carried out by server when page is requested (no javascript is required)
on Page - SysCall is trigger by clicking a button on page
on Save - SysCall is carried out by server when page is saved (no javascript is required)


Example :


<!--SysCall_updatestatus(@objtype@,@objid@,'StatusName')-->

<!--SysCall_workflow(@objtype@,@objid@,'myworkflow')@-->

<!--SysCall_workflow(23,@parent.objid@,'myworkflow')@-->

<!--SysCall_workflow(levelone,@parent.objid@,'myworkflow')@-->


**@objtype@ and @objid@ are reserved words


**Objtype can be integer (23, 18, 30, 40) or constants {levelone, level1, leveltwo, level2, levelthree, level3, contact, people, company}




Available Calls

In production
1. SysCall_updatestatus(objecttype,objectid,'StatusName')
2. SysCall_workflow(objecttype,objectid,'WorkflowTriggerName')
3. SysCall_activatepeople(userid,activateType) - activateType can be 0 (deactivated), 1 (activated), 3 (applicant job application only), 5 (web service login)
4. SysCall_updaterole(userid,updatetype,'rolesNamesDelimitedByCommas') - updatetype can be 1 (add roles), 2 (remove all existing roles and add new roles), 3 (remove listed roles)


Proposed

 
1. SysCall_updatesysvar('VariableName','Description','VariableValue')