cancel
Showing results for 
Search instead for 
Did you mean: 

Completed document

Former Member
0 Kudos

Hello experts

I have a problem finishing my add-on. I have a combo box where you can choose the status of a document. We have 3 status (Completed, in progress, canceled). When selecting "Completed" or "Cancelled" the document should be read only and therefore can not be changed, but when the status is "in progress" adding rows in document line is possible. In general the status on the lines of the document which are in matrix.

Regards.

Olivier

Accepted Solutions (0)

Answers (4)

Answers (4)

Former Member
0 Kudos

Thank you for your help,

I'll try this method.

Regards.

Olivier

Former Member
0 Kudos

Thank you for your help,

But I try this. The problem is that when I change the mode (search mode for example) it does not work anymore. Or when I close my window and I open it again all the fields become active.

I don't know why it behaves as.

Regards.

Former Member
0 Kudos

Oliver,

It makes no sense to implement that behavior when the form is search mode.

You also need to catch the FormLoad and FormDataLoad events and implement the same logic. I suggest you create a function to set the mode (hide or show the form's item accordigaly to your combo's value) and call it in this events (ComboSelect, FormLoad and FormDataLoad).

Regards,

Vítor Vieira

Former Member
0 Kudos

Hi,

What I want is a code that will allow me to make this treatment.

Regards.

Former Member
0 Kudos

Oliver,

I think the logic behind it will have to do, because.

You just need to catch the ComboSelect event and based on the value of the field you need to Enable or Disable the form's fields.

Regards,

Vítor Vieira

Former Member
0 Kudos

Hi Oliver,

So, what's the problem?

-

-


Regards,

Vítor Vieira