Skip to Content
author's profile photo Former Member
Former Member

Items on VIew Form

I am adding one edit item in BP form.

I would like to see it only when the form is in VIEW mode and not in new BP or FIND mode !

How to achieve it ?

Giuseppe

Add a comment
10|10000 characters needed characters exceeded

Related questions

1 Answer

  • Best Answer
    author's profile photo Former Member
    Former Member
    Posted on Feb 28, 2009 at 03:53 PM

    Hi Guiseppe,

    Use the Item's GetAutoManagedAttribute(Attribute, AutoFormMode, Behavior) Method.

    By Code

    oForm.Items.Item("ITEM_ID").SetAutoManagedAttribute(BoAutoManagedAttr.ama_Visible, 8, BoModeVisualBehavior.mvb_True)
    oForm.Items.Item("ITEM_ID").SetAutoManagedAttribute(BoAutoManagedAttr.ama_Visible, 7, BoModeVisualBehavior.mvb_False)
    

    AutoFormMode = 8 , means View Mode

    AutoFormMode = 7 , means All Modes except View Mode...

    You can obtain more information about the method in the SDK help file (search for AutoManagerAttribute)

    Regards,

    Vítor Vieira

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.