cancel
Showing results for 
Search instead for 
Did you mean: 

Dynamic Table in ADOBE Interactive Form Within Webdynpro ABAP

Former Member
0 Kudos

Hi all,

I created Dynamic table in ADOBE form , the Form Contains Table and three buttons, one button for Save action , remain others for Table's row insert and delete purpose. After that used this form in to Weddynpro ABAP using Interactive UI Element.

My problem is Save button working fine, but Insert and Delete rows not working in Webdynpro level. but those two button's working correctly in SFP( Form Builder ) .

Please help me...

Regards,

Vijay

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

For the form buttons to work on-line in your WebDynpro app, you need to change the PDF form to be Dynamic:

	if(firstTime){
		// We need to set the PDF to be Dynamic, for the form JavaScript code to work
		IWDPDFDocumentInteractiveFormContext pdfContext =
		WDPDFDocumentFactory
		.getDocumentHandler(wdThis.wdGetAPI(), "InteractiveForm")
		.getDocumentContext();
		pdfContext.setDynamic(true);
	}

In this code segment, "InteractiveForm" is the UI id.

I was able to get that far, but I although I add subforms dynamically via javascript, the mapped WebDynpro context node doesn't pick up any new elements.

ie: if I start with two WD context elements (0..n) cardinality, then add a third via the form JavaScipt button, I see changes only in the two context elements when I submit. A third context element isn't created or populated.