× 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, while this is a little advanced, it's not so advanced that you shouldn't be able to get ti to work with a little help from your friends <grin>. And seriously, the stuff you're doing is the sort of business-level stuff that EGL needs to be able to do well in order to work in the enterprise application arena.

That being said, I know they've done a lot of work to get this done. I found a pretty complete example on IBM's site:

http://publib.boulder.ibm.com/infocenter/radhelp/v7r0m0/index.jsp?topic=/com.ibm.etools.jsf.doc/topics/taddajax.html

-or-

*http://tinyurl.com/24n27l

*See if this helps!

Joe


Thanks Joe.

I currently have the AJAX refresh triggered on a double click of a text
box (because that was an event that I could get working). I will work
with your samples and see if I can get it working with my table.

I have no doubts that this is some advance stuff. This is a pilot
project for our first iSeries GUI application, and I am trying to
appease both the green-screen diehards and the Windows zealots. I know
that I cannot please either but I am hoping for a solution that neither
group can reasonably argue against.

------------------------------

message: 5
date: Tue, 19 Feb 2008 16:02:05 -0600
from: Joe Pluta <joepluta@xxxxxxxxxxxxxxxxx>
subject: Re: [WDSCI-L] EGL table questions

Justin Taylor wrote:
I am loading my table as previously suggested and it works fine.

I have AJAX loading my panel but I cannot figure out how to trigger it
based on a table-row click. I contacted Jon Sayles and I awake his
response.

You're starting to delve into some REALLY advanced stuff here, but let me try to explain as best I can. There are two issues: getting a click to cause a refresh, and then passing a value to the refresh request.

The first is quite easy. Add a behavior to your column:

<hx:behavior event="onclick"
behaviorAction="get" targetAction="ajax1">
</hx:behavior>

That will cause the panel named ajax1 to be refreshed when you click on the parent.

Second, specify the value to be refreshed when you need it:

<hx:ajaxRefreshRequest id="ajaxRefreshRequest1" target="ajax1" params="$$AJAXROW$$form1:tableEx1:keycolumn">
</hx:ajaxRefreshRequest>

The magical $$AJAXROW$$ says to get the value from the row that was clicked. You need to tell it the name of the form, table and column to send. In this case, the name of the form is form1, the name of the table is tableEx1, the name of the column is keycolumn. Typically keycolumn would be the column that you added the hx:behavior to earlier.


Hope this gets you started!

Joe


As an Amazon Associate we earn from qualifying purchases.

This thread ...

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.