[Openroad-users] Processed script
Antill, Jim
jantill at revenue.ie
Mon Jul 23 19:21:56 EST 2007
Hi,
In OpenROAD 4.0 the script attribute of the FrameSource only seems to contain
the code that's in the main script, not including script behind controls etc.
This could be different for later versions of OR.
For OR4.0 I've found you can get the complete script for an OpenROAD frame by
using make_glued_copy, as shown in the code at the end of the mail. The
make_glued_copy component is in the iidebug image. The scriptcomp produced
has an attribute called script which contains the entire source of the frame
as a StringObject. This doesn't include line numbers or breakpoints from what
I can see (the attributes of the scriptcomposite object seem to be hidden
from the debugger). It could well be that these things are available.
The frames used to display the processed script within the WorkBench can also
be called from another OpenROAD frame. If anyone wants more details let me
know. It's all undocumented so it's just my best guess.
Here's the code:
declare
li_errors = integer not null;
lr_scriptcomp = scriptcomposite;
lr_appsource = AppSource default null;
lr_compsource = CompSource;
lr_script = StringObject default NULL;
enddeclare
begin
/* Get the appsource. */
lr_appsource = get_appl(appname = 'dev_jim_aim',
appversion = -1,
lock_mode = 3);
/* Fetch the required component. */
lr_compsource = lr_appsource.FetchComponent
componentname='DatabaseConnectFrame');
/* Make the complete script. */
callproc make_glued_copy(comperr = byref(li_errors),
scr = lr_scriptcomp,
srcobj = lr_compsource);
/* Display in an entryfield referencing a StringObject. */
script_sef = lr_scriptcomp.script;
end;
Hope that's of some help.
Regards,
Jim
-----Original Message-----
From: openroad-users-bounces at peerlessit.com
[mailto:openroad-users-bounces at peerlessit.com]On Behalf Of Simon Lovell
Sent: 21 July 2007 22:44
To: openroad-users at peerlessit.com; Pete.Wilkinson at vivista.sungard.com
Subject: Re: [Openroad-users] Processed script
*************************************
This e-mail has been received by the Revenue Internet e-mail service. (IP)
*************************************
Are you sure that is the PROCESSED script though? I thought it was the raw
script. I don't think the processed script is stored anywhere, rather
generated on the fly. Notice that if you change code while it is running you
can see the new code in the debugger under certain circumstances. If I'm
correct you'd need to find an undocumented method.
-----Original Message-----
From: "Pete Wilkinson" [Pete.Wilkinson at vivista.sungard.com]
Date: 20/07/2007 06:25 PM
To: "International OpenROAD Users" <openroad-users at peerlessit.com>
Subject: Re: [Openroad-users] Processed script
Note: Original message sent as attachment
************************
This message has been delivered to the Internet by the Revenue Internet e-mail service (OP)
*************************
More information about the Openroad-users
mailing list