Skip to Content
avatar image
Former Member

Hide body row of a table based on cell data

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

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

1 Answer

  • Jun 16, 2016 at 05:43 PM

    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.

    Add comment
    10|10000 characters needed characters exceeded

    • 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.