on 01-02-2009 9:18 AM
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.
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));
}
}
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
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.
User | Count |
---|---|
85 | |
10 | |
10 | |
10 | |
7 | |
6 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.