Skip to Content
avatar image
Former Member

Row Deletion

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??

Add comment
10|10000 characters needed characters exceeded

  • Follow
  • Get RSS Feed

2 Answers

  • Aug 16, 2010 at 01:17 AM

    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

    Add comment
    10|10000 characters needed characters exceeded

  • Aug 16, 2010 at 02:04 PM

    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

    Add comment
    10|10000 characters needed characters exceeded