SmartFrame in a SmartFolder...

storzi

Member
Hi,

in a Main-Program I have a SmartFolder.
In this SmartFolder there are 4 SmartFrames.
Now I want to add a fifth SmartFrame.
So I go in the "Instance Properties" of the SmartFolder and create a new tab.
Then I select "SmartObject" from the Object Palette and assign the filename of the new SmartFrame I have created.
Then I want to put the SmartObject on my new and empty tab.
Then I set the SmartLink (from Folder to the new Frame).
This all works.
But I cannot select the new Frame in the Folder to (for instance) reposition it.
Also in the programm-code of the window where the Folder is, the Handle to the SmartFrame isn`t valid.

The Frames which already was in the Folder can be selected for repositioning and have valid handles in the Main-Program.

Have anybody a idea?

I work on Win XP SP2 with Progress 9.1d.

Thanks.

Storzi
 
there needs to be a page link only between the folder and your window (the container).

and the window automatically establishes a container link with the frames and all the contained objects.

the page link tells the container that a new page has been selected.

and it's the window that manages the hiding and viewing of pages and the frames and all the contained objects on these pages.


to place the frame on a page in the appbuilder main window double click the current page status bar, type the page number and place your frame.

or use the page manager (1,2,3 icons) in the procedure settings and choose the design button to enter the current design page number.

the start page is the page (and folder tab) that is selected/visible when the procedure starts.

note that page 0 is the background page that always remains visible.


for references on adm paging have a look at "Creating paged layouts" and "Paging with SmartFolders" in the "Organizer Objects" chapter in the "AppBuilder" doc.

hope this helps.
 
Thanks for your hints.
I can put the SmartFrame in the SmartFolder.
But after that, I cannot select it or get a valid handle from it.
I show you how I do it:

1. I take a look at the Links of the Frames that already exists:
SmartLinks1.jpg


2. I create a new tab and select it in the Procedure settings. Thats about the size of it:
Folder1.jpg


3. From the Object Palette I select the SmartObject and was questioned for the SmartFrame - File:
SmartFrame1.jpg


All these Link-Question I cancel.

4. I create the SmartLink (last Entry in this pic):
SmartLinks2.jpg


Now it should (IMHO) work.
But when I try to select the SmartFrame I have insert (see Pic # 3), the AppBuilder selects the SmartFolder.
And when I righ-click the SmartFrame and select "Edit Master" I get the following Message:
EditMaster1.jpg


I don´t know what I do different, especially I also do it this way with the other SmartFrames.

Greets
Storzi
 
Hello Storzi,

in pic #4 you should only have one link, h_folder -> page -> this-procedure.


click on the instance properties icon (small square icon) of the frame that's in the left upper corner of the browse thing that is in the center of the folder.

a popup menu should show up, select edit master to open the smart object.

maybe you right-clicked the folder tab ?
 
click on the instance properties icon (small square icon) of the frame that's in the left upper corner of the browse thing that is in the center of the folder.
Thats my problem.
I cannot (left-)click the properties icon of the "new" SmartFrame.
If I select a page with a "old" SmartFrame your description works.
But not for the new SmartFrame.
:-(

Anyhow much thanks.

Greets
Storzi
 
why can you not click the frame ?

is it visible ? ( is it not the browser in the pic you posted )

what happens when you left or right-click on the frame ( not the folder or folder tab )?


just to be safe i would close the appbuilder session

and before restarting delete any temporary appbuilder files ( there might be *ab.i files ? )

the appbuilder sometimes starts acting weird.


btw did you remove all the page links except one ?
 
if you can replicate the problem post the files so i'll have something to try and show you what i do.

just a window, folder and 5 or 10 frame objects.

use the sports2000 database if you need to use data objects.
 
Why can you not click the frame ?
Thats just the point. :-)

is it visible ? ( is it not the browser in the pic you posted )
It is visible.
It is the Frame you can see in my pic.

what happens when you left or right-click on the frame ( not the folder or folder tab )?
When I left-click on the small square icon nothing happens.
When I right-click the SmartFrame I get the context-Menue (with Properties, Instance Properties, SmartInfo, SmartLinks... and so on; but all based on the folder! (see the pic with error-message when I try to select "Edit Master")).

just to be safe i would close the appbuilder session
Already done.

and before restarting delete any temporary appbuilder files ( there might be *ab.i files ? )
Already done.

btw did you remove all the page links except one ?
Yes.

if you can replicate the problem post the files so
I will try to reconstruct the problem.

Greets
Storzi
 
If you have a Smart Window, simply create a Smart Object (simple smart object NOT Smart Data Object). This smart object WILL have a frame to enable widgets/ etc ... to be encapsulated on. With Progress' Smart methodology the Smart folder will display the appropriate objects and frames for appropriate pages. When you require databse update you will need to modify into Smart Data Object thus supplying appropriate data src links.
 
If you have a Smart Window, simply create a Smart Object (simple smart object NOT Smart Data Object).
I have created a SmartObject.

I don`t can replicate my problem with new generated SmartWindow and SmartFrame. In this case it works.

I can only replicate the problem with my exisiting SmartWindow.

Another thing I have discovered is, that the existing SmartFolder ist from the SmartPack44.
:blush1:
 
OK.
My problem is cleared.

I have created a new SmartFrame and with this it works!
:biggrin:

I don`t know what`s the difference between the new and the old SmartFrame.

Thank`s a lot for your patience and your aid.

Greets Storzi
 
Back
Top