cancel
Showing results for 
Search instead for 
Did you mean: 

To display the list of years in dropdown

Former Member
0 Kudos

Hello All,

In one requirement I hvae to display the list of years form say 1950 to current i.e. 2009 in a dropdown

kindly suggest is there any data type for it or how can this be possible ?

Thank you,

Regards,

Gunja

Accepted Solutions (0)

Answers (4)

Answers (4)

Former Member
0 Kudos

solved

former_member191569
Active Participant
0 Kudos

Pay attention to what Armin said, display too many values in a DropDown UI element is not very useful. If there are more than 25 or 30 elements in your collection switch to a InputField UI element for using an extended value help.

Former Member
0 Kudos

Hi,

Try this

1.create "Dropdownbyindexby" UI

2. create context attribute like this

value node-->Vn_year

value Attribute--va_year --data type is integer

bind this attribute to dropdownbyIndex


int year = 1950;
for (int i = 0; i < 60; i++) {
IPrivate<view name>.IVn_yearElement ele =wdContext.createVn_yearElement();
ele.setVa_year(year);
wdContext.nodeVn_year().addElement(ele);
year = year + 1;
}

Regards,

Manivannan P

Former Member
0 Kudos

A drop-down list with >30 entries is not very usable.

Armin

Former Member
0 Kudos

Hi.

You could review these links :

http://help.sap.com/saphelp_nw70/helpdata/EN/08/13dbfb6e779743bb2ca641ebcb3411/frameset.htm

http://help.sap.com/saphelp_nw04/helpdata/en/74/450e8af57065468e88e4b86de47e4b/frameset.htm

May be you want to read this thread :

Thread: differnce between drop down by key and index.:

Good luck

former_member214651
Active Contributor
0 Kudos

Hi Armin,

Sorry for replying in another topic. I have a doubt regarding the security of destinations for WSIL, WSDL and RFC.

Whenever we create the destinations for WSIL, WSDL and RFC, in the security part we select the "User ID / Password" mechanism and enter the user ID and password (Administrator in case of SAP WebAS and for ECC <superadmin> ID)

Can we use a different ID for both these systems while creating the Logical Destinations?

If Yes, please let me know the minimum Authorizations required for the User ID and the steps.

Regards,

Poojith MV