Skip to Content
avatar image
Former Member

populating Table dropdown column

Hi,

I am very new to Interactive forms.I need some real help from developers.

My scenario is i am having an Table in PDF Form having dropdown as one column and remaining columns with input fields.

I am trying to populate the data in dropdown in table using value help drop down list and following code.......

IModifiableSimpleValueSet regionCenter = wdContext.nodeVn_Activity().getNodeInfo().getAttribute(IPrivateEss_pdfView.IVn_ActivityElement.VA__ACTIVITY ).getModifiableSimpleType().getSVServices().getModifiableSimpleValueSet();

please suggest me how can i populate the data in table dropdown column.

Thanks&Regards,

Rajesh.

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

1 Answer

  • avatar image
    Former Member
    Jan 05, 2009 at 06:03 AM

    Hi,

    ISimpleTypeModifiable modifiable = wdContext.getNodeInfo().getAttribute("Your Attribute").getModifiableSimpleType();

    if( modifiable.hasSVService() )

    {

    ISimpleValueServices simpleValueServices = modifiable.getSVServices();

    IModifiableSimpleValueSet simpleValueSet = simpleValueServices.getModifiableSimpleValueSet();

    for(int x=0; x<10;x++)

    {

    simpleValueSet.put(String.valueOf(x), String.valueOf(x));

    }

    }

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member Former Member

      Hi,

      If you want a drop down in the table,

      Create a node ex.Books. Let the cardinality of the node be 1:n and selection cardinality be 1:1.

      Under Bokks Node create a attribute name.

      Insert a drop down by index UI Element and bind the texts property to Books.name.

      Now populate the dropdown as below

      IBooksElement ele=wdContext.nodeBooks().createAndAddBooksElement();

      ele.setName("Webdynpro");

      Like this you add all the elements.