on 08-13-2010 12:15 PM
Dear All,
I have a scenario where my table on PDF has 'x' rows but when the form loads the requirement is if a particular cell is
blank the row should not be visible or hidden.
I have used Table.Row.instanceManager.removeInstance(i);
where i = index of the row to be deleted.
Unfortunately it removes all the rows in the table when it loads.
i have put this code inside a reverse for loop which goes from table length to 0.
What could be the problem??
this is not how it works, Geet.
You´d better manipulate the visibility only. Something like this.presence = "hidden"; placed on the initializae of every row (I mean the only row you can see at design time), of course you may like it to add you condition, so the result is like:
if (this.hideTheRow = 'X') { this.presence = "hidden"; }
regards Otto
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Geet,
could you please post the particular code in question?
The most likely issue is that the condition used to check that the cell is blank is always returning true and therefore deleting all rows. You can use the alert function to help debug this.
Regards,
Ben
Edited by: Ben Patterson on Aug 16, 2010 3:18 AM
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
101 | |
13 | |
13 | |
11 | |
11 | |
7 | |
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.