cancel
Showing results for 
Search instead for 
Did you mean: 

Sample 11.SystemFormManipulation: What is Item("44")?

leon_laikan
Participant
0 Kudos

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

Accepted Solutions (1)

Accepted Solutions (1)

ANKIT_CHAUHAN
Product and Topic Expert
Product and Topic Expert
0 Kudos

Hi,

Item 44 is 'Ship to' Label in Logistics Tab.

Hope it helps.

Thanks & Regards

Ankit Chauhan

leon_laikan
Participant
0 Kudos

Hi Ankit,

Thanks for your reply.

Yes, you are right.

But this is a label, not a radio button.

Why does the sample use this label to place a radio button on the form?

I guess it is to get a position?

Also, what does pane 5 mean? Especially the 5?

Best regards,

Leon Lai

edy_simon
Active Contributor
0 Kudos

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

ANKIT_CHAUHAN
Product and Topic Expert
Product and Topic Expert
0 Kudos

Hi Leon,

Yes, you are right. While Customizing the System Form you just pick an Existing Item on the Form and according to that set the Height, Width etc. property for the New Item that you are going to add.

Hope it helps.

Thanks & Regards

Ankit Chauhan

leon_laikan
Participant
0 Kudos

Hi Edy,

Thanks a lot for your reply.

I was a bit confused when I hovered my mouse over the different folders on the Sales Order screen..

Here is what I apparently got:

Contents = Pane 1

Logistics = Pane 6

Accounting = Pane 7

User Folder = Pane 5

Attachments = Pane 9

Best Regards,

Leon Lai

Answers (2)

Answers (2)

Former Member
0 Kudos

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

leon_laikan
Participant
0 Kudos

Hi, Radoslaw

Thanks a lot for your reply.

It's very helpful information for a beginner.

Best Regards,

Leon Lai

ANKIT_CHAUHAN
Product and Topic Expert
Product and Topic Expert
0 Kudos

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

leon_laikan
Participant
0 Kudos

Hi,

The concept of 'Pane' is not very clear to me,

In the Sales Order form, there are 4 folders:

  • Contents
  • Logistics
  • Accounting
  • Attachments

Is it what we call 'Panes' . 4 folders = 4 panes?

As we are adding a 5th folder called 'User Folder', this means that it is pane 5?

Thanks

Leon

edy_simon
Active Contributor
0 Kudos

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

leon_laikan
Participant
0 Kudos

Thanks again Edy

Leon Lai