Page Custimizations , using JSTL functions - R2

Hi,
We customize user pages by changing visibility of some fields according to some values. We do it by select page->Customize->view->source selecting the related field and typing the expression something like #{bindings.eventName.inputValue=='something'} here instead of operator I need to use contains. In jstl there exist function in the name contains, bu to use it I must include the namespace xmlns:fn="http://java.sun.com/jsp/jstl/functions" , can I do that? Can I confgure user pages using those jstl functions? Any help is strongly appreciated..
BR,
Aliye

Hi,
We customize user pages by changing visibility of some fields according to some values. We do it by select page->Customize->view->source selecting the related field and typing the expression something like #{bindings.eventName.inputValue=='something'} here instead of operator I need to use contains. In jstl there exist function in the name contains, bu to use it I must include the namespace xmlns:fn="http://java.sun.com/jsp/jstl/functions" , can I do that? Can I confgure user pages using those jstl functions? Any help is strongly appreciated..
BR,
Aliye

Similar Messages

  • Can you set pager attribute using jstl c:out tag?

    I am trying to use the pager tag library from jsptags.com. The pager tag has a maxPageItems attribute. I want maxPageItems to be variable. I also want to use the jstl instead of scriptlets and expressions. Instead of writing
    <pg:pager
        maxPageItems="<%= myPageItems %>" >I want to write
    <pg:pager
        maxPageItems="<c:out value='myPageItems'/>">When I do this I get a java.lang.NumberFormatException: for input string: ""
    I think this issue is documented on the jsptags website. So maybe I have no choice but to use the expression format. I guess I should also mention that I am using jstl 1.1 and jsp 1.2 (implemented in tomcat 4.1.27)
    Has anyone tried this and had success?
    Did I provide enough information?

    Sorry, but you can't use tags as attributes to other tags (where would it end?)
    You're stuck with using <%= %> syntax.

  • Unable to use JSTL fn tags in WL 8.1

    hi,
              I am trying to use JSTL functions tags in my struts app, and I am seeing this error...
              Error in using tag library uri='http://java.sun.com/jstl/functions' prefix='fn': Tag Library Descriptor contains no Tag descriptions
              probably occurred due to an error in /newgui/customerservice/AdditionalLines.jsp line 4:
              <%@ taglib uri = "http://java.sun.com/jstl/functions" prefix = "fn"%>
              I have the entry in web.xml as below...
              <taglib>
              <taglib-uri>http://java.sun.com/jstl/functions</taglib-uri>
              <taglib-location>/WEB-INF/tlds/fn.tld</taglib-location>
              </taglib>
              I also have the fn.tld in the tlds folder along with other core and sql tlds. core tlds are working (they are 1.0.4 version), but I am having trouble using fn tags.
              btw, I am running the struts web-app on WL 8.1 Sp4 (or sp3) not sure...
              Any help is greatly appreciated...
              thanks,
              Kiran :)

    Update: I just looked up the WL version and it's 8.1 sp3
              So, I guess, JSTL 1.1 (which includes jstl fn tags) is not supported by WL.... Someone correct me if I am wrong.
              Thanks,
              pal :)

  • Does JSTL functions work in custom Spaces Page Style ?

    I am trying to create a custom page style and have to write some logic where I have to use fn:containsIgnoreCase. When I create pages that use this Page Style, it throws a white page and doesnt work.
    I have also added the below in the root
    xmlns:fn="http://java.sun.com/jsp/jstl/functions"
    xmlns:c="http://java.sun.com/jsp/jstl/core"
    When I remove the fn:containsIgnorecase, It works fine.
    My version of Webcenter Spaces is 11.1.1.6
    Edited by: Rohith puchalapalli on Apr 9, 2013 3:39 PM

    Hi.
    You can use JSTL perfectly in ADF. I don't share the opinion of Oracle not recommends... there are a lot of official pages saying how to use JSTL in ADF.
    <af:outputText value="#{fn:length(yourList)}"/>Yannick is saying that you can't mix lifecycles. Take care using $ or # operators :).
    For example if you are using a JSTL c:forEach. Next code is going to crash:
    <c:forEach var="..." value="${list}">
       <af:outputText value="#{list.item}"/>
    </c:forEach>Because # is evaluated in prepareModel phase and $ while rendering.
    I hope this help you.

  • Posting huge data on to JSP page using JSTL tags

    Hi,
    I have one application where I have to post huge data (approximately 2000 rows of data) into JSP page. I am using JSTL tags and running on Tomcat 5.
    It is taking almost 20 to 25 seconds to load the entire page.
    Is it the optimal time to load or it could be improved?
    Please let me know.
    Thanks,
    --Subbu.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               

    Hi Evnafets,
    Thank you for the response.
    Here are the tasks I am doing to display the data on JSP.
    0. We are running on Tomcat 5 and the memory size is 1024MB (1GB).
    1. Getting the data - I am not performing any database queries. The data is stored in the static cache memory. So the server side response is so quick - less than a milli second.
    2. Using Java beans to pass data to the presentation layer (JSP).
    3. 10 'if' conditions and 2 'for' loops and 2 'choose' statements are being used in the JSP page while displaying the data.
    4. Along with the above, there are 4 javascript files are being used.
    5. The jsp file size after rendering the data, is aprox. 160 kb
    Hope this information helps you to understand the problem.
    Thanks,
    --Subbu.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       

  • Cannot use jstl tag for jsp page which generated from Human Task

    Hi
    Plz help me.
    I have tried to using jstl in jsp which generate from Human Task and I deploy it to server( by ant on Jdev ) to see task detail in Oracle Worklist application. But when i submit task and then I access to worklist to see task detail, the error has show in page that "OracleJSP: An error occurred. Consult your application/system administrator for support. Programmers should consider setting the init-param debug_mode to "true" to see the complete exception message. " .
    I access server to see application.log to see error and I see error show "workflowform: JspServlet: unable to dispatch to requested page: Exception:oracle.jsp.parse.JspParseException: /Header1.jsp: Line # 3, <%@ taglib uri="http://java.sun.com/jstl/core_rt" prefix="c"%> "
    How do I fix this error?
    PS. I tried to us jstl because I need to connet to database which jstl tag(sql) if somebody has another solution for connect database in task detail page, Please help suggest me.
    Thanks
    user520932

    Is the jstl tag libray loaded in the appsserver?
    Can you use jdbc connection like
    DataSource ds = ic.lookup("java:comp/env/jdbc/myDB");
    Connection con = ds.getConnection();
    DataSource ds = (DataSource) org.apache.derby.jdbc.ClientDataSource()
    ds.setPort(1521);
    ds.setHost("localhost");
    ds.setUser("APP")
    ds.setPassword("APP");
    Connection con = ds.getConnection();
    http://java.sun.com/docs/books/tutorial/jdbc/basics/connecting.html

  • Way to remove HTML tags from a page-scoped attribute using JSTL?

    Hi,
    I'm using JSTL 1.2 with Tomcat 6.0.26. Does anyone know of a way to remove HTML tags from a page attribute, "${myExpr}". I would prefer a solution that uses JSTL only, but ultimately whatever gets the job done is fine with me.
    Thanks, - Dave

    I'm sorry, I don't understand your requirement. What do you mean by "remove HTML tags from a page attribute"?
    If you are dealing with a value of an attribute, it is most likely a String, and should be treated as such. The best approach would probably be java coding.

  • Using replaceAll() function with jstl

    Hi All
    I am passing values from a child window to parent window.
    The child window has the following link on clinking of which the corresponding value pass to the parent window:
    <a href="#" onClick="closewindow('${stone.code}')">The argument in the closewindow() function passes to the parent window's text box.
    My problem comes when ${stone.code} contains the apostrophe in it.
    The java script gives the err as we know we should replace all occurances of
    ' with \' .
    But i am unable to do this in with the jstl.
    I have already spent a lot of time on it.
    Please help me if any body has any idea.
    Thanks a lot of you people in advance.

    The JSTL function taglib has a fn:replace tag. In your case, replace each singlequote with an escaped singlequote.
    TLDDOC: http://java.sun.com/products/jsp/jstl/1.1/docs/tlddocs/fn/replace.fn.html

  • Use jstl tags in jsf page

    I have h:dataTable in each row of which i'd like to output row data as text, inputfield or link depending on row data type
                        <h:dataTable id="pnlHistory" value="#{UserOrdersBean.orderLineWrappers}" var="wrapper" rendered="#{UserOrdersBean.isBasicUser}"
                                     columnClasses="history_col1, history_col2, history_col3, history_col4, history_col5" width="100%" cellpadding="5" >
                            <h:column>
                                <f:facet name="header">
                                    <h:commandLink action="doRefresh" actionListener="#{UserOrdersBean.doSort}">
                                        <h:outputText value="#{msg.userorders_itemName}">
                                            <f:param value="orderLineWrappers"/>
                                            <f:param value="itemName"/>
                                        </h:outputText>
                                    </h:commandLink>
                                </f:facet>
                                <h:outputText value="#{wrapper.itemName}" styleClass="itemdescription"/>
                            </h:column>
                            <h:column>
                                <f:facet name="header">
                                    <h:commandLink action="doRefresh" actionListener="#{UserOrdersBean.doSort}">
                                        <h:outputText value="#{msg.userorders_data}">
                                            <f:param value="orderLineWrappers"/>
                                            <f:param value="data"/>
                                        </h:outputText>
                                    </h:commandLink>
                                </f:facet>
                                <c_rt:choose>
                                    <c_rt:when test="#{wrapper.type==0}">
                                        <h:outputText value="#{wrapper.data}" styleClass="basic_thin"/>
                                    </c_rt:when>
                                    <c_rt:when test="#{wrapper.type==1}">
                                        <h:inputText value="#{wrapper.data}" styleClass="basic_thin" style="width:160px"/>
                                    </c_rt:when>
                                    <c_rt:when test="#{wrapper.type==2}">
                                        <h:outputLink value="#{wrapper.data}">
                                            <h:outputText value="#{msg.userorders_link}" styleClass="basic_thin"/>
                                        </h:outputLink>
                                    </c_rt:when>
                                </c_rt:choose>
                            </h:column>
                         </h:dataTable>trying to use jstl tags but unsuccessfull. Is it ever possible user jstl tags in jsf tags like listed above

    Replace the c:choose block by<h:outputText value="#{wrapper.data}" styleClass="basic_thin" rendered="#{wrapper.type == 0}" />
    <h:inputText value="#{wrapper.data}" styleClass="basic_thin" style="width:160px" rendered="#{wrapper.type == 1}" />
    <h:outputLink value="#{wrapper.data}" rendered="#{wrapper.type == 2}">
        <h:outputText value="#{msg.userorders_link}" styleClass="basic_thin"/>
    </h:outputLink>

  • JSTL Function Causing JDev Designer to Hide Field

    I added a JSTL function to an OutputText field in an ADF Web application. The function itself works at run-time; however, in the JDev Designer, the Designer does not display the field.
    What I did was this:
    1. Added the namespace prefix to the page fragment:
    <jsp:root xmlns:jsp="http://java.sun.com/JSP/Page" version="2.1"
    xmlns:af="http://xmlns.oracle.com/adf/faces/rich"
    xmlns:f="http://java.sun.com/jsf/core"
    xmlns:fn="http://java.sun.com/jsp/jstl/functions"
    xmlns:c="http://java.sun.com/jsp/jstl/core">
    2. Added the function to an af:outputText. To keep this post simple, in the below example i just used 'MMM' as the fn:toLowerCase() param value:
    <af:panelLabelAndMessage label="#{viewcontrollerBundle.LOGGER_PROTOTYPE_2}" id="plam4"
    rendered="#{bindings.Type1.inputValue !=2 and bindings.MessageLevelId.inputValue != 0}">
    <af:outputText value="#{fn:toLowerCase('MMM')}" id="ot4"
    inlineStyle="font-family:'Courier New', Courier, monospace;"/>
    </af:panelLabelAndMessage>
    At runtime 'MMM' is correctly displayed as 'mmm'. However, the field is not visible in the JDev Designer - which will make this confusing to maintain. Is there something I am doing wrong, or am i missing a step?
    Versions: JDeveloper 11.1.1.6, Linux. JSTL functions library is for v. 1.2.
    Thanks for your help.

    There is no JDev version 11.1.1.6.0 (at least officially).
    Anyway, can you check what you see if you add some static text in front of the EL.
    I guess jdev tries to calculate the value, fails and you end up getting nothing (or in case of an outputText with no text which means nothing).
    Timo

  • Tricky table formatting using jstl

    I have an array List of elements of size for example50. I need to retrieve the elements as shown above and print them as a two dimensional table as below:
    The steps involved as below:
    1. I need to check the size of array say Z
    2. Divide it by 10 (ceil Z/10) and find the number of columns needed
    3. Print the elemnts from the ${List} as follows:
    1stelement   11thelement    21stelement   31stelement    41stelement
    2ndelement   12thelement   22ndelement   32ndelement   42ndelement
    10thelement   20thelement   30thelement    40thelement    50thelement I tried few methods and I feel it as bit trick for me as a beginner. I would appreciate very much if someone could help me! Thanks.

    So the requirement is to split the list into 10 rows, and as many columns as are required?
    Here is some basic code:
    <%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
    <%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt"%>
    <%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions"%>
    <%@ page import="java.util.*" %>
    <html>
    <body>
    <%
      int numToDo = 50;
      List listOfNumbers= new ArrayList();
      for(int i=0; i<numToDo; i++){
           listOfNumbers.add(Integer.valueOf(i));
      pageContext.setAttribute("List", listOfNumbers);
      int numCols = (int)Math.ceil(listOfNumbers.size() / 10.0);
      pageContext.setAttribute("numCols", new Integer(numCols));
    %>
    <table>    
           <c:forEach var="entry" items="${List}" varStatus="status">     
               <c:if test="${status.index % numCols== 0}">
               <tr>
             </c:if>          
                 <td>${entry}</td>         
             <c:if test="${status.index % numCols== (numAppsPerLine-1)}">
               </tr>  
             </c:if>          
           </c:forEach>
    </table>
    </body>
    </html>The issue is how to calculate how many columns correctly.
    JSTL/EL doesn't have rounding math operators available, so I did that bit in scriptlet code for a quick/dirty approach.
    Apart from that calculation, it is all standard JSTL/EL.
    Basically it just keeps track of the index (using the varStatus variable) and starts/ends a table row as necessary.
    Cheers,
    evnafets

  • Trouble with JSTL functions uri

    I have JSTL 1.1 installed, am using J2EE 1.3 on Websphere 5.0 and am referencing 2.3 DTD in my web.xml. I have the jstl.jar, standard.jar, jdbc2_0-stdext.jar, xalan.jar and xercesImpl.jar in WEB-INF/lib
    I can successfully use the core JSTL functions with
    <%@ taglib uri="http://java.sun.com/jstl/core" prefix="c" %> but have not been able to get the functions URI to work.
    I have tried the two listed below
    <%@ taglib uri="http://java.sun.com/jsp/jstl/functions" prefix="fn" %>
    <%@ taglib uri="http://java.sun.com/jstl/functions" prefix="fn" %>
    but get the error:
    [Servlet Error]-[File "http://java.sun.com/jsp/jstl/functions" not found]: org.apache.jasper.JasperException: File "http://java.sun.com/jsp/jstl/functions" not found
    Can someone please tell me what I am doing wrong or if I am trying to use something that I shouldn't with my setup. I have only started using JSTL this week and have a lot left to learn.
    Thanks!

    I want to use JSTL 1.1 tags if possible. Not possible given your environment.
    Its on the header of the taglibs site:
    Standard-1.1 (JSTL 1.1) requires a JSP container that supports the Java Servlet 2.4 and JavaServer Pages 2.0 specifications. (http://jakarta.apache.org/taglibs/doc/standard-doc/intro.html)
    Websphere 5.0 supports only Servlet 2.3 and JSP 1.2. Thus you can only use JSTL1.0 with it. JSTL 1.0 does not define these functions.
    Sorry, but thats the way things are.
    Cheers,
    evnafets

  • I can't use JSTL tag for read rss.

    I want to read rss from another web. but I can't read rss . I use Netbeans and I add JSTL Library already. I can use forEach tag but every time when I use xml tag it show error. This is my code for read rss. I don't know how to read rss with JSTL tag please help me.
    <h6><!-- Filename: ShowStudents.jsp -->
    <%@taglib uri="http://java.sun.com/jsp/jstl/xml" prefix="x"%>
    <%@taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
    <HTML>
    <BODY>
    <c:import var="xmlDoc" url="http://www.manager.co.th/RSS/Home/Breakingnews.xml"/>
    <x:parse var="parsedDocument" xml="${xmlDoc}"/>
    <table>
    <tr>
    <th>Title : </th>
    <th>Link : </th>
    </tr>
    <x:forEach select="$parsedDocument/channel/item"> // This code I ever been change to $parsedDocument/rss/channel/ and $parsedDocument/rss/channel/title ,but it show same error.
    <tr>
    <td> <x:out select="title" /> </td>
    <td> <x:out select="link" /> </td>
    </tr>
    </x:forEach>
    </table>
    </BODY>
    </HTML></h6>
    when I run this code it show error like this. how to read rss with JSTL tag please help me.
    <h6>
    description The server encountered an internal error () that prevented it from fulfilling this request.
    exception
    org.apache.jasper.JasperException: javax.servlet.ServletException: javax.servlet.jsp.JspException: org.xml.sax.SAXParseException: Content is not allowed in prolog.
    org.apache.jasper.servlet.JspServletWrapper.handleJspException(JspServletWrapper.java:527)
    org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:401)
    org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:313)
    org.apache.jasper.servlet.JspServlet.service(JspServlet.java:260)
    javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
    Filter.ThaiRequest.doFilter(ThaiRequest.java:38)
    org.netbeans.modules.web.monitor.server.MonitorFilter.doFilter(MonitorFilter.java:393)
    root cause
    javax.servlet.ServletException: javax.servlet.jsp.JspException: org.xml.sax.SAXParseException: Content is not allowed in prolog.
    org.apache.jasper.runtime.PageContextImpl.doHandlePageException(PageContextImpl.java:858)
    org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImpl.java:791)
    org.apache.jsp.test_jsp._jspService(test_jsp.java:101)
    org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)
    javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
    org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:377)
    org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:313)
    org.apache.jasper.servlet.JspServlet.service(JspServlet.java:260)
    javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
    Filter.ThaiRequest.doFilter(ThaiRequest.java:38)
    org.netbeans.modules.web.monitor.server.MonitorFilter.doFilter(MonitorFilter.java:393)
    root cause
    org.xml.sax.SAXParseException: Content is not allowed in prolog.
    com.sun.org.apache.xerces.internal.parsers.DOMParser.parse(DOMParser.java:249)
    com.sun.org.apache.xerces.internal.jaxp.DocumentBuilderImpl.parse(DocumentBuilderImpl.java:284)
    org.apache.taglibs.standard.tag.common.xml.ParseSupport.parseInputSource(ParseSupport.java:227)
    org.apache.taglibs.standard.tag.common.xml.ParseSupport.parseInputSourceWithFilter(ParseSupport.java:193)
    org.apache.taglibs.standard.tag.common.xml.ParseSupport.parseReaderWithFilter(ParseSupport.java:199)
    org.apache.taglibs.standard.tag.common.xml.ParseSupport.parseStringWithFilter(ParseSupport.java:206)
    org.apache.taglibs.standard.tag.common.xml.ParseSupport.doEndTag(ParseSupport.java:138)
    org.apache.jsp.test_jsp._jspx_meth_x_005fparse_005f0(test_jsp.java:150)
    org.apache.jsp.test_jsp._jspService(test_jsp.java:80)
    org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)
    javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
    org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:377)
    org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:313)
    org.apache.jasper.servlet.JspServlet.service(JspServlet.java:260)
    javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
    Filter.ThaiRequest.doFilter(ThaiRequest.java:38)
    org.netbeans.modules.web.monitor.server.MonitorFilter.doFilter(MonitorFilter.java:393)
    </h6>
    Edited by: user12864851 on 15 ม.ค. 2554, 22:59 น.

    Ok, I did a bit more experimenting, and web searching, and found you are the victim of the UTF-8 BOM bug.
    Basically the java UTF-8 reader does not recognise a BOM at the start of a UTF-8 stream, and it has to be discarded manually.
    For details: http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=4508058
    Here is a 'fixed' JSP for you.
    <%@taglib uri="http://java.sun.com/jsp/jstl/xml" prefix="x"%>
    <%@taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
    <%@taglib uri="http://java.sun.com/jsp/jstl/functions" prefix="fn"%>
    <%@ page contentType="text/html; charset=UTF-8"%>
    <HTML>
    <BODY>
         <c:import var="xmlDoc"
              url="http://www.manager.co.th/RSS/Home/Breakingnews.xml"
              charEncoding="UTF8" />
         <%--
            JSTL hack to work around the UTF-8 BOM bug in JDK.
            http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=4508058
         --%>
         <c:set var="testChar" value="fn:substring(xmlDoc, 0, 1)}"/>
         <c:if test="${testChar != '<'}">
           <c:set var="xmlDoc" value="${fn:substring(xmlDoc, 1, fn:length(xmlDoc))}" />
         </c:if>
         <table>
              <tr>
                   <th>Title :</th>
                   <th>Link :</th>
              </tr>
              <x:parse var="parsedDocument" doc="${xmlDoc}" />
              <x:forEach select="$parsedDocument/rss/channel/item">
                   <tr>
                        <td><x:out select="title" /></td>
                        <td><x:out select="link" /></td>
                   </tr>
              </x:forEach>
         </table>
    </BODY>
    </HTML>cheers,
    evnafets

  • Hw can i get arabic support in oracleAS using jstl: showing '?????' symbols

    Hello All,
    I am using OracleAS for portal deployment and portlets UI constructed by using jstl.
    i have used spring portlet jstl for the jsp pages.
    when i am trying to change the language, it is showing '?????' symbols.
    I have used correct unicode. i tested in pluto portal server. when i deployed in oracleAS,
    for english not a problem. for arabic it is showing as '????'.
    i have used this code to get arabic in pluto. same code i used. i am getting error.
    <c:set target="${pageContext.response}" property="characterEncoding" value="UTF-8" />
    <fmt:setLocale value="ar" />
    <fmt:requestEncoding value="UTF-8" />
    i know it is not setting charector encoding.
    i tried some other too like:
    <head>
    <META http-equiv="Content-Type" content="text/html;charset=UTF-8"/>
    </head>
    and
    <%@ page pageEncoding="UTF-8" %>
    No improvement. please help me out of this.
    how can i get arabic support in oracle AS by using jstl?
    Thanks,
    Arun

    Only Apple Account Security could help at this point. You can try calling Apple Support in Canada - you'll have to find one of the several ways, such as Skype, to call an 800 number from outside of the relevant country - and ask for Account Security and see if they can help. Or you can find a friend who speaks Chinese and ask them to help you talk to Apple Support in China. There are really no other options that I know of.
    Note, by the way, that these are user-to-user support forums. You aren't speaking with Apple when you post here.
    Regards.

  • Can we use Evaluate Function in Dashboard Prompt

    Hi
    Can anybody tell me
    Can we use Evaluate Function in Dashboard Prompt.
    If yes...How
    Thanks in Adv

    Yes ! You Can!
    while creating the dashboard prompt, under "Show" pick SQL results and you write the SQL statement and include the EVALUATE function.
    I have several such examples. Most of of dashboard pages are parameter driven.
    1. 1st paratmeter - users specify the dates
    2. 2nd parameter - constrains the results for the period specified in 1st paramter and my SQL for 2nd paramter looks like this -
    SELECT table1.column1
    FROM table, datedim1, table1,table2
    WHERE datedim1.date BETWEEN EVALUATE( 'TO_DATE(%1,%2)','@{presentation variable1}','dd/mm/yyyy') AND EVALUATE('TO_DATE(%1,%2)', '@{presentation variable 2}','dd/mm/yyyy')
    HTH
    Mahesh

Maybe you are looking for

  • Plz help me in learning webdynpro

    hi experts i m an abaper nd want to learn webdynpro plz guide me hw i can learn it asa fast as possible plz giv me som links for documentation of webdynpro thanx in advance

  • Is document compare supported in Pages?

    I have been using Pages in lieu of Word for some time now but I need to compare two documents. Is there a function in Pages that does this? It is very simple in Word but if it's not in Pages, then this is definitely a let-down. Thanks.

  • Widget Browser "There was an error downloading the widget, error 2032"

    Hello, I ve a problem with the Adobe Widget Browser! Months ago it works fine and I ve installed some widgets without any trouble, but now I´ve this error: "There was an error downloading the widget, error 2032" already in the widget preview! I reins

  • Use a database as JNDI directory?

    With our application, all of the settings now live in a plain old INI file and would like to move them to live in the database, along with the rest of the data supporting our application. I know that I can use JNDI to locate the database itself, and

  • Minimum privileges for creating table

    I wanted to know of the minimum set of privileges for creating a table in Oracle 11g database. First I created a schema and granted the create table privilege to the schema. When I tried to create a table in the schema, it was giving a message of lik