on 06-27-2005 8:01 AM
Hi to everyone
I'm struggeling somehow by creating interactive forms. What I want to do is creating a form that holds various prefilled elements. The data actually comes from a BAPI call. In general, everything works as it is supposed to... except drop down lists that are bound to a context node for example. The problem is that in the dropdown list only the first element is shown. When I click on the arrow in the drop down, nothing happens. The node holds about 30 elements though.
Obviously it only works by making static entries in the lifecycle designer.
Thank you for any information!
Greetings
Andreas
Hello Andreas,
I'm facing the same issue. How did you solve this?
Cheers,
Mandrake.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
Use this code to populate DDList:
IPrivate<ViewName>View.I<NodeName>Node <NodeName>ListNode =
wdContext.node<NodeName>();
int MyListSize = <NodeName>ListNode.size();
IWDAttributeInfo attributeInfo = null;
attributeInfo = wdContext.getNodeInfo().getAttribute(
IPrivate<ViewName>View
.IContextElement
.YOUR_CONTEXT_ATTRIBUTE);
ISimpleTypeModifiable <NodeName>ListType =
attributeInfo.getModifiableSimpleType();
IModifiableSimpleValueSet valueSet =
<NodeName>ListType.getSVServices().getModifiableSimpleValueSet();
<NodeName>ListType.setFieldLabel("List Description");
int couner = 1;
for (int Counter = 0;
Counter < MyListSize;
Counter++) {
IPrivate<ViewName>View
.I<NodeName>Element <NodeName>Ele =
<NodeName>ListNode.get<NodeName>ElementAt(
Counter);
String <NodeName>Name = "";
String <NodeName>No = "";
//<NodeName>Ele.get
if (<NodeName>Ele.getInitials() != null) {
<NodeName>Name += <NodeName>Ele.getInitials() + " ";
}
if (<NodeName>Ele.getFirst_Name() != null) {
<NodeName>Name += <NodeName>Ele.getFirst_Name() + " ";
}
if (<NodeName>Ele.getLast_Name() != null) {
<NodeName>Name += <NodeName>Ele.getLast_Name() + " ";
}
if (<NodeName>Ele.getPerson_No() != null) {
<NodeName>No = <NodeName>Ele.getPerson_No();
}
valueSet.put(<NodeName>Name, <NodeName>Name);
<NodeName>List.put(<NodeName>Name, <NodeName>No);
couner++;
<NodeName>Name = "";
<NodeName>No = "";
}
Regards,
Kiran Yadav
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
hi. did you get it work? I havent yet...any help for me?
I use that custom dropdown list and this kind of script on mouse down event:
var sDataConnectionName = "ZINTERFACE_002";
var sColHiddenValue = "$record.LT_VALUES.DATA[*].VALUE";
var sColDisplayText = "$record.LT_VALUES.DATA[*].TEXT";
Lt_values is table where values are..
Thanks
Reko
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Reko,
I am struggling to get the drop down list in Aobe forms.
The values are getting populated in the internal table in BADI. But the values not coming in drop down list.
Could you please help me on this issue?
Should i have to write script for this?? script option is not coming in my ADLC.
your valuable help will be definitly rewarded.
thanks
Yogesh.
Hi Andreas
what's important is that you use the special Value Help drop-down list in the Designer Library from the Web Dynpro tab, not the one from Standard tab. This should fix your problem.
Kind regards,
Markus Meisl
SAP NetWeaver Product Management
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
89 | |
10 | |
10 | |
10 | |
7 | |
6 | |
6 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.