Window and browser not displaying correctly

Santa

New Member
I have a window with 2 browsers side by side.
When I compile the window, it puts both browsers on the left side of the window. So you really cant tell what is going on.

When I open the window, I get unable to located shared temp-table for table temp-ap in procedure browser\browser1..
I hit OK then the message appears for browser2...

In the window the temp table is defined as new shared temp table...
It refences in the brower the defined shared temp-table...

When I compile it does not give me any error messages.
 
I can not simulate your problem.. but maybe you can try putting the two browsers in different frames?
I don't really understand the temp-table problem.. can you explain any better? (maybe with some code)

regards,

Elise
 
The problem is the order in wich the object are realized in Design mode VS Run-Time mode.

In design Mode the browser is realized before the window that why you get the error message that the Shared Temp-Table is not located , the window did not have the time to create the new shared before the shared of the browser is invoked. In run-time the Window is created before the browser so the new shared is created before the shared of the browser so it will work when you call the window from another procedure but it won't work when you open it in the AppBuilder because the browser is created first.

A fix that i found for this problem to be able to use temp-table in multiple object with smart link is to create the new shared before calling the AppBuilder.

The icon for the Appbuilder has the -p _ab.p

you create a .p procedure file that you can call wathever you like. And add the following to it then replace the _ab.p with this procedure in your Appbuilder icon .

Code:
DEF NEW SHARED TEMP-TABLE xxx ....

RUN _ap.b

So when the AppBuilder open the window the shared variable will already be created .

Hope this helps
 
Back
Top