How to hide or view a smartbrowser in a window ?

symonbobo

New Member
Hello everybody,

I would like to know what is the command to hide and show a smartObject from a window container.

Thank you,

Simon.
 
There is no "command". You need to invoke the internal procedure hideObject or viewObject on the smart object.

Heavy Regards, RealHeavyDude.
 
Thank you for your reply.

I have tried to call this from my parent window: "RUN hideObject IN h_bxtyppm01" where h_bxtyppm01 is my smartbrowse but it doesn't works. I have the following message (in french): "La procédure xxx/bxtyppm01 .w n'a pas de point d'entrée pour hideObject".

I have tried an other thing: "RUN dispatch IN h_bxtyppm01 (INPUT 'view')." and "RUN dispatch IN h_bxtyppm01 (INPUT 'hide')." . It works BUT i have a new problem:

In my main window I have one smartbrowser, one smartviewer and one toolbar for navigation between records. When the smartbrowser is hidden, i can not navigate anymore between the records. When it is visible, I can navigate.

what can i do please?
Thanks a lot.
 

Attachments

Does anybody knows if it is possible to "MOVE-TO-TOP" a smartviewer?
It could be the solution to my problem.

Tks,
Simon
 
You should be more specific as to which version of ADM/Dynamics and Progress/OpenEdge you are running. The hideObject and viewObject procedures are APIs of the ADM2/Dynamics NOT ADM1. I was not expecting somebody still using the ADM1 ...

My ADM1 knowledge dates back from the mid-90s therefore I have not recommendation at hand right now. As this is ADM1 I think that's the way it is. The smart browser is the data source - if you hide it you're probably hosed. In that sense: Why would you like to get rid of your data source?

Others may be able to help you here ...

Heavy Regards, RealHeavyDude.
 
:D:D:D :D:D:D :D :D

You are right I am not up to date but i have no choice for the moment. the plant for which i work will soon have progress 10.0 but not yet. I work with the 9.1E.

Does anybody knows if it is possible to "MOVE-TO-TOP" a smartviewer?
It could be the solution to my problem.

Tks,
Simon​
 
For one: Please don't mistake the version of ADM/Dynamics with the version of Progress/OpenEdge. When upgrading to OpenEdge 10 your application (the framework you use) will not magically be upgrade from ADM1 to ADM2 or whatever. It's manual migration that you need to do.

What do you mean by "MOVE-TO-TOP": Move the smart viewer in front of all other objects or move to the top of window?

Heavy Regards, RealHeavyDude.
 
Thank you for your explanation.

I mean by "MOVE-TO-TOP" to move smart viewer in front of an other smart viewer but by the code (like "adjust-tab-order" but it does not work).

rgds
 
I have found the solution by writing the following code:


RUN dispatch IN h_vxtyppm02 (INPUT "hide").
RUN dispatch IN h_bxtyppm01 (INPUT "hide").
IF waffichebrowse THEN
RUN dispatch IN h_bxtyppm01 ("view":U).
ELSE
RUN dispatch IN h_vxtyppm02 ("view":U).


Thank you again RealHeavyDude
 
Hi,

Since you said you are using ADM1. Do you happen to have by any chance any document on ADM1? If you have, please be kind to share it!

Thanks,
Ujjwal
 
Back
Top