Translate code from PHP to Coldfusion (SHA1 Encryption)

Hi everyone,
I have this bit of code in PHP which I want to do in Coldfusion but I have no idea. Can anyone help me out with this one?
Will the IC_Checksum value be the same in Coldfusion as it would be in PHP?
PHP Code:
$IC_CheckSum = SHA1($Encryptioncode . "|" . IC_Currency . "|" . IC_PaymentMethod . "|" . IC_Issuer);
Coldfsuion Code:
Thanks!

I see, so you want to hash a value? Have you tried the ambiguously-named hash() function?
Adobe Docs
And yes, two identical strings hashed in an identical algorithm should be identical regardless of the technology that did the work.

Similar Messages

  • Again Issue with installing php 5.3.0 and accessing ABAP code from php

    I have the following initial set up:
    1.Downloaded u201CApache Friends XAMPP (Basis Package) version 1.7.2u201D.
    With this I got :
    Apache 2.2.12 (IPV6 enabled)
    MySQL 5.1.37 (Community Server) with PBXT engine 1.0.08-rc
    PHP 5.3.0 + PEAR (PEAR, Mail_Mime, MDB2, Zend)
    2.Installed the above XAMPP package.
    3.created a local test.php file and placed in htdocs folder
    3.Started the Apache server and executed the test.php file from u201Chttp://localhost/test.phpu201D. it runs absolutely fine. I can see the output in my browser. (just did an "Hello world" coding)
    4.Now I downloaded the SAPRFC (saprfc-1.4.1.All.zip)  package.
    5.In this, I got u201Cphp_saprfc_530.dllu201D which I added to my extension file where all the other dll files are present.
    6.Then I opened the u201Cphp.iniu201D file and added the above saprfc dll file to the extension directory   as u201Cextension=php_saprfc_530.dllu201D.
    7.Now I installed u201Cvcredist_x86.exeu201D.
    8.Finally I started the apache server afresh. I get the following message and the apache server is started.
    "PHP StartUp: saprfc: Unable to initialize module
      Module compiled with build ID=API20090626,TS
      PHP compiled with build ID=API20090626,TS,VC6
      These options need to match"
    i have SAPGUI installed on my PC.
    details of SAPGUI is
    release: final release 710
    file version: 7100.4.15.1047
    build: 1108370
    patch level: 15
    hotfix : 1
    Somebody please help me solve this.
    Thanks in advance,
    Pramod
    Edited by: PramodShankar B on Dec 11, 2009 11:53 AM
    Edited by: PramodShankar B on Dec 11, 2009 11:56 AM

    Pramod:
    I'm not sure which version do you need...but I would recommend you some trial an error...download the package 1.4 (All zip versions and try to find the one that suits you)...that's what I did for my PHP 5.2.4 because both PHP and the SAPRfc must have been compiled with exact the same ID.
    Greetings,
    Blag.

  • How to get data from php to java via xmlrpc

    I have been trying to get data from php through apache xmlrpc to java.
    I do get an value as result. The result is "Array". How how do i convert the XMLRPC Object "Array" to Java Object?
    Inside the XMLRPC "Array" Object there is object too of type Array from php.
    See code for java here
    Object result = client.execute( "blogger.getCategories", params1 );
    Code from php here
    function getCategories($appkey, $username, $password)
         global $xmlrpcerruser, $xmlrpcI4, $xmlrpcInt, $xmlrpcBoolean, $xmlrpcDouble, $xmlrpcString, $xmlrpcDateTime, $xmlrpcBase64, $xmlrpcArray, $xmlrpcStruct, $xmlrpcValue;
         $structArray = array();
         $structArray[] = new xmlrpcval(array("one" => "test"));
         return new xmlrpcresp(new xmlrpcval( $structArray , $xmlrpcArray));     
    I do get Standard String and Integer from php to Java through XMLRPC.
    Can someone help me.
    Edited by: Electron32 on Aug 13, 2010 9:44 AM

    That is what is so strange. I return an 'array' through xmlrpcval() and in Java I tried to cast it to ArrayList, Vector,String[] but get an error
    Object[] result = (Object[]) client.execute( "blogger.getCategories", params1 );
    String[] array = (String[]) result;
    Exception in thread "main" java.lang.ClassCastException: [Ljava.lang.Object; cannot be cast to [Ljava.lang.String;
            at com.dirdalit.window.Main.main(Main.java:41)
    Edited by: Electron32 on Aug 13, 2010 12:25 PM                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       

  • Convert from php to java

    Hello all,
    Can someone convert this code from php to java.
    <?php
    function bitbybit_crc32($str,$first_call=false){
    //reflection in 32 bits of crc32 polynomial 0x04C11DB7
    $poly_reflected=0xEDB88320;
    //=0xFFFFFFFF; //keep track of register value after each call
    static $reg=0xFFFFFFFF;
    //initialize register on first call
    if($first_call) $reg=0xFFFFFFFF;
    $n=strlen($str);
    $zeros=$n<4 ? $n : 4;
    //xor first $zeros=min(4,strlen($str)) bytes into the register
    for($i=0;$i<$zeros;$i++)
    $reg^=ord($str{$i})<<$i*8;
    //now for the rest of the string
    for($i=4;$i<$n;$i++){
    $next_char=ord($str{$i});
    for($j=0;$j<8;$j++)
    $reg=(($reg>>1&0x7FFFFFFF)|($next_char>>$j&1)<<0x1F)
    ^($reg&1)*$poly_reflected;
    //put in enough zeros at the end
    for($i=0;$i<$zeros*8;$i++)
    $reg=($reg>>1&0x7FFFFFFF)^($reg&1)*$poly_reflected;
    //xor the register with 0xFFFFFFFF
    return ~$reg;
    $str="123456789"; //whatever
    $blocksize=4; //whatever
    for($i=0;$i<strlen($str);$i+=$blocksize) $crc=bitbybit_crc32(substr($str,$i,$blocksize),!$i);
    ?>

    I am looking someone to help me w/o $.Go away.
    This reminds me of this one time. I had written this dice roller in PHP (still in use, actually) and someone who was using it thought it was nice and wanted a version of it for himself. Only he was running a different game system, some home brewn thing, so it had to be different in certain respects.
    First he just asked me if he could have the dice roller I wrote. I thought about it but eventually agreed. It wasn't much as code. Then he asked me to modify it for him, explaining that he could not do it himself. For some reason I was feeling generous that day, so I did not ask him for his physical address and send him a mail bomb. Instead I said that I would modify it for him if he explained what modifications he needed.
    Then he told me to go read his game system on his web site and figure it out for myself. I must have been in a saintly attitude that day because I actually went and looked at his site - which predictably, was totally disorganized and incomprehensible. I pointed this out and he told me that I would have to read through everything once or twice, and also, it wasn't done yet so I should check back periodically.
    This is a person who I had never met in my life, even online, and with whom my first contact was his request for my dice roller.
    Where do these people COME from?
    Drake

  • Please help 'Translate' These codes from AS2 to AS3 for me

    Hi, i need help 'translating' these codes from Action Script 2 to Action Script 3. Please Do it for me:
    toc    loadText = new LoadVars();
        loadText.load("Curie.txt");
        loadText.onLoad = function(success) {
            if (success) {
                // trace(success);
                Curie.html = true;
                Curie.htmlText = this.Curie;
    Please translate it for me, i need it ASAP thanks
    Kenneth

    Thank you for helping me
    Kenneth
    Date: Thu, 15 Oct 2009 05:49:14 -0600
    From: [email protected]
    To: [email protected]
    Subject: Please help 'Translate' These codes from AS2 to AS3 for me
    Take a look at that:
    http://livedocs.adobe.com/flash/9.0/ActionScriptLangRefV3/migration.html
    There is a LoadVars section on that.
    There is also a tutorial here:
    http://www.republicofcode.com/tutorials/flash/as3externaltext/
    Cheers,
    CaioToOn!
    >

  • Convert Data encryption code from VB to Java.

    Can anyone help me in converting the following code from VB to Java?
    'Purpose: This function decrypts the password of the user in the database so that
    ' it can be matched accurately with the inputted password of the user in
    ' the Log-In form (Case-sensitive)
    'Function to decrypt password
    Public Function Decrypt(ByVal Encrypted As String)
    On Error GoTo ErrorRoutine
    For intEncryptDecrypt = 1 To Len(Encrypted)
    strLetter = Mid(Encrypted, intEncryptDecrypt, 1)
    Mid(Encrypted, intEncryptDecrypt, 1) = Chr(Asc(strLetter) - 1)
    Next
    Decrypt = Encrypted
    Exit Function
    ErrorRoutine:
    Err.Raise Err.Number, , Err.Description
    Exit Function
    End Function

    hi,
    try this
    public String decrypt(String a){
        for(int i=0;i<a.length();i++){
          char c=a.charAt(i);
          c--;
          a=a.substring(0,i)+c+a.substring(i+1);
      return a;
    }regards

  • Select bulk from PHP code

    Hi,
    Is it possible to do a kind of select bulk from PHP ?
    In my case, when I retrieve lot of data from a table and display it, I use a basic select but I can see the page is loading gradually.
    I think if I am using the equivalent of a select bulk it would load all in one way.
    Does anyone has an idea or advice ?
    Best regards.

    Yeah I am echoing each line it returns.
    Even if I use prefetch 3000 it look like same !
    $stmt_select = ociparse($connect, $query);
              oci_set_prefetch($stmt_select, 3000);
              oci_execute($stmt_select,OCI_DEFAULT);
              while ($select = oci_fetch_array ($stmt_select, OCI_BOTH))
                   $remote_img = $select['REMOTE_IMG'];
                   $text = $select['TEXT'];
                   $count = $count + 1;
                   echo '<table>';
                        echo '<tr>';
                             echo '<td>';
                                  echo '<img src="' . $remote_img . '" width="100">';
                             echo '</td>';
                             echo '<td>';
                                  $desc = str_replace('<br>', '-',$text);
                                  $desc = str_replace(' ', '-',$desc);
                             echo $text;
                             echo '</td>';
                        echo '</tr>';
                   echo '<table>';
              }

  • From PHP to JSP for a search-responder.php

    I have been asked to use the "search-as-you-type" solution offered up by Google at [http://code.google.com/p/search-as-you-type/|http://code.google.com/p/search-as-you-type/]. The documentation offered by Google is pretty much straight forward but of course the actual piece of code that gets the data is built in PHP and my client needs this to be used on a page serving up JSP.
    I am learning JSP and moving from PHP and ASP and learning quickly but not quick enough to finish the project.
    Would anyone be able and willing to help me convert the functions in the following PHP code into JSP?
    Thanks in advance to anyone who takes the time to help me.
    <?php
    * Copyright (C) 2006 Google Inc.
    * Licensed under the Apache License, Version 2.0 (the "License");
    * you may not use this file except in compliance with the License.
    * You may obtain a copy of the License at
    *      http://www.apache.org/licenses/LICENSE-2.0
    * Unless required by applicable law or agreed to in writing, software
    * distributed under the License is distributed on an "AS IS" BASIS,
    * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
    * See the License for the specific language governing permissions and
    * limitations under the License.
    * Search-as-you-type sample Ajax responder
      // Adding a cache control so that browsers won't cache Ajax requests
      header("Cache-Control: no-cache");
      header("Content-Type: text/html; charset=UTF-8");
       * Get the sample data from the text file.
       * @return array Loaded data
      function GetData() {
        $data = array();
        $file = file("test-data.txt");
        foreach($file as $record) {
          $record = explode("|", trim($record));
          if (count($record) == 4) { // Ignore invalid lines
            $data[] = $record;
        return $data;
       * Get the results based on user's query.
       * @param string $query Query
       * @param array $data Sample data
       * @return array Result array
      function GetResults($query, $data) {
        $results = array();
        $queryLength = strlen($query);
        foreach ($data as $record) {
          if (substr(strtolower($record[0]), 0, $queryLength) == $query) {
            $result = array();
            $result['name'] = $record[0];
            $result['type'] = $record[1];
            $result['content'] = $record[2];
            $result['moreDetailsUrl'] = $record[3];
            $result['style'] =
              ($query == strtolower($record[0])) ? 'expanded' : 'normal';
            $results[] = $result;
        return $results;
      // Get the data and the query
      $data = GetData();
      $query = strtolower(ltrim($_GET['query']));
      // Build response
      $response = array();
      $response['query'] = $query;
      $response['results'] = GetResults($query, $data);
      if (count($response['results']) == 1) {
        $response['autocompletedQuery'] = $response['results'][0]['name'];
      // Output response
      echo "searchAsYouType.handleAjaxResponse(";
      echo json_encode($response);
      echo ");";
    ?>

    Thanks for your comment Gimbal2.
    I have already been thoroughly surprised at how different JSP is from PHP. I am finding quite hard to wrap my head around the whole process to be honest.
    I am beginning to see that JSP and PHP work in a totally different way than each other.
    I am not technically trying to translate or convert the PHP file as much as I am trying to build a file in JSP that does the same functions. The main functions of the PHP script are commented by Google and should be easily enough re-written in JSP in order to produce similar results.
    Since the output needs to be in a JSON format when passed to the .js file you'd think this would be better suited as a .jsp file as well or even a JAVA Applet, Servlet or even a bean. Since the whole site is already built in JSP for a multitude of other functions it seems likely that adding on more to read data from a source file and send it back to the .JS would be straight forward, but I could be wrong. But again I am not familiar enough with JAVA or JSP (yet) to make heads or tails of this.
    1. // Adding a cache control so that browsers won't cache Ajax requests
    2. * Get the sample data from the text file. @return array Loaded data
    3. * Get the results based on user's query.
    * @param string $query Query
    * @param array $data Sample data
    * @return array Result array
    4. // Get the data and the query
    5. // Build response
    6. // Output response

  • How to get a value from php after some seconds?

    Hello,
    Does someone know how to do the following thing?
    I want to read a value from a php file with this method :
    request.method = URLRequestMethod.POST;
    But when you do this, the php file is excecuted and the
    variables will be read.
    But what if you have a check in your php and after a few
    seconds the php will send a value to flash.
    How do you retreive this value without executing the php file
    again? Or is it normal to execute this again?
    I really don't know.
    I remember in AS 2.0 you could do something with:
    onEnterFrame = function() {
    loadVariablesNum(mailform, 0);
    if(_root.action = "go") {
    gotoAndPlay(20);
    delete this.onEnterFrame;
    But in actionscript the are many eventhandlers, but i could
    not find something that will
    scan for the value ? Does anyone have an idea to do this in
    actionscript 3.0?

    You said:
    so when using the complete event listener, does it mean:
    a) It returns complete with loading the script of the php
    code from line 1 to
    50 (example) ..like loading an external text file.
    Actually that's not how the Flash Player works. Flash doesn't
    really know anything about your PHP code. What happens in a typical
    scenario is:
    1) Some user on some computer far away asks your server for a
    web page with your SWF page embedded. Your server sends the SWF
    file.
    2) The Flash Player starts executing on the user's computer.
    It loads the SWF file and starts executing the action script.
    3) The Flash Player on the user's computer comes to the AS
    code that loads a URL request. Over a new connection it sends a
    request to your server for a certain URL. It doesn't really care
    that it is PHP that will fulfill the request; as far as it is
    concerned, it's just asking for a URL.
    4) Your server receives the request, executes the program in
    PHP, and starts sending bytes to the Flash Player on the user's
    computer.
    5) Back in the Flash Player on the user's computer, if your
    actionscript code starts looking at the .data property of the
    URLLoader, it will see the response so far.
    6) Back on your server, eventually the PHP program finishes,
    sends the last of its data, and the web server closes the
    connection.
    7) The COMPLETE event fires on the URLLoader; if you have a
    listener defined, it executes.
    Hope this helps,
    Bob

  • Sending variable value from php to flash to load an xml file

    I would like to load an XML file from the location locally or on the server being unaware of the name of the file. I am using PHP for sending the filename to Flash.
    The below is the PHP code:
    <?php
    filesInDir('C:\Documents and Settings\457305\My Documents\shrikant\Flash Tutorials\webassist');
    function filesInDir($tdir)
            $dirs = scandir($tdir);
            foreach($dirs as $file)
                    if (($file == '.')||($file == '..'))
                    elseif (is_dir($tdir.'/'.$file))
                            filesInDir($tdir.'/'.$file);
                    else
                            echo "fileName=$file";
    ?>
    And below is the loading Actionscript code:
    import flash.net.URLLoader;
    import flash.net.URLRequest;
    import flash.events.Event;
    import flash.net.URLVariables;
    stop();
    // Define the PHP file to be loaded
    var phpFile:String = "http://localhost/webassist/test.php";
    var cons_xml:XML;
    var xmlLoader:URLLoader = new URLLoader();
    // Specify dataFormat property of the URLLoader to be "VARIABLES"
    // This ensures variables loaded into Flash with same variable names
    xmlLoader.dataFormat = URLLoaderDataFormat.VARIABLES;
    xmlLoader.load(new URLRequest(phpFile));
    xmlLoader.addEventListener(Event.COMPLETE, processXML);
    function processXML(evt:Event):void
              trace(evt.target.data.fileName);
              //cons_xml = new XML(evt.target.data.fileName);
              //gotoAndPlay(2);
    When I trace the evt.target.data it displays "fileName=mainOpenEndedXML%2Exml" and when I trace evt.target.data.fileName the fileName is properly displayed as "mainOpenEndedXML.xml".
    But in the next two lines where the loading occurs it does not load the file i.e the swf file from xml doesn't play.
    I have been searching the Internet for answers but not able to find any solutions.
    The loading works properly if i directly insert the xml file in the code and the swf's in the XML file play propertly. The below is the code for the same:
    import flash.net.URLLoader;
    import flash.net.URLRequest;
    import flash.events.Event;
    import flash.net.URLVariables;
    stop();
    var cons_xml:XML;
    var xmlLoader:URLLoader = new URLLoader();
    xmlLoader.load(new URLRequest("mainOpenEndedXML.xml"));
    xmlLoader.addEventListener(Event.COMPLETE, processXML);
    function processXML(evt:Event):void
              cons_xml = new XML(evt.target.data);
              gotoAndPlay(2);
    Any help on this would be greatly appreciated

    Yes. you already said that, but I guess you don't understand what I said.  You are loading the PHP fle to get the filename, but nowhere are you taking that filename and loading the file that was named. 
    You need to do two loading operations.  The first one to get the filename, and the second to load the file with that name.  Maybe if you name the PHP file loader phpLoader instead of xmlLoader it will start to make more sense to you.  Something like the following...
    import flash.net.URLLoader;
    import flash.net.URLRequest;
    import flash.events.Event;
    import flash.net.URLVariables;
    stop();
    // Define the PHP file to be loaded
    var phpFile:String = "http://localhost/webassist/test.php";
    var phpLoader:URLLoader = new URLLoader();
    // Specify dataFormat property of the URLLoader to be "VARIABLES"
    // This ensures variables loaded into Flash with same variable names
    phpLoader.dataFormat = URLLoaderDataFormat.VARIABLES;
    phpLoader.load(new URLRequest(phpFile));
    phpLoader.addEventListener(Event.COMPLETE, processPHP);
    function processPHP(evt:Event):void
             var xmlLoader:URLLoader = new URLLoader();
             xmlLoader.load(new URLRequest(String(evt.target.data.fileName)));
             xmlLoader.addEventListener(Event.COMPLETE, processXML);
    var cons_xml:XML;
    function processXML(evt:Event):void
              cons_xml = new XML(evt.target.data);
              gotoAndPlay(2);

  • How to call PL/SQL function from php

    I have one function define in package,like below
    >>
    create or replace package body Intg$Label_DB as
    Future constant date := to_date ('21990101', 'YYYYMMDD');
    Max_Annotation_Len integer := 3995;
    function Get_Tagged_Label (Product_Name varchar2,Branch_Name varchar2, Platform_Name varchar2, Schema_Name varchar2) return varchar2 is
    Series_Id integer := Get_Series (Product_Name,Branch_Name,Platform_Name);
    Schema_Id integer := Get_Schema (Schema_Name);
    Dep_Label_Id integer;
    Next_Dep_Label_Id integer;
    Result_Id integer;
    Result Intg$Labels.Name%type;
    begin
    select SLT.Dep_Label_Id, SLT.Next_Dep_Label_Id into Dep_Label_Id, Next_Dep_Label_Id
    from Intg$Series_Label_Tags SLT
    where SLT.Series_Id = Get_Tagged_Label.Series_Id and SLT.Schema_Id = Get_Tagged_Label.Schema_Id;
    Result_Id := Next_Dep_Label_Id;
    if Result_Id = -1 then
    Result_Id := Dep_Label_Id;
    end if;
    select L.Name into Result from Intg$Labels L where L.Id = Result_Id;
    return Result;
    exception
    when NO_DATA_FOUND then
    return '';
    end Get_Tagged_Label;
    >>
    i want to call Get_Tagged_Label() from php and print the output,I tried below code but seems i am missing lots of things here.Any help will be appreciate.
    $sql = 'BEGIN INTG$Label_DB.Get_Tagged_Labell(:Product_Name,:Branch_name,:Platform_Name,:message,:message_1,:message_2); END;';
    $stmt = oci_parse($conn,$sql) or die ('Can not parse query') ;
    // Bind the input parameter
    oci_bind_by_name($stmt,':Product_Name',$name,32);
    oci_bind_by_name($stmt,':Branch_name',$branch,32);
    oci_bind_by_name($stmt,':Platform_Name',$pt,32);
    // Bind the output parameter
    oci_bind_by_name($stmt,':message',$message,32);
    oci_bind_by_name($stmt,':message_1',$message_1,32);
    oci_bind_by_name($stmt,':message_2',$message_2,32);
    // Assign a value to the input
    $name = 'PCBPEL';
    $branch ='MAIN';
    $pt ='GENERIC';
    oci_execute($stmt);
    Thanks
    Hridyesh

    What errors are you getting?
    It's always helpful to know the version of PHP and the database.
    When calling a function, you'll need a bind variable to hold the return value, and make sure the number of parameters match:
    $sql = 'BEGIN :rv := INTG$Label_DB.Get_Tagged_Labell(:Product_Name,:Branch_name,:Platform_Name,:message); END;';
    This new variable will need to bound with oci_bind_by_name()
    Have you looked at my free Underground PHP and Oracle Manual at http://www.oracle.com/technology/tech/php/pdf/underground-php-oracle-manual.pdf ? Or any one of the other fine PHP-Oracle books available?

  • Flash Builder 4.5 for PHP - show variable from PHP in app

    I have searched for hours and I can't figure this out…
    Is there a way to somehow "echo" my PHP code in my MXML file ?
    I know you can't echo something from PHP to MXML, so here's what I have done :
    I get my informations from my database, I need to show an image and its title, so I put the following code in a variable :
    <mx:Image id="laniraBlanche" x="25" y="65" width="210" height="126" source="'.$row->image_mini.'" click="selectLaniraBlanche()" rollOver="seePicture()" rollOut="outPicture()" />                                              <s:Label x="25" y="155.85" text="'.$row->nom.'" width="210" textAlign="center" height="37" fontSize="19" backgroundColor="#676666" verticalAlign="middle" fontFamily="Georgia" color="#FFFFFF" click="selectLaniraBlanche()" rollOver="seePicture()"  id="laniraBlancheTxt" rollOut="outPicture()" />'
    Then, I return that variable.
    I find the function where my var created is returned from the "Data/Service" tab, I am on Design mode on Flash Builder, and I "drop" my function where I want my image and text to show on my app.
    I tryed dropping it in a "group", it doesn't show anything. I tryed several other options, and nothing worked.
    So my question is, how could I have this code created in PHP show on my application ?
    Thank you  for your help

    I also have Flash Builder 4.5 for PHP and the ANT view does not show when going to Window -> Show View --> Other.  I could not find it in any of the folders.
    However, I was able to add it by hitting Command 3 (CTRL 3 on PC) and typing Ant.

  • How to call translation template from bursting control file.

    Hi All,
    Greetings!!!!!!!!!!!!!
    Need help on calling translation template from the bursting control file.
    While calling the translation template from bursting control file it ends in error. Following is the error
    [063010_063059160][][EXCEPTION] The URL ( xdo://XXX.XXXPOXPRPOL.fr.CA/?getSource=true ) is invalid.
    But same control file is working for standard tempalte.
    Here is the sample control file.
    <?xml version="1.0" encoding="UTF-8"?>
    <xapi:requestset xmlns:xapi="http://xmlns.oracle.com/oxp/xapi">
    <xapi:request select="/XXXPRPOLXML/LIST_G_MANUAL_PO_NUM_TYPE/G_MANUAL_PO_NUM_TYPE/LIST_G_HEADERS/G_HEADERS">
    <xapi:delivery>
    <xapi:email id="123" server="nasmtp.us.XXX.com" port="25" from="${C_ORIGINAL_BUYER_EMAIL}" reply-to ="">
    <xapi:message id="123" to="${C_VENDOR_CONTACT_EMAIL}" cc="" bcc=""
    attachment="true"
    subject="Purchase Order ${POH_PO_NUM} revision ${POH_REVISION_NUM} from XXX">
    ${POH_VENDOR_CONTACT_NAME},
    ${C_MAIL_SUBJECT}
    PO number ${POH_PO_NUM} revision ${POH_REVISION_NUM}
    Please reply to ${C_ORIGINAL_BUYER_EMAIL} - ${POH_ORG_ID}
    Thank you,
    ${POH_BUYER}
    </xapi:message>
    </xapi:email>
    </xapi:delivery>
    <xapi:document output="${POH_PO_NUM}-rev${POH_REVISION_NUM}" output-type="pdf" delivery="123">
    <xapi:template type="rtf" location="xdo://XXX.XXXPOXPRPOL.en.US/?getSource=true" filter=".//G_HEADERS[C_VENDOR_CONTACT_EMAIL !=''and POH_ORG_ID = 54]"></xapi:template>
    <xapi:template type="rtf" location="xdo://XXX.XXXPOXPRPOL.fr.CA/?getSource=true" filter=".//G_HEADERS[C_VENDOR_CONTACT_EMAIL !='' and POH_ORG_ID = 161]"></xapi:template>
    </xapi:document>
    </xapi:request>
    </xapi:requestset>
    Please let me know how to call a translation template from bursting.
    Thanks
    Rajesh

    Got the solution...
    This is how we have to call a translation template from bursting file.
    <?xml version="1.0" encoding="UTF-8"?>
    <xapi:requestset xmlns:xapi="http://xmlns.oracle.com/oxp/xapi">
    <xapi:request select="/XXXPRPOLXML/LIST_G_MANUAL_PO_NUM_TYPE/G_MANUAL_PO_NUM_TYPE/LIST_G_HEADERS/G_HEADERS">
    <xapi:delivery>
    <xapi:email id="123" server="nasmtp.us.XXX.com" port="25" from="${C_ORIGINAL_BUYER_EMAIL}" reply-to ="">
    <xapi:message id="123" to="${C_VENDOR_CONTACT_EMAIL}" cc="" bcc=""
    attachment="true"
    subject="Purchase Order ${POH_PO_NUM} revision ${POH_REVISION_NUM} from XXX">
    ${POH_VENDOR_CONTACT_NAME},
    ${C_MAIL_SUBJECT}
    PO number ${POH_PO_NUM} revision ${POH_REVISION_NUM}
    Please reply to ${C_ORIGINAL_BUYER_EMAIL} - ${POH_ORG_ID}
    Thank you,
    ${POH_BUYER}
    </xapi:message>
    </xapi:email>
    </xapi:delivery>
    <xapi:document output="${POH_PO_NUM}-rev${POH_REVISION_NUM}" output-type="pdf" delivery="123">
    <xapi:template type="xsl-fo" location="xdo://XXX.XXXPOXPRPOL.fr.CA" filter=".//G_HEADERS[C_VENDOR_CONTACT_EMAIL !='' and POH_ORG_ID = 161 and CLANGUAGE2 = 'fr']"></xapi:template>
    <xapi:template type="rtf" location="xdo://XXX.XXXPOXPRPOL.en.US/?getSource=true" filter=".//G_HEADERS[C_VENDOR_CONTACT_EMAIL !='' and POH_ORG_ID = 54 or POH_ORG_ID = 56 or (POH_ORG_ID = 161 and CLANGUAGE2 = 'en')]"></xapi:template>
    </xapi:document>
    </xapi:request>
    </xapi:requestset>
    where
    XXX - Application shortname
    XXXPOXPRPOL - Template Code
    Hope this helps!!!!!!!!!!!!!!!!!!!!!
    Regards
    Rajesh

  • Cannot pass variables from PHP to actionscript 3.0

    I am using CS3 and I write the following code as to pass variable to flash from PHP
    Actionscript
    var myLoader:URLLoader = new URLLoader();
    myLoader.dataFormat = URLLoaderDataFormat.TEXT;
    var myRequest:URLRequest=new URLRequest("http://localhost/moodle/value.php");
    myLoader.load(myRequest);
    myLoader.addEventListener(Event.COMPLETE,onCompleteHandler);
    var myValue: String;
    function onCompleteHandler(e:Event):void{
              var myvariable: URLVariables = new URLVariables(e.target.data);
              myValue = myvariable.values;
                      trace(myValue);
    PHP file
    <?php
       echo ('values = 8');
    ?>
    But I always get the error and cannot get the values by using trace();
    Before i try to use "myLoader.dataFormat = URLLoaderDataFormat.VARIABLES;" I still get the same error.
    Error: Error #2101: The String passed to URLVariables.decode() must be a URL-encoded query string containing name/value pairs
              at Error$/throwError()
              at flash.net::URLVariables/decode()
              at flash.net::URLVariables$iinit()
              at flash.net::URLLoader/flash.net:URLLoader::onComplete()
    Can anyone help me?

    The error is fixed.The new version is like that
    Actionscript
    var myLoader:URLLoader = new URLLoader();
    myLoader.dataFormat = URLLoaderDataFormat.TEXT;
    var myRequest:URLRequest=new URLRequest("http://localhost/moodle/value.php");
    myLoader.load(myRequest);
    myLoader.addEventListener(Event.COMPLETE,onCompleteHandler);
    var myValue: String;
    function onCompleteHandler(e:Event):void{
              var myvariable: URLVariables = new URLVariables(e.target.data);
              myValue = myvariable.values;
                      trace(myValue);
    php file
    <?php
       echo "values=8";
    ?>
    The output finally is "null" in flash file. Why does it happen? It should give me 8 when I input trace(myValue);

  • Translation date from document date instead of posting date

    I have a requirement to set automatically Translation date from Document Date instead of Posting Date as usual in SAP.
    My company code hasnu2019t got neither 2nd local currency nor 3rd local currency.
    As usual, when posting transactions in foreign currency, translation date is derived from posting date.
    I would like to know if is possible to set that translation date would be derived from document date. As I said before, because of the company code only has one currency defined, is not possible to change it in OB22.
    Thanks a lot

    Has anyone ever tried to change the Translation date on the FI documents generated by F.05 (FBB1). I am having this requirement at one of the clients I am working on. I need to substitute the document date in the translation date field. I tried using substitution through GGB1 (OBBH) and also I tried using the BADI - FI_TRANS_DATE_DER, but none of the two options work.
    Is there any other option to do it or did anyone had any success in doing this????
    Appreciate all the responses.
    thanks in advance.

Maybe you are looking for

  • Where can I find a 17" desktop anti-glare filter for my iMac?

    I checked a couple of sites that sell anti-glare filters. I'm trying to find one to fit my widescreen 17" iMac, however, both sites charged exorbitant prices, one $80, another $100. I remember ten years ago I was able to buy an anti-glare filter for

  • Background/image alignment varies slightly in different browsers

    Hi, To start, I'm pretty new to Dreamweaver and can't understand html to save my life so please bare with me if this has a simple solution.. I'm learning.:) I have a site that is finally lining up 100% in Safari, however, when I open it up in Firefox

  • Problem uploading a webpage+swf

    Hallo everybody, I have a tricky problem that occurs to me only recently. My flash website has the swf files embedded in two web pages index.html and studio.html. In index.html i have the intro and in studio.html all the rest. I have changed a link i

  • How to create a TEMPORARY table in memory?

    Hi, Is there any way to create a temporary table in memory other than in tablespce?

  • Mapping fields on TR

    Hi Friends I am extracting 3 fields (partnr, roletyp and sobjekt) from vdgpo.Now i want to map the fields partnr and sobjekt based on roletyp. If roletyp = TR0120 then zauthdrawer = vdgpo_partnr. If roletyp = TR0992 then zstateclk = vdgpo_partnr. If