cancel
Showing results for 
Search instead for 
Did you mean: 

Hide body row of a table based on cell data

ankit_agarwal
Product and Topic Expert
Product and Topic Expert
0 Kudos

Hi Experts,

I have a requirement to hide a body row of table based on cell data(when field is 0.00) or to hide body row on page 1.

When I write script on 'layout:form' event of body row then body row disappears but that much of space still comes that looks weird.

My script was:

if ( this.field.rawValue == "0.00" )

{

this.presence = "hidden";

}

I want to hide body row dynamically means width of row should automatically adjust.Space should not appear in between.

Please help me out.

Thanks in advance.

-Ankit

Accepted Solutions (0)

Answers (1)

Answers (1)

prajeshdesai
Contributor
0 Kudos

why don't you write this logic in your interface, you can directly delete such kind of rows from internal table, and then pass it to your adobe form, that will be more feasible and transparent.

Hope this helps.

ankit_agarwal
Product and Topic Expert
Product and Topic Expert
0 Kudos

Thanks for your reply Paresh.

Actually the row that i want to hide is on page 1 only. The cell(Carry-forward total) of the row holds value of sub-total of previous page.So i don't want it to print on page1. I am doing some calculation through script hence can't do much in interface.

-Ankit

prajeshdesai
Contributor
0 Kudos

Fine, then you can try below javascript on field initialize event,


data.tblMain.DATA.FILEDNAME::initialize - (JavaScript, client)

if (this.rawValue == 5000) {

       this.parent.presence = "hidden";

}

please note that if you are compairing numeric data don't use double qoute.

hope this helps.