# Handling "Event" Parameter when running as Headless Client

**URL:** <https://forum.servoy.com/t/handling-event-parameter-when-running-as-headless-client/18838>\
**Category:** Classic Servoy\
**Created:** [May 3, 2016, 5:30am UTC](https://forum.servoy.com/t/handling-event-parameter-when-running-as-headless-client/18838 "2016-05-03T05:30:32Z")\
**Posts on this page:** 1\
**Showing post:** 3

<div class="post-metadata">

**Author:** ![sabbatarian7](https://avatars.discourse-cdn.com/v4/letter/s/94ad74/32.png) [@sabbatarian7](https://forum.servoy.com/u/sabbatarian7)\
**Post date:** [May 4, 2016, 4:41am UTC](https://forum.servoy.com/t/handling-event-parameter-when-running-as-headless-client/18838/3 "2016-05-04T04:41:21Z")

</div>

Marc,

I completely understand your solution, But I can’t extract out the process completely into top level scopes (globals) because it is too complex and dependent on multiple forms, So I guess I will have to carefully handle the places where the UI is affected.

I was thinking about using “isBatchProcess” check by having batch Process arguments as true. You already cleared almost all of it just can you verify that “isBatchProcess” will be right approach? Or is there anything better than that in servoy?

Example:  
if (isBatchProcess)  
{  
//save withour any UI changes  
}  
else  
{  
//UI changes then save  
}

---

_[View the full topic](https://forum.servoy.com/t/handling-event-parameter-when-running-as-headless-client/18838)._
