Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

HCM Process & Forms

Former Member
0 Likes
593

Hello Experts,

We are configuring the HR P&F scenario . We have a Custom Form scenario which is similar to the Standard ISR STU3.

I have a case where i need the Reason for Action (MASSG) as a drop down in the form based on the Action which is default in the Back End Scenario.

I would like to know if its possible to get Reason for Action as a drop down in form based on the Action type.I would need the Drop down to list as follows.

Code Text

ZAResignation
ZBTermination for Cause
ZFDeath
ZGDisability

Apart from this i need 2 Date  fields from infotype 0041 - Date Associated with Type Z1 & Date Associated withType  Z3 to be displayed on the form. These fields can be edited by the user and if any data is enetered it needs to be updated in the infotypes.

Regards,

Marco

3 REPLIES 3
Read only

Former Member
0 Likes
553

Hi Marco,

Getting dropdown box in form is possible in interactive adobe forms. You can fill the values of the dropdown box with values that you needed based on the action but you need to use java scripting in adobe form to do this.

Even you second requirement is also possible if you are using interactive adobe forms. You can update the data entered in the form.

Regards,

Mahidhar.

Read only

0 Likes
553

Hello Maidhar,

Thank you !

Could you let me know the coding on Javascript.

I have used a drop down but it fetches all the values & not specific to the action selected.

Thanks,

Marco

Read only

Former Member
0 Likes
553

Hi Macro,

First place your action selected field on the layout so that we can navigate to it and access its value for condition checking. Lets say you action selected field is action_sel.

Now select your dropdownlist UI element and select java script from Language dropdown on right corner and select event "Initialize" from Show dropdown.

Now add the following code:

1. first navigate to your action selected field

2. check its value and then add items to list box after navigating to it.

if ( navigationpath.action_sel == "1" )

{

  navigationpath.DropDownList1.addItem("XYZ");

  navigationpath.DropDownList1.addItem("ABC");

  navigationpath.DropDownList1.addItem("SDF");

}

else if ( navigationpath.action_sel == "2" )

{

  navigationpath.DropDownList1.addItem("XYZ");

  navigationpath.DropDownList1.addItem("ABC");

}

Hope you got it.

Regards,

Mahidhar.