on 10-19-2011 12:42 PM
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
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
103 | |
12 | |
11 | |
6 | |
5 | |
4 | |
3 | |
3 | |
3 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.