cancel
Showing results for 
Search instead for 
Did you mean: 

Understanding attribute tag in form XML

Former Member
0 Kudos

I found the attribute Tag in the following XML(Service Calls Form):



          <item uid="50" type="99" left="93" tab_order="540" width="83" top="196" height="19" visible="1" enabled="1" from_pane="0" to_pane="0" disp_desc="0" right_just="0" description="" linkto="13" forecolor="-1" backcolor="-1" text_style="0" font_size="-1" supp_zeros="0" AffectsFormMode="1">
              <AutoManagedAttribute>
                <Attribute id="2" description="editable" modeView="1" />
              </AutoManagedAttribute>
              <specific caption="Bemerkungen" AffectsFormMode="1" val_on="2" val_off="0">
                <databind databound="1" table="" alias="SYS_71" />
              </specific>
            </item>

What's the meaning of it and it's attributes. For me it doesn't make sense in that context.

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi Louis

Thanks for your explanations but we meant explicitly:


                <Attribute id="2" description="editable" modeView="1" />

What does this tag and its attributes mean?

Former Member
0 Kudos

Hi Philipp,

This tag is about the visible or editable mode behavior.

Have a look at the GetAutoManagedAttribute method at the UI API help file. The tags value are dependent on what you specify on this method.

Hope helps,

Ibai Peñ

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi Philipp,

Most of these attributes map to the properties set for instance in the ScreenPainter or through code.

The node <b>item</b> defines a SAPbouiCOM.Item - (<b><item></item></b>)

  • Attribute <b>uid</b> of node <b>item</b> is the <b><i>UniqueID</i></b> property of the item ( UniqueID is 50 )

  • Attribute <b>type</b> of node <b>item</b> is the <b><i>Type</i></b> property of the item. (99 indicates a it_FOLDER)

  • Attribute <b>left</b> of node <b>item</b> is the <b><i>Left</i></b> property of the item.

  • As you can see the attributes will map to a property of similar name.

Then getting to sub node <b>specific</b> we will get to the properties specific to the type of item.

Since we are working with a <b>it_Folder</b> we can see the <b><i>Caption</i></b> property. This is set to <b>Bemerkungen</b> in English <b>Remarks</b>.

So now we know we are working with item <b>50</b> of type <b>it_Folder</b> with a caption set to <b>Bemerkungen</b>.

Then looking at the sub <b>specific</b> we can see the sub node <b>databind</b>.

Hope this will help

Message was edited by: Louis Viljoen