on 05-26-2006 5:05 PM
Hey All,
Can someone explain to me what the InnerEvent property is and when I should use it?
I handle validate and item click events on my forms should I check this innerevent property?
What is it normally used for?
Hi Curtis,
InnerEvent is true, when the event is fired from within another event. Meaning that if you change a field on a form and through that change by example a validate is fired, the validate event has the innerEvent set to true.
In normal cases you should also check that inneEvent = false and only thant process yourcode,
Regards
Ad
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You should searching in sdk Help for clearing...
You may something like that (example in pseudoCode):
InnerEvent function()
begin
if pval.beforeaction =true then
select case pval.itemuid
case 'txtA':
if pval.innerevent = false then
*'note: innerEvent= false means a directed action of end user*
update information in txtB (for example..)
end if
case 'txtB':
if pval.innerevent =true then
*'note: innerEvent=true means an action not directed caused by end user*
... do something
end if
endselect
else
endif
end
I hope help you
Kinds Regards
Hello Curtis,
InnerEvent means whether the event is fired by B1 or by user. For example, in B1, there is a mechanism that all the action will go through menu, say you click "Sales Order" in MainMenu form, but actually B1 will fire a menu click event which will open Sales Order form. So that menu click event is indicated as InnerEvent = true.
In your Add-on coding, sometimes inner event might cause problem (from pass experience), so you could filter inner event by this property.
Hope this helps,
Nick He
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Curtis,
In the 2005A SDK Help Center if you lookup "MenuEvent Object", there is an explanation and a sample piece of code.
HTH,
Eddy
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
98 | |
11 | |
11 | |
6 | |
6 | |
4 | |
4 | |
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.