Skip to Content
0

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

Mar 27, 2017 at 03:11 PM

46

avatar image

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

10 |10000 characters needed characters left characters exceeded
* Please Login or Register to Answer, Follow or Comment.

0 Answers