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



Hi Joe,

I took up where I left off on your 'EDT Breaks Down Obstacles' tutorial after leaving it for a while. I now have all the pieces in place, but have been going around in circles on one error that I can't figure out. My database name and file name are different from your example, but otherwise it's almost verbatim.

When I define the RUI Handler, and add in the code to call the REST-RPC service, it differs from your example in that I can only get it to accept the call to the service if I precede the service name with 'server.' If I do this, I get a clean compile, but it errors out in the preview. Can you help me out of the deadlock please?

function myJockey_ahagcd_field_onChange(event Event in)
jockeyid string = myJockey_ahagcd_field.text;
call server.JockeyService.getJockey(jockeyid) returning to CB_getJockey
end

Here's the error
Uncaught exception occurred during handling of undefined.onChange event
[CRRUI2002E] myJockey_ahagcd_field_onChange
An error occurred inside JockeyInquiry: JockeyService is not defined
[CRRUI2094E] Here are the EGL function calls leading to this error:

DojoTextField.DojoTextBase.handleEvent() [native JavaScript]
DojoTextField.DojoValidationBase.handleEvent() [native JavaScript]
client/JockeyInquiry.egl() [native JavaScript]

Thanks in advance for any advice,

David.
________________________________________
From: egl-i-bounces@xxxxxxxxxxxx [egl-i-bounces@xxxxxxxxxxxx] On Behalf Of David Baugh [davidb@xxxxxxxxxxxxxx]
Sent: Thursday, March 22, 2012 11:59 AM
To: EGL on and around the IBM i
Subject: Re: [EGL-i] EDT article by Joe Pluta

On the page where you set up a new connection, once you've selected what type of connection to use, you're eventually asked for host, user id and pwd (amongst others).

When I set up the host here as the ip-address of my 'i', instead of one of the host names assigned to it , then I got the problem I described.

-David
-----Original Message-----
From: egl-i-bounces@xxxxxxxxxxxx [mailto:egl-i-bounces@xxxxxxxxxxxx] On Behalf Of Joe Pluta
Sent: Thursday, March 22, 2012 5:16 AM
To: EGL on and around the IBM i
Subject: Re: [EGL-i] EDT article by Joe Pluta

When you say the "connection name" where exactly are you specifying it?

Joe

OK I think I figured it out. That server error threw me. If I'm right, it seems that if the connection name is an ip-address, the periods are interpreted as delimiters for a directory structure, which EGL doesn't seem to like too much. I could be way off, but that's what I 'think' is happening. When I changed the name to a host name, it's peachy..
________________________________________
From: egl-i-bounces@xxxxxxxxxxxx [egl-i-bounces@xxxxxxxxxxxx] On
Behalf Of David Baugh [davidb@xxxxxxxxxxxxxx]
Sent: Wednesday, March 21, 2012 12:05 PM
To: EGL on and around the IBM i
Subject: Re: [EGL-i] EDT article by Joe Pluta

Mike and Joe,

I'm a newbie to EGL and Eclipse and also following Joe's tutorial (thanks Joe !!). I'm at the same page as Mike on fig 7.

I hooked into to a DB2 connection on my IBM-I. When I created the record, the list of files was built as expected and I was able to select what I need and get through that part unhindered. Then I tried adding a library, it created the code, but then I get a bunch of errors. The base error appear to be that I don't have a server.. Does this error indicate that I need to set it up as an http server on my IBM-i?


-David

-----Original Message-----
From: egl-i-bounces@xxxxxxxxxxxx [mailto:egl-i-bounces@xxxxxxxxxxxx]
On Behalf Of Smith, Mike
Sent: Tuesday, March 20, 2012 11:07 AM
To: 'egl-i@xxxxxxxxxxxx'
Subject: [EGL-i] EDT article by Joe Pluta

Ok, I'm working through the tutorial from
http://www.ibmsystemsmag.com/ibmi/developer/general/egl_developement_t
ooling

I have a couple of issues

On page 3 figure 7 I'm trying to create the library(could you give a
simple explanation of library,record, service) package server; import
common.*; // basic library library CustomerLib

// Use Declarations
//use usePartReference;

// Constant Declarations
const constantName string = "literalString";

// Variable Declarations
variableName string;

// Function Declarations
function getCustomer(custnumber decimal(7,0) in) returns(CUSMAS)
RGT SQLDataSource?{@resource {}};
CUSMAS CUSMAS{ CUSTNO = custnumber};
get CUSMAS from RGT;

return (CUSMAS);
end

end

on the 'get CUSMAS from RGT;' statement it tells me "No such method"


So I moved on, hoping I would get that cleared up and started working on the RUI Handler.
I can't tell from the images, how I add the variable CUSMAS and when I bring up the designer, I don't see a CUSMAS to drag on to the designer.

That's it for now.

Mike
NOTICE: This message, including any attachment, is intended as a confidential and privileged communication. If you have received this message in error, or are not the named recipient(s), please immediately notify the sender and delete this message.
--
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.
--
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 ...

Follow-Ups:

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.