<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>Question Re: table inside a table in Technology Q&amp;A</title>
    <link>https://community.sap.com/t5/technology-q-a/table-inside-a-table/qaa-p/6466684#M2362333</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Use "xfa.resolveNodes" to find the length, where as to refer to a single attribute i.e. the elements then use "xfa.resolveNode". &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Pradeep Goli&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 20 Jan 2010 06:57:15 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2010-01-20T06:57:15Z</dc:date>
    <item>
      <title>table inside a table</title>
      <link>https://community.sap.com/t5/technology-q-a/table-inside-a-table/qaq-p/6466674</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear all,&lt;/P&gt;&lt;P&gt;  I am working on PO form, which a ZFORM.  I have to print the long description of the Material PO text and PO Item text.  For this i have taken 2 tables, table1 will contains the item level data and table 2 will contain the long descriptions.  Table 2 i put in a subform.  As of now this is working fine.  But the problem is when the table2 is empty, still the space is printing on the form.  To overcome this issue i wrote JAVA script on the table1 to hide the subform of table2.  its not working fine.  The code is as follows.  Please do let me know whether the code is correct or not.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;var norows = xfa.resolveNodes("data.ZLINE_ITEM.DATA[*]").length;&lt;/P&gt;&lt;P&gt;var no;&lt;/P&gt;&lt;P&gt;for ( var i=1; i&amp;lt;=norows; i++)&lt;/P&gt;&lt;P&gt;{&lt;/P&gt;&lt;P&gt; no = xfa.resolveNodes("data.ZLINE_ITEM.DATA&amp;lt;i&amp;gt;.SS.GT_ILTEXT.DATA[*]").length;&lt;/P&gt;&lt;P&gt; if(no == 0)&lt;/P&gt;&lt;P&gt; {&lt;/P&gt;&lt;P&gt;  xfa.resolveNodes("data.ZLINE_ITEM.DATA&amp;lt;i&amp;gt;.SS").presence = "hidden";&lt;/P&gt;&lt;P&gt; }&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I wrote this code in 'Calculate' event.&lt;/P&gt;&lt;P&gt;Language - JAVA script&lt;/P&gt;&lt;P&gt;Run at - Client&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 18 Jan 2010 07:36:14 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/table-inside-a-table/qaq-p/6466674</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-01-18T07:36:14Z</dc:date>
    </item>
    <item>
      <title>Re: table inside a table</title>
      <link>https://community.sap.com/t5/technology-q-a/table-inside-a-table/qaa-p/6466675#M2362324</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Set the parent level subform Content property to Flowed from Object Palette.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Chintan&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 18 Jan 2010 08:53:13 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/table-inside-a-table/qaa-p/6466675#M2362324</guid>
      <dc:creator>chintan_virani</dc:creator>
      <dc:date>2010-01-18T08:53:13Z</dc:date>
    </item>
    <item>
      <title>Re: table inside a table</title>
      <link>https://community.sap.com/t5/technology-q-a/table-inside-a-table/qaa-p/6466676#M2362325</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Chintan,&lt;/P&gt;&lt;P&gt;  i maintained the parent subform content as 'flowed' already.  Still the JAVA code is not working.  Is it correct?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 18 Jan 2010 09:32:10 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/table-inside-a-table/qaa-p/6466676#M2362325</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-01-18T09:32:10Z</dc:date>
    </item>
    <item>
      <title>Re: table inside a table</title>
      <link>https://community.sap.com/t5/technology-q-a/table-inside-a-table/qaa-p/6466677#M2362326</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;please check the scripting guide here: &lt;A href="http://www.adobe.com/devnet/livecycle/articles/lc_designer_scripting_basics/lc_designer_scripting_basics.pdf" target="test_blank"&gt;http://www.adobe.com/devnet/livecycle/articles/lc_designer_scripting_basics/lc_designer_scripting_basics.pdf&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Especially the end of the "book" where there are some very useful code snippets/ typical solutions.&lt;/P&gt;&lt;P&gt;Regards, Otto&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 18 Jan 2010 10:32:27 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/table-inside-a-table/qaa-p/6466677#M2362326</guid>
      <dc:creator>OttoGold</dc:creator>
      <dc:date>2010-01-18T10:32:27Z</dc:date>
    </item>
    <item>
      <title>Re: table inside a table</title>
      <link>https://community.sap.com/t5/technology-q-a/table-inside-a-table/qaa-p/6466678#M2362327</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Is ZLINE_ITEM name of your table? If yes then use following code:-&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;ZLINE_ITEM.presence = "hidden";&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Chintan&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 18 Jan 2010 11:12:32 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/table-inside-a-table/qaa-p/6466678#M2362327</guid>
      <dc:creator>chintan_virani</dc:creator>
      <dc:date>2010-01-18T11:12:32Z</dc:date>
    </item>
    <item>
      <title>Re: table inside a table</title>
      <link>https://community.sap.com/t5/technology-q-a/table-inside-a-table/qaa-p/6466679#M2362328</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;First: why do you have two tables and not one? Why don´t you merge it in ABAP? It will improve your performance and will make your form solution "maintainable".&lt;/P&gt;&lt;P&gt;Is the number of the long texts the same as the number of the items? Or you pass the long texts for all possible items and pair them to the runtime items of the PO? All this is weird.&lt;/P&gt;&lt;P&gt;The problem is not in your coding. The problem is in your design.&lt;/P&gt;&lt;P&gt;Please describe your data instead of the coding and we can work on it. Otto&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 18 Jan 2010 11:38:06 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/table-inside-a-table/qaa-p/6466679#M2362328</guid>
      <dc:creator>OttoGold</dc:creator>
      <dc:date>2010-01-18T11:38:06Z</dc:date>
    </item>
    <item>
      <title>Re: table inside a table</title>
      <link>https://community.sap.com/t5/technology-q-a/table-inside-a-table/qaa-p/6466680#M2362329</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi,&lt;/P&gt;&lt;P&gt;  i am extracting the long description of the PO line item by using READ_TEXT function module.  The output of this FM will be 'N' number of lines.  Hence i have used table inside a table.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 19 Jan 2010 04:29:54 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/table-inside-a-table/qaa-p/6466680#M2362329</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-01-19T04:29:54Z</dc:date>
    </item>
    <item>
      <title>Re: table inside a table</title>
      <link>https://community.sap.com/t5/technology-q-a/table-inside-a-table/qaa-p/6466681#M2362330</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Chintan,&lt;/P&gt;&lt;P&gt; ZLINE_ITEM will have PO line item details and for each line item i am extracting long description by using READ_TEXT.  The table GT_ILTEXT will have the descriptions.  I want to hide this table if no data for the line items.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 19 Jan 2010 04:33:41 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/table-inside-a-table/qaa-p/6466681#M2362330</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-01-19T04:33:41Z</dc:date>
    </item>
    <item>
      <title>Re: table inside a table</title>
      <link>https://community.sap.com/t5/technology-q-a/table-inside-a-table/qaa-p/6466682#M2362331</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You send the text into a text field. Lets have a text field with the name TST. &lt;/P&gt;&lt;P&gt;You test the value like (if TST.rawValue = NULL || TST.rawValue = "")&lt;/P&gt;&lt;P&gt;you react like TST.presence = "hidden";&lt;/P&gt;&lt;P&gt;if you place the script on every text field it should hide, you can simplify things using this.rawValue and this.presence and you don´t have to loop at the table.&lt;/P&gt;&lt;P&gt;Otto&lt;/P&gt;&lt;P&gt;p.s.: start reading here: &lt;A href="http://www.adobe.com/devnet/livecycle/articles/lc_designer_scripting_basics/lc_designer_scripting_basics.pdf" target="test_blank"&gt;http://www.adobe.com/devnet/livecycle/articles/lc_designer_scripting_basics/lc_designer_scripting_basics.pdf&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 19 Jan 2010 07:59:56 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/table-inside-a-table/qaa-p/6466682#M2362331</guid>
      <dc:creator>OttoGold</dc:creator>
      <dc:date>2010-01-19T07:59:56Z</dc:date>
    </item>
    <item>
      <title>Re: table inside a table</title>
      <link>https://community.sap.com/t5/technology-q-a/table-inside-a-table/qaa-p/6466683#M2362332</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Otto,&lt;/P&gt;&lt;P&gt;The long description of a Material would be some pages.  Its not like a single line.  Hence i cannot put it into a text field.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 Jan 2010 04:32:34 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/table-inside-a-table/qaa-p/6466683#M2362332</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-01-20T04:32:34Z</dc:date>
    </item>
    <item>
      <title>Re: table inside a table</title>
      <link>https://community.sap.com/t5/technology-q-a/table-inside-a-table/qaa-p/6466684#M2362333</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Use "xfa.resolveNodes" to find the length, where as to refer to a single attribute i.e. the elements then use "xfa.resolveNode". &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Pradeep Goli&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 Jan 2010 06:57:15 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/table-inside-a-table/qaa-p/6466684#M2362333</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-01-20T06:57:15Z</dc:date>
    </item>
    <item>
      <title>Re: table inside a table</title>
      <link>https://community.sap.com/t5/technology-q-a/table-inside-a-table/qaa-p/6466685#M2362334</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Of course you can, but you need to make some changes in the field setup:&lt;/P&gt;&lt;P&gt;1) tab layout: expand to fit = true (the field will change its height to fit in the text)&lt;/P&gt;&lt;P&gt;2) tab object: allow multiple lines = true (so it can handle any number of lines your text may have)&lt;/P&gt;&lt;P&gt;Regards, Otto&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 Jan 2010 07:45:54 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/table-inside-a-table/qaa-p/6466685#M2362334</guid>
      <dc:creator>OttoGold</dc:creator>
      <dc:date>2010-01-20T07:45:54Z</dc:date>
    </item>
    <item>
      <title>Re: table inside a table</title>
      <link>https://community.sap.com/t5/technology-q-a/table-inside-a-table/qaa-p/6466686#M2362335</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello, have you solved your problem? Is there any experience or solution you can share with us? That would be great, Otto&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 02 Feb 2010 12:51:02 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/table-inside-a-table/qaa-p/6466686#M2362335</guid>
      <dc:creator>OttoGold</dc:creator>
      <dc:date>2010-02-02T12:51:02Z</dc:date>
    </item>
    <item>
      <title>Re: table inside a table</title>
      <link>https://community.sap.com/t5/technology-q-a/table-inside-a-table/qaa-p/6466687#M2362336</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;solved it by self&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 29 Sep 2010 14:14:02 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/table-inside-a-table/qaa-p/6466687#M2362336</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-09-29T14:14:02Z</dc:date>
    </item>
  </channel>
</rss>

