× 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.



Thanks Will!!! Worked perfect...



-----Original Message-----
From: egl-i-bounces@xxxxxxxxxxxx [mailto:egl-i-bounces@xxxxxxxxxxxx] On
Behalf Of William A Smythe
Sent: Tuesday, January 20, 2009 7:57 PM
To: EGL on and around the IBM i
Cc: 'EGL on and around the IBM i'; egl-i-bounces@xxxxxxxxxxxx
Subject: Re: [EGL-i] using gridSelector.enableSelection in richui pgm and
getting weird message


See this blog entry on the Cafe:

http://www-949.ibm.com/software/rational/cafe/blogs/egl-rich-web/2008/12/30/
keeping-rui-handlers-simple-and-independent

You need to create an instance of GridSelector and supply the
enableSelection method from it:



gridSelector GridSelector { }; // ADD THIS

grid1 Grid {
behaviors = [
gridSelector.enableSelection
],
headerBehaviors = [

Will Smythe
Product Line Manager
Host Integration, HATS, Rational Business Developer, and EGL IBM Rational
Software, RTP, NC
919.254.8771
smythew@xxxxxxxxxx

Visit the EGL Cafe - http://www.ibm.com/rational/eglcafe




|------------>
| From: |
|------------>

---------------------------------------------------------------------------
-----------------------------------------------------------------------|
|"tim" <tim2006@xxxxxxxxxxx>
|

---------------------------------------------------------------------------
-----------------------------------------------------------------------|
|------------>
| To: |
|------------>

---------------------------------------------------------------------------
-----------------------------------------------------------------------|
|"'EGL on and around the IBM i'" <egl-i@xxxxxxxxxxxx>
|

---------------------------------------------------------------------------
-----------------------------------------------------------------------|
|------------>
| Date: |
|------------>

---------------------------------------------------------------------------
-----------------------------------------------------------------------|
|01/20/2009 07:46 PM
|

---------------------------------------------------------------------------
-----------------------------------------------------------------------|
|------------>
| Subject: |
|------------>

---------------------------------------------------------------------------
-----------------------------------------------------------------------|
|Re: [EGL-i] using gridSelector.enableSelection in richui pgm and
getting weird message |

---------------------------------------------------------------------------
-----------------------------------------------------------------------|
|------------>
| Sent by: |
|------------>

---------------------------------------------------------------------------
-----------------------------------------------------------------------|
|egl-i-bounces@xxxxxxxxxxxx
|

---------------------------------------------------------------------------
-----------------------------------------------------------------------|





Here is complete listing:
package ruipkg;

import com.ibm.egl.rui.widgets.Grid;
import com.ibm.egl.rui.widgets.GridColumn;
import com.ibm.egl.rui.widgets.GridSelector;


handler pgm2 type RUIHandler{initialUI = [ grid1 ], onConstructionFunction =
inzsr}

data any[] =[];
empty any[] =[];

stock stock;
stocks Stock[] =[
new Stock{Symbol = "Company1",
Quote = 100},
new Stock{Symbol = "Company2",
Quote = 200}

];

grid1 Grid {
behaviors = [
gridSelector.enableSelection
],
headerBehaviors = [

],
columns = [
new GridColumn{name = "Symbol",
width=100},
new GridColumn{name = "Quote"}
],
includeheading = yes,
data = (stocks as any[])
};

//-------------------------------------------
function inzsr()
//-------------------------------------------

end

end


record Stock
Symbol string;
Quote int;
end

-----Original Message-----
From: egl-i-bounces@xxxxxxxxxxxx [mailto:egl-i-bounces@xxxxxxxxxxxx] On
Behalf Of tim
Sent: Tuesday, January 20, 2009 7:40 PM
To: 'EGL on and around the IBM i'
Subject: Re: [EGL-i] using gridSelector.enableSelection in richui pgm and
getting weird message

yes

-----Original Message-----
From: egl-i-bounces@xxxxxxxxxxxx [mailto:egl-i-bounces@xxxxxxxxxxxx] On
Behalf Of William A Smythe
Sent: Tuesday, January 20, 2009 7:13 PM
To: EGL on and around the IBM i
Cc: 'EGL on and around the IBM i'; egl-i-bounces@xxxxxxxxxxxx
Subject: Re: [EGL-i] using gridSelector.enableSelection in richui pgm and
getting weird message


Did you try CTRL+SHIFT+O to add the appropriate import statements?

Will Smythe

Visit the EGL Cafe - http://www.ibm.com/rational/eglcafe




|------------>
| From: |
|------------>

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

-----------------------------------------------------------------------|
|"tim" <tim2006@xxxxxxxxxxx>
|

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

-----------------------------------------------------------------------|
|------------>
| To: |
|------------>

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

-----------------------------------------------------------------------|
|"'EGL on and around the IBM i'" <egl-i@xxxxxxxxxxxx>
|

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

-----------------------------------------------------------------------|
|------------>
| Date: |
|------------>

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

-----------------------------------------------------------------------|
|01/20/2009 07:01 PM
|

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

-----------------------------------------------------------------------|
|------------>
| Subject: |
|------------>

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

-----------------------------------------------------------------------|
|[EGL-i] using gridSelector.enableSelection in richui pgm and getting
weird message |

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

-----------------------------------------------------------------------|
|------------>
| Sent by: |
|------------>

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

-----------------------------------------------------------------------|
|egl-i-bounces@xxxxxxxxxxxx
|

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

-----------------------------------------------------------------------|





I am using a grid as defined below and get the following error:



IWN.VAL.6619.e gridSelector.enableSelection cannot be resolved. At line
52
in file \amsrui\EGLSource\ruipkg\pgm1.egl



grid1 Grid {

behaviors = [

gridSelector.enableSelection

],

headerBehaviors = [



],

columns = [

new GridColumn{name = "Symbol", width=100},

new GridColumn{name = "Quote"}

],

includeheading = yes,

data = (stocks as any[])

};




When I put the cursor on gridSelector and hit F3 for definition, it does
open up the gridselector.egl source in com.ibm.egl.rui.widgets.



Any suggestions?

--
This is the EGL on and around the IBM i (EGL-i) mailing list To post a
message email: EGL-i@xxxxxxxxxxxx To subscribe, unsubscribe, or change list
options,
visit: http://lists.midrange.com/mailman/listinfo/egl-i>
or email: EGL-i-request@xxxxxxxxxxxx
Before posting, please take a moment to review the archives at
http://archive.midrange.com/egl-i..

--
This is the EGL on and around the IBM i (EGL-i) mailing list To post a
message email: EGL-i@xxxxxxxxxxxx To subscribe, unsubscribe, or change list
options,
visit: http://lists.midrange.com/mailman/listinfo/egl-i
or email: EGL-i-request@xxxxxxxxxxxx
Before posting, please take a moment to review the archives at
http://archive.midrange.com/egl-i..

--
This is the EGL on and around the IBM i (EGL-i) mailing list To post a
message email: EGL-i@xxxxxxxxxxxx To subscribe, unsubscribe, or change list
options,
visit: http://lists.midrange.com/mailman/listinfo/egl-i
or email: EGL-i-request@xxxxxxxxxxxx
Before posting, please take a moment to review the archives at
http://archive.midrange.com/egl-i..


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.