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

Form modes

The Form property SupportedModesMask can have values of afm_Ok, afm_Add, afm_Find, afm_View.

(1) What is the difference between the OK and View mode?

(2) What is the mode when the button 1 in a form has the caption "Update"?

(3) Can you give some pointer where can I find how these modes work in SBO?

Thank you for your great help,


Add a comment
10|10000 characters needed characters exceeded

Related questions

1 Answer

  • Posted on Jan 20, 2005 at 12:32 PM

    Hi Miki,

    you can find this info in the SBO 2004 SDK - UI API help files.

    Have a look ath the mode property of the form.


    Determines the mode in which the form appears.

    From the help file:

    BoFormMode Enumeration

    Members Member Description Value

    fm_FIND_MODE Specifies the form in Find mode. 0

    fm_OK_MODE Specifies the form in OK mode. 1

    fm_UPDATE_MODE Specifies the form in Update mode. 2

    fm_ADD_MODE Specifies the form in Add mode. 3

    fm_VIEW_MODE Specifies the form in View mode. 4

    fm_PRINT_MODE Specifies the form in Print mode. 5

    Hope helps,

    Ibai Peñ

    Add a comment
    10|10000 characters needed characters exceeded

    • Hi Miki,

      Check the SMB marketplace becouse there are 2 SDK UI API help files. In the second one says:

      Five modes are available:

      fm_FIND_MODE - allows searching for records, indicated by FIND button.

      fm_OK_MODE - allows viewing form information, indicated by OK button.

      fm_UPDATE_MODE - appears after modifying data in Find or OK modes. Indicated by UPDATE button.

      fm_Add_MODE - allows adding records, indicated by ADD button.

      fm_VIEW_MODE - allows viewing and searching information but not adding or updating records, indicated by all items disabled.

      So, refering to first question, the state is determined with by the button text. Except the VIEW mode which is reached when the form is canceled or closed (I guess)


      Ibai Peñ

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.