Skip to Content
0
Jun 29, 2006 at 06:52 AM

Adobe and context

26 Views

Hi everyone,

I created a node DATA with few attributes like companyCode, companyName.

The following code is about adding values to that context from the init methode of the view.

  public void wdDoInit()
  {
    //@@begin wdDoInit()
	wdContext.nodeData().invalidate();    
    IDataNode dataNode = wdContext.nodeData();
    IDataElement dataElem =  dataNode.createDataElement();
    
    dataElem.setCompanyCode("500");
	dataElem.setCompanyName("Ministry 500");
	
	dataNode.addElement(dataElem);

	dataElem =  dataNode.createDataElement();    
	dataElem.setCompanyCode("510");
	dataElem.setCompanyName("Ministry 510");
	dataNode.addElement(dataElem);	
  }

I attached the DATA node the the datasource of the interactiveform and created a binary attribute value for the pdfSource.

Now, I edited the interactive form and created a drop down list : I also drag and drop the DATA.companyCode context into it.

When I run the application, I only see "500" in the drop down list.

Why can't I see also the second value (the "510") ?

Thanks for the help.

Regards.