on 01-18-2010 1:11 PM
Hi All
It's a offline scenario. I am adding dynamic rows to the table using the instance manager function. The table rows indeed gets added to the table on button click, however, they are not visible.
But when I use the app.alert on table's length, it displays the count of the rows correctly.
Any idea as to why the rows are not visible..??
(The form is developed using the WD Application. The Subform, table, rows and it's related properties are all correct... Infact, the sample application "AddingRemovingTableRows" which is found in Adobe site, works ok when saved locally on PC and executed. The same sample application if imported in NWDS and deployed as WD, then again rows are not visible but count is perfect... )
We are on EP 7.0 SP15...
Thanks
Deepak
This insert WD script option you can find in the main menu of the SFP transaction. So if you´re in the WD/ SE80, click on the form and search there for this option. This is in SAP, not in the LCD menu.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
If I were you I would create a working form outside SAP in LCD and then copy the script or enhance the form layout in SAP. I am short of pieces of advise now:(( Otto
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
And your form is fillable, right? You can perform a simple test. Download the form from your WD app, open it in standalone LCD and check the behavior. If it works outside SAP, the problem is with your WD app. If it doesn´t work, the problem is in the form. Otto
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Otto
The form which is downloaded from the WD App also does not work when opened with the standalone LCD.
However, if I create a new blank form with the same logic in standalone LCD, it works...
Definitely something is wrong when the ADS renders this table row add logic in the WD App...
Any known bugs or notes for this kind of behaviour...??
Thanks
Deepak
Hi Otto
Yes, it works outside SAP in standalone LCD but not in a pdf which is generated via WD. I need to generate the pdf via WD to make the pdf interactive and enabled with Reader Rights.
@Geet - Thanks for your reply. I am unable to find the the "Utilities" option as suggesed by you. In the outline explorer of my WD View, I click on "Edit" InteractiveForm UI element and then form builder in NWDS is displayed. I looked in over here, but in vain. Can you please elaborate on this..??
The pdf has dynamic settings in the Form Properties.
Thanks
Deepak
Ok, lets start from scratch:
1) did you setup the proper form structure? table subform, row subform, row fields?
2) does your table subform has content set to flowed?
3) is your form dynamic?
4) are you sure the code is correct and is run to the end?
5) did you set the min count of the row subform to 1? in binding tab
That should be all, what is needed to add a row. Otto
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Otto
Yes, all the setting are correct.
On form design, table is having only one row with 2 columns encapsulated in Subform-Table.
1. Subform-Table : Flowed ; Table1 : Repeat Table for each data item..min is 1 ; Row1 : Repeat row for each data item.. min is 1
2. Form is dynamic.
The only problem is when this form is deployed via a WD App. (Even the sample from adobe does not display additional rows when that form is deployed via a WD App... )
Thanks
Deepak
You need to set the new row visible explicitely!!.
try xfa.form.recalculate(1);
check especially the page 113.
Hope this solves the problem, Otto
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Otto
Thank you for the quick reply.
Even that is not working..
Subform_Main.Subform_Table.Table1.Row1.instanceManager.addInstance(1);
xfa.form.recalculate(1);
But one strange thing I noticed - As we normally type "CtrlSpacebar" to get a list of options after a particular input, I do not get the "addInstance" option after clicking CtrlSpacebar after the instanceManager...
Thanks
Deepak
User | Count |
---|---|
84 | |
10 | |
10 | |
9 | |
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.