on 09-17-2007 11:46 AM
Please help me to add a drop down list to a field while displaying on ITS using BHTML or javscript. List should show all the values from value table or search help.
Hi Sandeep,
in ABAP, read the table (keys and values) and write it to the ITS context, e.g. with field names KEY and VALUE.
On the ITS template, write code like this:
`if (KEY.dim > 1);
repeat with i from 1 to KEY.dim;
keys1[ i ] = KEY[ i ];
contents1[ i ] = VALUE[ i ];
if (KEY[ i ] == SELECTED_KEY);
selIndex = i;
end;
end,
SAP_TemplatePulldownField("field1", fieldLabel=#label, name="KEY", key="keys1", content="contents1", selIndex=selIndex);
end`
(I had to add blanks between the brackets to get the code displayed correctly here.)
HTH & best regards,
Carlo
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
87 | |
10 | |
10 | |
10 | |
7 | |
6 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.