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,