Use of DateFormat function influences headers

Can someone confirm/deny this, I must be going crazy....
In the attached code, I set the content type to text/xml. But
when I visit the page in a browser it is resturned as text/html..
The header looks like this:
quote:
HTTP/1.1 200 OK
Connection: close
Date: Mon, 05 Feb 2007 17:40:06 GMT
Server: Microsoft-IIS/6.0
Expires: Mon, 05 Feb 2007 17:40:06 GMT
Content-Language: en-AU
Content-Type: text/html; charset=UTF-8
Cache-Control: no-cache
When I remove the call to the dateformat function, or if I
change dateformat into lsdateformat, everything works properly:
quote:
HTTP/1.1 200 OK
Connection: close
Date: Mon, 05 Feb 2007 17:41:30 GMT
Server: Microsoft-IIS/6.0
Expires: Mon, 05 Feb 2007 17:41:30 GMT
Content-Type: text/xml; charset=utf-8
Cache-Control: no-cache
What am I missing here? Is this a bug or a "feaure"?
Environment: Coldfusion MX 7,0,2,142559, JVM 1.4.2_09-b05,
IIS 6, Windows 2003 Server Standard SP1.
Code attached:

Thanks all for confirming and for the suggestions. Bug report
has been raised, with a reference to this forum thread.
Putting <cfcontent type="text/xml; charset=utf-8"> in
front of each area in my original file where xml output is
generated works (without the charset specified it changes the
encoding unfortunately) so for now I will have to stick those in.
@Michael: if you can point out where I have used a
processingdirective in the wrong place in my sample code, please
speak up
I do hope Macromedia/Adobe will fix this bug, because someone
is bound to forget to put that extra cfcontent tag in, or use
dateformat in the wrong place.
- Rutger

Similar Messages

  • Problem using SUM standard function  during Field Mapping

    Hi Experts ,
    I am trying to sum all LIFMG 's in in the lineitems of a particular
    header and map this result to Lifmg of the header.(Idoc with multiple headers and line item).I am using SUM standard function.
    Rough Source structure.
    Header1
          vbeln
    ....Lineitem1
          vbeln
          posnr
    ......LIFMG
    ....Lineitem2
            vbeln
            posnr
    ......LIFMG
    Header2
         vbeln
    ....Lineitem1
            vbeln
           posnr
    ......LIFMG
    ....Lineitem2
            vbeln
           posnr
    ......LIFMG
    I am able to find the SUM ...but in the target structure's Header field  I am getting
    repeated value of the corresponding sum in each header ...i.e.
    Header1
    LFIMG-- 100
    LFIMG    100
    Header2
    LFIMG-- 102
    LFIMG    102
    How to get a single value for each .
    Regards,
    Deepak

    Solved Myself ...
    Placed  sum after  if without else ...
    placing it before was causing ...those values to be replicated.

  • Cannot use php mail() function in leopard's localhost

    <?php
    $to = "[email protected]";
    $subject = "test subject";
    $message = "test message";
    $from = "[email protected]";
    $headers = "From: $from";
    mail($to, $subject, $message, $headers)
    ?>
    This code doesn't work on my localhost but when I uploaded it to my sever it run normaly. Then how can I use the mail function on my localhost to test it before I need to publish it to my server

    Have you started the mail server on your machine?
    By default PHP will try to use the local mail server to send the message. If you haven't started Postfix the message will go nowhere.

  • Problem  inserting date using the date function

    Hi there,
    I am getting this error The value
    "#CREATEODBCDATE(StartDate)#" could not be converted to a date. I
    used different methods including the Now() function but getting
    always the converted to a date error. The database fields are set
    to datetime format with length of 8 bits. The database is sql
    server database and the date format I use is
    =dateformat(now(),"mm-dd-yyyy")&timeformat(now(),"hh:mm:ss ".
    The actual time format the datbase us is the same format except
    there is AM or PM after the time, is this one of the reasons?
    Thanks for your help.

    In my SQL Server inserts I insert a date like the the NOW()
    function
    as
    insert into table (col1, date1) values ('texthere', GETDATE()
    your issue may be that the insert, update, or delete needs to
    be an SQL
    command, not
    a coldfusion one Coldfusion's now() --> SQL Server's
    getdate()
    For Updates or deletes, where I want to match a date, I let
    CF do a bit of
    the work inside the
    sql statement....
    update table set datefield = <cfqueryparam
    cfsqltype="cf_sql_date"
    value='#meetdate#'>
    (where '#meetdate#' is the form date or date that I want to
    update. CF then
    verifies it is a proper date structure before attemptint to
    save to the SQL
    SErver datetime field :)
    HTH,
    DixieGAl
    (although I
    "hannash" <[email protected]> wrote in message
    news:e98p4j$brc$[email protected]..
    | Hi there,
    |
    | I am getting this error The value
    "#CREATEODBCDATE(StartDate)#" could not
    be
    | converted to a date. I used different methods including the
    Now()
    function but
    | getting always the converted to a date error. The database
    fields are set
    to
    | datetime format with length of 8 bits. The database is sql
    server database
    and
    | the date format I use is
    |
    =dateformat(now(),"mm-dd-yyyy")&timeformat(now(),"hh:mm:ss ".
    The actual
    time
    | format the datbase us is the same format except there is AM
    or PM after
    the
    | time, is this one of the reasons?
    |
    | Thanks for your help.
    |

  • How to Rearrange components using Drag Drop functionality

    Hi,
    Is it possible to re-arrange the components inside the form using drag drop functionality in RCF?
    There are 3/4 section headers in my screen, user can re-arrange them.
    But as per the RCF document it says, "Drag Drop functionality allows users to drag the value of one component and drop it on to another". It dosent say any thing about component drag-drop.

    Hi,
    there is a componentDragSource element that you use for this. However, persisting the change of location is not handled automatically. I didn't try this, but I assume that using the component drag option gives you access to the UI component itself so you can nest it in another container
    Frank
    Ps.: the drag event always givey you access to the component. This componentDragSource however shows the component when dragging, which is a slightly better indicator if you plan to re-arrange items

  • Difference between using source track indicators & track headers?

    So far I read the adobe help &amp; premiere pro classroom in a book about targeting tracks with source track indicators &amp; track headers. But I don't understand the difference between them, they sound like they do the same thing. Just looking for a simpler explanation, thanks.

    They serve different but interrelated functions.
    Track targeting affects which tracks in the sequence are 'used' for various functions, like Insert and Overlay, Copy/Paste, Next Edit shortcuts, etc.
    Source routing has a more limited function in that it defines which tracks Insert and Overlay write to, but must be used in combination with track targeting.
    For example to Insert video onto V2, you must both route the source to V2 as well as target V2.  If you do only one, it doesn't work.
    Things have changed a bit and simplified with the new version about to be released.

  • Using iPad mail program I have a draft of an email. I attempted to "cancel" and "delete draft" but it is still on my screen even after shutting down and restarting. How do I exit so that I can use other mail functions?

    Using iPad mail program I have a draft of an email. I have attempted to "cancel" this and "delete draft" but the email stays on my screen. How can I exit this so that I can use other email functions?

    Try closing the Mail app completely and see if it works properly when you re-open the app : from the home screen (i.e. not with the Mail app 'open' on-screen) double-click the home button to bring up the taskbar, then press and hold any of the apps on the taskbar for a couple of seconds or so until they start shaking, then press the '-' in the top left of the Mail app to close it, and touch any part of the screen above the taskbar so as to stop the shaking and close the taskbar.
    If that doesn't work also do a reset : press and hold both the sleep and home buttons for about 10 to 15 seconds (ignore the red slider), after which the Apple logo should appear - you won't lose any content, it's the iPad equivalent of a reboot.

  • How to use standard java functions in a XSLT mapping

    Hi All,
    I wish to use a standard java function in a XSLT mapping, The issue is either i am giving incorrect namespace which is used to invoke the function or the signature of the function call is incorrect, I have read all the links in http://help.sap.com, and i know <b> one can enhance a XSLT mapping by writing one's own java code and thereby using java standard functions </b>, but the requirement is such that i need to try and use java standard function in XSLT mapping itself.
    Please refer to the sample code below:
    <?xml version="1.0" encoding="UTF-8"?>
      <xsl:stylesheet version="1.0"  
        xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
        xmlns:javamap="java:java.lang.String">
    <xsl:output method="text"/>
    <xsl:template match="/">
    <xsl:variable name="input" select="Title">
    <xsl:if test="function-available('javamap:toUpperCase')">
    <xsl:value-of select="javamap:toUpperCase($input)"/>
    </xsl:if>
    Author:<xsl:value-of select="Author"/>
    </xsl:template>
    </xsl:stylesheet>
    error encountered is: Illegal number or type of arguments.
    please reply if you have tried a similar scenario in SAP XI.
    Thanks & Regards,
    Varun

    Hi Varun,
        First of all i want to tell you that as per the documentation you can only call the static function inside xslt mapping. Your toUpperCase method is a non static function.
    What i am getting is that you have an element called Author and you want to convert its value into uppercase.
    you can write your own user defined function which is static.
    Signature of your java method :
    public static string toUpperCase(String Author,Map inputparam)
    try this xslt map.
    <?xml version="1.0" encoding="UTF-8"?>
    <xsl:stylesheet version="2.0"
    xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
    xmlns:javamap="java:JavaProgram">
         <xsl:output method="xml" version="1.0" encoding="UTF-8" indent="yes"/>
         <xsl:param name="Author">
                 <xsl:value-of select="//Author_name"/>
         </xsl:param>
         <xsl:param name="inputparam" />
         <xsl:template match="/">
         <Author>
                 <xsl:if test="function-available('javamap:toUpperCase')">
                  <xsl:value-of select="javamap:toUpperCase($Author,$inputparam)"/>
                 </xsl:if>
         </Author>
         </xsl:template>
    </xsl:stylesheet>
    Hope this will work.
    Thanks and Regards
    Vishal Kumar

  • Derive found flag in SQL with where clause using TABLE(CAST function

    Dear All,
    Stored procedure listEmployees
    ==========================
    CREATE OR REPLACE TYPE STRING_ARRAY AS VARRAY(8000) OF VARCHAR2(15);
    empIdList STRING_ARRAY
    countriesList STRING_ARRAY
    SELECT EMP_ID, EMP_COUNTRY, EMP_NAME, FOUND_FLAG_
    FROM EMPLOYEE WHERE
    EMP_ID IN
    (SELECT * FROM TABLE(CAST(empIdList AS STRING_ARRAY))
    AND EMP_COUNTRY IN
    (SELECT * FROM TABLE(CAST(countriesList AS STRING_ARRAY))
    =================
    I have a stored procedure which lists the employees using above simple query.
    Here I am using table CAST function to find the list of employees in one go
    instead of looping through each and every employee
    Everything fine until requirements forced me to get the FOUND_FLAG as well.
    Now I wanted derive the FOUND_FLAG by using rownum, rowid, decode functions
    but I was not successful
    Can you please suggest if there is any intelligent way to say weather the
    row is found for given parameters in the where clause?
    If not I may have to loop through each set of empIdList, countriesList
    and find the values individually just to set a flag. In this approach I can’t use
    the TABLE CAST function which is efficient I suppose.
    Note that query STRING_ARRAY is an VARRAY. It is very big in size and this procedure
    suppose to handle large sets of data.
    Thanks In advance
    Regards
    Charan
    Edited by: kmcharan on 03-Dec-2009 09:55
    Edited by: kmcharan on 03-Dec-2009 09:55

    If your query returns results, you have found them... so your "FOUND" flag might be a constant,...

  • How to use the Table Function defined  in package in OWB?

    Hi,
    I defined a table function in a package. I am trying to use that in owb using Table function operator. But I came to know that, owb R1 supports only standalone table functions.
    Is there any other way to use the table function defined in a package. As like we create synonyms for functions, is there any other way to do this.
    I tryed to create synonyms, it is created. But it is showing compilation error. Finally I found that, we can't create synonyms for functions which are defined in packages.
    Any one can explain it, how to resolve this problem.
    Thank you,
    Regards
    Gowtham Sen.

    Hi Marcos,
    Thank you for reply.
    OWB R1 supports stand alone table functions. Here what I mean is, the table fucntion which is not inculded in any package is a stand alone table function.
    for example say sample_tbl_fn is a table function. It is defined as a function.It is a stand alone function. We call this fucntion as "samp_tbl_fn()";
    For exampe say sample_pkg is a package. say a function is defined in a package.
    then we call that function as sample_pkg.functionname(); This is not a stand alone function.
    I hope you understand it.
    owb supports stand alone functions.
    Here I would like to know, is there any other way to use the functions which are defined in package. While I am trying to use those functions (which are defined in package -- giving the name as packagename.functionname) it is throwing an error "Invalid object name."
    Here I would like know, is there any other way to use the table functions which are defined in a package.
    Thank you,
    Regards,
    Gowtham Sen.

  • How do I use the print function to output a numeric variable with a fixed amount of leading zeroes

    I need to create an output from a T-SQL query that picks a numeric variable and uses the print function to output with leading zeroes if it is less than three characters long when converted to string.  For example if the variable is 12 the output should
    be 012 and if the variable is 3 the output should be 003.
    Presently the syntax I am using is PRINT STR(@CLUSTER,3) .  But if @CLUSTER which is numeric is less than three characters I get spaces in front.
    Please help!

    >> I need to create an output from a T-SQL query .. <<
    NO! NO! In RDBMS, we have a presentation layer that handles displays. We do not ever do it in the database. This is fundamental. But more than that, the purpose of PRINT is for debugging in T-SQL and never for output.
    You are still writing 1960's COBOL or BASIC, but you want to to it in SQL.  You probably picked the wrong data type (a numeric that should be a string) and are trying to repair your design error.  
    --CELKO-- Books in Celko Series for Morgan-Kaufmann Publishing: Analytics and OLAP in SQL / Data and Databases: Concepts in Practice Data / Measurements and Standards in SQL SQL for Smarties / SQL Programming Style / SQL Puzzles and Answers / Thinking
    in Sets / Trees and Hierarchies in SQL

  • TS1398 I have an iPad mini, because of my work network firewalls I am not able to use the airprint function to print. I was told you can direct connect to a printer. I am not sure how as I have not seen any cables for a lightning connection to a printer c

    I have an iPad mini, I am connected to my work wireless connection. My printer also is on the same wireless network, however I am not able to print to my airprint enabled printer through this wireless connection. Is there a way to direct connect to the printer via a cable ?
    I am missing something here on the connection. I am thinking possibly a firewall here at work will not allow me to use the airprint function. Help ?

    There is no support for wired printing.
    It is probably a firewall issue, possibly where all inbound communications are blocked. Since you're at work, I'd call your work IT department and find out from them what you can/can't do.

  • Is there any way to use copy from function in cProject Project creation.

    Hi,
    Kinldy suggest if any one have idea to use copy from function in cProject while creating Project in cProject.
    We have copy from function in our material creation and BOM, Is there any way to copy the old project and we can take the same for new project as a Paste entire structure.
    Please share with me if you have any ideas for the same.
    Thanls in advance for your help.
    Thanks & Regards.
    Raj

    Hi,
    please see
    [http://help.sap.com/saphelp_ppm50/helpdata/en/4a/6431a343946ba2e10000000a421937/frameset.htm|http://help.sap.com/saphelp_ppm50/helpdata/en/4a/6431a343946ba2e10000000a421937/frameset.htm]
    there the third case ("Based on an operational project ...")
    Kind regards,
       Florian

  • How can I use Seeburger java functions on SAP XI's user defined functions?

    Hi All,
    As my title implies; how can I use Seeburger java functions on SAP XI's user defined functions?  I've tried searching over the net in tutorials regarding this topic but I failed to find one; can someone provide me information regarding my question? thanks very much.
    best regards,
    Mike

    Hi Mike !
    You should check your documentation about which java classes you need to reference in the "import" section of your UDF. And also deploy the java classes into the java stack or include them as a imported archive in integration repository...it should be stated in the seeburger documentation.
    What kind of functions are you trying to use?
    Regards,
    Matias.

  • Does anyone know how to use the bcc functionality for apple mail while accessing it on the cloud from my PC?

    I am currently away from my MAC and want to send an email through apple mail with the bcc functionality.  I am using the cloud to get to my mail, however, I can't figure out how to use the BCC functionality, please help.  Thanks!

    Open your mail,
    lower left corner click on settings,
    go to composing and check BCC, save and your done

Maybe you are looking for

  • My 3d options are all greyed out in CC

    not sure why its happening, i dont have it in CMYK OR greyscale i have creative cloud and all updated i have recently installed a new graphics card and updated the graphics driver: Geforce GT 640 sys info atatched: Adobe Photoshop Version: 14.2.1 (14

  • Blank white background (no underlying grid) so i can remove grey lines

    i am sure this has come up before but i wasn't sure how to search for an answer. when i leave my spreadsheet alone for awhile it seems like the spreadsheet will show with a blank white background - no grey lines showing the underlying grid - and this

  • How do I get my iTunes Store to work on my iPad?

    How do I get my iTunes Store to work on my iPad?

  • Reversed documents are not cleared

    Hello there I am dealing with support to customer who has following issue (among others..): - the settings are made so that standard SAP reversing procedure is messed up! Namely, when the user reverse FI document the SAP creates new one (reversal doc

  • No Oracle Advanced PL/SQL Developer OCP in June UK Training Leaflet?

    Oracle have out of the kindness of it's heart :x (and desire to avail of bigdelboy's gbp ;\ ) sent bigdelboy an Oracle (UK/Eire) Training Courses June-October 2009. This training course leaflet also references certifications. Now interestingly there