Skip to Content
0
Former Member
Oct 19, 2011 at 11:42 AM

How to get event for save as draft or authorizaion

41 Views

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