cancel
Showing results for 
Search instead for 
Did you mean: 

Make Adobe IF Read-Only

maarten_duits2
Participant
0 Kudos

Hi there,

I think i have a very simple question, but i can't solve it and i didn't find the solution anywere else on SDN.

What i want to do is this. When a user filled in a IF (online scenario) and goes to the "check" step i would like to display the IF in Read-Only mode. I hope that somebody can give me a hint of a solution.

Thx in advance.

Regards Maarten.

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi,

create an action handler for the "onCheck" action, in this handler you can set the "enabled" property of the IF to false.

Regards

Sebastian

maarten_duits2
Participant
0 Kudos

Sebastian,

Thx for your reply. I am very new to WD and IF, so i hope you have a piece of code concerning this problem.

Thx in advance.

Regards Maarten.

Former Member
0 Kudos

Maarten,

1. go to your WD view which contains the IF

2. create a new value attribute in the context of this view named "pdfEnabled" of type "boolean"

3. create an action handler named "CheckPdf"

4. select this action handler for the onCheck event of your IF

5. go to the implementation tab an find the method "onActionCheckPdf" and add the following code:


wdContext.currentContextElement().setPdfEnabled(false);

6. Bind the "enabled" property of the IF to your context attribute "pdfEnabled"

Thats all.

Regards

Sebastian

Message was edited by: Sebastian Voss

maarten_duits2
Participant
0 Kudos

Sebastian,

Thank you for all your input!! Your answers solved my problem.

Regards,

Maarten.

Answers (0)