cancel
Showing results for 
Search instead for 
Did you mean: 

Need Close Functionality For Customized Forms

Former Member
0 Kudos

Hi Exerts,

I need to apply Close Functionality for user Defined forms . As ,when we close any System form like Sales Order then we can not update any thing on that form ,same functionality i need for my customized form. I have tried Close option available in data menu of SAP B1 which is working i.e. means when i close my form using this option then in database the value of Status field of that table is changed from O to C . But still we can update the things in the form.

Please help me .

Thanks

Amit

Accepted Solutions (0)

Answers (1)

Answers (1)

pedro_magueija
Active Contributor
0 Kudos

Hi,

You can capture the event After_Form_Data_Load and check the Status. If it is C set the mode of the form to View like this:

form.Mode = BoFormMode.fm_VIEW_MODE

When in view mode no data can be updated via the form.

Hope it helps.

Best regards,

Pedro Magueija