× The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.



Justin Taylor wrote:
Two EGL table questions:
1. I have an array that I am loading from an RPGLE data structure
defined with 99 elements. Is it possible to get my EGL table to only
load significant data structure rows?
2. How do I trigger an event when the user clicks a table row and
retrieve the row values?
1. I don't pass data structures arrays from EGL to RPG, I simply pass a single data structure (a record). The RPG program returns data to me one record at a time until no more needs to be returned. After each call I perform an appendElement to add the record to the array. So you can either filter the data in the RPG program and only return valid records, or you can use extra logic in your EGL to add only those records you deem significant.

2. It depends what you mean by "event". Do you want to go to another page (traditional JSP Model 2 style, which includes redisplaying the current page in its entirety) or do you simply want to refresh a portion of the current page (Ajax style)? Both are possible with EGL, although the latter requires a little more detail work (you have to define the individual areas that can be updated, then define events that trigger those updates).

The first one in particular is already available in the basic tutorial from the Jon Sayles web site. Me, I usually just create a hyperlink to the next page using the data in the row as a parameter.

Joe

As an Amazon Associate we earn from qualifying purchases.

This thread ...

Follow-Ups:
Replies:

Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].

Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.