Duplicating panels in a tab folder

Hi Forte users -

we are attempting to use the same panel multiple times within a tab folder.

We're thinking that we need to set up the panels to inherit from a window

class

containing all the fields which need to be on each tab, but aren't sure if

this

is the route to go.

Does anyone know how to accomplish this?

We appreciate any insight!

Thanks.

Erin Tomczyk

HealthPartners

[458 byte] By [] at [2007-11-25 5:02:13]
# 1

Erin,

I just fininshed a window that I think does what you want. I set up the

initial panel in the window workshop, then programmatically cloned that

panel

after altering its attributes. After cloning, I added the clone to the Tab

Folder. When finished, I set the state of the original panel to invisible.

The code looks like this:

<wListLabelFd>.text=someTextDataVariableHere;// Set the label

(for

example)

cPanel : panel = <wInitialPNL>.clone(deep=TRUE);// Clone the panel

cPanel.caption =someOtherTextDataVariableHere;

cPanel.name = yetAnotherTextData;

<wYourTabFolder>.addPage(cPanel,99); // After setting the

caption and name add the panel to the tab folder

I don't know if this is the cleanest way to do it, but it worked.

By the way, here's a way to get at the child widgets when you need to:

getTabFolderChildByName(pChildName) : FieldWidget

currentPanel : panel =

<wYourTabFolder>.getPages()[<wYourTabFolder>.topPageIndex];

widgetYouWant : FieldWidget =

currentPanel.GetFieldByName(name=pChildName);

return widgetYouWant;

Logan Wilkins

Eli Lilly and Company

logan@lilly.com

Erin Tomczyk <Erin.K.Tomczyk@HealthPartners.Com> on 02/17/98 07:54:10 AM

Please respond to Erin Tomczyk <Erin.K.Tomczyk@HealthPartners.Com>

To:FORTE <kamranamin@yahoo.com>

cc:

Subject: Duplicating panels in a tab folder

Hi Forte users -

we are attempting to use the same panel multiple times within a tab folder.

We're thinking that we need to set up the panels to inherit from a window

class

containing all the fields which need to be on each tab, but aren't sure if

this

is the route to go.

Does anyone know how to accomplish this?

We appreciate any insight!

Thanks.

Erin Tomczyk

HealthPartners

at 2007-6-29 9:22:51 > top of Java-index,Application & Integration Servers,Integration Servers...
# 2

Erin,

I just fininshed a window that I think does what you want. I set up the

initial panel in the window workshop, then programmatically cloned that panel

after altering its attributes. After cloning, I added the clone to the Tab

Folder. When finished, I set the state of the original panel to invisible.

The code looks like this:

<wListLabelFd>.text=someTextDataVariableHere;// Set the label (for

example)

cPanel : panel = <wInitialPNL>.clone(deep=TRUE);// Clone the panel

cPanel.caption =someOtherTextDataVariableHere;

cPanel.name = yetAnotherTextData;

<wYourTabFolder>.addPage(cPanel,99); // After setting the

caption and name add the panel to the tab folder

I don't know if this is the cleanest way to do it, but it worked.

By the way, here's a way to get at the child widgets when you need to:

getTabFolderChildByName(pChildName) : FieldWidget

currentPanel : panel =

<wYourTabFolder>.getPages()[<wYourTabFolder>.topPageIndex];

widgetYouWant : FieldWidget =

currentPanel.GetFieldByName(name=pChildName);

return widgetYouWant;

Logan Wilkins

Eli Lilly and Company

logan@lilly.com

Erin Tomczyk <Erin.K.Tomczyk@HealthPartners.Com> on 02/17/98 07:54:10 AM

Please respond to Erin Tomczyk <Erin.K.Tomczyk@HealthPartners.Com>

To:FORTE <kamranamin@yahoo.com>

cc:

Subject: Duplicating panels in a tab folder

Hi Forte users -

we are attempting to use the same panel multiple times within a tab folder.

We're thinking that we need to set up the panels to inherit from a window

class

containing all the fields which need to be on each tab, but aren't sure if

this

is the route to go.

Does anyone know how to accomplish this?

We appreciate any insight!

Thanks.

Erin Tomczyk

HealthPartners

at 2007-6-29 9:22:51 > top of Java-index,Application & Integration Servers,Integration Servers...