detect "interactive" session  Topic is solved

Discussions relating to plugin development, and the Jiwa API.

detect "interactive" session

Postby pricerc » Tue Nov 08, 2022 12:39 pm

(this is looking at a previously discussed problem from a different angle)

I have a plugin where, when run interactively, I'd like the user to be informed at startup time if there is something wrong with the plugin's configuration.

However, if I'm running in the scheduler or REST API, I don't want to do anything (except maybe set a flag that my plugin can use later), because it is not a fatal problem.

Is there a 'clever' way to tell if I'm running in interactive or 'batch' mode ?
/Ryan

ERP Consultant,
Advanced ERP Limited, NZ
https://aerp.co.nz
User avatar
pricerc
Senpai
Senpai
 
Posts: 504
Joined: Mon Aug 10, 2009 12:22 pm
Location: Auckland, NZ
Topics Solved: 20

Re: detect "interactive" session  Topic is solved

Postby Mike.Sheen » Tue Nov 08, 2022 1:39 pm

The MIDParentForm property of the Manager object will be null (nothing in vb) when not run from the Jiwa.exe - you can check that (that's what we do).
Mike Sheen
Chief Software Engineer
Jiwa Financials

If I do answer your question to your satisfaction, please mark it as the post solving the topic so others with the same issue can readily identify the solution
User avatar
Mike.Sheen
Overflow Error
Overflow Error
 
Posts: 2444
Joined: Tue Feb 12, 2008 11:12 am
Location: Perth, Republic of Western Australia
Topics Solved: 756

Re: detect "interactive" session

Postby pricerc » Tue Nov 08, 2022 2:23 pm

Mike.Sheen wrote:The MIDParentForm property of the Manager object will be null (nothing in vb) when not run from the Jiwa.exe - you can check that (that's what we do).


Thanks Mike.
/Ryan

ERP Consultant,
Advanced ERP Limited, NZ
https://aerp.co.nz
User avatar
pricerc
Senpai
Senpai
 
Posts: 504
Joined: Mon Aug 10, 2009 12:22 pm
Location: Auckland, NZ
Topics Solved: 20


Return to Technical and or Programming

Who is online

Users browsing this forum: No registered users and 27 guests

cron