cancel
Showing results for 
Search instead for 
Did you mean: 

Making Drop-Down field as readOnly for Initiator in HCM P & F

jampani_sridhar
Explorer
0 Kudos

Hi Friends,

Thanks in advance,

My requirement is to make a drop-down field as Read-Only for Initiator and same field should be editable for Approver

Below is my logic at the Layout Level.

if($record.CONTROL_PARAM.ISR_MODE == "DISPLAY" |

   $record.CONTROL_PARAM.ISR_FORM_VIEW =="ISR_APPROVE" )

then

this.access = "readOnly"

endif

 

Regards,

Sridhar.J

Accepted Solutions (0)

Answers (2)

Answers (2)

0 Kudos

Hi Jampani Sridhar,

You have to add one field in your HCM F&P "FORM_SCENARIO_STAGE TYPE ASR_FORM_SCENARIO_STAGE and Give Field attribute as "Autom.(Step Relavant).

Now in your Adobe Forms, write following code:

if($record.CONTROL_PARAM.rawValue == "APPROVE_REQUEST")

     this.access = "readOnly";

endif.

This will not allow initiator to Enter Any Data in Drop Down.

Thanks & Regards,

Tushar Trivedi.

sahirn
Active Contributor
0 Kudos

If you are using the controls meant for HCM P&F (SAP note 973170) - the UI attributes can be set up at step level using step dependent attributes in HRASR_DT.

And another option is to add FORM_SCENARIO_STAGE in HRASR_DT and then write js code to hide the fields based on stage.

Regards.