cancel
Showing results for 
Search instead for 
Did you mean: 

Very simple question on drop down UI element

Former Member
0 Kudos

Hi Experts,

I have created WD screen. It fetches data from R/3 using RFC. I have created 'DropdownByIndex' UI element and mapped this with the output of RFC. It is fetching Emp Name.

I have following reqirement:

1) Initially first record (Emp Name) is displayed. When I am clicking on the Drop Down I can see list of rows. The first row is a blank line. I don't want to display this blank line. How I can get rid of it.

2) In the screen there is Push Button. User has to select any record from the drop down box. After that user has to click on push button. On this some other RFC should be executed.

The system should fetch the pernr of the given Emp Name. How I can get the pernr of the user whose Emp Name has been displayed in the Drop Down UI element.

Regards,

Gary

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi Gary,

1. Change the selection property of the node from 0..n to 1..n

2. On click of Push botton execute the below code


wdContext.currentXXXNodeElement().getPernr(); 
// Assuming that pernr and employee are in same node.
// Since the current element of the node is the one which you selected in the drop down then
// currentXXXNodeElement().getPernr() returns the same element pernr.

Regards,

Jaya.

Edited by: VJR on Jul 9, 2009 5:03 PM

Answers (0)