Unable to display a variable value in xml through xsl using coldfusion

Hi ColdFusion Heroes ,
Is their any one to help me in this issue . I am new to cold
fusion , XML and XSL .
Detail Explaination :
develoment_files.cfm is a .cfm page , which includes an xml
page .
development_files_dropdown.xsl is a xsl page .
develoment_files.cfm : Code is as follows .
<CFDIRECTORY ACTION="LIST" DIRECTORY="#somepath#"
NAME="DirContents" FILTER="p*">
<CFQUERY DBTYPE="query" NAME="Files">
SELECT *
FROM DirContents
WHERE Type = 'File'
</CFQUERY>
<CFOUTPUT><?xml version='1.0' encoding='UTF-8'?>
<?xml-stylesheet type="text/xsl"
href="../XSL/development_files_dropdown.xsl"?>
<Test xmlns:xsi='
http://www.w3.org/2001/XMLSchema-instance'>
<CFLOOP QUERY="Files">
<Directory>
<DisplayName>#Name#</DisplayName>
<FullPath>#Name#</FullPath>
</Directory>
</cfloop>
</Test></CFOUTPUT>
This file generates a query resulting files starting with p*
and then it should be a file and manipulates in xml.
development_files_dropdown.xsl pages is as follows.
<?xml version='1.0'?>
<xsl:stylesheet version="1.0" xmlns:xsl="
http://www.w3.org/1999/XSL/Transform">
<xsl:output method="html" indent="yes"/>
<xsl:preserve-space elements="*"/>
<xsl:template match="/">
<xsl:apply-templates/>
</xsl:template>
<xsl:template match="Test">
<B>Script Name: </B>
<select name="T1_Dev_Script" CLASS="DevInput">
<xsl:for-each select="Directory">
<option>
<xsl:attribute name="value">
<xsl:value-of select="FullPath/text()"/>
</xsl:attribute>
<xsl:value-of select="DisplayName/text()"/>
</option>
</xsl:for-each>
</select>
</xsl:template>
</xsl:stylesheet>
This is only for the purpose of display .
Now i want to get one particular file named "pfile" { Code is
written in development_files.cfm page and kept it in a variable } I
want to display it in #Name# filed. how can i do that ? I am
getting XML Parsing error from javascript .
Could any one look into this .
Thanks & Regards,
Nataraj G

The first part is right -
1) drag a text element onto the page, at a location in which you want the variable value to be displayed
2) On the left hand bottom page - go to the web item properties for the text element
3) scroll down to the specific properties for the item - in that uncheck the first two check boxes - display general text elements & display static filter values
4) in the next item in the properties (List of text elements) click once on the box where List is written and then clcik on the small browse button that appears.
5) in the window that opens, in the element type field, select variable/variable value as key (as per your requirement) and then under the element ID field type in the technical name of your variable that you want to display.
click ok and save your template and try executing it.
See if this solves your problem.
regards,
Nikhil

Similar Messages

  • Display of variable value / Bex Web Apllication Designer

    Hello everyone,
    I am using the Bex Web Application Designer to broadcast a report in PDF format.
    In my WebTemplate, in the Info_Field_Item, i have to display a variable value : Company code.
    My problem is in the PDF generated.
    When the number of company code is 4, the result in the PDF is like this:
    Company code : Company1; Company2; Company3; Company4.
    But, when the number of companies is more than 4, for example 8, the result in the PDF is displayed like this:
    Company code : Company1
    Company code : Company2
    Company code : Company3
    Company code : Company4
    Company code : Company8
    It makes a problem of harmonization of reports, i tried many tests, but the result still the same.
    Please, can somone knows how to change it, the PDF result must be like this way (watever the number of companies):
    Company code : Company1; Company2; Company3; Company4; Company5; ...; Company8
    Thank you and have a nice day,
    Best regards.
    Amine

    I found an interesting link about creating Print versions of BI Applications.
    Here, the link, hope it helps:
    http://help.sap.com/saphelp_nw70ehp1/helpdata/en/43/68ce8391886e47e10000000a422035/content.htm
    I made many tests in the Bex Broadcaster, but always the same issue.
    Also, i modified the size of the INFO FIELD ITEM, but it changes nothing in the final result.
    May be, there is a solution by modifiying the XHTML generated code in the Bex Web Applicatin Designer, especially the concerned line, but i don't knwo how to do, may be somone?
    the concerned line is like this:
    <bi:INFORMATION_ELEMENT_LIST type="ORDEREDLIST" >
                            <bi:INFORMATION_TYPE type="CHOICE" index="1" value="VARIABLE" >
                                <bi:VARIABLE value="AB_COMPANY" text="Company Code" />
    I am waiting your answers
    Best regards,
    Amine

  • Unable to see local variable values when debugging java

    Hi,
    I am using JDev 10.1.2 with java version 1.4.2_04.
    I have been using JDev to debug my java programs. But suddenly from this morning I am unable to see local variable values. I am able to see class and instance variables. This has happened to me before and I had restarted my machine couple of time, to get this sorted. But this time, nothing helps. Going thru the forum I found out that Include Debug information (Project Properties -> Compiler Option) need to be turned ON. It is already turned ON for me.
    I would greatly appreciate if you could let me know how to crack this problem.
    Thanks in advance.

    No. The local variables 'used' to show up during debugging. But erratically it doesn't show up local variable values. I had to restart my machine couple of times whenever this happens, inorder to see the local variable values. But this time even restarting doesn't help.
    Is there any preference setup that need to be turned on/off to see local variables?
    Also I can't step into a static method now. Any idea why this happens?

  • How to Read Variable Values in WAD 7.0 Using JavaScript

    I found a how to: How to Read Variable Values in WAD 7.0 Using JavaScript on SDN.
    I get a Javascript error:
    bics.getElementsByTagName is not a function
    vars = bics.getElementsByTagName("VARIABLES")[0]; // <VARIABLES>
    Thats my script:
    function currency()
    var varnm = "SFS_CP_CURR"; // Name of the variable to be read
    root = document.childNodes[0]; // <HTML>
    body = root.getElementsByTagName("BODY")[0]; // <BODY>
    xml = body.getElementsByTagName("XML")[0]; // <XML>
    bics = xml.childNodes[0]; // <BICS_VIEW>
    vars = bics.getElementsByTagName("VARIABLES")[0]; // <VARIABLES>
    varl = vars.getElementsByTagName("VARIABLE"); // gives no. of variable in DP
    for ( i = 0; i <= varl.length; i++ ) // Loop one by one
    vari = vars.getElementsByTagName("VARIABLE")<i>;
    varnam = vari.attributes[0].text; // get variable name
    mem = vari.getElementsByTagName("MEMBER")[0];
    varval = mem.attributes.getNamedItem("name").value; // read variable value
    if (varnam == varnm) //check varname in loop needs to be read
    if (varval == "ZMON") // check for value1 and fire command1
    SFS_CP_M();
    if (varval == "ZKON") // check for value2 and fire command2
    SFS_CP_K();
    break;
    Where's the mistake?

    I'm afraid I haven't made my question understood clearly.
    What I am looking for is a method to get the value of variable inside excel (e.g. put it into a cell / range of a worksheet, so that we can reference it and use it as an input for planning function execution).
    Please advice.
    Thanks in advance,
    Shady

  • Unable to display a variable which as decimal values in a report

    Hi Experts,
    I declared a variable with
    var1 type p decimals 3.
    While I am trying to display it in the report, it is retreiving a jargon value like ########. Can any one help me how to solve this issue in displaying the correct value with decimals.
    I tried with var1 type f. but I found the same jargon value.
    Thanks
    Ravi

    Hi Ramesh,
    Code is  below
    output table structure
    data : begin of out_table occurs 100 ,
             firstname like pa0002-vnamc,
             lastname like pa0002-nchmc,
             midname  like pa0002-midnm,
             hire     like pa0041-dat01,
             prorate  type p decimals 3,
             prorate type f,
             hrrate   like pa0008-bet01,
           end of out_table.
    data : begin of z_proration_table occurs 100 ,
             begda like pa0000-begda,
             endda like pa0000-endda,
             prorate type p DECIMALS 3,
             prorate type f,
           end of z_proration_table.
    data var1(10) type c.
    loop declared
      loop at z_proration_table.
       if ( z_proration_table-begda+0(4) = '2007'
              and z_proration_table-begda4(2) = '12' and dat14(2) = '12' )
        concatenate '2007'  dat1+4(4) into dat2.
       else.
        concatenate '2008'  dat1+4(4) into dat2.
       endif.
        if ( z_proration_table-begda <= dat2
                  and
             z_proration_table-endda >= dat2 ).
         out_table-prorate = z_proration_table-prorate.
        var1 = z_proration_table-prorate.
        endif.
       endloop.
      out_table-prorate = var1.     -
    this is the desired line
        select  single bet01 into out_table-hrrate
          from  pa0008
          where pernr = z_all_employees-pernr
          and   endda = '99991231'.
        out_table-hire = dat1.
       out_table-firstname  = z_all_employees-firstname.
       out_table-lastname   = z_all_employees-lastname.
       out_table-midname = z_all_employees-midname.
       write out_table.   -
    displaying in the report
        append out_table.
        clear out_table.
        clear dat2.
        endloop.
    Thanks
    Ravi

  • Display interval variables value in BeX

    Hello Gurus,
    I am using Bex BI 7.0 to build my reports. I can't see how to display the value of variable values I have selected in the beginning of the query.
    To clarify with an example I want to choose the period from January to March and to display this selection in the report I have built.
    The only way I was thinking about was to create a Text variable to display in the title of the query but I noticed it displays only single value and don't manage interval like these.
    Is there any other tricks?
    Thanks in advance
    Massimo

    Very good Jaya. I have solved my problem and I rewarded it. The only problem that still remains with this feature is that in a query I use a filtered key figure to obtain cumulated value for period. The "from period" is fixed (january) and the "to period" is given by my period variable.
    I noticed that in this case the text variable return me no value. Is there any another trick to manage text variable in filtered key figure like that?
    Regars
    Massimo

  • How to display a variable value in WAD?

    I am using a replacement path variable to filter a report by project number. While this works fine, the project number is not easily visible (only via Filter -> Display All Filter Values and this only displays the description, not the key).
    How can I display the key and the description of the project number variable at the top of the report?
    Thank you,
    Dennis

    The first part is right -
    1) drag a text element onto the page, at a location in which you want the variable value to be displayed
    2) On the left hand bottom page - go to the web item properties for the text element
    3) scroll down to the specific properties for the item - in that uncheck the first two check boxes - display general text elements & display static filter values
    4) in the next item in the properties (List of text elements) click once on the box where List is written and then clcik on the small browse button that appears.
    5) in the window that opens, in the element type field, select variable/variable value as key (as per your requirement) and then under the element ID field type in the technical name of your variable that you want to display.
    click ok and save your template and try executing it.
    See if this solves your problem.
    regards,
    Nikhil

  • RRI - Jump query, unable to pass the variable value from source to target

    Hi,
        I've a source query which has a variable on 0vendor, from this query i jump to another query for which i want to pass the this variable value, in the target query i've vendor in free characteristics (no filter or variable in there), and in RSBBS i tried the assignment details options keeping vendor as generic, tried variable and the variable name but nothing seem to work.
    But when query is run i can jump into target query but the vendor variable value doesnt get passed thru the values i get in target query is for all rather than for the variable entered vendor value in the source.
    btw we're in NW2004s.
    any help appreciated with points.
    thanks
    Mayil

    Anyways, I read somewhere that a variable with replacement path in target query would work, tried it seem to work.
    let me know if there other way to do it without creating a variable in target query.
    thanks
    mayil

  • How to display the excluded values in the filter panel using WAD 3.5

    Hi Experts,
    I have a requirement in that we need to display five reports as tables.
    In these queries two of them have multiple excluded values.
    Now i need to display these excluded values in filters pane in my web template.
    appriciate your help in advance.
    James
    Edited by: james_ava on Nov 8, 2010 5:46 PM

    Hi James,
    I believe you are interested in displaying static filters in two of your queries as defined at design time. If so, why not use a Text Element webitem for your display since a Filter Pane is used to filter Characteristics on runtime & display their corresponding filtered values. You may insert two Text Elements for each of your DPs in question, & enable 'Display static filter values' for each. Let me know if this helps.
    Refer foll. help link for more:
    http://help.sap.com/saphelp_nw04/helpdata/en/9f/4e9d39d44cd45ee10000000a11402f/content.htm
    --Priya

  • Unable to display the ClobDomain value in adf table

    Hi ,
    I have a database table whose column is Clob. Accordingly the Entity Attribute and VO attribute are of type. oracle.jbo.domain.ClobDomain
    Now this VO is wired as a ADF Table in jsff page. I am setting the value programmatically inside the AM by using the following.
    //Code inside AM
    String text="some xml";
    ClobDomain clobval=new ClobDomain(text.toString())
    vo.setAttribute("atrName",clobVal);
    Now at the UI level, I was able to print the value of the attribute inside a bean code. However, in the adf table, this cell is always empty. But if i try to set the value through UI then it works.
    If i make the inputText readonly then it displays the value.
    Am i missing something.
    Inside the af:column
    <af:inputText value="#{row.bindings.VariableValue.inputValue}"
    label="#{bindings.TestcaseInput.hints.VariableValue.label}"
    required="#{bindings.TestcaseInput.hints.VariableValue.mandatory}"
    columns="#{bindings.TestcaseInput.hints.VariableValue.displayWidth}"
    shortDesc="#{bindings.TestcaseInput.hints.VariableValue.tooltip}"
    id="it4" converter="oracle.genericDomain"
    rows="10">
    <f:validator binding="#{row.bindings.VariableValue.validator}"/>
    </af:inputText
    jdev version 11.1.1.6.0

    Try using SELECT_TEXT in place of READ_TEXT.
    Hope this helps.
    Regards
    vinayak

  • Unable to pass  presentation variable value to Go url with narrative view

    I am trying to use navigate option of Go URL. I have Dashboard prompt with presentation variable (pv)defined. I am able to see the pv value in compund view but unable to see in Narrative view. Any thoughts?

    Check my blog entry here http://oraclebizint.wordpress.com/2007/11/26/oracle-bi-ee-101332-same-page-navigation-drills-and-passing-parameters/. It has an example.
    Thanks,
    Venkat
    http://oraclebizint.wordpress.com

  • Unable to assign the variable value

    Hi,
    I am trying to capture the error message into a variable using statement in the Refreshing tab :
    Select '<%=odiRef.getPrevStepLog("MESSAGE")%>' from dual
    After getting the error log into variable, I am making a call to Scenario which will generate a file and email it stating the error log.
    Now the issue is when i assign this variable to the Scenario variable it throws the following error:
    com.sunopsis.tools.core.exception.SnpsSimpleMessageException: Invalid parameter
         at com.sunopsis.dwg.function.SnpsFunctionBase.getSunopsisApi(SnpsFunctionBase.java)
         at com.sunopsis.dwg.dbobj.SnpSessTaskSql.execIntegratedFunction(SnpSessTaskSql.java)
         at com.sunopsis.dwg.dbobj.SnpSessTaskSql.treatTaskTrt(SnpSessTaskSql.java)
         at com.sunopsis.dwg.dbobj.SnpSessTaskSqlS.treatTaskTrt(SnpSessTaskSqlS.java)
         at com.sunopsis.dwg.dbobj.SnpSessTaskSql.treatTask(SnpSessTaskSql.java)
         at com.sunopsis.dwg.dbobj.SnpSessStep.treatSessStep(SnpSessStep.java)
         at com.sunopsis.dwg.dbobj.SnpSession.treatSession(SnpSession.java)
         at com.sunopsis.dwg.cmd.DwgCommandSession.treatCommand(DwgCommandSession.java)
         at com.sunopsis.dwg.cmd.DwgCommandBase.execute(DwgCommandBase.java)
         at com.sunopsis.dwg.cmd.e.i(e.java)
         at com.sunopsis.dwg.cmd.g.y(g.java)
         at com.sunopsis.dwg.cmd.e.run(e.java)
         at java.lang.Thread.run(Unknown Source)
    If i set the variable with any default value, it successfully makes a call to the scenario and generates the file.
    Please help!
    Thanks,
    Ritika

    Hi,
    i created a variable and assigned the value to another variable in a procedure, am getting the following error, as it says in the error i don't have any ";" that is causing the problem.
    the variable name is table_nm
    inside the procedure am assigning the value to lv_table_nm :=#SESSNAME.table_nm;
    If i change the variable name tos ome constant or any other value, the package is working fine. Any ideas why am getting error assigning the variable?
    6550 : 65000 : java.sql.SQLException: ORA-06550: line 1, column 294:
    PLS-00103: Encountered the symbol ";" when expecting one of the following:
    ( - + case mod new not null <an identifier>
    <a double-quoted delimited-identifier> <a bind variable>
    continue avg count current exists max min prior sql stddev
    sum variance execute forall merge time timestamp interval
    date <a string literal with character set specification>
    <a number> <a single-quoted SQL string> pipe
    <an alternatively-quoted string literal with character set specification>
    <an alternatively
    java.sql.SQLException: ORA-06550: line 1, column 294:
    PLS-00103: Encountered the symbol ";" when expecting one of the following:

  • Unable to access process variable value in the DXFA file

    Hi,
    I am using the On-Demand-Assembly solution accelerator to stitch forms. I am trying to access a process variable inside the dxfa file.
    This is the syntax i used: <c:forEach var="templateItem" items="${requestScope.paramsMap.templateList}"> The templateList value is not being fetched. The same code works fine if I hard code the items.
    paramsMap is set as the Parameters Map variable in the invokeODADocument service.
    Any suggestions on what I might be missing here??
    Thanks.
    Regards,
    Vidya

    Vidya Kesavan,
    Just a shot in the dark here, but I think you may have a typo in "requestScropt.paramsMap.templateList" where "paramsMap" should be "paramsmap" in the context of the CSC template. That could be the cause, making it impossible for ODA to find the variable you're referencing. (I believe it's "paramsmap" within the CSC regardless of what name you have the Parameter Map process variable.)
    Stefan
    Adobe Systems

  • How to display a javascript value in xml format

    Hi,
    I want to display this string that returns from javascript in jsp in xml format.Can anyone help me on this.
    This is my code...I want to displat string jScriptCode in xml format.
    <HTML>
    <TITLE>test.jsp</TITLE>
    <BODY>
    <SCRIPT LANGUAGE="javascript">
    <%
    String jScriptCode = "<!-- \n";
    jScriptCode=jScriptCode+ "var TE = new ActiveXObject(\"HostAccess.TerminalEmulation\"); ";
    jScriptCode=jScriptCode+ "TE.MakeEntry(\"<FORMAT>OP/W*</FORMAT>\"); ";
    jScriptCode=jScriptCode+ "var strTemp = TE.ResponseLine(0); ";
    jScriptCode=jScriptCode+ "document.writeln(\"<CENTER>You are using \" + strTemp + \"</CENTER>\"); ";
    jScriptCode=jScriptCode+ "TE.Close(); ";
    jScriptCode=jScriptCode+ "var SD = new ActiveXObject(\"HostAccess.StructuredQuery\"); ";
    jScriptCode=jScriptCode+ "var request = \"<FlightInfo_6_0><FltInfoMods><ItemAry><Item><DataBlkInd>F</DataBlkInd><FltQual><AirV>UA</AirV><StartCity>DEN</StartCity><EndCity>IAD</EndCity><FltNum>1532</FltNum><StartDt>20011201</StartDt></FltQual></Item></ItemAry></FltInfoMods></FlightInfo_6_0>\"; ";
    jScriptCode=jScriptCode+ "var identity = \"<Application><VendorId>XMDL</VendorId><VendorType>G</VendorType><SourceId>GSLKPR</SourceId><SourceType>G</SourceType></Application><User><UserId>N92119</UserId><Pseudo>79G2</Pseudo></User>\"; ";
    jScriptCode=jScriptCode+ "var response = SD.ExecuteXMLQuery(request, identity); ";
    jScriptCode=jScriptCode+ "document.writeln(); ";
    jScriptCode=jScriptCode+ "document.writeln(\"<CENTER>The current Date and Time in Denver is <B>\" + response + \"</B></CENTER>\"); ";
    jScriptCode=jScriptCode+ "//-->";
    //System.out.println(jScriptCode);
    %>
    </SCRIPT>
    <%=jScriptCode%>
    </BODY>
    </HTML>
    Thanks
    Hitchchi

    In jsp page set content type to text/xml
    <%@ page contentType="text/xml" %>

  • Unable to reset the variable value in the method value change event and use

    Hi ,
    int i=4;
    public changevalue(ValueChangeEvent ValueChangeEvent)
    //some code
    i=5;
    system.out.println("in changevalue method="+i)// this prints i value as 5
    public void submit(ActionEvnet actionEvent){
    //somecode
    system.out.println("in submit="+i) // this prints value 4;though its value is changed as 5 in above mehtod
    how can i get the value as i=5 in second method(i.e, in submit method)??

    Hi 980230,
    When I tried the same thing it gives me 5 in the submit method.
    Are you sure that ValueChange method is getting invoked before the actionEvent method?
    Its better to debug the application, you will get the exact flow and error if any....
    Thanks
    --NavinK                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               

Maybe you are looking for