EGL Development User Group

EGL Development User Group

EGL Development User Group

The EGL Development User Group is dedicated to sharing news, knowledge, and insights regarding the EGL language and Business Developer product. Consisting of IBMers, HCL, and users, this community collaborates to advance the EGL ecosystem.

 View Only
  • 1.  connect two Rui handlers

    Posted Mon March 23, 2015 05:04 AM

    Hello,

    I created a datagrid with some records from a data array and I want to use it in another handler where I have to change the previous data array and fill the new datagrid. How is that possible? I read about infobus but I didn't manage to do it.

    Thankss

    michaeldefox


  • 2.  Re: connect two Rui handlers

    Posted Mon March 23, 2015 03:55 PM

    Hi Michael,

    You can use Infobus when two ruihandlers are displayed on screen at the same time. Is that the case in your situation?

    When you have a ruihandler that replaces another ruihandler you can pass the data by putting it in a Library part and reading it from there in the second handler.

    Ortwin

    Ortwin


  • 3.  Re: connect two Rui handlers

    Posted Tue March 24, 2015 04:59 PM

    I made some changes to connect two handlers and I want to send the array of first datagrid  to the second handler so that the handlers seem the almost the same.

    Here's my code of the two handlers.When I click on button "send" I want to send all data in the second handler and see the same datagrid.

    Could you see what is wrong?

    Thanks

     

    michaeldefox


  • 4.  Re: connect two Rui handlers

    Posted Wed March 25, 2015 05:19 PM

    Michael,

    Attached are the fixed versions of your handlers.

    However I would definitly not use infobus to pass the data. infobus is a great mechanism, but it should be used for what it is good for. Infobus is an asynchronous messaging mechanism that sends out a message and all ruihandlers that are active can listen for that message. So it's used when two or more ruihandlers are displayed on screen at the same time. When ruihandlers, like in your example, are replacing eachother and want to pass data I'd recommend passing it using a Library part. An example of this is displayed in the next post.

    Ortwin

    Ortwin


  • 5.  Re: connect two Rui handlers

    Posted Wed March 25, 2015 05:20 PM

    Example of passing data using a Library part.

    Ortwin


  • 6.  Re: connect two Rui handlers

    Posted Wed March 25, 2015 06:18 PM

    Thanks a lot!

    michaeldefox