Skip to Content
author's profile photo Former Member
Former Member

Values from check table to Dropdown

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

Add a comment
10|10000 characters needed characters exceeded

Related questions

3 Answers

  • author's profile photo Former Member
    Former Member
    Posted on Dec 03, 2007 at 12:40 PM

    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

    Add a comment
    10|10000 characters needed characters exceeded

    • Former Member Former Member

      > 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.

  • author's profile photo Former Member
    Former Member
    Posted on Dec 03, 2007 at 03:35 PM

    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

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Dec 05, 2007 at 04:51 AM

    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

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.