Using Breaks/Context operators in WebI

Hi guys,                        
Had an urgent question that i needed help with.
Right now in WebI i have a table with a column giving end times
for Example:
End Time
5:02 AM
5:44 AM
6:05 AM
6:15 AM
6:45 AM
7:10 AM
7:22 AM
Instead of detailed times i need to replace this column with a counter for every hour... Basically
Hour               Count
5th Hour           2
6th Hour           3
7th Hour           2
How do i acheive this? Using breaks doesnt work right and the Context operator "In" isnt giving the right results. Do i need a variable?

Need some more help :/
Right now I am using
=Left(FormatDate([SAHH Start Time];"hhMMSS");2)
to get a column that says:
Hour
01
02
03
04
05
I wanted to display it as 1:00, 2:00, 3:00 .... Also add the AM/PM to it if possible. Any idea how this can be done?

Similar Messages

  • Problem on web app using root context in weblogic 7.0.2

    I got problem on servlet which running on root context "/" in weblogic 7.0.2. I have remove the default web app (which use the root context) before the web app. The web application was deployed without any error. However, when the servlet run to the line calling HttpSession.setAttribute, the following exception occurs. The weblogic server is running on Solaris 8. anyone can help?
              java.lang.IllegalStateException: Internal Servlet Session Process Error Found!
              at weblogic.servlet.internal.session.SessionData.checkProcess(SessionData.java:1045)
              at weblogic.servlet.internal.session.SessionData.setAttribute(SessionData.java:477)
              at com.chase.infra.appcontrol.servlet.LoginServlet.doPostHK(Unknown Source)
              at com.chase.infra.appcontrol.servlet.LoginServlet.doPost(Unknown Source)
              at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
              at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
              at weblogic.servlet.internal.ServletStubImpl$ServletInvocationAction.run(ServletStubImpl.java:1058)
              at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:401)
              at weblogic.servlet.internal.TailFilter.doFilter(TailFilter.java:20)
              at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:27)
              at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:5451)
              at weblogic.security.service.SecurityServiceManager.runAs(SecurityServiceManager.java:780)
              at weblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppServletContext.java:3105)
              at weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestImpl.java:2588)
              at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:213)
              at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:189)
              The weblogic.xml is
              <?xml version="1.0" encoding="UTF-8"?>
              <!DOCTYPE weblogic-web-app
              PUBLIC "-//BEA Systems, Inc.//DTD Web Application 7.0//EN"
              "http://www.bea.com/servers/wls700/dtd/weblogic700-web-jar.dtd" >
              <weblogic-web-app>
              <context-root>/</context-root>
              </weblogic-web-app>

    Hie,
              We are facing the same problem; i.e. we are getting the same error message when we are trying to run our struts application on Weblogic 7.0.5 using JDK 1.3.1. This problem occured particularly when we tried to do a load testing using approx 20 concurrent users (a lesser load was supported though). Can you please let us know how this problem was sorted out on your end?
              thanks,
              Debanjan

  • Help using JMX to Get Context of Deployed Web Apps

    I think this question is more of a JMX question that anything else (like a JNDI question), so I am posting here. If anyone feels this should be posted elsewhere, please let me know.
    I want to be able to get a handle to each deployed web app's context, so that I may get a BasicDataSource from it, then look at the connection attributes inside of that BasicDataSource, i.e., Number of active connections, number of idle connections, etc. for each deployed web app.
    This is the path I am heading down (if there is another way, please let me know). The code below is inside of a JSP running inside of a web app within my Tomcat 5.0.16 server, running JDK 1.4.2.
    Here is the entire JSP...
    <%@ page import="org.apache.commons.dbcp.BasicDataSource,
                     javax.naming.InitialContext,
                     javax.naming.Context,
                     javax.management.ObjectName,
                     javax.management.MBeanServer,
                     java.util.Set,
                     org.apache.catalina.mbeans.MBeanUtils,
                     java.util.Iterator,
                     javax.management.ObjectInstance,
                     org.apache.catalina.core.StandardContext"%>
    <html>
        <head>
            <meta http-equiv="refresh" content="3"> <!-- refresh every 3 seconds -->
        </head>
        <body>
    <%
        //InitialContext ctx = new InitialContext();
        //Context envCtx = (Context) ctx.lookup("java:comp/env");
        String dsName = "";//"jdbc/raptor";
        String appName = "";//(String) envCtx.lookup("appName");
        BasicDataSource ds = null;//(BasicDataSource) envCtx.lookup(dsName);
        MBeanServer mBeanServer = MBeanUtils.createServer();
        ObjectName oname = new ObjectName("*:j2eeType=WebModule,*");
        Set contexts = mBeanServer.queryMBeans(oname, null);
        Iterator it = contexts.iterator();
        while(it.hasNext()) {
            ObjectInstance oi = (ObjectInstance)it.next();
            ObjectName cname = oi.getObjectName();
            System.out.println(">>> cname = " + cname.toString()); // this prints something like this: Catalina:j2eeType=WebModule,name=//localhost/accesstracker,J2EEApplication=none,J2EEServer=none
                Is this the right way to do this??? I seem to be getting the web app, I just want to be able to
                get a handle to that web app's context, get a BasicDataSource from it, then look at the connection
                attributes inside of that BasicDataSource, i.e., Number of active connections, number of idle
                connections, etc. for each deployed web app
            //javax.naming.Context iCtx = (javax.naming.Context) mBeanServer.invoke(cname, "findStaticResources", null, null); // will this do it???
            Object obj = new InitialContext().lookup("java:comp/env"); // this only gets the current context (the web app I'm currently in)
            if(obj != null){
                Context envCtx = (Context) obj;
                appName = (String) envCtx.lookup("appName");
                ds = (BasicDataSource) envCtx.lookup("jdbc/raptor");
            }else{
                System.out.println("obj is null");
    %>      <%=cname.toString()%><br/>
            Application name: <%=appName%><br/>
              Number of Active Connections = <%=ds.getNumActive()%>
            <br/>
              Number of Idle Connections = <%=ds.getNumIdle()%>
            <br/>
              Initial Size of Pool = <%=ds.getInitialSize()%>
            <br/>
              Maximum Number of Active Connections = <%=ds.getMaxActive()%>
            <br/>
    <%
    %>
        </body>
    </html>The above JSP will output all of the info for each deployed web app, however, when it gets to getting the Context of the web app, it simply outputs information repeatedly for the web app this JSP is in (which makes sense since I'm using InitialContext).
    I appreciate any help anyone could provide.
    Thank you

    If you want your application to work only with specific JRE version, you should use static versioning. I installed JRE 1.3.1_15 and JRE 5.0U5 , both of them works successfully. I used the below syntax to load applets:
    for 1.3.1_15:
    <object
        classid = "clsid:CAFEEFAC-0013-0001-0015-ABCDEFFEDCBA"
        codebase = "http://java.sun.com/products/plugin/autodl/jinstall-1_3_1_15-windows-i586.cab#Version=1,3,1,15"
        WIDTH = 150 HEIGHT = 25 >
        <PARAM NAME = CODE VALUE = "HelloWorld.class" >
        <param name = "type" value = "application/x-java-applet;jpi-version=1.3.1_15">
        <param name = "scriptable" value = "false">
        <comment>
         <embed
                type = "application/x-java-applet;jpi-version=1.3.1_15" \
                CODE = "HelloWorld.class" \
                WIDTH = 150 \
                HEIGHT = 25
             scriptable = false
             pluginspage = "http://java.sun.com/products/plugin/index.html#download">
             <noembed>
                </noembed>
         </embed>
        </comment>
    </object>for 5.0U5
    <object
        classid = "clsid:CAFEEFAC-0015-0000-0005-ABCDEFFEDCBA"
        codebase = "http://java.sun.com/update/1.5.0/jinstall-1_5_0-windows-i586.cab#Version=1,5,0,5"
        WIDTH = 150 HEIGHT = 25 >
        <PARAM NAME = CODE VALUE = "HelloWorld.class" >
        <param name = "type" value = "application/x-java-applet;jpi-version=1.5.0_05">
        <param name = "scriptable" value = "false">
        <comment>
         <embed
                type = "application/x-java-applet;jpi-version=1.5.0_05" \
                CODE = "HelloWorld.class" \
                WIDTH = 150 \
                HEIGHT = 25
             scriptable = false
             pluginspage = "http://java.sun.com/products/plugin/index.html#download">
             <noembed>
                </noembed>
         </embed>
        </comment>
    </object>- Mike

  • How to use a context between two components at the runtime

    Hi Experts,
    My Web dynpro component is over the Generation limit (size of generated load is > 2 MB) so it always gets Warning when I active it. That why I have separated my application into two components and use the ViewContainerUIElement in order to show views of each other.
    In the application, I use also the TimeTrigger to refresh pages, all views have a TimeTrigger and the DELAY property of TimeTriggers is bounden into the same context attribute. I use a component to set up (change) the value of context attribute that is mapped with the Delay property. I want to change the Delay value on a component and other component will understand the changing.
    My problem is how I can use the same context attribute between components at the runtime?
    Let give me your advice on this.
    Many thanks,
    Ken

    Hi Ken,
    You can use [external context mapping|https://cw.sdn.sap.com/cw/docs/DOC-27901] to share data between two or more components using context.
    Thanks,
    Duy

  • Cannot see Ecatt option in context menu in web dynpro abap in SE80 ECC 6.0

    Hi ,
    I saw a presentation by Thomas in which there is option of recording ecatt script on context menu in web dynpro abap application.we are on ECC 6.0 we are trying to record WDA applications and test them by using Ecatt but I am unable to see the option of recording the ecatt script in SE80 editor.
    Why could this be happening

    Thanks ,
    I saw that disappointing note ...any other way to automate web dynpro abap testing ? please advise.

  • Significance of context param in web.xml to initialize any variable?servlet

    I am writing a standalone web appplication for rss (xml) creation where i am having jsp servlets class etc.
    Now to write rss.xml and read it back in application i have temporarily used c:\\rss.xml but to make it capable working in web application which can be uploaded in website i need to make it configurable i need to kep it in context param of web.xml and in init() method of servlet of my application what exactly i should do there.what i have tried is this :
    public class Startup extends HttpServlet {
    private static String rssFeed;
    private ServletContext ctx;
    Logger log = Logger.getLogger(Startup.class);
    public void init(){
    log.debug("Initializing APPLICATION CONTEXT Variables");
    ctx = getServletContext();
    rssFeed = (String)ctx.getInitParameter("RssFeed");
    log.debug("Rss : " + rssFeed);
    String rssFile = this.getServletContext().getRealPath("") + File.separator + "WEB-INF" + File.separator + "rss.properties";
    Properties property = new Properties();
    try{
    InputStream propertiesFile = new FileInputStream(rssFile);
    property.load(propertiesFile);
    catch (IOException e) {
    log.error("IOException during domainValuesList file Reading");
    e.printStackTrace();
    log.error("Exception while loading AllowedDomainValues file");
    log.debug("Domain Values Lists Updated");
    /** Get Host Name (Server Name) where application is hosted on
    public static String getRssFeed(){
    return rssFeed;
    after that i called this startup servlet class in other servlet taken this getRssFeed()
    stored it as string passed as parametr to other class where i need to call it but there i am getting null pointer exception which says not initialized.
    even what i have written in web.xml is here:
    <context-param>
    <param-name>RssFeed</param-name>
    <param-value>c:\\rsshandler.xml</param-value>
    </context-param>
    <servlet>
    <servlet-name>Startup</servlet-name>
    <servlet-class>src.Startup</servlet-class>
    <init-param>
    <param-name>RssFeedConfig</param-name>
    <param-value>/WEB-INF/rss-config.xml</param-value>
    </init-param>
    </servlet>
    <servlet-mapping>
    <servlet-name>Startup</servlet-name>
    <url-pattern>/Startup</url-pattern>
    <load-on-startup>1</load-on-startup>
    </servlet-mapping>
    i tried what i know or understood but its not working.
    one more thing i have doneis:created rss.properties files in web-inf
    lines added are
    rssfeed=c:\\rsshandler.xml
    but even i am not getting this why
    or what sholud i do here.
    this thing needs to be configurablewhich we can change later easily.
    any suggestions.
    thanks
    vijendra

    Ben -
    There can be init params for the servlet or for the servlet context. For the servlet, this looks like:
    <servlet>
    <servlet-name>InitServlet</servlet-name>
    <servlet-class>package1.InitServlet</servlet-class>
    <init-param>
    <param-name>message</param-name>
    <param-value>Hello From Initialization Parameter</param-value>
    </init-param>
    </servlet>
    in the web.xml file, and is accessed using:
    public void init(ServletConfig config) throws ServletException
    super.init(config);
    message = config.getInitParameter("message");
    For a servlet context init param, you define it as you did using the web.xml settings editor:
    <context-param>
    <param-name>hello</param-name>
    <param-value>hi</param-value>
    </context-param>
    This is accessed using:
    public void init(ServletConfig config) throws ServletException
    super.init(config);
    message1 = config.getServletContext().getInitParameter("hello");
    Hope this helps,
    Lynn
    Java Tools Team

  • Context Operators

    Hi,
    What are context operators and where should we use?  
    Thanks in Advance

    Hi,
    Check attached links.
    http://www.dagira.com/2010/01/04/calculation-context-part-i-overview/
    http://bobi.blog.com/2014/03/10/in-foreach-forall-context-operator-in-bo/
    Amit

  • How to enhance the context menu in Web Applications - BW 7.0

    We have to enhance the context menu of several Web Applications and,
    initially, we based our solution on the paper "How to enhance the
    context menu of Web Applications", from June, 2002, but the solution
    described on the paper refers to the BW version 3.0 and we need the
    solution for the BW version 7.0. The technical content described on the
    paper, version 3.0, is very different from the content of the version
    7.0, used by us. Is this feature available for the version 7.0?

    Hi,
    did you find a solution already?
    Thanks,
    Frank

  • Generated JSP reports and context-param in web.xml

    I have what I believe to be a problem when using .jsp files generated from reports builder (actually, it looks as if the problem is in the reports tag library. When adding a context-param to web.xml, I get an error when compiling the following line:
    <%@ taglib uri="/WEB-INF/lib/reports_tld.jar" prefix="rw" %>
    Error(1): oracle.xml.parser.v2.XMLParseException: Invalid element 'context-param' in content of 'web-app', expected elements '[taglib, resource-ref, security-constraint, login-config, security-role, env-entry, ejb-ref]'.
    Note that I can read the context param and no other JSP pages seem to care, just those with the Reports Tag library.
    Regards,
    Jeff

    Ben -
    There can be init params for the servlet or for the servlet context. For the servlet, this looks like:
    <servlet>
    <servlet-name>InitServlet</servlet-name>
    <servlet-class>package1.InitServlet</servlet-class>
    <init-param>
    <param-name>message</param-name>
    <param-value>Hello From Initialization Parameter</param-value>
    </init-param>
    </servlet>
    in the web.xml file, and is accessed using:
    public void init(ServletConfig config) throws ServletException
    super.init(config);
    message = config.getInitParameter("message");
    For a servlet context init param, you define it as you did using the web.xml settings editor:
    <context-param>
    <param-name>hello</param-name>
    <param-value>hi</param-value>
    </context-param>
    This is accessed using:
    public void init(ServletConfig config) throws ServletException
    super.init(config);
    message1 = config.getServletContext().getInitParameter("hello");
    Hope this helps,
    Lynn
    Java Tools Team

  • Regulare Expressions - Uses of logical operators

    I need to make use of logical operators within a regulare expression. (greater than, equal, etc.)
    It seems to me that java.util.regex.Pattern does not support that kind of expression. First of all: Is this true (If I am wrong with my assumption, how would the expression look like). Secondly: Which library does support this expression?
    Thanks in advance!

    Regular expressions deal with characters. In that context all characters are 'equal'. You better explain your question a helluva lot better than that.

  • Reusable Context Menu Item - Web Template Termination

    When I insert a Context Menu Item that has been saved as a resuable web item the web template teminates with the following error when it is executed.
    The following error does not occur if I use a Context menu item - only if I use a resuable context menu item.  We are on SP10 for both front and back end.
    Does anyone have a similar problem?
    <b>Error Summary</b>
    Exception occured while processing the current request; this exception cannot be handled by the application or framework
    If the information on this page does not help you locate and correct the cause of the problem, contact your system administrator
    To facilitate analysis of the problem, keep a copy of this error page Hint: Most Web browsers allow you to select all content, and copy and paste it into an empty document (such as in an email or simple text file)
    Root Cause
    The initial exception that caused the request to fail, was:
    Fatal Error: com.sap.engine.lib.xml.parser.ParserException: XMLParser: No data allowed here: (hex) 0(:main:, row:2, col:0)

    Hi
    Just to close the loop on this problem:
    This is my final reply from SAP.
    <i>"Dear Customer,
    Patch is available on Service Market Place for download."</i>
    If you want to a more usefull explanation of what to do and save your time scratching around the Software Distribution Center I would recommend referring to OSS note 1023623 and 1011241.
    I hope this helps anyone else facing the same problem.
    Regards
    Ian

  • Printing through Context Menu on Web

    I would like to print a set of table results using the BW Web designer from a context menu of the table.  I have found documentation if I want to print using a "Print" link on my web template but now would like to use the context menu. I'm using BW 3.5.
    I found some documentation for setting this up but the context menu never gets a "Print" option.
    I have these lines in the Data Provider section:
    <param name='HELP_SERVICE' value='ZPRINTING'/>
    <param name='HELP_SERVICE_CLASS' value='Z_PRINT_HELP_SERVICE'/>
    And in the Template Properties section, I have:
    <param name="CMENU_LABEL_1" value="Print"/>
    <param name="CMENU_FUNCTION_1" value="callPrintHelpService"/>
    Then I have the following Javascript function:
    <script language=javascript> 
    function callPrintHelpService(parameter, cell_type, filter, parameter1, parameter2, item, dataprovider, x, y)
    var url = "<SAP_BW_URL cmd='PROCESS_HELP_WINDOW' help_service='ZPRINTING' DATA_PROVIDER='DATAPROVIDER_1'>"; 
    if( dataprovider == "DATAPROVIDER_1") 
        window.open(url, "Print", "width=800, height=600, menubar=yes, toolbar=no, scrollbars=yes, resizable=yes");
    </script>
    Am I missing something else or is anything typed wrong?
    I'd appreciate the help.

    Usually, I see that experts refer to t/c RSRD. When I try that, I get "Transaction RSRD doesn't exists". Am I supposed to get authorization for this?
    I was also told that information broadcasting doesn't come with all web templates. Only with 0Analyzer? what does it mean?

  • Sorry, we couldn't open your file using this feature. Visio Web Access is not available on this site.

    Recently installed Service Pack 1 in SharePoint Server 2013 Farm, post upgrade we are experiencing issue when opening visio documents:
    I am trying to open .vsdx (visio 2013) file but encounter following issue:
    Sorry, we couldn't open your file using this feature. Visio Web Access is not available on this site.
    Under Document library-->Library settings-->Advanced Settings
    Still I cant open file in browser as we always used to. Unfortunately we don't have Visio services in Farm.
    can you share your experiences regarding this issue post Sp1 SharePoint Server 2013.
    Thank You

    Hi Octopus,
    Based on the error message, it seems that the Visio Graphics Service is not started or the Enterprise feature is not enabled.
    I recommend to check the things below:
    Go to Central Administration > System Settings > Manage service on server > check if the Visio Graphics Service is started > then click Application Management > Manage service applications > check if the Visio Graphics Service application
    is created.
    Go to the root site settings page of the site where you got this error, click Site collection features to check if the SharePoint Server Enterprise Site Collection Features is enabled.
    Go to the site settings page of the site where you got this error, click Manage site feature to check if the SharePoint Server Enterprise Site Features is enabled.
    More information about the Visio Graphics Service:
    http://tutorial.programming4.us/windows_server/microsoft-sharepoint-2013---looking-at-visio-services-(part-3)---visio-graphics-service-service-application.aspx
    Best regards.
    Thanks
    Victoria Xia
    TechNet Community Support

  • Can I use my G5 on the web without antiviruses ?

    Hi guys and girls,
    Could you tell me if I can use my G5 on the web without antiviruses ?
    If you are disagree, please tell me which antiviruses is the best for you ?
    Thanks.
    Philippe

    Welcome to the Apple Discussion Forum!
    Currently no internet virus protection is needed for Apple OSX. Using Safari or Firefox is the best way to access the internet.
    In addition, make sure you download and install all Apple Security updates (from the Software updates tab). This will keep your MacOSX protection up to date. In addition, there are only three Anti-Virus software programs available from the Apple store, that alone will give you a clue to the need for them.
    Regards,
    Dave

  • Omit the final SUM row in a report using breaks

    We have a report using breaking whereby it is broken for current day, week to date and month to date. We want to use the column SUM feature so that we have a count of all records for the day, week to date and month to date.
    This works fine, however we also get a final sum row on the bottom of the report which is a sum of the month, week and day count. This is meaningless as the month includes the week which in turn includes the day - all it gives is a useless large number! :)
    Is there a way to stop this final column being displayed?
    Thanks in advance

    I have managed to remove the last row in a table using the following code:
    <script type="text/javascript">
    $(document).ready(function() {
       $("#JK_TEST .t7standard tr:last").remove();
    </script>However, the report uses a bottom border implemented using a <TR> so I actually need to remove the second to last row. I have tried to work out how to do this but am still trying!!! Any suggestions?
    EDIT::
    DONE IT!!! :D:D :D
    Cheers for the help!
    <script type="text/javascript">
    $(document).ready(function() {
       $("#JK_TEST .t7standard tr:last").prev($('<TR>')).remove();
    </script>Cheers!
    Edited by: /dev/null on Mar 24, 2009 4:49 PM

Maybe you are looking for

  • 3D not working in Photoshop CC trial version.

    I am using the trial version of Adobe Cloud before I subscribe to it. I noticed that the 3D menu is greyed out in Photoshop CC so it seems like it's not working. Also not seeing the "Marching Ants" when making a selection. The selection is there but

  • Regarding display of Account Number in Report Writer Report

    Hi All, I am working on Report Writer Report. It is related to Dipslay of Account Numbers with their corresponding description. My Issue is On the output screen I am able to see only the Description of Account Numbers. But I need to <b>Display the Ac

  • I want the code to send a mail with attachment

    can u please help me?

  • Phone number links in iCal

    Hello all; In Mail, phone numbers turn into links which when tapped dial the call. In iCal, even if I put a phone number in the event name or notes and view it on the iPhone, it is not a link. So I transcribe it on paper (yuck!) then dial it manually

  • Cron service in maintenance mode

    Hi Experts, I need an advice how to bring cron service online. It's in maintenance mode all the time and when I try to enable it, I'm keep getting below errors in log file, and service stays in maintenance mode: [ Apr 22 07:58:48 Stopping because all