cancel
Showing results for 
Search instead for 
Did you mean: 

How to get event for save as draft or authorizaion

Former Member
0 Kudos

Hi Experts ,

I have a scenario in which i want to run a particular block of code at the time of successful submission of Grpo so i have written the code like this

if (BusinessObjectInfo.BeforeAction == false)

{

switch (BusinessObjectInfo.EventType)

{

case BoEventTypes.et_FORM_DATA_ADD:

{

if (BusinessObjectInfo.ActionSuccess == true)

{

(if (BusinessObjectInfo.formType==143)

{

////////////My Code

})

}}}}

But my code is also running when i am saving the grpo as draft or sending it for authorization. SO is there any way to ensure thet the form is getting submitted not saved as draft or saved as auithorization

Thanks

Amit

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi

you should use ItemEvent instead of FormDataEvent

FormDataEvent is being called when data is going to be saved to database (before and after)

Save as Draft saves data to database as well, but FormDataEvent is not being called.

use ItemEvent. For instance, eventtype = ItemPressed, ItemUid = "1"

hope it'll help