cancel
Showing results for 
Search instead for 
Did you mean: 

Hiding Subform based on another field value which is not in Layout

Former Member
0 Kudos

Hi,

I tried using Formcalc for hiding a subform like below.

if ($record.BLOCK04.GT_ITEM_LEV1_910.DATA[].GT_ITEM_LEV2_910.DATA[].KDMAT == null)

$.presence = "hidden"

endif

My subform is Flowed, Western text

When i run it, its not working..so i hided using context condition like if there is no value in KDMAT, do not pass it to Layout...Now it's working..My problem is, when there is no vaue, it is leaving BLANK LINE in the print out..a gap is there for that row.

Please help me how to avoid the EMPTY/ BLANK LINE??

Thanks in advance

Accepted Solutions (0)

Answers (1)

Answers (1)

OttoGold
Active Contributor
0 Kudos

the parent subforms must be content: flowed, by the way western text means left to right, you want it to move upwards, so you need top to bottom. Otto

Former Member
0 Kudos

Hi,

All my PARENT subforms are Flowed only..still its not working..Yes, I want to print left to right only..

Please help..

I checked REPEAT SUBFORM but not MAX or MIN count..then it's working but it prints 2 times for first item which is wrong.

I am not understanding the behaviour of this..Please help

OttoGold
Active Contributor
0 Kudos

If it prints something twice, I would check if only one "item" is coming from backend.

I cannot imagine a siatuation when one of the rows is printed twice and the others only once.

Otto