understanding events
Posted: Thu Mar 21, 2019 9:14 pm
Hello,
I have encountered the following problem:
We have a web application based on lansas paradigm of signaling
events for switching between reusables (panels).
In a reusable let's say A I have a list and whenever I double click a row we want
the application to switch to another panel (reusable) B and run a function there
than populates some fields an lists on screen.
So my code in A looks like
The 1st line sets the policy property and the second signals the event ShowINFO (#gApplicaton has also Scope(*APPLICATION))
Within the reusable B I have the following:
The problem is that even though the code within BeginSearch() runs normally
the results don't show on the screen.
But whenever the #POLNUMX is hardcoded e.g.
everything runs fine.
any ideas?
cheers,
Sotiris
I have encountered the following problem:
We have a web application based on lansas paradigm of signaling
events for switching between reusables (panels).
In a reusable let's say A I have a list and whenever I double click a row we want
the application to switch to another panel (reusable) B and run a function there
than populates some fields an lists on screen.
So my code in A looks like
Code: Select all
Evtroutine Handling(#BROWSE.ItemDoubleClick)
#B.policy := #POLNUM * poliy is an auto property in reusable B, also B has Scope(*APPLICATION) in A
#gApplication.Show_INFO * this hides this screen of A then enables and shouws reusable B and signals the event ShowInfo
EndroutineWithin the reusable B I have the following:
Code: Select all
Evtroutine Handling(#gApplication.ShowINFO)
If (#policy > 0)
#COM_OWNER.ResetState()
#POLNUMX := #policy * #POLNUMX is a visual field
#COM_OWNER.BeginSearch() * this returns some info on the screen
Endif
#policy := -1
Endroutinethe results don't show on the screen.
But whenever the #POLNUMX is hardcoded e.g.
Code: Select all
Evtroutine Handling(#gApplication.ShowINFO)
#policy := 1249469
If (#policy > 0)
#COM_OWNER.ResetState()
#POLNUMX := #policy * #POLNUMX is a visual field
#COM_OWNER.BeginSearch()
Endif
#policy := -1
Endroutineany ideas?
cheers,
Sotiris