There are 2 user event you can use and trigger in HCM processes and forms; namely
USER_EVENT_INITIALIZE and USER_EVENT_CHECK
The different between these 2 events is, one will trigger INITIALIZE method of your generic service while another will trigger DO_OPERATION method.
Example, if you want to trigger form reset the form to initial stage by initialize the form value, you can add these code upon user click on button "RESET":
mousedown* using Formcalc
//Set ISR_EVENT for BAdI processing in backend
$record.CONTROL_PARAM.ISR_EVENT = "USER_EVENT_INITIALIZE"
click* using Javascript
//Trigger call to backend for BAdI user command processing
ContainerFoundation_JS.SendMessageToContainer(event.target, "submit", "", "", "", "");
If you want to trigger after user has selected any value from a drop down list:
exit* using Javascript
xfa.record.CONTROL_PARAM.ISR_EVENT.value = "USER_EVENT_CHECK";
ContainerFoundation_JS.SendMessageToContainer(event.target, "submit", "", "", "", "");
USER_EVENT_INITIALIZE and USER_EVENT_CHECK
The different between these 2 events is, one will trigger INITIALIZE method of your generic service while another will trigger DO_OPERATION method.
Example, if you want to trigger form reset the form to initial stage by initialize the form value, you can add these code upon user click on button "RESET":
mousedown* using Formcalc
//Set ISR_EVENT for BAdI processing in backend
$record.CONTROL_PARAM.ISR_EVENT = "USER_EVENT_INITIALIZE"
click* using Javascript
//Trigger call to backend for BAdI user command processing
ContainerFoundation_JS.SendMessageToContainer(event.target, "submit", "", "", "", "");
If you want to trigger after user has selected any value from a drop down list:
exit* using Javascript
xfa.record.CONTROL_PARAM.ISR_EVENT.value = "USER_EVENT_CHECK";
ContainerFoundation_JS.SendMessageToContainer(event.target, "submit", "", "", "", "");
No comments:
Post a Comment