Using dataTemplate on standalone XML Publisher doesn't work?

Hi guys, I'm using standalone XML Publisher. I created a report based on the next Data Template:
<dataTemplate name="BasicQueryDT" description="Simple query data template" dataSourceRef="rec_hum">
     <dataQuery>
          <sqlStatement name="basicQuery">
               <![CDATA[
         select to_char(sysdate, 'dd/mm/yyyy') today
         from   dual
      ]]>
          </sqlStatement>
     </dataQuery>
     <dataStructure>
          <group name="G_Main" source="basicQuery">
               <element name="TheDate" value="today"/>
          </group>
     </dataStructure>
</dataTemplate>Then I defined a RTF template to display the results, I used the Word Template Builder for this. The template is very simple and it is just a one column table with these place holders:
<?for-each:G_Main?> <?TheDate?><?end for-each?>But when I run the report it shows nothing, just the header of the table. I know the query is executed because if I place a syntax error into the query I can see the java.sql.Exception on the XMLPSERVER console (I'm running it local by now).
Can someone help me and point out what I'm doing wrong here?
I'd really appreciate it.
Thank you all.
Mensaje editado por:
Fer Domin

Just run the XML first without a template, you get:
<BasicQueryDT>
     <LIST_G_MAIN>
     <G_MAIN>
<THEDATE>12/06/2006</THEDATE>
</G_MAIN>
</LIST_G_MAIN>
</BasicQueryDT>
Per default we always the generate Upper Case field names. So <?THEDATE?> should work in the template.
Thanks,
Klaus

Similar Messages

  • How to use if condition in XML Publisher Desk Top

    Hi..,
    How to use if condition in XML Publisher desk Top.
    Please guide me.
    Thanks,
    Suresh.

    What kind of condition you want to use?
    You can use Condition like this:
    <?xdofx:if condition then value1
    else if condition then Value2
    else Value3
    end if?>
    Please go thru XML Publisher User Guide.
    Thanks
    Ravi
    [email protected]

  • Is it possible to display a date as (DD-MON-YYYY) in excel output using excel template in xml publisher

    Is it possible to display a date as (DD-MON-YYYY) in excel output using excel template in xml publisher where date should be displayed as date only not string.

    I've tried to use hierarchy node variables, but it seems like you can't specify a attribute of the hierarchy such as level.  So with the WBS hierarchy, if you create a hierarchy node variable, you specify the WBS value to select (If I understand this correctly).  I wish I could instead specify "give me all the WBS nodes that happen to have the value of the level attribute greater or equal to 3.  If I understand Juergens post, he is saying make security access so that only certain WBS levels can be returned in the query.  I suppose we can try that, but that would then preclude getting the level 1 and 2 in the future if the authorization is global.

  • XML Changer doesn't work in Firefox works in Internet Explorer

    Hi
    Can anyone help me i have a XML Changer doesn't work in Firefox works in Internet Explorer.
    I have posted the page here http://www.endeavourcfl.co.nz/Venues.html as you can see my other flash files work fine, it is only the XML Changer (no pictures appear at all), it was working previously but for some reason it has stopped have tried on many computers, all plugins are up to date and i have FF versions 16 and 17

    Its working fin in latest version of Firefox. <br>
    Update your Firefox <br>
    http://www.mozilla.org/en-US/firefox/all.html
    <br><br><br>
    Please check if all your plugins are up-to-date. To do this, go to the [http://mozilla.com/plugincheck Mozilla Plugin Check site].
    Once you're there, the site will check if all your plugins have the latest versions.
    If you see plugins in the list that have a yellow ''Update'' button or a red ''Update now'' button, please update these immediately.
    To do so, please click each red or yellow button. Then you should see a site that allows you to download the latest version. Double-click the downloaded file to start the installation and follow the steps mentioned in the installation procedure.

  • I have purchased the new apple earpods a while ago (few months). And I was wondering if I can use my warranty cause one earpod doesn't work anymore

    I have purchased the new apple earpods a while ago (few months). And I was wondering if I can use my warranty cause one earpod doesn't work anymore.
    So please help!

    See this:  Using iPad or iPod with multiple computers, http://support.apple.com/kb/HT1202

  • My MacBook adaptor stopped working so I used my roommates. Now hers doesn't work after just one day. What happened?

    My MacBook adaptor stopped working so I used my roommates. Now hers doesn't work after just one day. What happened?

    Hello, cherilyn.  
    Thank you for visiting Apple Support Communities.  
    I understand that a couple MagSafe adapters will no longer charger a couple MacBooks.  Here are the best troubleshooting steps to go through when experiencing this issue.  
    Apple Portables: Troubleshooting MagSafe adapters
    Cheers, 
    Jason H.  

  • Issue using data link in XML Publisher

    Dear All,
    I am new to XML Publisher, for the first time trying data link concept in XML Publisher tool. The issue is very simple, I have two queries Q1(say it fetches sales_order_number, application_name ) and Q2 (say it fetches sales_order_number , error_number, error_description). And sales_order_number is passed as input using data link to Query Q2 from query Q1 and Q2 will retrive more than one row for a given sales_order_number.
    Say for a given dept_name 1001 the output will be something similiar like
    Q1:
    SO# | Appl.Name
    1001 | 'Invoice '
    Q2:
    SO# | Error.# | Error Desc
    1001 | 1512 | No Data Found
    1001 | 1513 | Invalid Entry
    1001 | 2674 | Error while inserting the record
    and the query which I have used in XML template goes like this
    <dataQuery>
    <sqlStatement name="Q1">
    <![CDATA[select sales_order_number, application_name                 
                      from T1
                     where sales_order_number = :in_sales_order_num]]>
    </sqlStatement>
    <sqlStatement name="LINES">
    <![CDATA[
    select sales_order_number , error_number, error_description
    from T2]]>
    </sqlStatement>
    <link name="Dummy_LINK" parentQuery="Q1" parentColumn="sales_order_number" childQuery="Q2" childColumn="sales_order_number" condition="="/>
    </dataQuery>
    <daraStructure/>
    And the grouping is as follows
    <group name="G_Q1" source="Q1">     
         <element name="sales_order_number" value="sales_order_number"/>
         <element name="application_name" value="application_name"/>     
    <group name="G_Q2" source="Q2">
         <element name="sales_order_number" value="sales_order_number"/>
         <element name="error_number" value="error_number"/>
         <element name="error_description" value="error_description"/>     
    </group>
    </group>
    And in the RTF template I have properly used <?for-each:G_Q1?> <?for-each:G_Q2?>- --
    <?end for-each?><?end for-each?>
    Ideally the header (Q1) should have one row and the lines (Q2) should have 3 rows. But the issue here is even Q1 produces 3 rows.
    If in case Q2 has 4 records, then Q1 also plots 4 records in the report output. Hope I am explaining the issue correctly. Any help to resolve the issue would be a great. Thanks in advance.
    Regards,
    Antony.

    try like this
    <?if: (TYPE='A') or (TYPE= 'B')?><TABLE STRUCTURE><?end if?>
    or
    <?if:contains('A~B', TYPE )?><TABLE STRUCTURE> <?end if?>

  • ITSmobile standalone - F8 logoff doesn't work

    Hi,
    in our ITSmobile standalone scenario the logoff doesn't work.
    It is also not working in the ITS webgui transactions using the standard logoff button.
    It is a ITS 6.20 standalone SP64, with a 4.70 SP65.
    Many things regarding logoff only work for integrated ITS but not for our standalone...
    Hope someone can help.
    Aksel

    Hello Aksel,
    There is no session management in the ITS Mobile for the Standalone ITS so the
    ~DISCONNECTONCLOSE and ~SINGLETRANSACTION will not have any effect here.
    The best thing to do is to set the ~timeout value lower.  If you
    currently have it set to 30 than it is 30 minutes.
    If you think a user should complete this ITS Mobile service
    in 5 minutes than please set the ~timeout for this service to 5 for
    5 minutes.  This will remove the user's session in SM04 after 5 minutes
    of no activity.
    Regards,
    Oisin

  • How do you save data into an excel file while myRIO is acquiring data? I tried saving it using "Write to file" but it doesn't work for some reason.

    I am acquiring cosine wave and a pulse wave as input and I want to store their peak to peak values into an excel file. "Write to File" is not working for it. Is there any other vi which can be used for data logging?
    Thank you for your help.

    Hi Ssheoran,
    Can you provide more detail when you say that the Write to File VI doesn't work? Is there an error given? Or can you just not find the file on your computer? Keep in mind using this file in a Real-Time VI on the myRIO will save files on the myRIO. You will then have to transfer to your PC. Please view the following video as a guide for saving files and transferring them to your computer: (http://www.youtube.com/watch?v=BuREWnD6Eno). Hope this helps.
    Best Regards,
    Roel F.
    Applications Engineer
    National Instruments

  • Question about use of HypFindMember in HFM (It doesn´t work)

    Hello to all. I posted this message in Financial Consolidation forum, but there suggested me to better post this message in the Essbase forum. Hope someone can help me with this issue. I'm just a beginner in this matter. I'm trying the HypFindMember for HFM.
    I'm doing some tests with the SmartView's VBA Functions. In particular I have some problems with one of them to obtain a result... this is the HypFindMember function. I tried the following code:
    X = HypFindMember(Sheet1, "1000000", "Default", dimName, aliasName, genName, levelName)
    but the result for "X" is always 10003 (should be zero). The previous step was HypConnect and was successful. Do you know if something in the middle should be executed for this function? The manual does not specifies a previous requirement to execute the function, besides the connection to the server and the MemberName ("1000000").
    In the SmartView manual is specified that HypFindMember works with Essbase and Financial Management. I'm using HFM 9.3.1
    In case that the HypFindMember definetly doesn´t work in HFM, do you know other way to validate if a member exists in a HFM application? (using SmartView)
    Thank you in advance.
    Edited by: Ricardo H on Apr 13, 2009 8:32 AM
    Edited by: Ricardo H on Apr 13, 2009 9:20 AM

    Hi,
    one year later, but I have exactly the same problem.
    Could someone explain how I can use that function with HFM ?
    High positive number should be a server connection problem,
    but other functions work.
    Hope u can help me

  • How can I get Firefox version 5? I use an application for banking that doesn't work with version 6 yet.

    I am using an application for banking with Bank of America that doesn't work with Firefox 6 so I need to install Firefox 5 until Bank of America can update their app to work with Firefox 6. Can you tell me how to find the download for Firefox 5?
    Thank you

    I have an old iPhoto version and it still works with Mavericks, the version before yours, that is puzzling.

  • Copy XML data out of event.result to a XML var doesn't work

    So I'm pretty new to Flex, but learning with the help of a few books. I'm totally stumped here though, as I"m copying an example right out of The Flex 3 Bible and its not working the way I thin it should. My code is below. Here is my problem. I'm reading in an XML from a php script. Works fine. In Debug I can tell the event.result is getting the XML as it should. In the resultHandler I'm trying to copy it to a variable I assigned called myCollection. This is just not occuring for some reason. If I look at the variable in debug, its null. following that i"m trying to take innertags and get them out (myCollection.trumpet.settings). Of course this doesn't work because myCollection is populated with nothing. This came right out of an example on page 654... I've been bangging my head against the wall for hours. any help on how to copy this data out of event.result would be great.
    <?xml version="1.0" encoding="utf-8"?>
    <mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" layout="absolute">
    <mx:Script>
      <![CDATA[
       import mx.rpc.events.ResultEvent;
       import mx.collections.ArrayCollection;
       [Bindable]
       private var myCollection:XML;
       private var xReturn:Object;
       private function resultHandler(event:ResultEvent):void
        myCollection = event.result as XML;
           xReturn = myCollection.trumpet.setting;
       // textbox.text = myCollection;
      ]]>
    </mx:Script>
        <mx:HTTPService id="myService" url="http://10.101.50.60/get_config.php"
            method="POST" showBusyCursor="true" result="resultHandler(event)"/>
        <mx:VBox left="25" top="25">
            <mx:Button label="Get Data" click="myService.send()"/>
      <mx:Label id="textbox">
      </mx:Label>      
    <!--       <mx:DataGrid id="myGrid" dataProvider="{myCollection}"/>-->
        </mx:VBox>
    </mx:Application>

    Try setting resultFormat="e4x" in the HTTPService.

  • Bought a Logitech keyboard to. Use with my iPad 2 but doesn't work. What am I doing wrong?

    Bought a Logitech keyboard for iPad 2... First of all USB cord doesn't fit and had to order adaptor to connect them but still doesn't work...keyboard came with no directions? How do I make this work?

    You're using the Camera Connection Kit. This is designed to connect cameras to your iPad in order to import photos you've taken. However, the Camera Connection Kit, although that was not what it was designed for, has been known to sometimes accept certain simple USB keyboards and even USB headphones. Obviously, your Logitech is of a better quality keyboard and does not work with the CCK, because it wasn't designed to accept anything other than a camera.
    Most Bluetooth keyboards, if not all, should work with your iPad. There is the official Apple Keyboard which looks and works great, and connects to an iPad or a Mac using Bluetooth. However, it is a bit on the expensive side ($70). I'm sure there are good alternatives if you need.

  • Instant client 10.2.0.3 used with ms sql linked server doesn't work

    Hi,
    instant client version 10.2.0.3 doesn't work as microsoft sql linked server (both 2000, 2005) while 10.2.0.1 does. (tested by overwriting files in instant client directory - basic instalation, then restart mssql services) - the message is, that the oracle client is not installed when running sql (registration of linked server is ok).
    Is it a known issue or is there any workaround?
    (Windows XP, 2003, MS SQL 2005, MS SQL 2000, Oracle 9.2.0.6)
    Thanks,
    Pavel

    I installed oracle-instantclient-basic-10.2.0.3-1.i386.rpm on a redhat box to
    connect oracle database server 9.2.0.8.0 install on win box.Is there any other Oracle software installed on the RedHat machine?
    In which directory did you install Instant Client?
    Can you login with sqlplus?
    On the database server, I defined parameters like this :
    NLS_DATE_FORMAT='YYYY-MM-DD HH24:MI:SS'
    NLS_NUMERIC_CHARACTERS='. 'This will have no effect on your problem - these are client environment variables.
    Before starting apache (lampp) I set Oracle environement like this :
    export NLS_DATE_FORMAT='YYYY-MM-DD HH24:MI:SS'
    export NLS_NUMERIC_CHARACTERS='. '
    My application worked very fine.
    BUT a few days ago (1 week), in my application, the date format display wrong,
    I have this format : DD/MON/YYYY even with
    export NLS_DATE_FORMAT='YYYY-MM-DD HH24:MI:SS'
    before starting apache.The ancient question: Do you remember what you changed before it stopped working?
    So I stop my apache and try set Oracle environment like this :
    export ORACLE_HOME=/usr/lib/oracle/10.2.0.3/clientAs has been said, do away with that.
    export PATH=$ORACLE_HOME/bin:$PATHYou don't need that either.
    Except is might be nice to have the directory that contains sqlplus in PATH.
    export LD_LIBRARY_PATH=$ORACLE_HOME/lib:$LD_LIBRARY_PATHNow that surprises me.
    Normally, instant client shared libraries are not installed in a subdirectory.
    Does this "lib" directory exist?
    You should add the directory containing the *.so files to LD_LIBRARY_PATH.
    When I restart apache and test my application, an error php message occurs :
    Ocisessionbegin error while trying TO retrieve text FOR error ora-12705
    I check my oracle_home, I don't think I make a mistake?It seems that Oracle cannot find the instant client shared library libociei.so.
    This library must be found in LD_LIBRARY_PATH.
    In this context it would be interesting to know (as I asked above) if any other Oracle products are installed on this machine.
    Yours,
    Laurenz Albe

  • Using GMail as the mail app doesn't work

    I have Firefox 11.0, OS X 10.7.3 Lion. In Firefox, I go to Preferences / Applications, and set the default MailTo app handler as GMail. I restarted Firefox, when I click on a mailto link nothing happens (just the click highlight). I installed Google Notifier, and when I launch the Mail app, I made sure the default mail program is Google Notifier. Still doesn't work.

    Interestingly enough, clicking a hyperlink from Safari works great - launches Firefox tab with a new message composed.

Maybe you are looking for

  • Locating source file NAME from the executable file?

    Hi all,  I wrote a vi a couple of year ago (call it file.vi), and created an executable out of it using the Application Builder (call it newfile.exe). I know I renamed the file when I created the executable and now I cannot remember what I called the

  • Iphoto transitions exporting to Quicktime

    Working in iphoto 08. "Fit slideshow to music" simply does not work, so I manually adjusted dissolves and display length to have the music and images end at roughly the same time. Exporting to Quicktime seems to ignore all of my transitions and the p

  • Sender and receiver partner number,

    Hi All, In the control section of an idoc, there are two fields - sender and receiver partner number. If my application sends an inbound idoc to Sap R/3, the two fields are not necessary? I have noticed the logical system has been assigned to the cli

  • CFGrid error when input too long

    Hello, We have a grid that is bound to fields in search criteria form to filter the grid results.  The actual screen has 10 search fields, but the basic code looks like this: <cfgrid name="gridReports" format="html" bindOnLoad="false" selectOnLoad="t

  • 9.3.1.3 Installation

    Hi Guys, I downloaded a bunch of the 9.3.1.3 packages but noticed that my extraction order must be wrong because when running setup.exe there was only provider services: 1_Shared_Services_9_3_1_V11229-01.zip 2_Essbase_Server_9_3_1_3_V14762-01.zip 3_E