on 08-19-2009 4:44 PM
Hi all you,
I'd like to add new rows dynamically while i'm calculating different totals per page.
I tried to use thise javascript :
var anInstanceManager = data.OpenItemList.ItemTable.BalanceOpenItemList.instanceManager;
var newInstance = anInstanceManager.addInstance(1);
But i get an error : "BalanceOpenItemList has no properties".
Do you have any idea ?
Edited by: Brice VINCENT on Aug 19, 2009 5:45 PM
Hi Nikhil,
This can be work with the case that I want to have push button to click to create new line or new table?
My case is allow user to click to add new line or new group of field if it is required.
Please point me out how I can do that?
Thanks,
Visut
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
hi,
add the below code in event click in javascript
Table 1 = name of your table
var nTableLength = Table1.nodes.length;
var nNumRow = 0;
for (var nCount = 0; nCount < nTableLength; nCount ++) {
if ((Table1.nodes.item(nCount).className == "subform") & (Table1.nodes.item(nCount).name !== "HeaderRow")) {
nNumRow = nNumRow + 1;
}
}
if (nNumRow == 7) {
xfa.host.messageBox("The maximum allowable number of rows is 7. You cannot add any more rows.", "Warning", 3);
}
else {
Items.Table1.Row1.instanceManager.addInstance(1);
}
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Chintan
In my case, I have requirement to allow new position belong to more than one department. In initial in my form should show only one department field and related information of selected department field. And if that position should be manager of more than one department. User allows to click Add new department field and form will add additional line for department field and related field.
Thanks for your guideline.
Visut
User | Count |
---|---|
95 | |
11 | |
10 | |
9 | |
9 | |
7 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.