cancel
Showing results for 
Search instead for 
Did you mean: 

populating Table dropdown column

Former Member
0 Kudos

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.

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

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));

}

}

Former Member
0 Kudos

Hi,

Thanks for ur reply..

I am using the similar code as i mentioned in the question...

is there any difference between ur line of code and mine?

can you please tell me the cardinality u setted for value node...

and what is the context structure..

can you please provide me with these details ...it will be very helpfull to me..

Thanks,

Rajesh

Former Member
0 Kudos

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.