Dynamic Columns, using the element name as the column header name

BI Publisher Experts,
I'm a relative newbie in the RTF layout world and i'm trying to acheive a layout which dynamically nominates the column headers as the element name.
For example using the XML below:
<?xml version="1.0" encoding="UTF-8" ?>
- <ROWSET>
- <DATA>
- <THREECOLUMNDATA>
<FIRST_NAME>First Name</FIRST_NAME>
<LAST_NAME>Last Name</LAST_NAME>
<EMAIL>[email protected]</EMAIL>
</THREECOLUMNDATA>
</DATA>
</ROWSET>
Excuse formatting, looked ok in preview!
I'd like to acheive the following output:
| FIRST_NAME | LAST_NAME | EMAIL |
|-----------------------|---------------------- |--------------------------------------------------------|
| First Name | Last Name | [email protected] |
I've managed to get the row data columns working using:
<?for-each@cell:current()/*?><?.?><?parent::*/text()?> <?end for-each?>
And i've been working on the header for a while now, using
<?for-each@column:current()/THREECOLUMNDATA[1]/*?><?name(.)?><?end for-each?>
But no luck with the header. I only ever get a blank header.
I've also reviewed the following syntax:
<?split-column-header:THREECOLUMNDATA?> <?/FIRST_NAME?>
But of course, this pulls specific element data out as the header, not quite what I need.
Question is: Is there specific functionality to pull the element name out as the header, or do I somehow specifically need to include the header name as a data value in the XML?
Advice appreciated!

If you could get your XML to look like this instead of what you have, you will be able to use split-column-header and split-column-data
<?xml version="1.0" encoding="UTF-8" ?>
<ROWSET>
<DATA>
<THREECOLUMNDATA>
<COL_DTLS>
<COL_LABEL>FIRST_NAME</COL_LABEL>
<COL_VALUE>First Name</COL_VALUE>
</COL_DTLS>
<COL_DTLS>
<COL_LABEL>LAST_NAME</COL_LABEL>
<COL_VALUE>Last Name</COL_VALUE>
</COL_DTLS>
<COL_DTLS>
<COL_LABEL>EMAIL</COL_LABEL>
<COL_VALUE>[email protected]</COL_VALUE>
</COL_DTLS>
</THREECOLUMNDATA>
</DATA>
</ROWSET>
Now if you <?split-column-header:COL_DTLS?><?COL_LABEL?> and <?split-column-data:COL_DTLS?><?COL_VALUE?> you'll get the required output...

Similar Messages

  • I created a Pages document inserting 2 columns using 1) Inspector 2) Layout 3) columns.  How do I decrease the height of the column.  Have tried to use cursor and drag down the top border, but that does not reset the top border.

    I created a Pages document inserting 2 columns using 1) Inspector 2) Layout 3) columns.  How do I decrease the height of the column.  Have tried to use the cursor and drag down the top border, but that does not reset/decrease the top border.

    Set your columns back to one for the moment. In layout mode, insert a Text box. Place it in the upper left corner of your document, and drag down and right to the size of the container for your two columns. Click inside the Text Box, and now bump up your columns to 2. Your two columns are now contained in this resizable Text Box.

  • Compare the elements data of the 2 context nodes using internal table

    Hi,
    How can i compare the elements data of the 2 context nodes using internal table?
    Regards,
    Ronita

    hi ronita,
    just get the nodes data into internal tables and just compare them......
    node1->get_static_attributes_table(importing table = ITAB_node1)
    node2->get_static_attributes_table(importing table = ITAB_node2)
    now u have the data of ur 2 context nodes in 2 different internal tables ..
    just compare them like
    if  ITAB_node1[ ] = ITAB_node2[ ].
    write: / 'itab1 is equal to itab2'..
    endif.
    and u can use as many as comparision operators between these 2 tables to compare them....
    regards....
    srini,,,,

  • Can I use Photoshop Elements 13 save the photo directly on OneDrive (hence the album eventually example) Reason, I use Office 365 and have so 1T storage, then it is not necessary to have more "cloud"!

    Can I use Photoshop Element 13 save the photo directly on OneDrive (hence the album eventually example) Reason, I use Office 365 and have so 1T

    g.n.a.s
    If your program is Photoshop Elements, you have posted in the wrong forum. Somehow your thread got posted in the Adobe Premiere Elements Forum (video editing).
    If this is the case, please re-post your thread in the Adobe Photoshop Elements Forum or wait for a moderator to see your thread here and move it from here to there.
    Photoshop Elements
    Thank you.
    ATR

  • Override the element mapped in the IMPL.xsl file to NULL in CUSTOM.xsl

    Hi Guys,
    we are trying to override the element mapped in the IMPL.xsl file to NULL in CUSTOM.xsl file using call template. But we are getting the target mapped twice instead of overriding. kindly help.
    IMPL.xsl_
    <db:LONG_DESCRIPTION xml:id="id_102">
    <xsl:value-of select="corecomEBO:RevisedItem/corecomEBO:Description" xml:id="id_103"/>
    </db:LONG_DESCRIPTION>
    <xsl:call-template name="LONG_DESCRIPTION_Custom"/>
    Custom.xsl_
    <xsl:template name="LONG_DESCRIPTION_Custom">
    <db:LONG_DESCRIPTION xmlns:db="http://xmlns.oracle.com/pcbpel/adapter/db/APPS/INV_EBI_CHANGE_ORDER_PUB/PROCESS_CHANGE_ORDER_LIST/" xml:id="id_102" >
    <xsl:value-of select="''"/>
    </db:LONG_DESCRIPTION>
    </xsl:template>
    OUTPUT_
    <db:LONG_DESCRIPTION xml:id="id_102">XXX</db:LONG_DESCRIPTION>
    <db:LONG_DESCRIPTION xmlns:db="http://xmlns.oracle.com/pcbpel/adapter/db/APPS/INV_EBI_CHANGE_ORDER_PUB/PROCESS_CHANGE_ORDER_LIST/" xml:id="id_102" />
    Needed OUTPUT_
    <db:LONG_DESCRIPTION xmlns:db="http://xmlns.oracle.com/pcbpel/adapter/db/APPS/INV_EBI_CHANGE_ORDER_PUB/PROCESS_CHANGE_ORDER_LIST/" xml:id="id_102" />
    Thanks in advance.

    Just change what you're doing in that servlet to write that extra line.
    Since you didn't say anything about how you're writing your XML file, it's pretty hard to suggest what exactly you should change.

  • Com.sap.aii.utilxi.misc.api.BaseRuntimeException:An invalid XML character (Unicode: 0x1f) was found in the element content of the document

    Hi,
    I'm getting the below runtime exception during IDOC- SOAP message mapping in Integration engine.
    "Runtime exception occurred during application mapping com/sap/xi/tf/<<<\\Message mapping object name\\>>>; com.sap.aii.utilxi.misc.api.BaseRuntimeException:An invalid XML character (Unicode: 0x1f) was found in the element content of the document"
    I have no clue why this exception occurs. Could anyone say the reason of the exception?
    Thanks!
    Regards,
    Gopi

    Hi Gopinath
    Check this thread
    An invalid XML character (Unicode: 0x1d) was found in the element
    Kind regards
    Javi

  • Why can't I open Elements Editor by dragging a photo file onto the Elements Icon in the MacOSX doc?

    Why can't I open a file in Elements Editor 11 for Mac by dragging the file onto the Elements icon in the dock? I have been using previous versions of Elements for many years and this has always worked.

    Make sure the Alias is for the Editor App in Support Files

  • Enumeration.nextElement() ...is the element removed from the enumeration?

    When using an Enumeration, and using nextElement...is the element removed from the Enumeration?
    just curious.
    thanks

    Well, I'd say that depends on the underlying implementation. StringTokenizer for example doesn't even store the elements explicitly, so it can't remove anything ...

  • I am trying to restore my catalog having previously done a back up to an external hard drive and subsequently an incremental backup. I am using Photoshop Elements 11 and the only option given in the restore procedure is to open a .tly file.

    I have done this but now the restore function is asking for yet another file, which i assume to be the original back up, but that is the only .tly file since the only other relevant file appears to be called catalog.buc but that is just not visible when using the restore function? How do I continue from here with this restoration of my catalog?

    Martin_Had a écrit:
    Thank you Andaleeb. I appear to have an old backup of a year ago, and a more recent full back up plus an incremental backup.
    Regrettably I don't really understand what is going on because firstly the restore does not complete its cycle so I cannot see what that backup file contains and secondly all I have read would suggest that the .tly file is the full backup and the catalog.buc file is the incremental backup. For the present, the catalog shows the photos for 2014 which makes me think I might have backed from the old back up file.
    I am minded to create another catalog and try again.
    Any views on what I can do?
    A backup (full or incremental) is a folder, not a file. It contains renamed pictures file copies as well a copies of the files and subfolders of the original catalog. The catalog.buc is a renamed copy of the database of your original catalog while the backup.tly. That backup.tly file contains the information to restore the renamed pictures where you decide, the original location or a new custom one. You can't do anything with the backup yourself, only the restore process can do the job if it finds the backup.tly file. In the case of an incremental backup, you have to tell the restore process where to find the incremental backup folder; it finds the backup.tly file in that folder and finds what is to restore there; then it asks you for the previous backup folder (in your case the full backup); you then browse to that full backup folder so that the restore process can find find the backup.tly there; the restore then deals with the rest of the files to restore.

  • To know how to add the elements present in the particular column

    I have created the ALV report with two columns namely vbeln and ntgew.In that i want to add the values of ntgew column.plz provide the query to do that.
    Edited by: Philip Eller on Jun 18, 2008 9:12 AM

    hi vivek,
    You posted the question in wrong forum.
    There is a forum seperately for ABAP.
    Jeyakanthan

  • Ns0 in all the element tag of the XML output file

    Hi Gurus,
      I'm performing a mapping in the Integration Builder. The target structure is based on an imported xsd file via External Definitions.
    However, in the output file, I'm getting a ns0 prefix in all the name of the elements.
    Below is an example of how the output file looks like.
    <ns0:Document xmlns:ns0="urn:iso:std:iso:20022:tech:xsd:pain.001.001.02">
    <ns0:pain.001.001.02>
    <ns0:GrpHdr>
      <ns0:MsgId>0000000000247040099700</ns0:MsgId>
      <ns0:CreDtTm>29-07-2008 16 44 06</ns0:CreDtTm>
      <ns0:Authstn />
      <ns0:BtchBookg>M</ns0:BtchBookg>
      <ns0:NbOfTxs>1</ns0:NbOfTxs>
      <ns0:Grpg>GRPD</ns0:Grpg>
    Is there any way to get rid of the ns0? Issit some namespace definition which i need to specify somewhere?
    Thanks in advance.

    Hi,
    It does not matter whether your namespace prefix is ns, ns0, xyz or whatever.
    When your mapping doesn't work there must be another reason.
    Just try and paste the payload from moni and test ur mapping.
    The namespace prefic ns0 is only a placeholder for the namespace urn:iso:std:iso:20022:tech:xsd:pain.001.001.02. This namespace can also be represented by another prefix or even by the empty prefix.
    However, it is not possible to model the target payload via a Message type in the Integration Repository.
    Message types are simply not suitable to model a document as you have posted. However, there is simple help. Just download the schema for the Message type to your local file system. Add attribute elementFormDefault="qualified" to the root tag of that schema. Upload that schema as External Definition. This External Definition will have one External Message. Define your mapping using that schema.
    Thanks
    Swarup

  • My selector panel collapses with every change or adjustment - even when I have the element choosen in the code - how do I keep this from happening?

    I first choose the relevant source in the code and then open it in the Selector panel area of the CSS Designer.  But once I attempt to make changes the Selector panel collapses and goes blank after the first change.  Then I have to reselect the appropriate source in the Sources panel, reselect in the Selectors panel and make another change. And so on...  What am I doing wrong?

    Mine doesn't show anything in the CSS Designer panel when I make a selection in Code Vew. It will only pop up the css set for a given element if I select that element in Design View first. If I drill down using the Sources and Selectors sub windows in the CSS Designer panel itself, it works the same in both. I pretty much never use it, but it doesn't do what you're explaining in my version of DWCC, so I'd guess you may have some slight corruption in the program.
    Unless, does it make a difference if you have Live View turned on or not?
    You could try clearing the program cache/personal config folder: Deleting a corrupted cache file
    Or restoring preferences if the cache doesn't do the trick: Restore preferences | Dreamweaver CS4, CS5, CS5.5, CS6http://helpx.adobe.com/dreamweaver/kb/restore-preferences-dreamweaver-cs4-cs5.html

  • Can I print a contact sheet that includes the caption for each photo using Photoshop Elements 13 for Mac. I previously used Photoshop Elements 6 for the PC and could do this.

    I just switched to a Mac and installed Photoshop Elements 13. I previously worked with many years with Photoshop Elements 6 on a PC where I used the contact sheet function -- with each's photo's caption included -- to print print a collection of 400+ member photos for a club I belong to. This worked beautifully. I assumed I'd still have this ability with my new software, but can't figure out how to do it. Help.

    Try using psd.  Some rerports indicate some confustion between the apps with TIFF.  See:
    https://discussions.apple.com/message/15921933#15921933
    I cannot confirm, nor test, since I use PS CS5, and not Elements.
    Ernie

  • Using photoshop elements 13 but the option to crop a single image is grayed out and also the option to crop a scanned image into individual pictures is grayed out - any ideas?

    The option to crop an image is always grayed out or unavailable - both for single images and when I want to crop scanned images into individual pictures. Any idea what I may be doing wrong?

    Did you try using the crop tool to see if it is working?  See the tool I am talking about.
    I suspect you are in Guided Mode rather than in Quick Mode or Expert Mode.

  • End dated the Element link, redo the changes.

    Hi,
    I have end dated element links as of 1-JAN-2012, now I have to undo the changes.remove the end date. How can I do that?
    Thanks

    Set your effective date to a couple of days before the end date, e.g. 30-DEC-2011. Then query back the link in question, then click the 'Delete' button. Say 'Yes' to the next question, then when it gives you date-track options, choose 'Delete Next Change', and choose 'Save'. Be warned, it could take some time if it's a heavily-used element!
    Clive

  • Update a table using same variable name as the column

    I am not able to update a table column using a local variable which is having same name as the table column. Example of the function is as follows:
    create or replace function trial return integer as
    column1 integer:=99;
    BEGIN
    update firsttable set column1=column1 where column2='john';
    return 0;
    END;
    Existing data in firsttable:
    COLUMN1 COLUMN2
    123 xyz
    123 abcd
    101 john

    Unfortunately table aliasing won't help... Although specifying the procedure will. Somewhat academic I know, since if you can prefix the procedure name on the variable you can just as easily rename it, unless you happen to have a bunch of other code calling it using named notation possibly.
    SQL> select ename, comm from emp where empno = 7934;
    ENAME            COMM
    MILLER
    SQL> create or replace procedure new_comm
      2   (empno in number, comm in number)
      3  is
      4  begin
      5      update emp e
      6      set e.comm = new_comm.comm
      7      where e.empno = new_comm.empno;
      8      dbms_output.put_line('updated '||sql%rowcount||' rows!');
      9  end;
    10  /
    Procedure created.
    SQL> exec new_comm (7934, 100)
    updated 1 rows!
    PL/SQL procedure successfully completed.
    SQL> select ename, comm from emp where empno = 7934;
    ENAME            COMM
    MILLER            100Message was edited by:
    3360
    Colin beat me to it

Maybe you are looking for