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

Similar Messages

  • Can we use formula column in lexical parameter in sql query ...

    hi
    can we use formula column in lexical parameter in sql query ...
    as example
    i want to give
    select * from & c_table
    forumula
    function c_table
    if :p_sort = 1 then
    return 'dept'
    else
    return 'emp'
    end;
    c_table formula column
    is this possible ...
    i have such example in oracle apps reports
    if i try in ordinary report usinf emp table it show error ..
    how we can give formula column...
    please help me in this regard...
    Edited by: 797525 on Feb 20, 2012 9:31 PM

    thanks sir,
    iam not exactly saying select * from &c_table but some thing that like columns in select stmt also will be populated in user_parameters ,there are lot of table select.......from     mtl_demand md,     mtl_system_items msi,     mtl_txn_source_types     mtst,     mtl_item_locations loc     &C_source_from &C_from_cat
    &c_source_from and &c_from_cat formula column and there are defined at report level only ......
    pl/sql code &c_source_from is
    function C_source_fromFormula return VARCHAR2 is
    begin
    if :P_source_type_id = 2 then return(',MTL_SALES_ORDERS mkts');
    else if :P_source_type_id = 3 then return(',GL_CODE_COMBINATIONS gl');
    else if :P_source_type_id = 6 then return(',MTL_GENERIC_DISPOSITIONS mdsp');
    else if :P_source_type_id = 5 then
         if :C_source_where is null then
              return NULL;
         else
              return(',WIP_ENTITIES wip');
         end if;
    else if :P_source_type_id = 8 then return(',MTL_SALES_ORDERS mkts');
    else if :P_source_type_id is null then
    return(',MTL_SALES_ORDERS      mkts,
    MTL_GENERIC_DISPOSITIONS mdsp,
    GL_CODE_COMBINATIONS gl ');
    else null;
    end if; end if; end if; end if; end if; end if;
    RETURN NULL; end;
    this is forumula column i hope that you understand what iam saying
    please help me in this regard....
    thanking you...

  • Mapping of XML tags with column

    My xml structure is :
    <PARAMS>
    <ROWSET>
    <ROW NUM="1">
    <SID>man123</SID>
    <PO>
    <PO>OBJ1</PO>
    <PI>
    <PI>PARENTOBJ1 INSTANCE</PI>
    </PI>
    </PO>
    </ROW>
    </params>
    My table structure is :
    CREATE TABLE TEMP(SID VARCHAR2(20),PO POBJECT_T)
    where Object types are:
    CREATE OR REPLACE TYPE PINSTANCE_T AS OBJECT (PI VARCHAR2(255),CO COBJECT_T);
    CREATE OR REPLACE TYPE POBJECT_T AS OBJECT (PO VARCHAR2(255),PI PINSTANCE_T);
    To store this XML directly into table i have to have Column with name "PO" (same as XML tag).I am using this same table to store other XML with same tags . With this limitation its difficult to do so.Is there any way to map XML tag to column with different name????
    Thanks

    Hi,
    thx for your Reply,
    seems to work basicly but i get now in the IDE warnings with:
    "Data binding will not be able to detect changes when using
    square bracket operator. For Array, please use
    ArrayCollection.getItemAt() instead. "
    And how can i access the next item something like this didnt
    work right
    try someniceid.lastResult["some-root"]["someother-root"]
    I had to use single quotes (') to get it to work.
    Any ideas?
    Kind regards,
    Marko

  • [CS3][JS] Apply XML tag for selected text

    Hi
      I need to apply XML tag to selected text in a tagged content.The XML tag is already applied for paragraph.I need to apply XML Tag for selected text in a paragraph.
    I have used following code, it applies tag for entire paragraph,not a selected text in a paragraph.
    app.selection[0].associatedXMLElements[0].markupTag=myDoc.xmlTags.item("italic");
    Please suggest me.
    Regards
    kumar

    The example script, markup.jsx
    //Markup.jsx
    //An InDesign CS4 JavaScript
    //Shows how to use the markup method.
    main();
    function main(){
        mySetup();
        mySnippet();
        myTeardown();
    function mySetup(){
        var myDocument = app.documents.add();
        var myPage = app.activeWindow.activePage;
        var myRootXMLElement = myDocument.xmlElements.item(0);
        var myXMLTag = myDocument.xmlTags.add("xml_element");
        var myXMLElementA = myRootXMLElement.xmlElements.add(myXMLTag);
        myXMLElementA.contents = "This is a paragraph in an XML story.";
        var myTextFrame = myPage.textFrames.add({geometricBounds:myGetBounds(myDocument, myPage)});
        myTextFrame.contents = "This is the first paragraph in a text frame.\rThis is the second paragraph in a text frame.\rThis is the third paragraph in a text frame.\rThis is the fourth paragraph in a text frame.\r";
    function mySnippet(){
        //<fragment>
        var myDocument = app.documents.item(0);
        var myPage = myDocument.pages.item(0);
        myDocument.xmlElements.item(0).xmlElements.item(0).markup(myPage.textFrames.item(0));
        //</fragment>
    function myTeardown(){
    function myGetBounds(myDocument, myPage){
        var myPageWidth = myDocument.documentPreferences.pageWidth;
        var myPageHeight = myDocument.documentPreferences.pageHeight
        if(myPage.side == PageSideOptions.leftHand){
            var myX2 = myPage.marginPreferences.left;
            var myX1 = myPage.marginPreferences.right;
        else{
            var myX1 = myPage.marginPreferences.left;
            var myX2 = myPage.marginPreferences.right;
        var myY1 = myPage.marginPreferences.top;
        var myX2 = myPageWidth - myX2;
        var myY2 = myPageHeight - myPage.marginPreferences.bottom;
        return [myY1, myX1, myY2, myX2];
    I think you can use the markup function on the selected item (Text Object have a markup method)
    Thomas B. Nielsen
    http://www.lund-co.dk

  • REST API XML tags for person extension fields

    We are trying to use REST API to create a person. We are able to update most of the data but am unable to find the right xml tags for Person Extension fields like custom1 etc. Could you please help?

    Hi !
    In the Account WSDL, you have the ListOfAddress object. If you are using it, filling the field "StreetAddress2" should work...
    Max

  • Getting xml tags for PO releases.

    I need some help in getting xml tags for PO releases.
    When I refer metalink they gave me the following for Std PO.
    Create a new Standard Purchase Order and DO NOT approve it. Let it be in Incomplete status. Go to
    concurrent requests and run the 'PO Output for Communication' concurrent
    program will the following parameters:
    Print Selection: All
    Purchase Order Number From: The PO # you just created
    To: The PO # you just created
    Test: Debug
    May I know for PO releases what are additional parameters.I tried to enter release numbers in addition to the above.Bit it did not work,..
    I am having issue in getting buyer contact phone for PO releases.So I am trying to see if the work_tele_phone is available for Po releases xml tags.
    Can anyone please advise
    prasamb

    To get the tag name, you can use the following XSL stylesheet:
    <?xml version="1.0" encoding="UTF-8"?>
    <xsl:stylesheet version="1.0"
    xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
    <xsl:template match="node()">
    <xsl:value-of select="name()"/> <xsl:text> </xsl:text>
    <xsl:apply-templates/>
    </xsl:template>
    </xsl:stylesheet>

  • PDF PO Release - XML Tags for the Header and Line Attachments

    Hi,
    I request you to please help me in finding out the XML tags for the PDF PO Release Header and Line Attachments? I tried to get the XML data by running the 'PO Output for Communication' program with the parameter as 'Debug' but its completing normally without giving me the XML data in the log file.
    Please help me in finding the XML tags for the PDF PO Release for the Header and Line Attachments.
    Thanks,
    Kunal

    Hi Kunal,
    Following syntax will get you the header and line level short and long text attachments.
    --Header short text attachments
    <?for-each:HEADER_SHORT_TEXT_ROW?>
         <?SHORT_TEXT?>
    <?end for-each?>
    --Header long text attachments
    <?for-each:/PO_DATA/HEADER_ATTACHMENTS/LONG_TEXT?>
         <?.?>
    <?end for-each?>
    --Line short text attachments
    <?for-each:LINE_SHORT_TEXT_ROW?>
         <?SHORT_TEXT?>
    <?end for-each?>
    --Line long text attachments
    <?variable@incontext:PoLnID;'PO_LINE_ID'?><?for-each:/PO_DATA/LINE_ATTACHMENTS/ID[. =$PoLnID]?>
         <?current()[$PoLnID]/preceding-sibling::TEXT[1]?>
    <?end for-each?>
    Also note that, while running the program in Debug mode for a particular PO/Release the status should be INCOMPLETE, otherwise you won't be able to see the XML tags.
    Thanks,
    PS.
    Edited by: PS on Sep 25, 2012 6:16 AM

  • Lexical parameter in SELECT INTO (Very Urgent)

    I have to write a query which takes some value & put it into a variable. but i have to use lexical parameter in my query.
    e.g
    select sal into v_sal
    from emp
    where deptno=20 &p_lexpara;
    the form amd report builder do not compile this syntax & give error on &p_lexpara
    Pl. help me out
    Thanks

    In Report Builder you can not use clause INTO.
    Correct one is:
    select sal
    from emp
    where deptno=20 &p_lexpara
    In Forms you can not use lexical parameter but you can create lexical parameter in CREATE_GROUP_FROM_QUERY. So you can create record group in this way and then use lexical parameter like:
    DECLARE
    rg_name VARCHAR2(40) := 'Salary';
    rg_id RecordGroup;
    errcode NUMBER;
    BEGIN
    ** Make sure group doesn't already exist
    rg_id := Find_Group( rg_name );
    ** If it does not exist, create it and add the two
    ** necessary columns to it.
    IF Id_Null(rg_id) THEN
    rg_id := Create_Group_From_Query( rg_name,
    'select sal from emp where deptno=20 '||p_lexpara;
    END IF;
    ** Populate the record group
    errcode := Populate_Group( rg_id );
    END;
    and then with Get_Group_Number_Cell you can retrive values of SAL e.g something like:
    status := Populate_Group( rg_id );
    */ *** Zero status is success*** /
    IF status = 0 THEN
    match := Get_Group_Number_Cell('Salary.SAL',1);
    Message('The Salary is '||to_CHAR(match));
    ELSE
    Message('Error creating query record group.');
    RAISE Form_Trigger_Failure;
    END IF;

  • How to add Multiple XML Tags for a single column for an RDF

    Hi Gurus,
    I have Requirement in the Oracle D2k Report from which we are generating the xml tags.
    My Requirement is in a table i have 2 columns say A and B.
    i am able to generate three xml tags separately using the report builder by clicking on the column name and in the xml setting giving the xml tag.
    eg: table Acount contains 2 columns A and B with respective data
    A B
    QT 1
    QTS 0
    QTR 2
    i am able to general xml tags like this
    <ACount>
    <AStatus>QT</AStatus>
    <HeadCount>1</HeadCount>
    </ACount>
    <ACount>
    <AStatus>QTS</AStatus>
    <HeadCount>0</HeadCount>
    </ACount>
    my requiremnt for the xml tags is
    <ACount>
    <AStatusQT>1</AStatusQT>
    <AStatusQTS>0</AStatusQTS>
    </ACount>
    kindly help me out how to achieve this requirment in the rdf file mulitple xml tags.
    all your input are most valuable to me, thanks in advance
    Edited by: 909577 on Apr 9, 2012 3:10 PM

    I'm sorry for being so dense, but I'm not quite following, although what I've tried makes me think if I can follow you, it will work :)
    To answer your initial questions, you are correct with both your assumptions:
    1) detailType is the parameter that specificies YTD/Weekly, this is a "report defined" parameter that I am using to determine which Row Group to display (either YTD or Weekly)
    2) SchoolDaysActiveWeek is the parameter that is being set to either true or false -- this is a field in the cube that states whether that record is for the current week or not
    So in following your instructions, well that's the problem I'm not quite following :)
    1) When you say Delete the SchoolDaysActiveWeek parameter from the report only, do you mean to mark the parameter as Hidden?  If so, I've done this.
    2) I'm not quite sure where to use the statement you provided me.  You said to put it in the dataset, but I don't know which dataset.  I assume you mean the "main" dataset (as opposed to the hidden dataset that gets generated when you mark a field
    as a parameter).  If this is the case, the only place I could see that would allow you to use such a statement is in the Filter section of the properties.  I tried this, and it did not generate any errors, but it also kept my report groups from displaying
    -- it just showed a blank report, so I think it probably wasn't bringing back any rows to populate them with.
    I also tried going into the Expression section for the SchoolDaysActiveWeek parameter in the second screenshot and placing the statement there.  When I did this and ran the report, I would get the following error:
    The 'SchoolDaysActiveWeek' parameter is missing a value
    So what am I missing!? 
    Also, thanks for taking the time to respond!!

  • Lexical parameter in select statement showing null or column name in xml tag instead of value

    Hi,
    i am using lexical parameter in report select statement as
    Select &order value from oe_order_headers_all a where order_number ='7889'
    and setting  : order:='a.order_number';  in after parameter form trigger.
    lexical parameter intial value set to null
    when i run this report , its not showing order number in output ,its showing null or a.order_number as text.
    Please help.

    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

  • Error for fetching long text in xml tag for xml publisher report

    My requirement is to fetch a large document which is in text format in XML output which can be printed in PDF format by using RTF method to generate PDF.But during XML ouput i got the following error-
    The XML page cannot be displayed
    Cannot view XML input using XSL style sheet. Please correct the error and then click the Refresh
    button, or try again later.
    The following tags were not closed: XXBG_EAMWRREP_V1, LIST_G_WO_ACTIVITY_CODE, G_WO_ACTIVITY_CODE, LIST_G_MEDIA_ID1,
    G_MEDIA...
    XXBG_EAMWRREP_V1 is the rdf and LIST_G_WO_ACTIVITY_CODE, G_WO_ACTIVITY_CODE, LIST_G_MEDIA_ID1, G_MEDIA are the groups name. In the group
    G_MEDIA i am fetching long_text from attahcment in application. In Database table the datatype of the text attachment is 'long' and there is a huge text
    data loaded in large data editor of that column. If the text data volume is small enough then there is no problem for fetching the xml output.
    If we change the output format as HTMl then there is no problem for fetching the output for long text but for xml output format we are unable to fetch the data
    in xml tag.
    One thing to mention the oracle report is the copy of Maintenance Work Order Detail Report. The seeded report is HTML format in 11i. The requirement is to make it in xml report.
    Please help.

    Hi,
    Actually clob datatype is not available in oracle report builder datatype lov. Could you pls tell the other ways of converting that to clob in oracle report...

  • XML tag for dia of PIE chart in Oracle 9i Report Devloper

    Hi ,
    I'm using Oracle 9i reports Devloper and facing some problem with the controls in pie Graph. We are trying to do this by modifying DTD for graph in XML. Need of the hour is to increase the dia of pie graph. Can anyone suggest which XML tag to be used for the same.
    Attaching herewith DTD for the graph.
    ***************DTD FOR GRAPH START****************************
    <rw:graph id="CT_1" src="G_Graph" series="Heading" dataValues="No_Of_Scripts2">
    <!--
    <?xml version="1.0" ?>
    <Graph version="2.5.0.5" graphType="PIE" depthAngle="0" depthRadius="4.5" pieDepth="0" markerTooltipType="MTT_NONE" pieTilt="0">
    <DataviewFootnote foreground="#0" background="#ffffff"/>
    <DataviewSubtitle foreground="#0" background="#ffffff"/>
    <DataviewTitle foreground="#0" background="#0"/>
    <LegendArea visible="false"/>
    <O1Axis lineWidth="1"/>
    <O1MajorTick lineWidth="1"/>
    <O1Title textRotation="TR_HORIZ_ROTATE_90"/>
    <PieFrame fillTransparent="false"/>
    <SeriesItems>
    <Series id="0" color="#000000"/>
    <Series id="1" color="#333333"/>
    <Series id="2" color="#666666"/>
    <Series id="3" color="#999999"/>
    <Series id="4" color="#cccccc"/>
    <Series id="5" color="#FFFFFF"/>
    </SeriesItems>
    <SliceLabel textType="LD_TEXT_PERCENT">
    <ViewFormat decimalSeparatorUsed="true" decimalSeparator="." decimalDigitUsed="true" decimalDigit="0"/>
    <GraphFont name="Arial" size="11"/>
    </SliceLabel>
    <X1Axis lineWidth="1"/>
    <Y1Axis lineWidth="1" majorTickStep="15.0"/>
    <Y1MajorTick lineWidth="1"/>
    <Y2Axis lineWidth="1"/>
    <Y2MajorTick lineWidth="1"/>
    </Graph>
    -->
    </rw:graph>
    ***************DTD FOR GRAPH END****************************
    Santosh

    Prakash
    We are currently working on better BI Graph bean xml documentation, so today all you have is the graph.dtd which is located in the bigraphbean.jar.
    Thanks
    The Oracle Report Team

  • Convert columns to rows by a select query

    I have a table with 10 columns. Pk is combination of 3 columns, let us say A, B and C. I need a select query which returns 7 rows with four columns each let us say A,B,C and D where D contains the value of non PK column. i.e. for first row, D will contain value of fourth column of the table, for second row, D will contain fifth column of the table and so on.
    Please help.

    Maybe NOT TESTED!
    select col_a,col_b,col_c,column_4 col_d
      from (select col_a,col_b,col_c,col_d,col_e,col_f,col_g,col_h,col_i,col_j
              from the_table
    unpivot include nulls (column_4 for source_column in (col_d as 'col_d',
                                                          col_e as 'col_e',
                                                          col_f as 'col_f',
                                                          col_g as 'col_g',
                                                          col_h as 'col_h',
                                                          col_i as 'col_i',
                                                          col_j as 'col_j'
                          )Regards
    Etbin

  • Best Online resource to reference XML tags for SharePoint 2013

    Hi All,
    I was wondering if anyone can direct me to any online resources to reference when building a xml script to build a term set for a choice column. Maybe I should be looking at what properties I need to set I guess I am looking for something like a VMA guide
    and example type thing  any help to steer me in the right direction would help

    Yes they are documented in MSDN. Please follow the links:
    http://msdn.microsoft.com/en-us/library/ee231576.aspx
    http://msdn.microsoft.com/en-us/library/ms454677(office.14).aspx
    http://msdn.microsoft.com/en-us/library/ms447717(v=office.14).aspx
    http://msdn.microsoft.com/en-us/library/ms434726(v=office.14).aspx
    Thanks,
    Sohel Rana
    http://ranaictiu-technicalblog.blogspot.com

  • Need xml tags for min and max length and required fields

    Hi - the following is the code that I am using to create a schema,register the schema, create a xml table and insert data into the table. notice that I am using the minOccurs and maxOccurs in the schema defenition but when I insert a record into the table with a value larger then the maxOccurs had been set to and I was able to succesful in the insert. Can someone tell me if I am usig the right tags and if not which tags am I supposed to be sing?
    EXEC dbms_xmlschema.deleteSchema('http://www.specialtysystems.com/fraamed/kaylatest.xsd',dbms_xmlschema.DELETE_CASCADE_FORCE);
    declare
    doc1 clob:= '
    <schema elementFormDefault="qualified"
    xmlns="http://www.w3.org/2001/XMLSchema"
    targetNamespace="http://www.specialtysystems.com/fraamed/kaylatest.xsd"
    xmlns:hematest="http://www.specialtysystems.com/fraamed/kaylatest.xsd">
    <element name =�airspace�>
    <complexType>
    <sequence>
    <element name=�airspace_areas� minOccurs=�0� maxOccurs=�unbounded�>
                        <complexType>
                             <sequence>
    <element name=�area� minOccurs=�1� maxOccurs=�1�>
    <simpleType>
    <restriction base="integer">
    <minInclusive value="-999999"/>
    <maxInclusive value="9999999"/>
    </restriction>
    </simpleType>
    </element>
                             </sequence>
         </complexType>
                   </element>
              </sequence>
         </complexType>
    </element>
    </schema>
    begin
    dbms_xmlschema.registerSchema('http://www.specialtysystems.com/fraamed/kaylatest.xsd', doc1);
    end;
    Drop table kaylatest;
    create table kaylatest(
    schedules xmltype)
    xmltype column schedules
    XMLSCHEMA "www.specialtysystems.com/fraamed/kaylatest.xsd"
    element "airspace";
    insert into kaylatest (schedules) values
    (XMLTYPE('
    <airspace
    xmlns="http://www.specialtysystems.com/fraamed/kaylatest.xsd"
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xsi:schemaLocation="http://www.specialtysystems.com/fraamed/kaylatest.xsd
    http://www.specialtysystems.com/fraamed/kaylatest.xsd">
    <airspace_areas>
    <area>99999999999999999999999999</area>
    </airspace_areas>
    </airspace>

    Please see the posting guidelines thread...
    Posting Guidelines...
    BTW also note that the forum has a search capability.

Maybe you are looking for

  • MS Word: How to change Citation language.

    Im a danish person writing an english text in word 2011 on a mac. The citations show up as (author, year, s. 275) instead of (author, year, p. 275). Ive tried toggling fieldcode mode, but word wont let me change the code. Ive searched the web for a s

  • Dmz zone for pix525 not working

    Dear Guys as i am having pix 525 with inside,outside,dmz,from inside i cant access or i cant ping to the dmz zone plz help me. interface Ethernet0 nameif outside security-level 0 ip address 212.x.x.131 255.255.255.240 standby 212.x.x.132 interface Et

  • Reverting changes made to Standard SAP objects(Workflow Tasks)

    Hi,     How to revert back changes made to Standard SAP program . The changes are stored in a Repair request . The details of repair request is as folloews .     GD1K900068   ABAP         Standard Task             20000166             20000167       

  • HP Photosmart C4380 All-in-one won't network print

    I ran the test, and my wireless radio is not working. i just wanted to know my options and where i stand. is it possible to fix or do i have to contact hp etc? I bought it sometime in 09, so it shud be within warranty if i can find it. thanks ,

  • My Audio Drops at Startup.

    Good Morning,          I've read a few posts and my problem may be related, but it sounds different enough to me that I felt I should start a new thread...thanks in advance for your help.  I run the latest update of Premiere CC on a Mac with 2 x 2.66