cancel
Showing results for 
Search instead for 
Did you mean: 

How to delete empty table row in the form using formcalc

Former Member
0 Kudos

Hi All,

I am displaying a table in PDF which has a few empty rows in between. I need to delete those specific rows when the form is generated, so that they do not appear on the form.

Has anyone worked on this before? If so, can you please share the code or advise.

Regards

Aditi

Accepted Solutions (0)

Answers (1)

Answers (1)

OttoGold
Active Contributor
0 Kudos

Hello,

first: there MUST be same backend you get the data from right? So in this backend there is some data extraction coding, right? So the result of this coding is bad, like some unwanted extra rows are returned in the proper set of rows, right? So why don´t you change this backend coding not to return the unwanted rows?

IF that is not possible (I don´t believe this!), but just to describe other possibilities, you can place a script on the row subform event like initialize and test if there is something missing there and if so, set the presence of such a row to hidden.

JS: If (this.fieldA.rowValue == "") { this.presence = "hidden"; }

Regards, Otto

Former Member
0 Kudos

Thanks for your reply Otto.

I am controlling the blank rows from the 'Where ' Condition in the context of the form. Based on centain field value, i am specifying

which rows to display in the table.

Prob was resolved..hence closing the thread.