on 01-07-2009 10:10 AM
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?
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
93 | |
10 | |
10 | |
9 | |
9 | |
7 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.