Quantcast
Channel: Adobe Community : All Content - LiveCycle Designer
Viewing all articles
Browse latest Browse all 5571

Help with Pseudo code to hide a subform

$
0
0

Hi

 

I need to hide a subform when there is no data in it. I have this pseudo code but I need someone to write it a bit better so I can use it in my program - I am a real beginner.

 

The pseudo code is

for each (subforms as subform) if (AllFieldsOfSubformAreEmpty(subform)) subform.presence = "hidden";

 

How would I insert it in this part of my program - there are zillions of lines of code to this subform but it starts of like this-

<subform layout="lr-tb" name="rowRemarkRow" w="176.0001mm">

                     <sapa1s xmlns="http://www.sap.com/a1s/cd/om/forms/config"><TableRemarkRow configurable="true"><Description xmlns:xft-xliff="http://www.xfa.org/schema/xfa-xliff/1.0/" xft-xliff:id="N7936">Ligne de commentaire</Description></TableRemarkRow></sapa1s>

                     <bind match="dataRef" ref="$.FormQuote.Item[*]"/>

                     <subform layout="tb" name="frmItem" presence="hidden">

                        <sapa1s xmlns="http://www.sap.com/a1s/cd/om/forms/config"><TableRemarkFieldCollection configurable="false"><Description/></TableRemarkFieldCollection></sap a1s>

                        <bind match="none"/>

                        <field access="readOnly" h="9mm" name="txtLine" presence="hidden" w="37mm">

                           <ui>

                              <textEdit multiLine="1">

                                 <border presence="hidden">

                                    <?templateDesigner StyleID aped0?></border>

                                 <margin/>

                              </textEdit>

 

Thanks a lot!

BY


Viewing all articles
Browse latest Browse all 5571

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>