Re: Saved Event is not providing the property values after object save.

Re: Saved Event is not providing the property values after object save.

Old forum URL: forums.lhotka.net/forums/t/11309.aspx


msrs_it posted on Sunday, April 15, 2012

shrikant44

. I observed that the override method DataPortal_OnDataPortalInvokeComplete is firing two times  Why this is firing two times.

 

cancer tissue

Because one time on Client side and the other on server side. Try to implement a condition like below to figure it out.

 

if (ApplicationContext.ExecutionLocation == ApplicationContext.ExecutionLocations.Server)

{

    // Some code here...

}

else if (ApplicationContext.ExecutionLocation == ApplicationContext.ExecutionLocations.Client)

{

    // Some code here...

}

Copyright (c) Marimer LLC