Difference between revisions of "System Call"

From SmartWiki
Jump to: navigation, search
Line 31: Line 31:
 
<br/>2. SysCall_workflow(objecttype,objectid,'WorkflowTriggerName')
 
<br/>2. SysCall_workflow(objecttype,objectid,'WorkflowTriggerName')
  
Proposed
+
<br>Proposed
 
<br/>3. SysCall_activatepelple(userid,activate type) - activateType can be 0(deactivated), 1(activated),3(applicant job application only),5(web service login)
 
<br/>3. SysCall_activatepelple(userid,activate type) - activateType can be 0(deactivated), 1(activated),3(applicant job application only),5(web service login)
 
<br/>4. SysCall_updaterole(userid,updatetype,'rolesNameDelimitedByComma') -update can be 1(add roles), 2(remove all existing roles and add new roles),3 (remove listed roles)
 
<br/>4. SysCall_updaterole(userid,updatetype,'rolesNameDelimitedByComma') -update can be 1(add roles), 2(remove all existing roles and add new roles),3 (remove listed roles)

Revision as of 14:15, 12 September 2012

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')


Proposed
3. SysCall_activatepelple(userid,activate type) - activateType can be 0(deactivated), 1(activated),3(applicant job application only),5(web service login)
4. SysCall_updaterole(userid,updatetype,'rolesNameDelimitedByComma') -update can be 1(add roles), 2(remove all existing roles and add new roles),3 (remove listed roles)