cancel
Showing results for 
Search instead for 
Did you mean: 

Hardcoded in the application

Former Member
0 Kudos

Hiii

Iam creating an application in the web dynpro.without writing code i can able to deploy and run the application.But i want My output screen will be hardcoded with these

User login id : sushma.y

Usename : sushma

Employee : (drop down): sushma

Active : (checkbox) :

Existing User :(checkbox) :

Role : (dropdownlist) : consultant

Is there any possibility of modifying the properities or else i have to write the code.

But i tried with code.

Iam not able to see the dropdownlist list values (that is employee and role).

Please help me to sort out this.

wdContext.currentUserprofileElement().setUserloginid("krishna");

wdContext.currentUserprofileElement().setExistingUser(true);

wdContext.currentUserprofileElement().setUserName("Krishna.Kumar");

wdContext.currentUserprofileElement().setActive(true);

*****wdContext.currentUserprofileElement().setEmployee() ********

Regards

Sushma

Accepted Solutions (0)

Answers (3)

Answers (3)

Former Member
0 Kudos

If it's a DropDownByIndex, implement a supply function for the context node that contains the attribute to which the "texts" property is bound. See my code in the other thread.

Armin

Former Member
0 Kudos

tx

PradeepBondla
Active Contributor
0 Kudos

Hi,

For hardcoded dropdown list better go with "Dropdown by index" UI element.

1) Create a simple type and specify enumeration values for it.

2) Create a value attribute and Set above created simple type to it as click on browse button on type property of the context attribute select your simple type.

3) Take a Drop down by index and set its " TEXTS" property to this value attribute.

your drop down will populate the values which you have given in enumeration.

PradeeP