cancel
Showing results for 
Search instead for 
Did you mean: 

Values from check table to Dropdown

Former Member
0 Kudos

Hi Experts,

My requirement is like, I have a check table attached to a field 'A' in my ztable. Now iam binding a Dropdown By Key UI Element to the field A. I want to populate all the values from the check table to the Drop Down. But its not listing.

Instead of check table, if iam giving fixed values in the domain, then every thing will work fine.

Anybody having an idea please help

Regards

Sarath

Accepted Solutions (0)

Answers (3)

Answers (3)

former_member214651
Active Contributor
0 Kudos

Hi Sarath,

Try Using the Object of <b>ISimpleTypeModifiableValueSet</b> and populate the Values from the Table using a key value Pair.

Hope this helps u.

Regards,

Poojith MV

former_member197348
Active Contributor
0 Kudos

Hi Sarath,

You should use dropDownByKey for the fields with check table with fixed values.

You should use dropDownByIndex for the fields with dynamic values.

regards,

Siva

Former Member
0 Kudos

Hi,

Yes.. the values are not coming incase of DDK.. But in DDI values coming

So it is better to go for SimpleType.. And ValueSet

change the type of valueAttriute to <SimpleType> .. Use following code to fetch from SimpleType.. Here u can set these values to a ValueSet as <Key,value> pairs

IWDAttributeInfo objAttrInfo=wdContext.getNodeInfo().getAttribute(IPrivate<ViewName>View.IContextElement.VALUE);

ISimpleTypeModifiable simple=objAttrInfo.getModifiableSimpleType();

Map m=simple.getEnumerationTexts();

Collection c=m.values();

Iterator it=c.iterator();

while(it.hasNext())

{

}

Regards

LakshmiNarayana

Former Member
0 Kudos

Hi,

my requirement is to show the values in check table to the dropdown, not by valueset.

Regards

Sarath

Former Member
0 Kudos

HI,

As per Mr Siva said.. We have to use DDI if the values are Dynamic..

If we use DDK we should use fixed values likwe SimpleType.

Regards

LakshmiNarayana

Former Member
0 Kudos

> HI,

>

> As per Mr Siva said.. We have to use DDI if the

> values are Dynamic..

> If we use DDK we should use fixed values likwe

> SimpleType.

>

> Regards

> LakshmiNarayana

This is not true - you can have dynamic values either in DDI or DDK (as long as the key is unique).

If I understand the question correctly you need to choose multiple options from the DD - this is not possible. You can use 'ItemListBox' or even a table to accomplish that.