conditionally to assign a value to a parameter

I use this code to conditionally to assign a value to a parameter p_data_type:

<? If: H_ACCOUNT_HIER_DESC = 'IS '? > < param name = 'p_data_type' select = '' number' ' xdofo:ctx = 'start' / > <? end if? >
<? If: H_ACCOUNT_HIER_DESC = "BY"? > < param name = 'p_data_type' select = '' text' ' xdofo:ctx = 'start' / > <? end if? >

However, I get the following error.

Caused by: oracle.xdo.parser.v2.XMLParseException: duplicate definition of variable 'p_data_type '.

Once I get this job, I want to use it as follows:

<? sorting: current-group () / ACCOUNT_SEQ; ' ascending '; type_donnees = "{$p_data_type}"? >

Does anyone have any suggestions on how I could do this?

Thank you
TAM

You can't do that, follow below


  

And you can view it as $p_data_type

Tags: Business Intelligence

Similar Questions

  • ORA-06550 assign the value to the parameter

    Hi trying to assign the date quarter to a variable and get this error message, how can I assign a value to this parameter to PL/SQL:

    declare

    Neighborhood varchar (2);

    Start

    Select to_char (sysdate, 'YYYY-Q') in double shifts;

    dbms_output.put_line (Quarter);

    end;

    [Error] Execution (05:42): ORA-06550: line 2, column 42:

    PLS-00201: identifier 'vQUARTER' must be declared.

    ORA-06550: line 2, column 50:

    PL/SQL: ORA-00904: invalid identifier

    ORA-06550: line 2, column 3:

    PL/SQL: SQL statement ignored

    ORA-06550: line 3, column 26:

    PLS-00201: identifier 'vQUARTER' must be declared.

    ORA-06550: line 3, column 5:

    PL/SQL: Statement ignored

    your error message refers to vQUARTER, which is not listed in your code example.

    In addition, quarter is 2 characters such as defined in your code, but you ask to 6 characters in there, for example, 2016-1

  • Formatiing conditional based on the value of the parameter

    Hi all

    I have a report of rdf. It has two layouts (one for English) and one for the Germany. Based on the setting of language last matching configuration is selected.

    But how could do us the same using XML Publisher.

    Simply, we can write an If statement indicating if: P_language = "English".


    But how do we reference the input parameter: P_Lnaguage in Model Builder and how do you write the if statement.

    Please let me know.

    Kind regards
    Kumar.

    Hello

    at the top of the model of provision yor set your setting in a form field:

    Then you can use this setting in an if condition:

    Concerning
    Rainer

  • Oracle how to assign a date value in a parameter declaration

    How can I assign a date value to a parameter declaration in SQL?

    Here are my existing script.

    CURRENT SITUATION:

    select distinct as summary ' iCash EAD error Summary", count (*).
    AAA. BKS_ICASH_EAD_ERRORS
    where creation_date > to_date (' 26/05/12 08:50 "," mm/dd/yy HH24 ')
    Summary group


    I want to assign the date I'm looking for a parameter and use the setting in my query.


    OBJECTIVE:

    DECLARE
    pCreateDate DATE;

    exec: pCreateDate: = 5/26/12-08:50 ';

    select distinct as summary ' iCash EAD error Summary", count (*).
    AAA. BKS_ICASH_EAD_ERRORS
    where creation_date > to_date (: pCreateDate, "mm/dd/yy HH24 '")
    Summary group

    Hello

    In SQL * Plus, you can do this:

    VARIABLE     pcreatdate     VARCHAR2 (20)
    EXEC           :pcreatedate := '5/26/12 8:50';
    
    SELECT    summary          AS "iCash EAD Error Summary"
    ,       COUNT (*)          AS "Total Count"
    FROM        aaa.bks_icash_ead_errors
    WHERE       creation_date  > TO_DATE (:pcreatedate, 'MM/DD/RRRR HH24:MI')
    GROUP BY  summary
    ;
    

    'GROUP BY summary' means that you will get a line of output for each distinct value of the summary. He has no need of SELECT DISTINCT since the GROUP BY is already ensuring that the lines are separate.

    There is no variable binding DATE in SQL * Plus, so you must use a VARCHAR2.
    If you do something similar in PL/SQL, you can use a DATE variable. Make sure that you do not call TO_DATE on something that is already a DATE.

    Published by: Frank Kulash on June 26, 2012 14:01

  • How to write the condition with the value of the parameter

    Hello
    I'm working on siebel BI publisher report. I am able to display the value of the parameter in the report.

    Now, I wanted to do something logical based on the value of the parameter.

    for example: If the user changes the value of the parameter then I have to call A submodel if user don't past not any value then it should not display A submodel

    can someone tell me how to write that above logic?

    If the parameter exists then MODEL of APPEAL one another do not call MODEL A

    Kind regards
    JAG


    Dial a submodel

  • How to assign the value to the application-level element

    Hello

    I'm learning to APEX.  I use version 4.2.6.

    My question is, I set a text field called 'FINANCIAL_YEAR' in the login page.  I wanted to know how to assign this value to a text element of Application level (on page sent), so that I can get this value through at my request.

    Thank you

    -Anand

    anand_gp wrote:

    Yes, I created a 'text area' under 'HTML' in the 'Home' page  Who accepts the exercise of a table through LOV.  I intend to assign this value to a global variable so that this variable can be read in any of the application to filter the result set from different tables (not yet built the rest of the application).  To do this, I was intending to use "Shared components"-> "Elements of Application".  I'm still not quite sure how it works.

    Start by reading the documentation on elements of application.

    Go to the shared components > Application parts and create your G_FINANCIAL_YEAR item. Value Session State Protection Restricted - can not be set the browser so that the value is not editable by the user, falsification of URLS or scripts.

    On the home page, if there is not already a button to submit the value of the fiscal year, add one in the HTML area, with the Action as a submit Pageclick. Otherwise, you can do without the button and using submit Page in Page Action when the changed value select the parameter in the list so he can undergo.

    Then, in the section of the Page processing, create a calculation:

    Point Type: Application-level element

    Calculate Item: Application: G_FINANCIAL_YEAR

    Point calculation: After submit

    Type of calculation: Value of the element

    Calculation:

    Run the application, select a value in the list of the fiscal year and submit the page. Review of current session state in the viewer of session state by clicking on the link of Session in the toolbar developer. Select the Elements of Application in the view list, and then click set. The element of your application and its current value must be visible. You can now reference value throughout your application by using the appropriate syntax.

    You should also consider if a default value (for example the current year) using a calculation Application from the point of calculation on the new Instance and coordinate the application point and part of the homepage using point application as the Source of value or an expression with Source page element, the value always, replacement of value that exists in the session state.

  • ADF: Assigning the value of column VO to OutputText.

    Hi all

    I have a VO who im showing as ADF read Table only. And one column that VO should be included outside of this table, I mean, I don't want to include this column in the table that I want to assign the value of the column to Text output component (Active).
    I want to assign the value of the column to the output text component.
    How can I achieve this.
    I think im clear with my requirement.

    Any answer will be really grateful.

    Please read this before posting
    https://forums.Oracle.com/forums/Ann.jspa?annID=56

    am now back to the topic.

    tell as an example.
    Here, I had to employee vo drag and drop as readonly af:table employee.
    in this readonly af:table no need to show their id of employee, but you don't want to show this id used as some text output at the top / bottom of the table.
    I think reason?. as it comes to your condition.

    If am so right, moving later.
    Drag and drop the af: table without employee id. and then drag and drop the employee as af text id: output
    important: employee select id in the user interface that came out text go to partial property inspector trigger are at table.

    You may wonder why I like this mean?
    If you like this then means that move through the records of documents / select in af:table means revalent employee id get you. This way you get the desired results. :)

    Thanks & cordially
    ADF7.

  • Assigning selected value of tree to an element node

    Hi guys,.

    I want to assign the value of the node in the tree selected to a page element. This can be a text box or label (view only). How can I do? I tried to use the 'Element of Page node selected' property that is available on the attributes of the tree. But I couldn't assign the value without refreshing the entire page.
    You have an idea?

    Thank you.

    I'll assume that you have a table in your database with columns (ID, PARENT_ID, VALUE) or something like that.

    OK, first go to your region of the tree and look at the SQL query. You will see that it is link attribute. By default, link attribute is set to redirect you to another or even from one page.
    You need modify this attribute of link with something like this:

    ' javascript:pageItemValue('_||) 'VALUE ' | ')' As link

    So click on the tree node, you ask function javascript and passing as the parameter value.

    Now, you just need to be pageItemValue. Go to Edit Page, header HTML and write this function:

    You can change (P1_ITEM) at what you want.

  • How to assign a value of the element from page to main page in the column element when Cre

    I have a form build on table T1. The T1 has a primary key defined (T1PK) and four other columns (C1 - C4). I have a form in this table. This form accepts the values of C1 to C4 and displayis an extra point, is not based on columns of T1 - P1_DUMMY. The form for T1PK element has the value "hidden and protected.
    When creating the form, I wanted that the value of the primary key (T1PK) will be obtained through existing trigger. I want to use the value stored in the page called "P1_DUMMY" for P1_T1PK.

    No matter what I do, I always get this error when I hit the button 'CREATE' on the page of the form:

    ORA-01400: cannot insert NULL into ('DEV'. "" T1 ". ("' T1PK")

    The Create button is a condition not to show if the the P1_T1PK page element is NULL. I created page rendering process, the process of transformation of page like this bock of PL/SQL:

    : P1_T1PK: =: P1_DUMMY

    But I still get ORA-01400. The form has the P1_DUMMY as display only, not not to store the State, so I can see that the P1_DUMMY element has the value I want (2).

    How to assign the value stored in P1_DUMMY in P1_T1PK when I click on the button CREATE on this form?

    Thank you for your time.

    Daniel

    Hello
    The belief question is the way in which the calculation is being defined. You are not using the &. rating (dot ampersand) in PL/SQL and SQL.

    Try this.

    1 define the calculation on P1_T1PK of Type calculation of value of the element
    2. on the next page to load textarea, enter P1_DUMMY. No. colon or &
    3. give appropriate conditions

    Kind regards

  • How to assign the value "ID or content dDocName" (property of the University Complutense of MADRID) Webcenter capture.

    Hello

    Could you please help me for the script for extracting Webcenter UCMS property in Webcenter Capture. I also have a requirement where I need to assign a value to the UCM property ' dDocName or content ID "of the capture of webcenter.

    Someone please help me with above scenarios.

    Hello

    Thanks for the reply. My requirement is, when check-in file to the AAU, it generates values to the property "docId" for the file that is unique. I need the value of the docId during validation webcenter capture processor. I solved this problem.

    I created a filter in the AAU for archiving profile. This filter is triggered whenever the Service factor of the AAU invoke. In this filter, I can get the value of "docID".

    Thank you.

  • Assign a value by default when you navigate to a field.

    Dear all,

    How can I assign a value by default when you browse a field? What triggers to use?

    Karthik Perumal

    Hello

    You have the wrong forum. Close this message, and then open a new forum of forms:

    Forms

  • Error ESTK "cannot assign a value.

    Dear friends, started a new project - and of course the new problems:.

    The SumOf (list of values) function works perfectly,

    but an equivalent of the function VsumOf (list of variables) stops at line 16 in the first iteration of the loop: cannot assign a value.

    At this point, the result variable is just - 132.09 - out sort of a numerical problem.

    var z = SumOf (11.1, -11.9, 12345679.0, -12345679.0, 124.5, -17, 18.9, 2.2, 2.5, 2.5, 2.5, 31.31, 312345679, -312345679); 
    alert ("SumOf the numbers = " + z); // giving 166.610000014305  (figures after the 000 are artifacts)
    
    var z = VsumOf (11.1, -11.9, 12345679.0, -12345679.0, 124.5, -17, 18.9, 2.2, 2.5, 2.5, 2.5, 31.31, 312345679, -312345679); 
    alert ("VsumOf the numbers = " + z);
    
    function VsumOf (valuePairs) {
      var nArguments = arguments.length;
      var j, z, result = 0;
      if (Math.floor(nArguments/2) * 2 !== nArguments) {return undefined;}
      
      for (j = 0; j < nArguments; j=++2) {
        if (isNaN(arguments[j])) {return NaN;}        // should be skipped in calling environment
        if (isNaN(arguments[j+1])) {return NaN;}
        z = arguments[j] * arguments[j+1];
        result = result + z;                          // <<== Can not assign value ???
      }
      return result;
    }
    
    // this one works correctly
    function SumOf (values) {
      var nArguments = arguments.length;
      var j, result= 0;
      for (j = 0; j < nArguments; j++) {
        if (isNaN(arguments[j])) {return NaN;}        // should be skipped in calling environment
        result = result + arguments[j];
      }
      return result;
    }
    

    Any ideas what really does this error message mean?

    Hi Klaus,

    Just change your line 12 for

      for (j = 0; j< narguments;="" j="j+2)" {="">

    It should work.

  • The assignment of value to the block multi-record in Oracle's 10 g

    Hi all

    I'm new to form of Oracle 10 g.

    I have a block of several recording that does not rely on the database. I need to assign the value to this block multi-record dynamically the ref cursor.

    I'm trying to set the value as below, but its does not work. Please help me on this.

    loop
         fetch cur Into screenval_rec ;
          exit when cur%notfound ;
          first_record;
       
      :BLOCK1.COL1:= screenval_rec.value1;
        :BLOCK1.COL2 := screenval_rec.value2;
        :BLOCK1.COL3:= screenval_rec.valu3;
      
         next_record;
    End loop;
    
    

    Kind regards

    REDA

    Hi Craig,.

    Thank you for your information.

    But I found the exact cause of this "Invalid cursor error' (ORA-01001) in Oracle forms. It is because of the unique enclosed in quotes the select statement of the REF cursor. I found in the paragraphs below Oracle.

    Note 170881.1 - ORA-1001 calling a stored procedure that contains a REF Cursor Oracle Forms

    Once I deleted the quotes, it's working properly now.

    Thanks again for your help.

    Kind regards

    REDA

  • Data mining - error on the insertion of the TREE_TERM_MINPCT_MODE value in the parameter array

    Hello

    In Data mining when I tried to insert some values into the parameter array. I get the error by trying to introduce TREE_TERM_MINPCT_MODE in the table.

    The model who was on trial for create was decision tree.

    BEGIN

    INSERT INTO DT_CA_SETTINGS_TEST (SETTING_NAME, SETTING_VALUE) VALUES

    (dbms_data_mining. TREE_TERM_MINPCT_MODE, to_char (1));

    END;

    Error report:

    ORA-06550: line 3, column 22:

    PLS-00302: component 'TREE_TERM_MINPCT_MODE' must be declared.

    ORA-06550: line 3, column 22:

    PL/SQL: ORA-00984: column not allowed here

    ORA-06550: line 2, column 4:

    PL/SQL: SQL statement ignored

    06550 00000 - "line %s, column % s:\n%s".

    * Cause: Usually a PL/SQL compilation error.

    * Action:

    Thank you
    Srikanth.

    Hello

    BEGIN

    INSERT INTO DT_CA_SETTINGS_TEST (SETTING_NAME, SETTING_VALUE) VALUES

    (dbms_data_mining. TREE_TERM_MINPCT_NŒUD,to_char (1));

    END;

    This isn't 'Mode' his 'NŒUD '.

    Run now.

    See you soon...

  • The value of MAXTRANS parameter ignored (30).

    I get the following error...

    Kills Feb 05 20:31:05 2013
    The value of MAXTRANS parameter ignored (30).
    kupprdp: master the DM00 process started with pid = 49, OS id = 6824
    to run - SYS. KUPM$ MCP. HAND ('SYS_EXPORT_SCHEMA_30', 'ORISSA_TRANSACTION', ' KUPC$ C_1_20130205203106', ' KUPC$ S_1_20130205203106', 0);
    kupprdp: work DW01 process began with worker id = 1, pid = 51, OS id = 9036
    to run - SYS. WORKER OF $ MAIN. HAND ('SYS_EXPORT_SCHEMA_30', 'ORISSA_TRANSACTION');


    Please suggest a solution...

    Hello

    What is the version?
    Check MOS 6347775 DocID.

    Kind regards

Maybe you are looking for

  • Radio missing in music on Apple TV

    I have an account paying music... course Apple TV, suddenly radio functionality does not come to the top in music, all white screen, no error.  All the other features of music are there.  Restarted Apple TV, without change.  Can use the Radio feature

  • iPhone 6s - iOS 9.3.2 - ringtone help

    Greetings. I'm looking for help to put a ringtone on my iPhone. I searched a bit on the forum and found a few things useful and followed precisely, but I guess quite precisely. That's what I've done so far. -Change the music to be 30 seconds or less.

  • New graphics card for HP Pavilion Elite HPE-170 t

    Hi, I'm getting artifacts screen sporadically, Ithink my video card is starting to go bad. I want to get a new one, but I do not know what will fit. My computer HP Pavilion Elite HPE-170 t: Intel Core i7 - 860 quad-core processor [2.8 GHz, 1 MB L2 +

  • 1st generation of &lt; CLOSED &gt; e motorcycle

    but I have no motorola reviews

  • Designating the license number of the window?

    Hello I had a problem with my Lenovo all-in-one (C series), and I guess I'll have to reinstall Windows. I have to download a Windows8.1 on the net, and then I'm going to need my license key. Those who are usually a sticker somewhere, but I don't see