how can I Open a .w file directly in Appbuilder(with some 4G

Posted by Admin on 13-Nov-2006 05:30

Hello

Does somebody know how can I Open a .w file directly in Appbuilder giving it some command from Procedure Editor (for example)?

I've tried with

run _ab.r , but _ab does not take any parameters

I've tried with a dos command but.... didn't succeed

Please , if somebody knows,

I don't have any other ideas

All Replies

Posted by prabathsrp on 13-Nov-2006 05:57

u can just use below command as i seen,

RUN C:\mainartk.w. /* in procedure editor */

RUN C:\mainartk.r. /* in procedure editor */

above two may be works.

RUN C:/sysexprt.p (). /* if it has parameters */

Posted by Admin on 13-Nov-2006 06:17

Thank you for give me a hand on this.

I'm not sure what mainartk.w is

and i've tried to put the code in a procedure editor but it says that it can't find mainartk.w

I've search it and it doesn't come with progress10B I don't have it on the disk

Posted by Admin on 13-Nov-2006 06:36

if you meant

run c:\mainartk.w where "mainartk.w" is the .w file that I want to open in appbuilder, it's not what i want

I want appbuilder just to open the file, not to run it

Posted by Admin on 13-Nov-2006 10:07

Formerly, you needed to call adeuib/_open-w.p.

something along these lines:

RUN adeuib/_open-w.p('test.w','',"OPEN").

Unfortunately, I just had a quick go, and got a lot of errors, possibly I'm working off an incorrect propath, or the info is outdated, but maybe you can figure it out from there until someone offers a definitive answer.

From an old KB entry (19539), which I can't find on line:

The following routines can be used to programmatically open AppBuilder

generated windows (.W files) or procedures in either the AppBuilder or

the Procedure Window.

To open a file in the AppBuilder, run the following:

RUN adeuib/_open-w.p(,"").

Posted by Admin on 13-Nov-2006 15:32

Re: I've tried with a dos command but.... didn't succeed

Try:

%DLC%\bin\prowin32.exe -p _ab.r -param "d:\xxx\xxx\xxx.w"

to open d:\xxx\xxx\xxx.w in AB

or

%DLC%\bin\prowin32.exe -p _edit.r -param "d:\xxx\xxx\xxx.p"

to open d:\xxx\xxx\xxx.p in procedure editor

Regards,

Marian

Posted by Admin on 14-Nov-2006 09:28

RUN adeuib/_open-w.p('test.w','',"OPEN").

i've tried with this, but no luck with it.

if i run it from procedure editor I get the following message:

adeuib/_open-w.p Shared variable _BrokerUrl has not yet been created. (392)

which is a progress bug i think ( I found it in progress 10B release notes through the bugs)

if I run it from a procedure editor opened from appbuilder a get a lot of other error messages (Invalid widget-handle ,Attempt to dereference a stale widget handle. (3137) .... etc)

I manage to open a .w directly in appbuilder with

run adeuib/_uibmain.p ('test.w').

but it only works if the appbuilder is not already running

and i needded to be able to open more than one .w file and even if appbuilder is already running

thank you , and if you have any other ideas regarding my problem please let me know

Posted by Admin on 14-Nov-2006 09:35

I've already tried with this and is not working

It says it can't find _ab.r and if I try with

search("_ab.r") even though it finds it the command

%DLC%\bin\prowin32.exe -p _ab.r -param "d:\xxx\xxx\xxx.w"

doesn't do anything

Thank you,

Victoria

Posted by Admin on 14-Nov-2006 17:07

Hi Victoria,

If it says it can't find _ab.r then you have a problem with your default ini file / registry entries.

Try to use:

%DLC%\bin\prowin32.exe -ininame d:\xxx\xxx\xxx.ini -p _ab.r -param "d:\xxx\xxx\xxx.w"

d:\xxx\xxx\xxx.ini should be your application ini file with correct PROPATH.

The PROPATH should contain %DLC%\gui ...

Regards,

Marian

Posted by akjump on 05-Dec-2006 10:34

Hi Victoria,

I just double-click on the file and it opens in AppBuilder all by itself!!

Are you running XP or a different OS?

If you are running XP:

1. Open Explorer

2. Tools...Folder Options...

3. Click on the "File Types" tab

4. Scroll down to extension of "W" (hopefully it is there)

5. Click on the Advanced button.

6. The default operation will be in bold - if not "Open in AppBuilder", then highlight and click on the "Default" button.

This should do the trick!

Andy

Posted by kevin_saunders on 07-Dec-2006 09:28

Andy,

Did you miss the 'with some 4GL code' part of the question?

Kevin

Posted by akjump on 13-Dec-2006 05:31

Kevin,

Ok, don;t rub it in!

How about:

OS-COMMAND SILENT test.w.

(replacing test.w with the code you require opening).

This should work (if not, do as my previous post first)!!

Andy

Posted by prabathsrp on 28-Dec-2006 06:10

I think Andy is correct. but database connections how to apply...however its perfect.

Posted by sridevi.stalin on 05-Feb-2008 03:53

Hello Friends,

for our application, we've used one .pf file(parameter file).

in note pad we've the following codes,

if the db is in relative path, or (if db is inabsolute path then give full path ex: c:\.....)

-db db/sys/sys.db -1

-p _ab.p

-p wlogin.w

the above 3 lines, just save as "sysLogin.pf" (extent .pf is important).

then it may have the one sysLogin.pf, when double click on that file, it will open the wLogin.w file.

This thread is closed