Skip to Content
avatar image
Former Member

PDF in read only / edit format

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?

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

1 Answer

  • Best Answer
    Jan 07, 2009 at 01:07 PM

    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

    Add comment
    10|10000 characters needed characters exceeded