Skip to Content

Hide Sub form which act as a table when there is no values for the fields inside the subform

Hi All

I am looping my header table with item table using sub form concept.. I have to Hide if the item table sub form record doesn't match with Header Table sub form Record.

I am using below script to Hide it. But it is working when Header and Item table have only one record.

var raw1 = data.resolveNode(" data.CreditCardSummary.HeaderTable.HeaderData.SiteTable.SiteData.Amount").rawValue; var raw2 = data.resolveNode("data.CreditCardSummary.HeaderTable.HeaderData.SiteTable.SiteData.PerTxnFee").rawValue; var raw3 = data.resolveNode("data.CreditCardSummary.HeaderTable.HeaderData.SiteTable.SiteData.TxnFeePercentage").rawValue; var raw4 = data.resolveNode("data.CreditCardSummary.HeaderTable.HeaderData.SiteTable.SiteData.TotalFees").rawValue;

if(raw1 == null || raw2 == null || raw3 == null || raw4 == null) { this.presence = "hidden"; } else { this.presence = "visible"; }

Can any one help me with java script when header and item tables having multiple records.

Thank you,
Suneel.Uggina

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

0 Answers