Technology Blogs by Members
Explore a vibrant mix of technical expertise, industry insights, and tech buzz in member blogs covering SAP products, technology, and events. Get in the mix!
cancel
Showing results for 
Search instead for 
Did you mean: 
Former Member

This document is part 4 of what builds on my other example:  "Part 3: basic HCM Process and Forms scenario (Address Type 0006, Subtype 4 is included - both static elements and editable elements)" which can be accessed at: http://scn.sap.com/docs/DOC-35586

Let’s now add a default value selection dropdown list for country code selection.

Double click the “Input Help” column of input field LAND1.

Select the SAP_PA row:

Now we need to edit our form and use a dropdown list control instead of the text control we used in an earlier example.  You can both recreate the object and delete the old object.

  

Delete the input field “Country” from your form:

Add a new “ISR DDL No Element Preselect” object to your form and bind to “LAND1”:

Result:

As you can see, we now have the dropdown arrow on our object.  There is one more thing to do.  On the new objects binding property tab you will notice that there is an option “Specify Item Values”.  :

Select “Specify Item Values” and the following Dynamic Properties box appears:

You need to replace “REPLACE_THIS” with your expression from data binding.  Note that you have to escape each point with a "\".  More information on this can be found at SAP documentation: http://help.sap.com/saphelp_erp60_sp/helpdata/en/42/fb2fe500553ee4e10000000a1553f7/frameset.htm

So you need to replace:

$record.sap-vhlist.REPLACE_THIS.item[*]

With:

             $record.sap-vhlist.LAND1\.DATA\.FIELD.item[*]

Result:

Your form should now look something like the following:

Now is a good time to test.  You can either logon to the portal and select your process or launch directly using:

http://yourserver.com/sap/bc/webdynpro/sap/asr_process_execute?sap-client=<yourclient #>&sap-language=EN

Result (showing dropdown):

Labels in this area