Skip to main content

[archive] Help with calling independant windows...

  • March 5, 2010
  • 30 replies
  • 3 views

Dominique Sacre
Forum|alt.badge.img+2

[Migrated content. Thread originally posted on 04 March 2010]

Attached are two very simple test projects...

CALLPFB is a screen that has 3 buttons that call PFBROWSER passing it a web address to display in a the Acu-browser.

My question is how do I make the PFBROWSER screen totally independent of any other screen. When the user closes the CALLPFB screen I do not want the PFBROWSER window to be closed. If the user opens 15 PFBROWSER screens I want each to be separate and to stay until they choose to close them.

I am sure it is some property or setting that I am missing or the way that I am calling the PFBROWSER.

Thanks for any help that you guys can give.

30 replies

Dominique Sacre
Forum|alt.badge.img+2

[Migrated content. Thread originally posted on 04 March 2010]

Attached are two very simple test projects...

CALLPFB is a screen that has 3 buttons that call PFBROWSER passing it a web address to display in a the Acu-browser.

My question is how do I make the PFBROWSER screen totally independent of any other screen. When the user closes the CALLPFB screen I do not want the PFBROWSER window to be closed. If the user opens 15 PFBROWSER screens I want each to be separate and to stay until they choose to close them.

I am sure it is some property or setting that I am missing or the way that I am calling the PFBROWSER.

Thanks for any help that you guys can give.
Hi,

I guess you need to use the CHAIN command instead of CALL. That will start a new run unit and hence will not close if you close the main window.

regards,
Hans

Dominique Sacre
Forum|alt.badge.img+2

[Migrated content. Thread originally posted on 04 March 2010]

Attached are two very simple test projects...

CALLPFB is a screen that has 3 buttons that call PFBROWSER passing it a web address to display in a the Acu-browser.

My question is how do I make the PFBROWSER screen totally independent of any other screen. When the user closes the CALLPFB screen I do not want the PFBROWSER window to be closed. If the user opens 15 PFBROWSER screens I want each to be separate and to stay until they choose to close them.

I am sure it is some property or setting that I am missing or the way that I am calling the PFBROWSER.

Thanks for any help that you guys can give.
Ok, I tried to change the Calls to Chains but that did not work either.

Thanks for the idea.....anybody else???

Dominique Sacre
Forum|alt.badge.img+2

[Migrated content. Thread originally posted on 04 March 2010]

Attached are two very simple test projects...

CALLPFB is a screen that has 3 buttons that call PFBROWSER passing it a web address to display in a the Acu-browser.

My question is how do I make the PFBROWSER screen totally independent of any other screen. When the user closes the CALLPFB screen I do not want the PFBROWSER window to be closed. If the user opens 15 PFBROWSER screens I want each to be separate and to stay until they choose to close them.

I am sure it is some property or setting that I am missing or the way that I am calling the PFBROWSER.

Thanks for any help that you guys can give.
Ok, I tried to change the Calls to Chains but that did not work either.

Thanks for the idea.....anybody else???

Dominique Sacre
Forum|alt.badge.img+2

[Migrated content. Thread originally posted on 04 March 2010]

Attached are two very simple test projects...

CALLPFB is a screen that has 3 buttons that call PFBROWSER passing it a web address to display in a the Acu-browser.

My question is how do I make the PFBROWSER screen totally independent of any other screen. When the user closes the CALLPFB screen I do not want the PFBROWSER window to be closed. If the user opens 15 PFBROWSER screens I want each to be separate and to stay until they choose to close them.

I am sure it is some property or setting that I am missing or the way that I am calling the PFBROWSER.

Thanks for any help that you guys can give.
Ok, I tried to change the Calls to Chains but that did not work either.

Thanks for the idea.....anybody else???

Dominique Sacre
Forum|alt.badge.img+2

[Migrated content. Thread originally posted on 04 March 2010]

Attached are two very simple test projects...

CALLPFB is a screen that has 3 buttons that call PFBROWSER passing it a web address to display in a the Acu-browser.

My question is how do I make the PFBROWSER screen totally independent of any other screen. When the user closes the CALLPFB screen I do not want the PFBROWSER window to be closed. If the user opens 15 PFBROWSER screens I want each to be separate and to stay until they choose to close them.

I am sure it is some property or setting that I am missing or the way that I am calling the PFBROWSER.

Thanks for any help that you guys can give.
In that case I suppose you have to go for using CALL "SYSTEM" or "C$SYSTEM" or "C$RUN" to start a completety new instance of the runtime as well.

regards,
Hans

Dominique Sacre
Forum|alt.badge.img+2

[Migrated content. Thread originally posted on 04 March 2010]

Attached are two very simple test projects...

CALLPFB is a screen that has 3 buttons that call PFBROWSER passing it a web address to display in a the Acu-browser.

My question is how do I make the PFBROWSER screen totally independent of any other screen. When the user closes the CALLPFB screen I do not want the PFBROWSER window to be closed. If the user opens 15 PFBROWSER screens I want each to be separate and to stay until they choose to close them.

I am sure it is some property or setting that I am missing or the way that I am calling the PFBROWSER.

Thanks for any help that you guys can give.
Can you be a little more specific in what you are offering as a solution? We are in a thin-client environment running on a Unix back end.

Thanks

Dominique Sacre
Forum|alt.badge.img+2

[Migrated content. Thread originally posted on 04 March 2010]

Attached are two very simple test projects...

CALLPFB is a screen that has 3 buttons that call PFBROWSER passing it a web address to display in a the Acu-browser.

My question is how do I make the PFBROWSER screen totally independent of any other screen. When the user closes the CALLPFB screen I do not want the PFBROWSER window to be closed. If the user opens 15 PFBROWSER screens I want each to be separate and to stay until they choose to close them.

I am sure it is some property or setting that I am missing or the way that I am calling the PFBROWSER.

Thanks for any help that you guys can give.
Try like This.... It will work!

CMD-LINE is "Program u want to run"

COMPUTE CMD-FLAGS = CSYS-SHELL
CSYS-HIDDEN
CSYS-DESKTOP
CSYS-ASYNC.
CALL "C$SYSTEM" USING CMD-LINE
CMD-FLAGS.

-- Mano

Dominique Sacre
Forum|alt.badge.img+2

[Migrated content. Thread originally posted on 04 March 2010]

Attached are two very simple test projects...

CALLPFB is a screen that has 3 buttons that call PFBROWSER passing it a web address to display in a the Acu-browser.

My question is how do I make the PFBROWSER screen totally independent of any other screen. When the user closes the CALLPFB screen I do not want the PFBROWSER window to be closed. If the user opens 15 PFBROWSER screens I want each to be separate and to stay until they choose to close them.

I am sure it is some property or setting that I am missing or the way that I am calling the PFBROWSER.

Thanks for any help that you guys can give.
Try like This.... It will work!

CMD-LINE is "Program u want to run"

COMPUTE CMD-FLAGS = CSYS-SHELL
CSYS-HIDDEN
CSYS-DESKTOP
CSYS-ASYNC.
CALL "C$SYSTEM" USING CMD-LINE
CMD-FLAGS.

-- Mano

Dominique Sacre
Forum|alt.badge.img+2

[Migrated content. Thread originally posted on 04 March 2010]

Attached are two very simple test projects...

CALLPFB is a screen that has 3 buttons that call PFBROWSER passing it a web address to display in a the Acu-browser.

My question is how do I make the PFBROWSER screen totally independent of any other screen. When the user closes the CALLPFB screen I do not want the PFBROWSER window to be closed. If the user opens 15 PFBROWSER screens I want each to be separate and to stay until they choose to close them.

I am sure it is some property or setting that I am missing or the way that I am calling the PFBROWSER.

Thanks for any help that you guys can give.
Try like This.... It will work!

CMD-LINE is "Program u want to run"

COMPUTE CMD-FLAGS = CSYS-SHELL
CSYS-HIDDEN
CSYS-DESKTOP
CSYS-ASYNC.
CALL "C$SYSTEM" USING CMD-LINE
CMD-FLAGS.

-- Mano

Dominique Sacre
Forum|alt.badge.img+2

[Migrated content. Thread originally posted on 04 March 2010]

Attached are two very simple test projects...

CALLPFB is a screen that has 3 buttons that call PFBROWSER passing it a web address to display in a the Acu-browser.

My question is how do I make the PFBROWSER screen totally independent of any other screen. When the user closes the CALLPFB screen I do not want the PFBROWSER window to be closed. If the user opens 15 PFBROWSER screens I want each to be separate and to stay until they choose to close them.

I am sure it is some property or setting that I am missing or the way that I am calling the PFBROWSER.

Thanks for any help that you guys can give.
Mano thanks for the code....can you explain what it will do for me?

My guess is that it is loading all the setting into a string to use when you call the program. But to use a compute statement you need a numeric value....so is CMD-FLAGS numeric?

Thanks

Dominique Sacre
Forum|alt.badge.img+2

[Migrated content. Thread originally posted on 04 March 2010]

Attached are two very simple test projects...

CALLPFB is a screen that has 3 buttons that call PFBROWSER passing it a web address to display in a the Acu-browser.

My question is how do I make the PFBROWSER screen totally independent of any other screen. When the user closes the CALLPFB screen I do not want the PFBROWSER window to be closed. If the user opens 15 PFBROWSER screens I want each to be separate and to stay until they choose to close them.

I am sure it is some property or setting that I am missing or the way that I am calling the PFBROWSER.

Thanks for any help that you guys can give.
Yes. CMD-FLAGS is a numeric value.

acucobol.def

1>  1928        * Flags for "C$SYSTEM"
1>  1929
1>  1930         78  CSYS-ASYNC                          VALUE 1.
1>  1931         78  CSYS-NO-IO                          VALUE 2.
1>  1932         78  CSYS-MAXIMIZED                      VALUE 4.
1>  1933         78  CSYS-MINIMIZED                      VALUE 8.
1>  1934         78  CSYS-COMPATIBILITY                  VALUE 16.
1>  1935         78  CSYS-HIDDEN                         VALUE 32.
1>  1936         78  CSYS-SHELL                          VALUE 64.
1>  1937         78  CSYS-DESKTOP                        VALUE 128.


You need to set above flags while calling the window. The combination i have mentioned will be required to run windows executables/open a file in its corresponing program (Opening a word document).

--Mano

Dominique Sacre
Forum|alt.badge.img+2

[Migrated content. Thread originally posted on 04 March 2010]

Attached are two very simple test projects...

CALLPFB is a screen that has 3 buttons that call PFBROWSER passing it a web address to display in a the Acu-browser.

My question is how do I make the PFBROWSER screen totally independent of any other screen. When the user closes the CALLPFB screen I do not want the PFBROWSER window to be closed. If the user opens 15 PFBROWSER screens I want each to be separate and to stay until they choose to close them.

I am sure it is some property or setting that I am missing or the way that I am calling the PFBROWSER.

Thanks for any help that you guys can give.
Mano thanks for the details I see what you are doing with the CSYS flags. I am just not sure how this will do what we are trying to do. My main issue is the setup in the called screen to make it work as a truely independant screen.

If you could explain how your solution would do this I would appreciate it.

And sorry for being hard headed on this....I am sure you are correct I just don't see it yet.

Dominique Sacre
Forum|alt.badge.img+2

[Migrated content. Thread originally posted on 04 March 2010]

Attached are two very simple test projects...

CALLPFB is a screen that has 3 buttons that call PFBROWSER passing it a web address to display in a the Acu-browser.

My question is how do I make the PFBROWSER screen totally independent of any other screen. When the user closes the CALLPFB screen I do not want the PFBROWSER window to be closed. If the user opens 15 PFBROWSER screens I want each to be separate and to stay until they choose to close them.

I am sure it is some property or setting that I am missing or the way that I am calling the PFBROWSER.

Thanks for any help that you guys can give.
Mano thanks for the details I see what you are doing with the CSYS flags. I am just not sure how this will do what we are trying to do. My main issue is the setup in the called screen to make it work as a truely independant screen.

If you could explain how your solution would do this I would appreciate it.

And sorry for being hard headed on this....I am sure you are correct I just don't see it yet.

Dominique Sacre
Forum|alt.badge.img+2

[Migrated content. Thread originally posted on 04 March 2010]

Attached are two very simple test projects...

CALLPFB is a screen that has 3 buttons that call PFBROWSER passing it a web address to display in a the Acu-browser.

My question is how do I make the PFBROWSER screen totally independent of any other screen. When the user closes the CALLPFB screen I do not want the PFBROWSER window to be closed. If the user opens 15 PFBROWSER screens I want each to be separate and to stay until they choose to close them.

I am sure it is some property or setting that I am missing or the way that I am calling the PFBROWSER.

Thanks for any help that you guys can give.
Mano thanks for the details I see what you are doing with the CSYS flags. I am just not sure how this will do what we are trying to do. My main issue is the setup in the called screen to make it work as a truely independant screen.

If you could explain how your solution would do this I would appreciate it.

And sorry for being hard headed on this....I am sure you are correct I just don't see it yet.

Dominique Sacre
Forum|alt.badge.img+2

[Migrated content. Thread originally posted on 04 March 2010]

Attached are two very simple test projects...

CALLPFB is a screen that has 3 buttons that call PFBROWSER passing it a web address to display in a the Acu-browser.

My question is how do I make the PFBROWSER screen totally independent of any other screen. When the user closes the CALLPFB screen I do not want the PFBROWSER window to be closed. If the user opens 15 PFBROWSER screens I want each to be separate and to stay until they choose to close them.

I am sure it is some property or setting that I am missing or the way that I am calling the PFBROWSER.

Thanks for any help that you guys can give.
The above will start a separate process which will never depends on your program. Because this is not like calling a program from the parent program. Simply this is like starting a new process by using System Calls.

The new process is started by OS calls not by your program. And the program which starts this process is not actually its parent. So It will work as expected.

Dominique Sacre
Forum|alt.badge.img+2

[Migrated content. Thread originally posted on 04 March 2010]

Attached are two very simple test projects...

CALLPFB is a screen that has 3 buttons that call PFBROWSER passing it a web address to display in a the Acu-browser.

My question is how do I make the PFBROWSER screen totally independent of any other screen. When the user closes the CALLPFB screen I do not want the PFBROWSER window to be closed. If the user opens 15 PFBROWSER screens I want each to be separate and to stay until they choose to close them.

I am sure it is some property or setting that I am missing or the way that I am calling the PFBROWSER.

Thanks for any help that you guys can give.
Mano....one final question.....I hope!

What you have sent is awesome and is working correctly (thank you!). The only question I have is how can I send a parameter with the program being called. The program that is being called has 1 paramter (linkage item) of the web address from the calling program that I need to pass to it.

Thanks again for all the help on this!!

Dominique Sacre
Forum|alt.badge.img+2

[Migrated content. Thread originally posted on 04 March 2010]

Attached are two very simple test projects...

CALLPFB is a screen that has 3 buttons that call PFBROWSER passing it a web address to display in a the Acu-browser.

My question is how do I make the PFBROWSER screen totally independent of any other screen. When the user closes the CALLPFB screen I do not want the PFBROWSER window to be closed. If the user opens 15 PFBROWSER screens I want each to be separate and to stay until they choose to close them.

I am sure it is some property or setting that I am missing or the way that I am calling the PFBROWSER.

Thanks for any help that you guys can give.
You can just pass it in CMD-LINE. Try the following!!



MOVE "explorer.exe 'sample file.txt'" TO CMD-LINE.

CALL "C$SYSTEM" USING CMD-LINE, CMD-FLAGS.



--Mano

Dominique Sacre
Forum|alt.badge.img+2

[Migrated content. Thread originally posted on 04 March 2010]

Attached are two very simple test projects...

CALLPFB is a screen that has 3 buttons that call PFBROWSER passing it a web address to display in a the Acu-browser.

My question is how do I make the PFBROWSER screen totally independent of any other screen. When the user closes the CALLPFB screen I do not want the PFBROWSER window to be closed. If the user opens 15 PFBROWSER screens I want each to be separate and to stay until they choose to close them.

I am sure it is some property or setting that I am missing or the way that I am calling the PFBROWSER.

Thanks for any help that you guys can give.
You can just pass it in CMD-LINE. Try the following!!



MOVE "explorer.exe 'sample file.txt'" TO CMD-LINE.

CALL "C$SYSTEM" USING CMD-LINE, CMD-FLAGS.



--Mano

Dominique Sacre
Forum|alt.badge.img+2

[Migrated content. Thread originally posted on 04 March 2010]

Attached are two very simple test projects...

CALLPFB is a screen that has 3 buttons that call PFBROWSER passing it a web address to display in a the Acu-browser.

My question is how do I make the PFBROWSER screen totally independent of any other screen. When the user closes the CALLPFB screen I do not want the PFBROWSER window to be closed. If the user opens 15 PFBROWSER screens I want each to be separate and to stay until they choose to close them.

I am sure it is some property or setting that I am missing or the way that I am calling the PFBROWSER.

Thanks for any help that you guys can give.
You can just pass it in CMD-LINE. Try the following!!



MOVE "explorer.exe 'sample file.txt'" TO CMD-LINE.

CALL "C$SYSTEM" USING CMD-LINE, CMD-FLAGS.



--Mano

Dominique Sacre
Forum|alt.badge.img+2

[Migrated content. Thread originally posted on 04 March 2010]

Attached are two very simple test projects...

CALLPFB is a screen that has 3 buttons that call PFBROWSER passing it a web address to display in a the Acu-browser.

My question is how do I make the PFBROWSER screen totally independent of any other screen. When the user closes the CALLPFB screen I do not want the PFBROWSER window to be closed. If the user opens 15 PFBROWSER screens I want each to be separate and to stay until they choose to close them.

I am sure it is some property or setting that I am missing or the way that I am calling the PFBROWSER.

Thanks for any help that you guys can give.
I followed what you sent in the last message and perform this statement in the called program:

ACCEPT PASSSED-ADDRESS FROM COMMAND-LINE

and never get a value in the called program.

I have attached the two sample projects that I am testing with.

Thanks

Dominique Sacre
Forum|alt.badge.img+2

[Migrated content. Thread originally posted on 04 March 2010]

Attached are two very simple test projects...

CALLPFB is a screen that has 3 buttons that call PFBROWSER passing it a web address to display in a the Acu-browser.

My question is how do I make the PFBROWSER screen totally independent of any other screen. When the user closes the CALLPFB screen I do not want the PFBROWSER window to be closed. If the user opens 15 PFBROWSER screens I want each to be separate and to stay until they choose to close them.

I am sure it is some property or setting that I am missing or the way that I am calling the PFBROWSER.

Thanks for any help that you guys can give.
I am not sure. You may try the following ideas...

MOVE "@[DISPLAY]:C:\\PFBROWSER\\OBJECT\\PFBROWSER.acu 'WWW.ESPN.COM'"
   TO CMD-LINE.
CALL "C$SYSTEM" USING CMD-LINE, CMD-FLAGS.

You can even place your object to a server which can be in your intranet

MOVE "\\\\{HOSTNAME or IP}\\PFBROWSER\\OBJECT\\PFBROWSER.acu 'WWW.ESPN.COM'"
   TO CMD-LINE.
CALL "C$SYSTEM" USING CMD-LINE, CMD-FLAGS.

I usually use above one to run executables.

-- Mano

Dominique Sacre
Forum|alt.badge.img+2

[Migrated content. Thread originally posted on 04 March 2010]

Attached are two very simple test projects...

CALLPFB is a screen that has 3 buttons that call PFBROWSER passing it a web address to display in a the Acu-browser.

My question is how do I make the PFBROWSER screen totally independent of any other screen. When the user closes the CALLPFB screen I do not want the PFBROWSER window to be closed. If the user opens 15 PFBROWSER screens I want each to be separate and to stay until they choose to close them.

I am sure it is some property or setting that I am missing or the way that I am calling the PFBROWSER.

Thanks for any help that you guys can give.
Thanks again for the suggestion....

Tried it and no go.....

Guess this might become the unsolveable issue???

Dominique Sacre
Forum|alt.badge.img+2

[Migrated content. Thread originally posted on 04 March 2010]

Attached are two very simple test projects...

CALLPFB is a screen that has 3 buttons that call PFBROWSER passing it a web address to display in a the Acu-browser.

My question is how do I make the PFBROWSER screen totally independent of any other screen. When the user closes the CALLPFB screen I do not want the PFBROWSER window to be closed. If the user opens 15 PFBROWSER screens I want each to be separate and to stay until they choose to close them.

I am sure it is some property or setting that I am missing or the way that I am calling the PFBROWSER.

Thanks for any help that you guys can give.
Thanks again for the suggestion....

Tried it and no go.....

Guess this might become the unsolveable issue???

Dominique Sacre
Forum|alt.badge.img+2

[Migrated content. Thread originally posted on 04 March 2010]

Attached are two very simple test projects...

CALLPFB is a screen that has 3 buttons that call PFBROWSER passing it a web address to display in a the Acu-browser.

My question is how do I make the PFBROWSER screen totally independent of any other screen. When the user closes the CALLPFB screen I do not want the PFBROWSER window to be closed. If the user opens 15 PFBROWSER screens I want each to be separate and to stay until they choose to close them.

I am sure it is some property or setting that I am missing or the way that I am calling the PFBROWSER.

Thanks for any help that you guys can give.
Thanks again for the suggestion....

Tried it and no go.....

Guess this might become the unsolveable issue???

Dominique Sacre
Forum|alt.badge.img+2

[Migrated content. Thread originally posted on 04 March 2010]

Attached are two very simple test projects...

CALLPFB is a screen that has 3 buttons that call PFBROWSER passing it a web address to display in a the Acu-browser.

My question is how do I make the PFBROWSER screen totally independent of any other screen. When the user closes the CALLPFB screen I do not want the PFBROWSER window to be closed. If the user opens 15 PFBROWSER screens I want each to be separate and to stay until they choose to close them.

I am sure it is some property or setting that I am missing or the way that I am calling the PFBROWSER.

Thanks for any help that you guys can give.
Instead of ACCEPT FROM COMMAND-LINE try to take it from linkage.


01 LK-URL PIC X(100).
PROCEDURE DIVISION USING LK-URL.


If nothing is working you may create a batch file and pass the arguements. From that batch file call the object.

call.bat

C:\\PFBROWSER\\OBJECT\\PFBROWSER.acu 'WWW.ESPN.COM'


--Mano