|
|
|
|
|
|
|
|
Re: Screen Navigation Using EDT Eclipse [message #809973 is a reply to message #809947] |
Wed, 29 February 2012 14:15 |
Joe Pluta Messages: 27 Registered: July 2009 |
Junior Member |
|
|
yuvaraj g wrote on Wed, 29 February 2012 08:35Hi ,
We are still not clear with the parameter passing between the handlers. we tried with H1 and H2 source code which jinfahua referred.
Thanks
Okay, parameter passing is a different topic. So, you want one page to pass a value to another page. The first question is whether this value is persistent or transient. That is, do you want the value to last as you switch from one page to another. If that's what you want, then you need to use a persistent variable which you typically store in the page somewhere. I usually create a library called SessionLib with functions to get and store values.
If not, if you just want to pass the value and forget about it, then you can use either pass it to the second page when you create it (see @EGLProperty) or you could pass it in after the fact by sending an Infobus message.
[Updated on: Wed, 29 February 2012 14:17] Report message to a moderator
|
|
|
|
|
Re: Screen Navigation Using EDT Eclipse [message #812843 is a reply to message #810004] |
Sun, 04 March 2012 11:49 |
yuvaraj g Messages: 17 Registered: February 2012 |
Junior Member |
|
|
Thank you Joe. now we learnt how to pass parameters between widgets and handlers using Infobus/embedding handler/delegates.
the next challenge what we are facing is , how to pass the same parameters and load the widgets for the consecutive screens. Say for example we have around 6/7 screens. like one parent screen(which is login screen in our case) and multiple immediate child screens and in turn this child screens has many grandchildrens. I need to pass the parameter from parent screen to many child screens and from child screens needs to pass parameters to their grandchilds.
Our observations is, if we use InfoBus, it can able to pass parameters to one level.
for example, we have init screen handler which is a splash screen and three child screen widgets(page1,page2,page3). Infobus passes values from page1 to init or page2 to init or page3 to init. But what we are trying is, to pass parameters from page1 to page2 and from page2 to page3, since our requirement is like navigating(as well as we need to pass parameters)from page1 to page2 ,from page2 to page3 and from page3 to page4.... like that it goes on.
Can you please help us to proceed.
|
|
|
|
|
|
|
|
|
|
|
Re: Screen Navigation Using EDT Eclipse [message #1061391 is a reply to message #1061328] |
Fri, 31 May 2013 12:38 |
Richard Moulton Messages: 92 Registered: August 2011 Location: Devon, UK |
Member |
|
|
Gio,
OK, I did find some stuff (but not much) on the web but it was quite old and out of date but you may still be interested in the example:
https://www.ibm.com/developerworks/community/wikis/home?lang=en#!/wiki/EGL+Learning+Center/page/RUI+and+JSF+AS400+Logon+-+Authentication+Example
IBM i logon is something I've wanted to have a look at myself so I created the attached project which provides a sample RUI application that requests entry of a system name, user and password and then calls a service to validate the details. In addition to returning a boolean authenticated flag the service also returns an exception message id and message text to interrogate.
When you import the project you'll need to change the project properties, udpate the java build path reference for your local copy of jt400.jar accordingly.
I borrowed some of the code/ideas provided by Ortwin in this post ...
https://www.ibm.com/developerworks/community/forums/html/topic?id=0b5db71a-c930-4d6d-a86d-f7acd2634717&ps=25
There are also some interesting examples here, not about logon, which when I get some time I'll have a look at ...
http://code.metager.de/source/xref/eclipse/edt/org.eclipse.edt/ibmi/org.eclipse.edt.ibmi.examples/
I'm not saying the attached project is perfect but it's a good starting point for a standard login that could be shared. It's stuff like this that would really help developers new to EGL.
In terms of master file maintenance, etc then I suggest you have a look at the 'Access a database with EGL RUI' tutorial available on the EDT project page, however I believe it's not perfect, you may need to tweak it to work with the version 0.8.2 of EDT ...
http://wiki.eclipse.org/EDT:Tutorials
Richard
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.06848 seconds