Pass a LIST data between Reusable Part using Application Control
Posted: Fri Jan 13, 2017 10:21 am
Hi there,
As you can see in above picture, I create 2 RP. 1 is Filter RP & 2 is to display the filtered result. When the user click the button(‘JANA’), it will call a method in Application Controller RP (code below).
It will return a few entries depending to the user selection during the filter. This is the result if user select NEGERI as ‘JOHOR’
It shows that my server routine is working well because we can see the result in the developer tool.
The problem is occur when I try to display the result in the Reusable Part no 2(in first picture). It should replace the LABEL accordingly and loop the RP depend on the result entries. I have made a signal event when the server routines completed and call the event in the RP no 2 to replace the LABEL, but it doesn’t work.
This is the code in the RP no 2. I only write a line of code just to test the outcome.
And this is the result that is used to have when we develop in VLF-One (the client expected the same in VL-Web). It is a bit easier to do something like this in VLF-One because we don’t need to worry much about the Application Control or to signalling the event.
I’m a bit confuse on how to pass the LIST data around from one RP to another RP. Any tips will helps a lot.
Thanks,
As you can see in above picture, I create 2 RP. 1 is Filter RP & 2 is to display the filtered result. When the user click the button(‘JANA’), it will call a method in Application Controller RP (code below).
Code: Select all
Mthroutine Name(SelectState)
Define_Map For(*input) Class(#prim_alph) Name(#State)
Define_Map For(*input) Class(#prim_alph) Name(#Branch)
Define_Map For(*input) Class(#PRIM_NMBR) Name(#Month)
Define_Map For(*input) Class(#PRIM_NMBR) Name(#Year)
Define_Com Class(#dwhTempDashFuDisb.FindFILTER2) Name(#getList)
#getList.ExecuteAsync( #State #Branch #Month #Year )
Evtroutine Handling(#getList.Completed)
Selectlist Named(#PenKew)
Signal Event(SelectStateSuccess)
Endselect
Endroutine
EndroutineIt shows that my server routine is working well because we can see the result in the developer tool.
The problem is occur when I try to display the result in the Reusable Part no 2(in first picture). It should replace the LABEL accordingly and loop the RP depend on the result entries. I have made a signal event when the server routines completed and call the event in the RP no 2 to replace the LABEL, but it doesn’t work.
This is the code in the RP no 2. I only write a line of code just to test the outcome.
Code: Select all
evtroutine handling(#Application.SelectStateSuccess)
#Label1.Caption := #STATE_NAME + " - " #BRANCH_NAME
EndroutineI’m a bit confuse on how to pass the LIST data around from one RP to another RP. Any tips will helps a lot.
Thanks,