cancel
Showing results for 
Search instead for 
Did you mean: 

Generating 2 folder in System Form.

Former Member
0 Kudos

Hi Friends,

I have created 2 folder in GRN.1st folder works completly fine but when I clicked on 2nd folder its open Content Folder of GRN, means in Panelevel 1 not in Panelevel which I have declared for 2nd Folder.

I have written Item Press event also in which I have given Panelevel to Form.i.e.

oForm = SBOApplication.Forms.Item(FormUID)

oForm.PaneLevel = 11

but still its open in Content Folder of GRN.Is there any problem while creating 2 folder in System form??

Please help me to solved this problem.

Thanks & Regards,

Swati

Accepted Solutions (0)

Answers (3)

Answers (3)

Former Member
0 Kudos

Try placing a DataSource for the folder. It should work. I know it seems like you don't need one, but this is how B1 works. You need a datasource for a folder, checkbox, option button .

If you don't believe me make a form in ScreenPainter and add folders to it. Then save it and open the srf file and look at the xml entries. You'll see folders are bounded .

Former Member
0 Kudos

Do you have DataSources for you two folders ( a DS for each) ? You need to have them and also the ItemPressed events where you set the appropriate form PaneLevel .

Former Member
0 Kudos

Hi,

Thanks For reply. But we dont give datasource to folder.Inside Grid have the Datasources.And I have wrote code on ItemPress Event also but still not worked.

Thanks & Regards,

Swati

former_member196647
Contributor
0 Kudos

There is no problem in creating any number of folders in system forms. Perhaps you should check your folder / item definitions and also if the pane level you are using for your item, is not already in use.

Rahul

Former Member
0 Kudos

Hi,

Thanks for reply but I have check all the Condition but its not working.I removed 1st folder and only used 2nd folder code than its also works correctly but If I added 2 folder one work correctly and another last folder get opened in Content folder of GRN.And I have given panelevel also for Items.

Thanks & Regards,

Swati

Former Member
0 Kudos

Hi Swati,

Try this,

on Click Event and BeforeAction= true i.e. ClickBeforeAction

set the pane level of the form as the pane level that u assigned to your panes,

like,

if (pVal.ItemUID == "oFldrCost1")
             {
                 oForm.PaneLevel = 222 ;       //pane level of your first pane

             }
if (pVal.ItemUID == "oFldrCost2")
             {
                 oForm.PaneLevel = 223;    //panelevel of your 2nd pane.

             }

Edited by: anuj singh on Feb 12, 2009 11:22 AM

Former Member
0 Kudos

Hi,

Thanks for reply but I tried this also still not working.

Thanks & Regards,

Swati