Lexical Parameter in BIP for NON E-Biz environment

hi,
I am wondering ,does BIP support lexical param in a Data Template which is not in e-biz suite ?
Like
select * from table_x where &my_lexical_param
?

Hi All,
I have a problem using lexical parameters in NON e-buz suite for bi publisher.
the function is not passing the lexical param to the BIP data template.
I have the package and package spec as below.
CREATE OR REPLACE PACKAGE XML_SQL AS
WHERE_CLAUSE VARCHAR2(2000);
FROM_DATE VARCHAR2(20) ;
TO_DATE VARCHAR2(20) ;
P_BGNO VARCHAR2(2000) ;
--ORDERING_COL VARCHAR2(2000);
ORDERING_COL NUMBER;
ASC_DESC VARCHAR2(2000);
FUNCTION R001_ORDERING1(P_BGNO VARCHAR2,ORDERING_COL VARCHAR2,ASC_DESC VARCHAR2)
RETURN BOOLEAN;
FUNCTION R001_ORDERING1(P_BGNO VARCHAR2)
RETURN BOOLEAN;
END XML_SQL;
CREATE OR REPLACE PACKAGE BODY XML_SQL AS
FUNCTION R001_ORDERING1(P_BGNO VARCHAR2, ORDERING_COL VARCHAR2,ASC_DESC VARCHAR2)
RETURN BOOLEAN
AS
BEGIN
WHERE_CLAUSE := ' AND CR_BG_NO = '||P_BGNO ;
RETURN (TRUE);
EXCEPTION
WHEN NO_DATA_FOUND THEN
NULL;
WHEN OTHERS THEN
RAISE;
END R001_ORDERING1;
FUNCTION R001_ORDERING1(P_BGNO VARCHAR2)
RETURN BOOLEAN
AS
BEGIN
WHERE_CLAUSE := ' AND CR_BG_NO = '||P_BGNO ;
RETURN (TRUE);
EXCEPTION
WHEN NO_DATA_FOUND THEN
NULL;
WHEN OTHERS THEN
RAISE;
END R001_ORDERING1;
END XML_SQL;
below is my data template
<dataTemplate name="R001" defaultPackage="XML_SQL" dataSourceRef="BGC_VAL">
     <properties>
          <property name="include_rowsettag" value="false"/>
          <property name="include_rowtag" value="false"/>
          <property name="xml_tag_case" value="as_are"/>
     </properties>
     <parameters include_in_output="false">
          <parameter name="FROM_DATE" dataType="varchar2" include_in_output="false"/>
          <parameter name="TO_DATE" dataType="varchar2" include_in_output="false"/>
          <parameter name="P_BGNO" dataType="varchar2" include_in_output="false"/>
          <parameter name="ORDERING_COL" dataType="varchar2" include_in_output="false"/>
          <parameter name="WHERE_CLAUSE" dataType="varchar2" include_in_output="false"/>
          <parameter name="ASC_DESC" dataType="varchar2" include_in_output="false"/>
     </parameters>
     <dataTrigger name="beforeReport" source="XML_SQL.R001_ORDERING1(:P_BGNO)"/>
     <dataQuery>
          <sqlStatement name="Q1">
               <![CDATA[SELECT
DISTINCT
TO_CHAR(SYSDATE,'yyyy-mm-dd')||'T'||TO_CHAR(SYSDATE,'hh:mi:ss')||'.0Z'                todayDate
,CR_BG_NO              creditorBGNumber
,CREDITOR_SHORT_NAME   creditorName
FROM
R001_REPORT
WHERE
TRANSACTION_DATE BETWEEN TO_DATE(:FROM_DATE,'DD/MM/YYYY') AND TO_DATE(:TO_DATE,'DD/MM/YYYY') AND
CR_BG_NO = :P_BGNO
]]>
          </sqlStatement>
          <sqlStatement name="Q2">
               <![CDATA[SELECT 
CR_BG_NO              creditorBGNumber
,CREDITOR_SHORT_NAME   creditorName
, TO_CHAR(TRANSACTION_DATE,'YYYY-MM-DD')||'T'||TO_CHAR(TRANSACTION_DATE,'HH:MI:SS')||'.0Z'    "transactionDate"
,DEBTOR_PAYER_NUMBER  "debtorPayerNumber"
,CR_COUNT             "creditCount"
,CR_AMOUNT            "creditAmount"
,DR_COUNT             "debitCount"
,DR_AMOUNT            "debitAmount"
,NET_AMOUNT           "creditDebitNet"
FROM
R001_REPORT
WHERE
TRANSACTION_DATE BETWEEN TO_DATE(:FROM_DATE,'DD/MM/YYYY') AND TO_DATE(:TO_DATE,'DD/MM/YYYY')
&WHERE_CLAUSE]]>
          </sqlStatement>
          <sqlStatement name="Q3">
               <![CDATA[
SELECT
SUM(CR_COUNT) "creditCount"
,SUM(CR_AMOUNT) "creditAmount"
,SUM(DR_COUNT) "debitCount"
,SUM(DR_AMOUNT) "debitAmount"
,SUM(NET_AMOUNT) "creditDebitNet"
FROM
R001_REPORT
WHERE
TRANSACTION_DATE BETWEEN TO_DATE(:FROM_DATE,'DD/MM/YYYY') AND TO_DATE(:TO_DATE,'DD/MM/YYYY') AND
CR_BG_NO = :P_BGNO
]]>
          </sqlStatement>
     </dataQuery>
     <dataStructure>
          <group name="response" source="Q1">
               <group name="head" source="Q1">
                    <element name="todayDate" value="todayDate"/>
                    <element name="creditorBGNumber" value="creditorBGNumber"/>
                    <element name="creditorName" value="creditorName"/>
               </group>
               <group name="list" source="Q2">
                    <group name="listItem" source="Q2">
                         <element name="transactionDate" value="transactionDate"/>
                         <element name="debtorPayerNumber" value="debtorPayerNumber"/>
                         <element name="creditCount" value="creditCount"/>
                         <element name="creditAmount" value="creditAmount"/>
                         <element name="debitCount" value="debitCount"/>
                         <element name="debitAmount" value="debitAmount"/>
                         <element name="creditDebitNet" value="creditDebitNet"/>
                    </group>
               </group>
               <group name="summary" source="Q3">
                    <element name="creditCount" value="creditCount"/>
                    <element name="creditAmount" value="creditAmount"/>
                    <element name="debitCount" value="debitCount"/>
                    <element name="debitAmount" value="debitAmount"/>
                    <element name="creditDebitNet" value="creditDebitNet"/>
               </group>
          </group>
     </dataStructure>
</dataTemplate>

Similar Messages

  • Packages oracle not recognized lexical parameter that passed from BIP

    Dear all,
    My name is Rizal, i've a problem when passing lexical parameter from BIP to Oracle Packages. Below is my data template in BI Publisher that call function f_where_clause on packages :
    <dataTemplate name="dtTemplate1" description="dtTemplateTest" dataSourceRef="prodin" defaultPackage="pkg_rep_bip">
    <dataTrigger name="cobaTrigReport" source="pkg_rep_bip.f_where_clause(:P_SD)"/>
    <dataQuery>
    <sqlstatement name="Q1">
    <![CDATA[SELECT CODE, SPPD_CODE FROM PRO_SPD01 &amp;v_where_clause]]>
    </sqlstatement>
    </dataQuery>
    </dataTemplate>
    and P_SD is one parameter that i created in BI Publisher.
    and below is my packages (Spec and Body) :
    SPEC :
    CREATE OR REPLACE package PRODIN.pkg_rep_bip
    as
    v_where_clause varchar2(10000);
    function f_where_clause (p_sd varchar2)return boolean;
    end pkg_rep_bip;
    BODY :
    CREATE OR REPLACE package body PRODIN.pkg_rep_bip as
    function f_where_clause (p_sd varchar2)return boolean is
    begin
    if p_sd = 'Y' then
    v_where_clause := ' where re=11';
    else
    v_where_clause := ' where re=24';
    end if;
    return true;
    end f_where_clause;
    end;
    More detail problem is when parameter P_SD = Y (i assigned in BI PUblisher) the result always go to (v_where_clause := ' where re=24'). Any help/answer really appreciate.. Many thanks..

    It seems that Reports help is wrong ( or imprecise).
    Eg. if we have:
    select &p_select
      from dept
    where &p_where
    and the initial values for the parameters are:
    p_select: deptno, dname
    p_where: 1 = 2
    and the code in the Before Reports trigger is the following:
    function BeforeReport return boolean is
    begin
      :p_select := 'deptno, ''abcde'' ';
      :p_where := '1 = 1';
      return (TRUE);
    end;
    we get all the rows (where 1 = 1) and we get the value 'abcde' in the field "dname".
    However, try to move your code from the Before Report trigger to After Parameter Form trigger.
    Regards,
    Zlatko

  • Generation of XML Tags for columns in Lexical parameter in select query

    Hi,
    I have lexical parameter in my select statement of my data model in the report.
    How do i generate XML tags for these columns inside a Lexical Parameter?
    Simple Example: I have data model query as follows:
    SELECT msi.inventory_item_id
    &LP_SELECT
    FROM mtl_system_items_b
    Here my lexical Parameter LP_SELECT is generated in before report trigger as follows in my report:
    :LP_SELECT := 'msi.segment1,msi.description';
    So, the question is how to generate XML Tags for columns in Lexical Parameter(as in the example above, i need XML tags for these columns - segment1 and description)
    Thanks,
    Ratan

    try this
    Select &order data_show
    from oe_order_headers_all
    where order_number ='7889'
    and setting  :order:='order_number';  in after parameter form trigger.
    Hope this helps
    Hamid

  • How to use lexical parameter in report

    i want to use lexical parameter in report and pass parameter from form how it is possible in detail
    A.R

    Hi,
    typically you fill your lexical paramter in the after-paramform-trigger out of the values of your bind-parameters (giving end users directly control over lexical parameters might not be a good idea). Inside PL/SQL a lexical parameter is referenced like bind parameters with ":". In the query it's referenced via "&" and represents a part of the query.
    A simple example.
    - p_deptno as bind parameter
    - p_where as lexical paramter
    - end user choose value for p_deptno (10,20,... or nothing)
    - Trigger: if :p_deptno is not null then
    :p_where := 'WHERE deptno = :p_deptno'
    else
    :p_where := null;
    end if;
    - Query select ... from emp &p_where
    Regards
    Rainer

  • Calling report from form with lexical parameter

    hi
    DECLARE
         repid REPORT_OBJECT;
         v_rep VARCHAR2(1000);
         rep_status VARCHAR2(20);
    BEGIN
              repid := FIND_REPORT_OBJECT( 'REPORT34' );
              set_report_object_property(repid,report_other,'p_SEASON_YEAR='||:SALE_ORDER.SEASON_YEAR
              ||' &sort='||:sale_order.sort1);
              --set_report_object_property(repid,report_other,'p_g_id =20');
              v_rep := RUN_REPORT_OBJECT(repid);
              rep_status := REPORT_OBJECT_STATUS(v_rep);
    WHILE rep_status in ('RUNNING','OPENING_REPORT','ENQUEUED')
    LOOP
    rep_status := report_object_status(v_rep);
    END LOOP;
    IF rep_status = 'FINISHED' THEN
    --Display report in the browser
    WEB.SHOW_DOCUMENT('http://127.0.0.1:8889/reports/rwservlet/getjobid'||
    substr(v_rep,instr(v_rep,'_',-1)+1)||'?'||'server=repserver90','_blank');
    ELSE
    message('Error when running report');
    END IF;
    PAUSE;
    END;i had made a lexical parameter in reports the reports code is
    SELECT s.season_year,sd.prod_id,P.PROD_NAME,sum(sd.total_qty)
    FROM sale_order s,sale_order_detail sd,PRODUCT P,CUSTOMER_MASTER cm,CUSTOMER_DETAIL cd
    where s.id=sd.id and P.PROD_ID=SD.PROD_ID AND s.season_year = :p_season_year
    AND CD.CUST_ID=CM.CUST_ID AND CD.CUST_ID=S.CUST_ID AND CD.COUNTRY NOT LIKE 'SPA%' AND Sd.PROD_ID LIKE  'CA%'
    group by s.season_year,sd.prod_id,P.PROD_NAME
    &sortthanks and regards
    vikas

    Vikas,
    So, is your code producing an error when your report is called? Also, it would be helpful to know your Forms and Reports versions. Is ":p_season_year" set up as a USER_PARAMETER (UP) in your report or is it a true lexical parameter (meaning you should reference it with '&' instead of ':')? If it is a UP, the typical way to pass a value to this UP from Forms is to use a ParamList object instead of the REPORT_OTHER parameter of the Set_Report_Object_Property built-in. For example:
    DECLARE
       pl_id    ParamList;
       pl_name  VARCHAR2(10) := 'REPORT34';
       v_rep VARCHAR2(1000);
       rep_status VARCHAR2(20);
    BEGIN
       pl_id := Get_Parameter_List(pl_name);
       IF id_null(pl_id) THEN
          pl_id := Create_Parameter_List(pl_name);
       END IF;
       Add_Parameter(pl_id, 'P_SEASON_YEAR', TEXT_PARAMETER, :SALE_ORDER.SEASON_YEAR);
       repid := FIND_REPORT_OBJECT( 'REPORT34' );
       v_rep := RUN_REPORT_OBJECT(repid, pl_id);
       ...  rest of your code here  ...
    END;Hope this helps,
    Craig B-)
    If someone's response is helpful or correct, please mark it accordingly.

  • Voting poll using PHP & MySQL TypeError: Error #2007: Parameter text must be non-null.

    I am getting this back:
    TypeError: Error #2007: Parameter text must be non-null.
    at flash.text::TextField/set text()
    at AS3_Flash_Poll_PHP_MySQL_fla::WholePoll_1/completeHandler()
    at flash.events::EventDispatcher/dispatchEventFunction()
    at flash.events::EventDispatcher/dispatchEvent()
    at flash.net::URLLoader/onComplete()
    PHP code:
    <?php
    // ---------------------------------------- Section 1 -----------------------------------------------
    //  IMPORTANT!!!! Connect to MySQL database here(put your connection data here)
    mysql_connect("ginaty05.fatcowmysql.com","fall2010","@regina") or die (mysql_error());
    mysql_select_db("poll_2010") or die (mysql_error());
    // When Flash requests the totals initially we run this code
    if ($_POST['myRequest'] == "load_numbers") {
    // Query the totals from the database
        $sql1 = mysql_query("SELECT id FROM votingPoll WHERE choice='1'");
        $choice1Count = mysql_num_rows($sql1);
        $sql2 = mysql_query("SELECT id FROM votingPoll WHERE choice='2'");
        $choice2Count = mysql_num_rows($sql2);
        $sql3 = mysql_query("SELECT id FROM votingPoll WHERE choice='3'");
        $choice3Count = mysql_num_rows($sql3);
        echo "choice1Count=$choice1Count";
        echo "&choice2Count=$choice2Count";
        echo "&choice3Count=$choice3Count";
    // ---------------------------------------- Section 2 -----------------------------------------------
    // IF POSTING A USER'S CHOICE
    if ($_POST['myRequest'] == "store_choice") {
        //Obtain user IP address
        $ip = $_SERVER['REMOTE_ADDR'];
        // Create local variable from the Flash ActionScript posted variable
        $userChoice = $_POST['userChoice'];
        $sql = mysql_query("SELECT id FROM votingPoll WHERE ipaddress='$ip'");
        $rowCount = mysql_num_rows($sql);
        if ($rowCount == 1) {
    $my_msg = "You have already voted in this poll.";
    print "return_msg=$my_msg";
        } else {
    $sql_insert = mysql_query("INSERT INTO votingPoll (choice, ipaddress) VALUES('$userChoice','$ip')")  or die (mysql_error());
    $sql1 = mysql_query("SELECT * FROM votingPoll WHERE choice='1'");
    $choice1Count = mysql_num_rows($sql1);
    $sql2 = mysql_query("SELECT * FROM votingPoll WHERE choice='2'");
    $choice2Count = mysql_num_rows($sql2);
    $sql3 = mysql_query("SELECT * FROM votingPoll WHERE choice='3'");
    $choice3Count = mysql_num_rows($sql3);
    $my_msg = "Thanks for voting!";
            echo "return_msg=$my_msg";
            echo "&choice1Count=$choice1Count";
    echo "&choice2Count=$choice2Count";
    echo "&choice3Count=$choice3Count";
    ?>
    AS3 code:
    stop(); // Stop the timeline since it does not need to travel for this to run
    // Assign a variable name for our URLVariables object
    var variables1:URLVariables = new URLVariables();
    //  Build the varSend variable
    var varSend1:URLRequest = new URLRequest("parse_my_poll.php");
    varSend1.method = URLRequestMethod.POST;
    varSend1.data = variables1;
    // Build the varLoader variable
    var varLoader1:URLLoader = new URLLoader;
    varLoader1.dataFormat = URLLoaderDataFormat.VARIABLES;
    varLoader1.addEventListener(Event.COMPLETE, completeHandler1);
    // Set variable to send to PHP here for the varloader below
    variables1.myRequest = "load_numbers";  
    // Send data to php file now, and wait for response using the COMPLETE event
    varLoader1.load(varSend1);
    function completeHandler1(event:Event):void{
        count1_txt.text = "" + event.target.data.choice1Count;
        count2_txt.text = "" + event.target.data.choice2Count;
        count3_txt.text = "" + event.target.data.choice3Count;
    // hide the little processing movieclip
    processing_mc.visible = false;
    // Initialize the choiceNum variable that we will use below
    var choiceNum:Number = 0;
    // Set text formatting colors for errors and success messages
    var errorsFormat:TextFormat = new TextFormat();
    errorsFormat.color = 0xFF0000; // bright red
    var successFormat:TextFormat = new TextFormat();
    successFormat.color = 0x00FF00; // bright green
    // Button Click Functions
    function btn1Click(event:MouseEvent):void{
        choiceNum = 1;
        choice_txt.text = choice1_txt.text;
    function btn2Click(event:MouseEvent):void{
        choiceNum = 2;
        choice_txt.text = choice2_txt.text;
    function btn3Click(event:MouseEvent):void{
        choiceNum = 3;
        choice_txt.text = choice3_txt.text;
    // Button Click Listeners
    btn1.addEventListener(MouseEvent.CLICK, btn1Click);
    btn2.addEventListener(MouseEvent.CLICK, btn2Click);
    btn3.addEventListener(MouseEvent.CLICK, btn3Click);
    // Assign a variable name for our URLVariables object
    var variables:URLVariables = new URLVariables();
    //  Build the varSend variable
    var varSend:URLRequest = new URLRequest("parse_my_poll.php");
    varSend.method = URLRequestMethod.POST;
    varSend.data = variables;
    // Build the varLoader variable
    var varLoader:URLLoader = new URLLoader;
    varLoader.dataFormat = URLLoaderDataFormat.VARIABLES;
    varLoader.addEventListener(Event.COMPLETE, completeHandler);
    // Handler for PHP script completion and return
    function completeHandler(event:Event):void{
        // remove processing movieclip
        processing_mc.visible = false;
        // Clear the form fields
        choice_txt.text = "";
        choiceNum = 0;
        // Load the response from the PHP file
        status_txt.text = event.target.data.return_msg;
        status_txt.setTextFormat(errorsFormat);
        if (event.target.data.return_msg == "Thanks for voting!") {
            // Reload new values into the count texts only if we get a proper response and new values
            status_txt.setTextFormat(successFormat);
            count1_txt.text = "" + event.target.data.choice1Count;
            count2_txt.text = "" + event.target.data.choice2Count;
            count3_txt.text = "" + event.target.data.choice3Count;
    // Add an event listener for the submit button and what function to run
    vote_btn.addEventListener(MouseEvent.CLICK, ValidateAndSend);
    // Validate form fields and send the variables when submit button is clicked
    function ValidateAndSend(event:MouseEvent):void {
        //validate form fields
        if(!choice_txt.length) {  
            // if they forgot to choose before pressing the vote button
            status_txt.text = "Please choose before you press vote.";  
            status_txt.setTextFormat(errorsFormat);
        } else {
            status_txt.text = "Sending...";
            processing_mc.visible = true;
            // Ready the variables for sending
            variables.userChoice = choiceNum;
            variables.myRequest = "store_choice";  
            // Send the data to the php file
            varLoader.load(varSend);
        } // close else after form validation
    } // Close ValidateAndSend function ////////////////////////

    This error means that you are trying to set the text field but there is no data in the variable. As a first step, try to identify where this is happening, eg Is it the first call, or once you have submitted your data or only if you try to submit data second time?
    Trace out the data that is returned for both completeHandlers to see if there is a missing var. Try this for "load_numbers" and "store_choice". Do it twice for "store_choice". Do you get back what you expected?
    You could also try altering the php to return some fixed dummy variables, eg  choice1Count=11&choice2Count=22&choice3Count=33, etc. If this works then you know that the error is in the PHP.
    It looks to me like the issue is when you submit the data a second time and just get back the return_msg - the handler then tries to assign the choice1Count etc but doesn't have any count data back from the poll.php.
    Test that there is data before assigning it, eg
        if(event.target.data.choice1Count){
            count1_txt.text =  event.target.data.choice1Count;
            count2_txt.text =  event.target.data.choice2Count;
            count3_txt.text =  event.target.data.choice3Count;

  • ActionScript 3 + PHP: TypeError: Error #2007: Parameter text must be non-null.

    Hi - Still new to flash as3 and php -
    it is a contact form page - user puts in information - i am to receive it in an email address their information
    as well the variables get sent back from the php to the .swf file.
    I am receiving these errors and not knowing how to fix them.
    any help would be much appreciated. thank you in advance really.
    below are the errors in flash - as3 code - and php code setup.
    errors:
    ActionScript 3 + PHP: TypeError: Error #2007: Parameter text must be non-null:
      at flash.text::TextField/set text()
              at kwangjaekim_fla::wholeform_16/completeHandler()
              at flash.events::EventDispatcher/flash.events:EventDispatcher::dispatchEventFunction()
              at flash.events::EventDispatcher/dispatchEvent()
              at flash.net::URLLoader/flash.net:URLLoader::onComplete()
    my as3 code is the following:
    // build variable name for the URL Variables loader
    var variables:URLVariables = new URLVariables();
    //Build the varSend variable
    var varSend:URLRequest = new URLRequest("contact_parse.php");
    varSend.method = URLRequestMethod.POST;
    varSend.data = variables;
    //Build the varLoader variable
    var varLoader:URLLoader = new URLLoader;
    varLoader.dataFormat = URLLoaderDataFormat.VARIABLES;
    varLoader.addEventListener(Event.COMPLETE, completeHandler);
    //handler for the PHP  script completion and return of status
    function completeHandler(event:Event):void{
              //value is cleared at ""
              name_txt.text = "";
              contact_txt.text = "";
              msg_txt.text = "";
              //Load the response PHP here
              status_txt.text = event.target.data.return_msg;
    //Add event listener for submit button click
    submit_btn.addEventListener(MouseEvent.CLICK, ValidateAndSend);
    //function ValidateAndSend
    function ValidateAndSend(event:MouseEvent):void{
              //validate fields
              if(!name_txt.length){
                        status_txt.text = "Please Enter Your Name";
              }else if(!contact_txt.length){
                        status_txt.text = "Please Enter Your Contact Detail";
              }else if(!msg_txt.length){
                        status_txt.text = "Please Enter Your Message";
              }else {
              // ready the variables in form for sending
      variables.userName = name_txt.text;
              variables.userContact = contact_txt.text;
              variables.userMsg = msg_txt.text;
              // Send the data to PHP now
    varLoader.load(varSend);
    submit_btn.addEventListener(MouseEvent.CLICK, function(){MovieClip(parent).gotoAndPlay(151)});
              } // Close else condition for error handling
    } // Close validate and send function
    my php code is the following:
    <?php
    // Create local PHP variables from the info the user gave in the Flash form
    $senderName   = $_POST['userName'];
    $senderEmail     = $_POST['userContact'];
    $senderMessage = $_POST['userMsg'];
    // Strip slashes on the Local variables
    $senderName   = stripslashes($senderName);
    $senderContact     = stripslashes($senderContact);
    $senderMessage   = stripslashes($senderMessage);
    //!!!!!!!!!!!!!!!!!!!!!!!!!     change this to my email address     !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
                              $to = "put iny me email address";
         // Place sender Email address here
        $from = "$senderContact ";
        $subject = "Contact from your site";
        //Begin HTML Email Message
        $message = <<<EOF
    <html>
      <body bgcolor="#FFFFFF">
    <b>Name</b> = $senderName<br /><br />
    <b>Contact</b> = <a href="mailto:$senderContact">$senderEmail</a><br /><br />
    <b>Message</b> = $senderMessage<br />
      </body>
    </html>
    EOF;
       //end of message
        $headers  = "From: $from\r\n";
        $headers .= "Content-type: text/html\r\n";
        $to = "$to";
        mail($to, $subject, $message, $headers);
    exit();
    ?>
    thank you once again
    jay

    thank you Ned -
    i put in the trace line as you mentioned -
    and this is what i received -
    returns: undefined
    TypeError: Error #2007: Parameter text must be non-null
              at flash.text::TextField/set text()
              at kwangjaekim_fla::wholeform_16/completeHandler()
              at flash.events::EventDispatcher/flash.events:EventDispatcher::dispatchEventFunction()
              at flash.events::EventDispatcher/dispatchEvent()
              at flash.net::URLLoader/flash.net:URLLoader::onComplete()
    what does this mean exactly?
    thank you for the help really

  • Passing Condition as lexical parameter

    Hi All,
    I am developing one XML report by using XML Dtata templet.
    I have the require ment like to check the cdition on bassis of the USER Parameter value if the parameter is null then place the min and max value of the column.
    In my data templet I declare the lexical parameter
    And in my PL/SQL package I declare the function where I am building the string.
    When I am submitting the cuncorrent program it is throughing me the error.
    Data templet
    <?xml version="1.0" encoding="UTF-8" ?>
    <dataTemplate name="XXGLR005_1" defaultPackage="XXX_GL_GLSPF_XMLP_PKG" version="1.0">
    <properties>
    <property name="include_parameters" value="true"/>
    <property name ="debug_mode" value="on" />
    </properties>
    <parameters>
              <parameter name="p_ledger" dataType="varchar2"/>
              <parameter name="p_balancing" dataType="varchar2"/>
              <parameter name="p_start_period" dataType="varchar2"/>     
              <parameter name="p_end_period" dataType="varchar2"/>
              <parameter name="p_start_fc" dataType="varchar2"/>
              <parameter name="p_end_fc" dataType="varchar2"/>
              <parameter name="p_start_site" dataType="varchar2"/>          
              <parameter name="p_end_site" dataType="varchar2"/>
              <parameter name="p_where" dataType="varchar2"/>
         </parameters>
    <lexicals>
    </lexicals>
    <dataQuery>
    <sqlStatement name="Q_1">
    <![CDATA[
    SELECT account,
    account_description,
    SUM (amount_period_range) amount_period_range,
    SUM (fisical_ytd_amount) fisical_ytd_amount,
    SUM (cumilative_found) cumilative_found,
    account_type,actual_flag,period_name
    FROM (SELECT gcc.segment4 ACCOUNT, ffv.description account_description,
    (CASE ba.currency_code
    WHEN 'CAD'
    THEN (ba.period_net_dr - ba.period_net_cr)
    ELSE (ba.period_net_dr_beq - ba.period_net_cr_beq)
    END
    ) AS amount_period_range,
    (CASE ba.currency_code
    WHEN 'CAD'
    THEN ( (ba.begin_balance_dr - ba.begin_balance_cr)
    + (ba.period_net_dr - ba.period_net_cr)
    ELSE ( (ba.begin_balance_dr_beq
    - ba.begin_balance_cr_beq
    + (ba.period_net_dr_beq - ba.period_net_cr_beq)
    END
    ) AS fisical_ytd_amount,
    (CASE ba.currency_code
    WHEN 'CAD'
    THEN ( (ba.begin_balance_dr - ba.begin_balance_cr)
    + (ba.project_to_date_dr - ba.project_to_date_cr
    ELSE ( (ba.begin_balance_dr_beq
    - ba.begin_balance_cr_beq
    + ( ba.project_to_date_dr_beq
    - ba.project_to_date_cr_beq
    END
    ) AS cumilative_found,
    gcc.account_type account_type, ba.period_name,
    ba.actual_flag
    FROM gl_code_combinations gcc,
    gl_balances ba,
    gl_periods gp,
    fnd_flex_value_sets fvs,
    fnd_flex_values_vl ffv
    WHERE gcc.code_combination_id = ba.code_combination_id
    AND ba.period_name = gp.period_name
    AND ffv.flex_value_set_id = fvs.flex_value_set_id
    AND ffv.flex_value = gcc.segment4
    AND fvs.flex_value_set_name = 'AHS_ACCOUNT'
    AND ba.actual_flag <> 'B'
    AND gcc.segment1 = '101'
    &p_where
    AND gcc.segment2 BETWEEN '0006' AND '0006'
    AND gcc.segment4 = '31030000'
    AND gp.start_date >= TO_DATE ('01/08/2010', 'DD-MM-YYYY')
    AND gp.end_date <= TO_DATE ('30/11/2010', 'DD-MM-YYYY')
    AND gcc.account_type IN ('E', 'R'))
    GROUP BY period_name, actual_flag, ACCOUNT, account_description, account_type
    ]]>
    </sqlStatement>
    <sqlStatement name="Q_2">
    <![CDATA[
    SELECT NAME LEDGER_NAME
    FROM gl_ledgers
    WHERE ledger_id =:p_ledger
    ]]>
    </sqlStatement>
    </dataQuery>
    <dataTrigger name="beforeReportTrigger" source="XXX_GL_GLSPF_XMLP_PKG.XXX_GL_SPF_SUMMARY_REP" />
    <dataStructure>
         <group name="G_1" source="Q_1">
                   <element name="account" value="account"/>
                   <element name="account_description" value="account_description"/>
                   <element name="amount_period_range" value="amount_period_range"/>
                   <element name="fisical_ytd_amount" value="fisical_ytd_amount"/>
                   <element name="cumilative_found" value="cumilative_found"/>
                   <element name="account_type" value="account_type"/>
         </group>
         <group name="G_2" source="Q_2">
              <element name="LEDGER_NAME" dataType="varchar2" value="LEDGER_NAME"/>
         </group>
         </dataStructure>
    </dataTemplate>
    Package Specification
    CREATE OR REPLACE PACKAGE APPS.XXX_GL_GLSPF_XMLP_PKG AUTHID CURRENT_USER AS
    -- Package Name : XXX_GL_GLSPFDETAIL_XMLP_PKG
    -- Author's Name : Nihar Ranjan Panda
    -- RICE Object id : GL-REP-05
    -- Purpose : Package Specification
    -- Program Style :
    -- Maintenance History
    -- Date Version# Name Remarks
    -- 28-Nov-2010 1.0 Nihar Ranjan Panda Initial Devp
    --Global Parameters
    p_ledger varchar2(100);
    p_balancing varchar2(10);
    p_start_period varchar2(10);
    p_end_period varchar2(10);
    p_start_fc varchar2(20);
    p_end_fc varchar2(20);
    p_start_site varchar2(10);
    p_end_site varchar2(10);
    p_start_mail_id varchar2(30);
    p_end_mail_id varchar2(30);
    p_purge_history varchar2(10);
    p_where varchar2(1000);
    P_CONC_REQUEST_ID number;
    type spf_ref_cursor is REF CURSOR;
    type rec_spf is record
    account varchar2(20),
    account_description varchar2(100),
    amount varchar2(20),
    account_type varchar2(1),
    currency varchar2(3),
    gl_date varchar2(11),
    je_category varchar2(50),
    code_combination_id varchar2(100),
    line_description gl_je_lines.description%Type,
    batch_name gl_je_batches.NAME%Type,
    je_line_num gl_je_lines.je_line_num%TYPE,
    --transaction_date varchar2(11),
    je_header_num gl_je_headers.je_header_id%Type
    function XXX_GL_SPF_SUMMARY_REP return boolean;
    END XXX_GL_GLSPF_XMLP_PKG;
    Package body
    CREATE OR REPLACE PACKAGE BODY APPS.XXX_GL_GLSPF_XMLP_PKG
    AS
    -- Package Name : XXX_GL_GLSPFDETAIL_XMLP_PKG
    -- Author's Name : Nihar Ranjan Panda
    -- RICE Object id : GL-REP-05
    -- Purpose : Package Body
    -- Program Style :
    -- Maintenance History
    -- Date Version# Name Remarks
    -- 28-Nov-2010 1.0 Nihar Ranjan Panda Initial Devp
    FUNCTION XXX_GL_SPF_SUMMARY_REP
    RETURN BOOLEAN
    IS
    l_min_fc VARCHAR2 (20) := '';
    l_max_fc VARCHAR2 (20) := '';
    l_min_site VARCHAR2 (20) := '';
    l_max_site VARCHAR2 (20) := '';
    l_start_date VARCHAR2 (11) := '';
    l_end_date VARCHAR2 (11) := '';
    BEGIN
    IF p_start_fc IS NULL
    THEN
    SELECT MIN (flex_value)
    INTO l_min_fc
    FROM fnd_flex_values_vl
    WHERE flex_value_set_id =
    (SELECT flex_value_set_id
    FROM fnd_flex_value_sets
    WHERE flex_value_set_name = 'AHS_FUNCTIONAL_CENTRE');
    p_start_fc := l_min_fc;
    END IF;
    IF p_end_fc IS NULL
    THEN
    SELECT MAX (flex_value)
    INTO l_max_fc
    FROM fnd_flex_values_vl
    WHERE flex_value_set_id =
    (SELECT flex_value_set_id
    FROM fnd_flex_value_sets
    WHERE flex_value_set_name = 'AHS_FUNCTIONAL_CENTRE');
    p_end_fc := l_max_fc ;
    END IF;
    IF p_start_site IS NULL
    THEN
    SELECT MIN (flex_value)
    INTO l_min_site
    FROM fnd_flex_values_vl
    WHERE flex_value_set_id = (SELECT flex_value_set_id
    FROM fnd_flex_value_sets
    WHERE flex_value_set_name = 'AHS_SITE');
    p_start_site :=l_min_site;
    END IF;
    IF p_end_site IS NULL
    THEN
    SELECT MAX (flex_value)
    INTO l_max_site
    FROM fnd_flex_values_vl
    WHERE flex_value_set_id = (SELECT flex_value_set_id
    FROM fnd_flex_value_sets
    WHERE flex_value_set_name = 'AHS_SITE');
    p_end_site := l_max_site;
    END IF;
    SELECT TO_CHAR (start_date, 'DD-MM-YYYY')
    INTO l_start_date
    FROM gl_periods
    WHERE period_name = p_start_period;
    SELECT TO_CHAR (end_date, 'DD-MM-YYYY')
    INTO l_end_date
    FROM gl_periods
    WHERE period_name = p_end_period;*/
    p_where := ('AND gcc.segment3 BETWEEN '''|| p_start_fc ||''' AND '''||p_end_fc||''
    AND gcc.segment2 BETWEEN '''|| p_start_site ||''' AND '''||p_end_site||'''
    AND gp.start_date >= '''||TO_DATE (l_start_date,'DD-MM-YYYY')||'''
    AND gp.end_date <= '''||TO_DATE (l_end_date,'DD-MM-YYYY')||''''*/
    RETURN (TRUE);
    EXCEPTION
    WHEN OTHERS
    THEN
    raise_application_error (-20101,NULL);
    NULL;
    END XXX_GL_SPF_SUMMARY_REP;
    END XXX_GL_GLSPF_XMLP_PKG;
    Error file
    Custom Extensions: Version : UNKNOWN
    Copyright (c) 1979, 1999, Oracle Corporation. All rights reserved.
    XXGLR005 module: AHS GL SPF Summary Report
    Current system time is 07-DEC-2010 23:39:22
    XDO Data Engine Version No: 5.6.3
    Resp: 20434
    Org ID : 82
    Request ID: 3275555
    All Parameters: p_ledger=2021:p_balancing=101:p_start_period=AUG-10:p_end_period=NOV-10:p_start_fc=71110600018:p_end_fc=71110600018:p_start_site=0006:p_end_site=0006
    Data Template Code: XXGLR005
    Data Template Application Short Name: XXX
    Debug Flag: N
    {p_end_period=NOV-10, p_end_fc=71110600018, p_end_site=0006, p_start_fc=71110600018, p_balancing=101, p_start_period=AUG-10, p_ledger=2021, p_start_site=0006}
    Calling XDO Data Engine...
    [120710_113928978][][STATEMENT] Start process Data
    [120710_113928979][][STATEMENT] Process Data ...
    [120710_113928981][][STATEMENT] Executing data triggers...
    [120710_113928981][][STATEMENT] BEGIN
    XXX_GL_GLSPF_XMLP_PKG.p_ledger := :p_ledger ;
    XXX_GL_GLSPF_XMLP_PKG.p_balancing := :p_balancing ;
    XXX_GL_GLSPF_XMLP_PKG.p_start_period := :p_start_period ;
    XXX_GL_GLSPF_XMLP_PKG.p_end_period := :p_end_period ;
    XXX_GL_GLSPF_XMLP_PKG.p_start_fc := :p_start_fc ;
    XXX_GL_GLSPF_XMLP_PKG.p_end_fc := :p_end_fc ;
    XXX_GL_GLSPF_XMLP_PKG.p_start_site := :p_start_site ;
    XXX_GL_GLSPF_XMLP_PKG.p_end_site := :p_end_site ;
    XXX_GL_GLSPF_XMLP_PKG.p_where := :p_where ;
    :XDO_OUT_PARAMETER := 1;
    END;
    [120710_113928985][][STATEMENT] 1:2021 :
    [120710_113928985][][STATEMENT] 2:101 :
    [120710_113928985][][STATEMENT] 3:AUG-10 :
    [120710_113928985][][STATEMENT] 4:NOV-10 :
    [120710_113928985][][STATEMENT] 5:71110600018 :
    [120710_113928985][][STATEMENT] 6:71110600018 :
    [120710_113928985][][STATEMENT] 7:0006 :
    [120710_113928985][][STATEMENT] 8:0006 :
    [120710_113928985][][STATEMENT] 9:null :
    [120710_113929388][][STATEMENT] Executing data triggers...
    [120710_113929388][][STATEMENT] Declare
    l_flag Boolean;
    BEGIN
    l_flag := XXX_GL_GLSPF_XMLP_PKG.XXX_GL_SPF_SUMMARY_REP ;
    if (l_flag) then
    :XDO_OUT_PARAMETER := 1;
    end if;
    end;
    [120710_113929420][][STATEMENT] p_ledger
    [120710_113929420][][STATEMENT] p_balancing
    [120710_113929420][][STATEMENT] p_start_period
    [120710_113929420][][STATEMENT] p_end_period
    [120710_113929420][][STATEMENT] p_start_fc
    [120710_113929420][][STATEMENT] p_end_fc
    [120710_113929421][][STATEMENT] p_start_site
    [120710_113929421][][STATEMENT] p_end_site
    [120710_113929421][][STATEMENT] p_where
    [120710_113929421][][STATEMENT] Writing Data ...
    [120710_113929426][][STATEMENT] &p_where
    java.lang.NullPointerException
         at oracle.apps.xdo.dataengine.DataTemplateParser.getObjectVlaue(DataTemplateParser.java:1754)
         at oracle.apps.xdo.dataengine.DataTemplateParser.replaceSubstituteVariables(DataTemplateParser.java:1473)
         at oracle.apps.xdo.dataengine.XMLPGEN.processSQLDataSource(XMLPGEN.java:456)
         at oracle.apps.xdo.dataengine.XMLPGEN.writeData(XMLPGEN.java:445)
         at oracle.apps.xdo.dataengine.XMLPGEN.writeGroupStructure(XMLPGEN.java:308)
         at oracle.apps.xdo.dataengine.XMLPGEN.processData(XMLPGEN.java:273)
         at oracle.apps.xdo.dataengine.XMLPGEN.processXML(XMLPGEN.java:215)
         at oracle.apps.xdo.dataengine.XMLPGEN.writeXML(XMLPGEN.java:254)
         at oracle.apps.xdo.dataengine.DataProcessor.processDataStructre(DataProcessor.java:390)
         at oracle.apps.xdo.dataengine.DataProcessor.processData(DataProcessor.java:355)
         at oracle.apps.xdo.oa.util.DataTemplate.processData(DataTemplate.java:334)
         at oracle.apps.xdo.oa.cp.JCP4XDODataEngine.runProgram(JCP4XDODataEngine.java:294)
         at oracle.apps.fnd.cp.request.Run.main(Run.java:157)
    Start of log messages from FND_FILE
    End of log messages from FND_FILE
    Executing request completion options...
    Finished executing request completion options.
    Concurrent request completed
    Current system time is 07-DEC-2010 23:39:29
    Could any body please help me fixing this issue...

    Nihaapps,
    It seems like you are missing a default value for p_where. If data templates have the same requirements as RDFs, then lexicals must have a default value that will be valid when the query is verified. The query would have to be checked for validity, and to do that, it has to fill in a value where &p_where is.
    Kurz

  • Problem when using WEB.SHOW_DOCUMENT and passing in lexical parameter

    Hi,
    I got a blank page with error "An error has occured while trying to use this document" when I tried to use web.show_document and passing a lexical parameter to 10g report on 10gAS. The URL in the web.show_document is:
    http://<srvname>:<portnum>/reports/rwservlet?server=repserver90&report=myrpt.rdf&destype=Cache&desformat=pdf&userid=<usr>/<pw>@<db>&where_clause=where%20product_type%20in%20('REPORT')
    If I change the desformat to htmlcss, it is fine to display the report. But doesn't work with desformat=pdf. The pdf file has been generated in the cache. Why can't it display on the screen.
    Also I tried to use double quote the value for where_clause. The pdf report showed up. But it ignored the where clause.
    Experts please help.
    Ying

    I use lexical parameters and they work fine, but I use a parameter list. The code is contained in a form that is called by all forms that wish to run a report. This way you only need the logic for printing in a single form. If you want the form, email me at [email protected]

  • Target system install problem (SAPINST searching for Non unicode kernel)

    Hi,
    I'm currently performing a unicode conversion (from 4.7 to EHP4). I am finished with the upgrade and I'm now in the unicode conversion part.
    I have completed the export and selected unicode as the target system. I am done with source system uninstallation and I'm now installing the unicode target system.  I have selected unicode during the parameter selection (it's the default option anyway) but during the part where it will ask for the kernel DVD, it doesn't accept the path of my unicode kernel (and instead looks for the non-unicode kernel) 

    Hi Markus,
    Thanks for your response. This problem is now resolved. It turns out that there are some remaining files from the old /usr/sap/<> and /sapmnt/SID/exe that were not deleted yet (after uninstalling for non unicode system). I proceeded to delete again these files and ensure that there are no files from the non unicode system

  • JCA / JDBC Configured for non-XA Attempting XA Transaction Commit

    I am attempting to create simple BPEL SOA composites in SOA 11.1.1.5 that use a DbAdapter to execute a stored procedure in an 11g database. The database task being performed only involves a single database and does not require transaction support. I have carefully stepped through the creation of the DataSource and JCA pointing through the DbAdapter to the JDBC DataSource so XA transaction support is disabled, the JCA pool sets the transaction mode to "No transaction" and the JCA pool uses the dataSource value to point to the JNDI name of the JDBC pool rather than the xADataSource value.
    Visually,
    DataSource definition:
    name = jdbc/myserviceDataSource
    driver = oracle.jdbc.xa.client.OracleXADataSource
    url = jdbc:oracle:thin:@mydbhost.myfirm.com:1521:GENERIC
    use XA DataSource = unchecked
    set XA timeout = unchecked
    Keep XA connection until transaction complete = checked
    keep connection after local transaction = checked
    JCA definition:
    name = eis/DB/myserviceDataSource
    dataSourceName = jdbc/myserviceDataSource
    xADataSourceName = (blank)
    platform class name = org.eclipse.persistence.platform.database.Oracle10Platform
    Transaction | Transaction Support: no transaction
    This configuration works on one sandbox server and I got it working in a second sandbox server. However, after deleting the JDBC and JCA pools to go through the process one more time to document the procedure on the second server, I am unable to get the configuration working again. The WebLogic domain appears to be resurrecting portions of an old configuration that still references the JNDI name of the JDBC pool in the xADataSourceName parameter. I have unpacked the DbAdapter.rar archive for the DbAdapter and verified the contents of the ./META-INF/weblogic-ra.xml file don't use the xADataSouceName parameter. The Deployment Plan for the DbAdapter (named DbAdapterPlan.xml in $SOA_HOME/soa/connectors ) also explicitly configures the JCA pool using the dataSourceName value leaving the xADataSourceName value blank.
    However, executing the SOA service using this JCA connection results in this error:
    java.sql.SQLException: Cannot call Connection.commit in distributed transaction.
    Again, I know the theoretical answer to this question is to disable transactions in the JCA and JDBC configurations and don't use the xADataSourceName element of the JCA configuration to point to the JDBC pool. However, after validating those elements and restarting the pools or performing an Update on the DbAdapter deployment, WebLogic seems to still create connections through the JDBC pool with transactions enabled.
    Any suggestions?
    Should I just completely undeploy the DbAdapter and redeploy it from the SOA binary installation directory? These are just lab machines right now so that's obviously not a good long term answer for production use but may help start over with refining a better procedure for doing this.

    You should use a non-xa driver for your data source...
    From the weblogic docs...
    Configure Transaction Options
    When you configure a JDBC data source using the Administration Console, WebLogic Server automatically selects specific transaction options based on the type of JDBC driver:
    For XA drivers, the system automatically selects the Two-Phase Commit protocol for global transaction processing.
    For non-XA drivers, local transactions are supported by definition, and WebLogic Server offers the following options ...
    http://docs.oracle.com/cd/E23943_01/web.1111/e13737/jdbc_datasources.htm#autoId8
    Cheers,
    Vlad

  • Lexical Parameter in subquery?

    Is it possible?
    select * from ( select a,b,c from t where &p_where ) where a>1
    It doesn't seem to like this construct - is there a proper way to do this? p_where will be built based on the parameters selected at runtime.
    Thanks,
    stephan

    Did you supply an initial value for "p_where"? If it is NULL, your sub-query will be invalid because Reports Builder will see it as (note the missing where condition):
    select * from ( select a,b,c from t where  ) where a>1You could supply an initial value such as "1=1", or, you could remove the key word "where" from the subquery and put it in the lexical parameter:
    select * from ( select a,b,c from t &p_where ) where a>1Ah, I see dmars beat me to the punch.
    Message was edited by:
    Brian Hill

  • Lexical Parameter in Oracle Reports . . .

    Hi all,
    I am trying to pass a value to a query in oracle reports . . .
    the use of the parameter is to add 2 additional columns to an existing query, if a bind parameter is set to 'Yes' else the parameter carries a value NULL;
    Here is the code I have written in After Parameter Form:
    if :P_ROLL_DETAIL_PRN='Yes' then
    :P_CUSTOM_CODE:=NULL;
    :P_CUSTOM_CODE:=:P_CUSTOM_CODE||'wdd.LOT_NUMBER' ||','||'wdd.SUBLOT_NUMBER';
    else
    :P_CUSTOM_CODE:='';
    end if;
    P_Roll_detail is the bind parameter . . and P_CUSTOM_CODE is the Lexical Parameter . ..
    It works for value 'No' of P_ROLL_DETAIL .. . but for Value 'Yes' I get an error . . .
    REP-0499: Column '' selected by the query is incompatible with report defination
    Kindly help...
    Regards
    Jagan

    Lexical parameters can not be used to change the number of selected columns. Consider selecting max number of columns always, but populating last two columns with either NULL values or table columns based on the parameter. Also, manipulations can be done in the layout model using format triggers.

  • Lexical parameter in bi report

    Hi All,
    I have a requirement as below :
    I have a select query in my XML file which is returning two rows for a order
    ex: select email,fax,order_number from
    oe_order_headers_all
    hz_contact_points,
    My requirement is i need to pass 3 parameters such as order_number, email, fax to the report in that case it should take only the parameters what i am passing, and it should not take the hz_contact_points table from the query
    so i need to achieve this through lexical parameter, any one please help me on this.
    Thanks

    i think you didn't read that i'm mentioned
    in datatemplate
    <parameters>
    <parameter name="P_YOUR_PARAM" dataType = "number" defaultValue="0"></parameter>
    </parameters>
    <sqlStatement name="Q_DATA">
    <![CDATA[
    select &your_columns
    from  &your_tables
    where &your_where_clause
    ]]>
    </sqlStatement>
    </dataQuery>
    <dataTrigger name="beforeReportTrigger" source="XX_YOUR_PKG.BeforeReport"/>
    <dataStructure>
    ...in package
    FUNCTION BeforeReport RETURN BOOLEAN IS
    BEGIN
    IF P_YOUR_PARAM = 'some_value' THEN
      your_columns := 'column1, column2';
      your_tables := 'table1, table2';
      your_where_clause := 'table1.id = table2.id';
    ELSE
      your_columns := 'column3, column4';
      your_tables := 'table2, table3';
      your_where_clause := 'table2.id = table3.id';
    END IF;
    END;you can use another way - create your xml output by package like
    fnd_file.put_line(fnd_file.output, '<ROWSET>');
    fnd_file.put_line(fnd_file.output, '<ROW>');
    fnd_file.put_line(fnd_file.output, '<DAT>' || some_value || '</DAT>');
    fnd_file.put_line(fnd_file.output, '</ROW>');
    fnd_file.put_line(fnd_file.output, '</ROWSET>');in package you can use all that you want

  • Lexical Parameter in Reports 6i Program Unit

    A report I'm writing requires me to use the lexical parameter in a program unit rather than a query in the data model. Lexical parameters in a query have always worked with the example "WHERE &my_parameter". But using "WHERE :my_parameter" or "WHERE &my_parameter" in a program unit gave me the error "expression is of wrong type" so the code wouldn't compile in the editor.
    The parameter returns "segment1 = '8675309' AND segment2 = 'Jenny'I was able to resolve it by using the first column of the expression and the replace function on the parameter so the program unit editor thinks it's a valid expression and the resulting line is a valid predicate that gets the correct data. Here's my example:
    WHERE segment1 = replace(:my_parameter, 'segment1 = ')The replace function strips off the "segment1 = " from the lexical parameter so the resulting line that gets passed to the server is:
    WHERE segment1 = '8675309' AND segment2 = 'Jenny'This solution will not work where the parameter could return something other than "segment1 = " at the beginning of the parameter string like "segment1 BETWEEN " or a different column name to compare other than segment1. Anyway, this is working but if there are better ways to do it I'd like to try them. Using Reports 6i with EBS 11.5.10.2.

    Hello,
    You'll find explanations and examples here :
    http://www.oracle.com/webapps/online-help/reports/10.1.2/topics/htmlhelp_rwbuild_hs/rwwhthow/whatare/dmobj/sq_a_lexical_references.htm
    This documentation is for Reports 10.1.2 but is valid for Reports 6i too ...
    Regards

Maybe you are looking for

  • When I connect my iPhone to my computer it is not recognized by iTunes.

    I have tried multiple ways to try and fix the problem but nothing is working!!!! Please help!!!!!! I have an iPhone 5 and have windows 8 on my computer.

  • FCP X DV Export Settings

    I need help with some export settings for DV in FCP X I've downloaded the 30 trial.  I'm working with a DV clip that's about 10 minutes long.  I'd like to export the finished moved to a file format so I can brun it to a DVD and send to relatives, etc

  • Attaching a JOptionFrame to an Applet

    Is it possible to attach a JOptionPane to an applet? If so how can this be done? Thanks.

  • RE:MAX_ERRORS

    Version 9.2 I am trying to run a simple row based mapping so that either all rows are loaded or none. WHat setting of MAX_NO_OF_ERRORS and COMMIT_SIZE/BULK_SIZE will accomplish this? - simple src to trg map (Insert). I know I can run this in SET base

  • Update Lightroom and PS via cc (2014)

    Hello! I wonder if this is the wanted behavior (I at least find it strange and not really user friendly). Using a Mac with the latest osX10.8. Photoshop now shows up in the CC as PS CC (2014) as well as a Photoshop CC upgade, also after the upgrade i