Skip to Content
0
Former Member
May 14, 2009 at 11:20 AM

Set Visible AutoManagedAttribute with XML

88 Views

Hi all,

I've set the Visible Automanaged Atribute of an Item by code, so the item is not visible in Add and Find modes.

 oForm.Items.Item("Refresh").SetAutoManagedAttribute(BoAutoManagedAttr.ama_Visible, 6, BoModeVisualBehavior.mvb_False)

This works perfect!

I then saved the XML form and removed the coding for the automanaged attribute (the line of code above), and now the Item's automanaged attribute doesn't work anymore.

            <item uid="Refresh" type="4" left="410" tab_order="0" width="120" top="355" height="19" visible="1" enabled="1" from_pane="0" to_pane="0" disp_desc="0" right_just="0" description="" linkto="" forecolor="-1" backcolor="-1" text_style="0" font_size="-1" supp_zeros="0" AffectsFormMode="1">
              <AutoManagedAttribute>
                <Attribute id="1" description="visible" modeAdd="0" modeFind="0"></Attribute>
              </AutoManagedAttribute>

If I follow the same procedure for the Editable attribute it works fine either by code or by XML.

This behavior is constant is both B1 2007A PL44 and PL46.

Does anyone have the same problem??

Thanks in advanced,

Regards,

Vítor Vieira