cancel
Showing results for 
Search instead for 
Did you mean: 

PDF in read only / edit format

Former Member
0 Kudos

I made a PDF form for abap workflow. In the form there is a text field, on the begining of the workflow , it could be editable. And when the form send to the approver, this field should be read only and the other fields should be editable. How can i acheive this?

Accepted Solutions (1)

Accepted Solutions (1)

chintan_virani
Active Contributor
0 Kudos

Qiuguo,

My guess is that you are developing an ISR based HCM form, if that's so then you can do this programatically as follows:-

For dynamic validations like for e.g. Only the initiator should have the ability to change his/her own data in forms and when the forms go for approval the approver should only get a read-only copy of the form then write below code in form:ready event of the Subform where the control is.

For e.g: If u have a control called TextField1 in Subform1 then put the code in form:ready event of Subform1 and change the language to Javascript.

var modeVal = xfa.record.CONTROL_PARAM.ISR_MODE.value;

if(modeVal == 'CHANGE')
{
xfa.host.messageBox("INSIDE Create if");
TextField1.access = 'readOnly';
}
else
{
xfa.host.messageBox("Else Create if");
TextField1.access = 'open';
}

PS: I get value as CHANGE for approver. If you get anything else then change the code accordingly.

Chintan

Answers (0)