on 03-04-2015 7:51 AM
Hi everybody,
I am studying the SDK sample called 11.SystemFormManipulation.
I am stuck with the foll. code:
'//****************************
'// Adding Option button items
'//****************************
'// use an existing item to place youe item on the form
oItem = oOrderForm.Items.Item("44")
For i = 1 To 3
oNewItem = oOrderForm.Items.Add("OpBtn" & i, SAPbouiCOM.BoFormItemTypes.it_OPTION_BUTTON)
oNewItem.Left = oItem.Left
oNewItem.Width = 150
oNewItem.Top = oItem.Top + (i - 1) * 19
oNewItem.Height = 19
'// set the Item's Pane Level.
'// this value will determine the Items visibility
'// according to the Form's pane level
oNewItem.FromPane = 5
oNewItem.ToPane = 5
I have searched everywhere on the Sales Order form (using view system information), but have not found any option button on this form, which is used to place an option button on the sample form.
So, where is the option button Item("44")?
Could you also tell me what Pane 5 means?
Thanks a lot
Leon Lai
Hi,
Item 44 is 'Ship to' Label in Logistics Tab.
Hope it helps.
Thanks & Regards
Ankit Chauhan
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Leon,
Remember my previous reply on you asking about folders ?
You can say that a pane is a layer on the form.
on Layer 1 you can put multiple items,
on Layer 2 you can put other items.
When you tell the form to show layer(Pane) 1, it will show you all the items in layer 1. and so on.
This is how the Folder works.
Regards
Edy
Hi Leon
You may want to first check the item type either using Data Tips from VS while debugging (set a breakpoint and place the mouse pointer over oItem and check 'Type' property) or use 'string oform = oOrderForm.GetAsXML();' and then copy form XML to another window and look for item uid = "44".
Once you found out what's the type of the item you may change the caption for this items to check where it is placed. For instance:
SAPbouiCOM.StaticText oTxt1 = ((SAPbouiCOM.StaticText)(oItem.Specific));
oTxt1.Caption = "test2";
Then you can just observe where your item sits (assuming that it is visibile )
Anyway it's static text "Print Picking Sheet' - sorry it is for 126 from the same example (Logistics tab).
Pane 5 is a number of a tab on a form. From pane to pane sets the visibility of the specific item on pane(s).
Kind regards,
Radek
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
Also Pane Means:
If your form has more than one pane, you can specify a range of panes, on which the item is displayed. from_pane sets beginning or range, to_pane sets end or range. 0 to 0 = item is displayed in all panes.
Hope it helps.
Thanks & Regards
Ankit Chauhan
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Leon,
You can say that a folder represents a pane.
But there will be a case where a folder represents more than 1 pane.
Imagine the case where you have 2 folder (lets call it ParentFolder1 and 2).
And in each of this folder you have another 3 folders.
In this case you will arrange the ParentFolder1 to represents 3 panes, and Parent Folder2 also 3 panes.
And also, the usage of pane does not stop at folder.
One other example is you develop a wizard kind of form. there is a Next button and Back Button.
When the user pressed the Next button, you will want to show the next slides... you got the idea...
Regards
Edy
User | Count |
---|---|
107 | |
12 | |
11 | |
6 | |
5 | |
4 | |
4 | |
3 | |
3 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.