Problem getting accumulative value by a user defined week

I have a requirement where I have to accumulative values by week where a week is defined as Sunday to Saturday. For example:
date           value     acc_value          
9/1/2010     2     2          Wed     
9/2/2010     5     7          Thur     
9/3/2010     3     10          Fri     
9/4/2010     4     14          Sat     
9/5/2010     8     8          Sun     value is reset
9/6/2010     2     10          Mon     
9/7/2010     1     11         Tue     
9/8/2010     4     15         Wed     
9/9/2010     7     22         Thu     
9/10/2010     4     26          Fri     
9/11/2010     5     31         Sat     Any help would be appreciated.
Thanks.

Try this:
with my_table as (select to_date('01/09/2010', 'dd/mm/yyyy') dt, 2 value from dual union all
                  select to_date('02/09/2010', 'dd/mm/yyyy') dt, 5 value from dual union all
                  select to_date('03/09/2010', 'dd/mm/yyyy') dt, 3 value from dual union all
                  select to_date('04/09/2010', 'dd/mm/yyyy') dt, 4 value from dual union all
                  select to_date('05/09/2010', 'dd/mm/yyyy') dt, 8 value from dual union all
                  select to_date('06/09/2010', 'dd/mm/yyyy') dt, 2 value from dual union all
                  select to_date('07/09/2010', 'dd/mm/yyyy') dt, 1 value from dual union all
                  select to_date('08/09/2010', 'dd/mm/yyyy') dt, 4 value from dual union all
                  select to_date('09/09/2010', 'dd/mm/yyyy') dt, 7 value from dual union all
                  select to_date('10/09/2010', 'dd/mm/yyyy') dt, 4 value from dual union all
                  select to_date('11/09/2010', 'dd/mm/yyyy') dt, 5 value from dual)
-- end of mimicking your data in a table called my_table
select dt,
       value,
       sum(value) over (partition by trunc(dt+1, 'iw') order by dt) acc_value,
       to_char(dt, 'dy') dy
from   my_table
order by dt;
DT              VALUE  ACC_VALUE DY
01/09/2010          2          2 wed
02/09/2010          5          7 thu
03/09/2010          3         10 fri
04/09/2010          4         14 sat
05/09/2010          8          8 sun
06/09/2010          2         10 mon
07/09/2010          1         11 tue
08/09/2010          4         15 wed
09/09/2010          7         22 thu
10/09/2010          4         26 fri
11/09/2010          5         31 sat

Similar Messages

  • Getting the value of a user defined environment variable

    hi,
    i have an environment variable called MY_PATH='E:\data'
    I am running a batch file which sets the value of this variable. Then i run my java program. Now from my java program i want the value of the variable MY_PATH. How do i get it?

    See http://developer.java.sun.com/developer/bugParade/bugs/4199068.html and http://developer.java.sun.com/developer/bugParade/bugs/4642629.html
    You can pass the value into the Java program as:
    $ java -DMY_PATH="E:\data" YourJavaProgram
    HTH,
    Binil

  • Problem getting parameter  values at the service end point

    I am having problem getting parameter values at the service end point. I created service end point and this method is having 35 parameters and then i created test client file using Sun One Studio 5. but when i run this test client and make a call to service it sends wrong value to first three parameters to the service end point. I tried all the way round but it gave me same sort of problem. I change the order of parameters change the names of parameters but it didn�t work. And then i started chopping of parameter from the left side. And my problem is solved when my parameter list reached to 12 from 35. So is it a bug or some problem with my configuration or some thing else.
    I am using sun one studio 5 with sun one app 7. My service end point does very simple thing. It only takes out put of the parameter to the server log file. And my wsdl file seems all right. There is no conflict with the count and data type of the parameter information it contains.
    �     Service End Point Definition (in EJB)
    public java.lang.String setNewAddress(java.lang.String propertyName, java.lang.String status, java.lang.String PMSCode, java.lang.String streetNumPrefix, int streetStartNum, java.lang.String streetStartNumSuffix, int streetEndNum, java.lang.String streetEndNumSuffix, java.lang.String streetName, java.lang.String streetType, java.lang.String streetSuffix, java.lang.String localityPrefix,java.lang.String localityName, java.lang.String postcode, java.lang.String stateCode, java.lang.String countryCode, java.lang.String description, java.lang.String coordinateAccuracy, int longitude, int latitude, java.lang.String planNumber, java.lang.String lotPrefix, int lotNumber, int siteID, java.lang.String countryName, java.lang.String parishName, java.lang.String section, int portionNum, int crownAllotNum, int titleVol, java.lang.String folio, java.lang.String esa, int aliasID, int aliasTagID,String ID) {
    System.out.println(propertyName);
    System.out.println(PMSCode);
    System.out.println(streetNumPrefix);
    ........ taking printout of all the paramters
    �     This is my WSDL file
    <?xml version="1.0" encoding="UTF-8"?>
    <definitions name="NMService" targetNamespace="urn:NMService/wsdl" xmlns:tns="urn:NMService/wsdl" xmlns="http://schemas.xmlsoap.org/wsdl/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/">
    <types/>
    <message name="NMServiceServantInterface_setNewAddress">
    <part name="String_1" type="xsd:string"/>
    <part name="String_2" type="xsd:string"/>
    <part name="String_3" type="xsd:string"/>
    <part name="String_4" type="xsd:string"/>
    <part name="int_5" type="xsd:int"/>
    <part name="String_6" type="xsd:string"/>
    <part name="int_7" type="xsd:int"/>
    <part name="String_8" type="xsd:string"/>
    <part name="String_9" type="xsd:string"/>
    <part name="String_10" type="xsd:string"/>
    <part name="String_11" type="xsd:string"/>
    <part name="String_12" type="xsd:string"/>
    <part name="String_13" type="xsd:string"/>
    <part name="String_14" type="xsd:string"/>
    <part name="String_15" type="xsd:string"/>
    <part name="String_16" type="xsd:string"/>
    <part name="String_17" type="xsd:string"/>
    <part name="String_18" type="xsd:string"/>
    <part name="int_19" type="xsd:int"/>
    <part name="int_20" type="xsd:int"/>
    <part name="String_21" type="xsd:string"/>
    <part name="String_22" type="xsd:string"/>
    <part name="int_23" type="xsd:int"/>
    <part name="int_24" type="xsd:int"/>
    <part name="String_25" type="xsd:string"/>
    <part name="String_26" type="xsd:string"/>
    <part name="String_27" type="xsd:string"/>
    <part name="int_28" type="xsd:int"/>
    <part name="int_29" type="xsd:int"/>
    <part name="int_30" type="xsd:int"/>
    <part name="String_31" type="xsd:string"/>
    <part name="String_32" type="xsd:string"/>
    <part name="int_33" type="xsd:int"/>
    <part name="int_34" type="xsd:int"/>
    <part name="String_35" type="xsd:string"/></message>
    <message name="NMServiceServantInterface_setNewAddressResponse">
    <part name="result" type="xsd:string"/></message>
    <portType name="NMServiceServantInterface">
    <operation name="setNewAddress" parameterOrder="String_1 String_2 String_3 String_4 int_5 String_6 int_7 String_8 String_9 String_10 String_11 String_12 String_13 String_14 String_15 String_16 String_17 String_18 int_19 int_20 String_21 String_22 int_23 int_24 String_25 String_26 String_27 int_28 int_29 int_30 String_31 String_32 int_33 int_34 String_35">
    <input message="tns:NMServiceServantInterface_setNewAddress"/>
    <output message="tns:NMServiceServantInterface_setNewAddressResponse"/></operation></portType>
    <binding name="NMServiceServantInterfaceBinding" type="tns:NMServiceServantInterface">
    <operation name="setNewAddress">
    <input>
    <soap:body encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" use="encoded" namespace="urn:NMService/wsdl"/></input>
    <output>
    <soap:body encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" use="encoded" namespace="urn:NMService/wsdl"/></output>
    <soap:operation soapAction=""/></operation>
    <soap:binding transport="http://schemas.xmlsoap.org/soap/http" style="rpc"/></binding>
    <service name="NMService">
    <port name="NMServiceServantInterfacePort" binding="tns:NMServiceServantInterfaceBinding">
    <soap:address location="http://localhost:80/NMService/NMService"/></port></service></definitions>
    �     I followed steps given this example. http://developers.sun.com/prodtech/javatools/jsstandard/reference/docs/s1s5/stockapp.html.
    If some one know what is wrong. Is it me or some thing wrong with the method I followed. But I am sure that I followed exactly the same method as it given in examples. So if some one can guide me
    Thanks

    I just found that there is a bug with Sun One Studio 5. It creates faulty JSP file to test the client for the web services. With above problem I tested my web services using different developing environment such as Jdeveloper 10g. I created client stub using wsdl file generated by sun one studio. And made call to my web service and all the parameter reached perfectly at service end point. And then I used stub class created by sun one studio for the client and made the same call. And it also went well. So the problem is with the test application (JSP File) sun one creates for my web service.
    This is the majore problem i faced during the development. But still there is many problem along with this which is not seriouse enough but requires attension. I would like sun developers to make sun one studio IDE simpler and handy .

  • How to get the value of a variable defined in javascript in JSP

    how to get the value of a variable defined in javascript in/through JSP????

    In Javascript you can use the DOM to access the input element and set it's value before submitting the form. Then it's value will just be passed.

  • How to assign a query retrived value to a user defined  object in a table

    how to assign a query retrived value to a user defined  object in a table

    Rajeshwar,
    If you use the "Search" feature in this forum, you should be able to find helpful links to similar questions.  You could also look at the RecordSet and DoQuery documentation in the SAP Business One SDK Help Center documentation to assist you with your question.
    HTH,
    Eddy

  • Journal Problem with Replicating another dimension on User Defined

    Hi experts,
    A curious thing is happing on development, I follow the HTG "SAP Business Planning and Consolidation for NetWeaver - Journals.pdf"; and this generate fine the journal, but when I was testing, doing a simple journal entry, a trouble occurred, the template has the structure below:
    Header:
    Category
    Time
    Group
    Row:
    DataSrc
    Entity
    Account
    Intco
    Flow - SubTable
    CLucro - User Defined
    CCusto - User Defined
    So when I fill all the information to every dimension and put the amount, I save, and don't get any error message, but on CLucro and CCusto appears the value of flow, and if I consult the Infocube on listcube I get this dimensions in blank.
    Fonte Empresa Conta        TipMov CLucro CCusto IntCo Remark Debit     Credit
    AJUSTE 1161 PC011101010001 BLK BLK BLK C1161                      100
    AJUSTE 1161 PC013604030001 BLK BLK BLK C1161       100
    Does anybody know what could be ? Journal can't has user defined dimension ?
    Best Regards
    Alexandre Mendoza Collepicolo

    Hi Ethan,
    I'm on BPC version NW 7.5 SP04. The HTG is on this link:
    http://www.sdn.sap.com/irj/scn/index?rid=/library/uuid/00497d6a-0f38-2d10-bfb5-d50b91c9c0e5
    I'm with the same problem related by M. Weisheit on this thread
    Re: Journal entry disappear
    Someone knows what could be ?
    Best regards

  • Problem while extracting using RSCRM_BAPI in user defined job

    Hi all,
    Of late I have trying to executing Bex query extract thru RSCRM_BAPI and needed a way to be able to schedule an user defined job so for that so that I have control in terms of when I execute the job.
    I went thru SDN and found this Function module RSCRMBW_REPORT which is supposed to do the part however I am getting a error since my BEx query has a variable screen and I dont know how I can take care of that. I am currently getting the error from the function module:
    "The entry type of variable ZPM_MEDT requires you to enter values"
    Where ZPM_MEDT is a date variable on my Bex report.
    So the question is how do I get my variables to my Bex report while using Fn module RSCRMBW_REPORT. I tried Bex personalization it didnt work.
    For more information on RSCRMBW_REPORT module please refer.
    Providing job names in trx RSCRM_BAPI
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/3ba5e590-0201-0010-59b1-cab51fd245b7

    Sorry for the delay in reponse.  I have changed the all variables either to populater by user exit or hard code it to a filter (constant).  But I am having problem executing the function RSCRMBW_REPORT
    I am using the following parameters and getting the subsequent error message.
    I_MODE:  OPEN/START
    I_REPORTUID: YC_OO/ZYM_OO_Q0002_2
    I_REPNAME: ZYM_OO_Q0002_2
    I_PACKSIZE: 0000010000
    I_EXECMODE: TABLE
    I_EXTRACT: ZOCARRY
    I_USER: R2067Z
    I_LANGU: EN
    I_SEPARATOR: ;
    I_BATCH_TIME: 00:00:00
    I_CLEAREXTRACT: X
    I_CHECK_MEMBERS: X
    Rest all fields blank.
    Now I am getting short dump in the GET_CUBETYPE() method in the CL_RSCRMBW_BAPI class.  For some reason the cube name is not being parsed from the report ID name "YC_OO/ZYM_OO_Q0002_2".  Am I missing something?
    Also is there any other way SAP provides to schedule RSCRM_BAPI queries to a table externally without using standard job scheduliing from within the RSCRM_BAPI transaction.
    Thanks

  • Problems getting selected values from HtmlSelectManyCheckbox

    Hello,
    I am having problems getting values via getSelectedValues() from my HtmlSelectManyCheckbox component. The method returns an object array but the values are the same as the initial selectItems property.
    JSP:
    <h:selectManyCheckbox id="checkBox"
        binding="#{userEditBean.manyCheckbox}"
        value="#{userEditBean.groupIds}"
        layout="pageDirection">
      <f:selectItems value="#{userEditBean.allGroups}"/>
    </h:selectManyCheckbox>
    <h:commandButton action="#{userEditBean.ok}"     value="OK"/>Bean:
    public class UserEditBean extends BaseBean {
        private HtmlSelectManyCheckbox manyCheckbox = new HtmlSelectManyCheckbox();
        private String[] groupIds= {};
        private List allGroups = new ArrayList();
        public String[] getGroupIds() {
                groupIds= backing.getSomeIds();
                return groupIds;
        public void setGroupIds(String[] ids) {
            this.groupIds= ids;
        public HtmlSelectManyCheckbox getManyCheckbox() {
            return manyCheckbox;
        public void setManyCheckbox(HtmlSelectManyCheckbox newC) {
            this.manyCheckbox = newC;
        public List getAllGroups() {
            allGroups = backing.getAllGroups();
            return allGroups;
        public void setAllGroups(List newList) {
            this.allGroups = newList;
        public String ok() {
            Object o = manyCheckbox.getSelectedValues();
        }The problem is, the getSelectedValues() returns the values from the initial state of the page. The is no mark of the changes made by the user. Any help will be appreciated
    Thanks,
    Matek

    Your approach is somewhat odd. The selected values are just reflected in the groupIds, but you're overridding it with backing.getSomeIds() each time when the getter is called.
    Here is a basic working example:<h:selectManyCheckbox value="#{myBean.selectedItems}">
        <f:selectItems value="#{myBean.selectItems}"/>
    </h:selectManyCheckbox>
    <h:commandButton value="submit" action="#{myBean.action}" />MyBeanprivate List<String> selectedItems;
    private List<SelectItem> selectItems;
    // + getters + setters
    // You can use initialization block or constructor to prepopulate the selectItems.
        selectItems = new ArrayList<SelectItem>();
    //or
    public MyBean() {
        selectItems = new ArrayList<SelectItem>();
    public void action() {
        // The selected items are reflected in selectedItems.
        for (String selectedItem : selectedItems) {
            System.out.println(selectedItem);
    }

  • Get Error while update the User defined row table through DSK Code

    Hi experts,
    I have got an error while updating the user row defined table.
    Error is - "Invalid row"
    I have created one master table "@CBF_FARM " and Child table "@CBF_FAR1"
    First i inserted 5 record in the child table so in my my child table there are 5 Line id (1,2,3,4,5 one for each row).
    after that i delete 2 rows (3rd & 4th row) from child table now in my child table there are 3 rows( Line id 1, 2, 5). Please See attachment.
    Now i am updating  the last record of child table through Code  (Line id is 5)  from other form, then i got error  invalid row.
    Following Code used for updating the user defined child table.
      SAPbobsCOM.GeneralService oGeneralService1 = null;
                                    SAPbobsCOM.GeneralData oGeneralData1 = null;
                                    SAPbobsCOM.GeneralDataParams oGeneralParams1 = null;
                                    SAPbobsCOM.CompanyService sCmp1 = null;
                                    SAPbobsCOM.GeneralData oChild1 = null;
                                    SAPbobsCOM.GeneralDataCollection oChildren1 = null;
                                    sCmp1 = clsAddOn.LDNA_Company.GetCompanyService();
                                    oGeneralService1 = sCmp1.GetGeneralService("CBF_FARM");
                                    // Get UDO record
                                    oGeneralParams1 = ((SAPbobsCOM.GeneralDataParams)(oGeneralService1.GetDataInterface(SAPbobsCOM.GeneralServiceDataInterfaces.gsGeneralDataParams)));
                                    oGeneralParams1.SetProperty("Code", oForm.Items.Item("edtFarmCd").Specific.Value);
                                    oGeneralData1 = oGeneralService1.GetByParams(oGeneralParams1);
                                    // Add lines on UDO Child Table
                                    oChildren1 = oGeneralData1.Child("CBF_FAR1");
                                    // Create data for rows in the child table
                                    SAPbouiCOM.Item oItem = oForm.Items.Item("cmbShed");
                                    oCombo = oItem.Specific;
                                    string ShedCode = oCombo.Selected.Value;
                                    ldna_Rec = clsAddOn.LDNA_Company.GetBusinessObject(SAPbobsCOM.BoObjectTypes.BoRecordset);
                                    string strQuery1 = "select LineId from [@CBF_FAR1] where U_ShedCd = " + ShedCode;
                                    ldna_Rec.DoQuery(strQuery1);
                                    oChild1 = oChildren1.Item(ldna_Rec.Fields.Item("LineId").Value - 1);
                                    oChild1.SetProperty("U_Status", "Ready For Schedule");
                                    //Update the UDO Record
                                    oGeneralService1.Update(oGeneralData1);
    Please Help me it is an urgent requirement,
    -Regards
    Vikas

    hi.
    Error is - "Invalid row"
    Now i am updating  the last record of child table through Code  (Line id is 5)  from other form, then i got error  invalid row.
    As per my knowledge
    What i understood is you have 5 lines and you are going to be update 5th line
    am i correct..
    while u are updating the line in child table
    you have to consider like this..
    line number         u have to update like
    1                                        0
    2                                        1
    3                                        2
    4                                        3
    5                                        4
    which means in child table treat
    line 1  as 0
    line 2 as  1
    line 5 as 4
    If you want to update the line 5 u have to mention 4 th line

  • How to get the tag of the User Defined Variables using the Get Tag method%3F

    For the cRIO modules under a cRIO Chasis, a tag value can be obtained using the Get Tag method with crio.Type to the TagName input of the method. When it comes to the User Defined Variables, what should be fed to the TagName input?

    For the cRIO modules under a cRIO Chasis, a tag value can be obtained using the Get Tag method with crio.Type to the TagName input of the method. When it comes to the User Defined Variables, what should be fed to the TagName input?

  • How to provide value to a User Defined field thru java code

    I am using OIM 11.1.1.5.
    I have a user defined field called Unique-Customer-Number. This field need to be pre-populated during user creation (using OIM Web UI) and the value comes from a java code.
    Can any of you tell me the high level steps to implement this.
    Thanks!
    Kabi

    Thanks Rajiv,
    I just followed everything on metalink 1262803.1. My console shows the followings during Metadata import.
    weblogicImportMetadata.bat :-
    Starting import metadata script ....
    Please enter your username :weblogic
    Please enter your password :
    Please enter your server URL [t3://localhost:7001] :t3://10.10.99.99:7001
    Connecting to t3://10.10.99.99:7001 with userid weblogic ...
    Successfully connected to Admin Server 'adm_server01' that belongs to domain 'server01'.
    Warning: An insecure protocol was used to connect to the server. To ensure on-the-wire security, the SSL port or Admin port should be used instead.
    Location changed to domainRuntime tree. This is a read-only tree with DomainMBean as the root.For more help, use help(domainRuntime)
    Disconnected from weblogic server: adm_eimsdv1s01
    End of importing metadata script ...
    Exiting WebLogic Scripting Tool.
    How I will I know that my plugin/ event-Handler is registered successfully. Is there any screen where I can see all registered plugins ?

  • Get the values that an user write in textbox with typed_context

    Thanks for your time
    I want to verificate, the values (product configuration) that an user have introduced,
    I have written this code to get the values and verificate this.
      DATA:
          lr_info   TYPE REF TO cl_crm_bol_entity.
      lr_info ?= ME->typed_context->ISUORDERITEM->collection_wrapper->get_current( ).
    lr_info has an atritbute  T_EXTENSION_FIELDS, this is a table with the values of the product configuration, but I don't know how I can access to this values.
    Could you help me, please??
    Or other option to get the values to verificate this ??
    Thanks

    When I get the solution, I will post here, thanks
    Edited by: Javier Garcia on Oct 20, 2008 3:44 PM

  • How to export values to a user defined function

    Hi Experts,
    I want to create a function module under FUNCTION EXIT_SAPMIWO0_020.How to access these values into the called function?
    I tried it using IMPORT parameters of the called function.But while debugging I am not getting these values.
    Can any1 suggest a solution for this problem?
    Regards,
    Sam.

    > Earlier I was using RFC enabled function module for sending the mail under FUNCTION EXIT_SAPMIWO0_020
    You were using aRFC (starting new task: it starts immediately and asynchronously), not tRFC (transactional RFC: it starts only at the end of COMMIT WORK).
    > and the mail was getting delivered instantly.
    It was only because you were using RSCONN01 (preceded by commit of course), not because of the aRFC.
    > Here also I am using COMMIT WORK before
    > SUBMIT rsconn01 WITH mode = 'INT' AND RETURN.
    Well that's very strange it doesn't send the mail immediately! (see my answer below)
    Note that it is dangerous (for many reasons I don't need to explain here) to run COMMIT WORK, SUBMIT, and a few other statements, in a BAdI, especially when it's at save time. Prefer to use tRFC as I said (and not the aRFC).
    > Also the sent item of the mail in outlook is 50 minutes ahead of our system time
    > Is it the reason for a delay in mail delivery?
    As you call RSCONN01, the delay can only come from something external to SAP. Check the logs in SCOT, to make sure SAP has sent the mail immediately. In the mail you receive, look at the MIME information in the header of the mail, to check the times at which the mail is transferred from a server to another. Ask your administrator to help you.

  • Problem getting arraylist values from request

    Hi All,
    I am trying to display the results of a search request.
    In the jsp page when I add a scriplet and display the code I get the values else it returns empty as true.Any help is appreciated.
    <%@ taglib prefix="sql" uri="http://java.sun.com/jsp/jstl/sql" %>
    <%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions" %>
    <%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>
    <%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
    <html>
    <head>
         <%@ include file="/includes/header.jsp"%>
         <title>Research Results</title>
    </head>
    <body>
    <div class="ui-widget  ui-widget-content">
        <%  
        ArrayList<Research> research = (ArrayList<Research>) request.getAttribute("ResearchResults");
         Iterator iterator = research.iterator();
              while(iterator.hasNext()){
              Research r = (Research) iterator.next();
              out.println("Result Here"+r.getRequesterID());
              out.println("Result Here"+r.getStatus());
        %> 
         <form>
         <c:choose>
         <c:when test='${not empty param.ResearchResults}'>
         <table cellspacing="0" cellpadding="0" id="research" class="sortable">
         <h2>RESEARCH REQUESTS</h2>
                   <tr>
                   <th><a href="#">RESEARCH ID</a></th>
                   <th><a href="#">REQUESTOR NAME</a></th>
                   <th><a href="#">DUE DATE</a></th>
                   <th><a href="#">REQUEST DATE</a></th>
                   <th><a href="#">CLIENT</a></th>
                   <th><a href="#">STATUS</a></th>
                   <th><a href="#">PRIORITY</a></th>
                   </tr>
              <c:forEach var="row" items="${param.ResearchResults}">
                        <tr title="">
                             <td id="researchID">${row.RESEARCH_ID}</td>
                             <td>${row.REQUESTER_FNAME}  ${row.REQUESTER_LNAME}</td>
                             <td><fmt:formatDate pattern="MM/dd/yyyy" value="${row.DUE_DATE}"/></td>
                             <td><fmt:formatDate pattern="MM/dd/yyyy" value="${row.CREATED_DATE}"/></td>
                             <td>${row.CLIENT}</td>
                             <td>
                             <c:choose>
                               <c:when test="${row.STATUS=='10'}">New Request</c:when>
                               <c:when test="${row.STATUS=='20'}">In Progress</c:when>
                               <c:when test="${row.STATUS=='30'}">Completed</c:when>
                              </c:choose>
                             </td>
                             <td>
                             <c:choose>
                               <c:when test="${row.PRIORITY=='3'}">Medium</c:when>
                               <c:when test="${row.PRIORITY=='2'}">High</c:when>
                               <c:when test="${row.PRIORITY=='1'}">Urgent</c:when>
                              </c:choose>
                             </td>
                             </tr>
              </c:forEach>
         </table>
         </c:when>
         <c:otherwise>
         <div class="ui-state-highlight ui-corner-all">
                   <p><b>No results Found. Please try again with a different search criteria!</b> </p>
              </div>
         </c:otherwise>
         </c:choose>
         </form>
              <%@ include file="/includes/footer.jsp"%>
         </div>
         </body>
    </html>

    What is ResearchResults?
    Is it a request parameter or is it a request attribute?
    Parameters and attributes are two different things.
    Request parameters: the values submitted from the form. Always String.
    Request attributes: objects stored into scope by your code.
    They are also accessed slightly differently in EL
    java syntax == EL syntax
    request.getParameter("myparameter") == ${param.myparameter}
    request.getAttribute("myAttribute") == ${requestScope.myAttribute}
    You are referencing the attribute in your scriptlet code, but the parameter in your JSTL/EL code.
    Which should it be?
    cheers,
    evnafets

  • Problem getting text value of a node

    Hi
    this is my xml:
    <servizio servizioID="WS-AS-14">
    <mapping idEnte="-1" userName="administrator" name="ISTAT" nameTo="master">
         <category id="1.2.2.0" target="true" toId="01.05.01.011.000">
         <name>Descrizione1</name>
         </category>
         <category id="1.2.2.1" target="true" toId="01.05.01.011.001">
         <name>Descrizione2</name>
         </category>
         <category id="1.2.2.2" target="true" toId="01.05.01.011.002">
         <name>Descrizione3</name>
         </category>
    </mapping>
    </servizio>
    I can get the value of the attributes id and toId of the Node category
    But not the value of the Node name
    This is the code:
    Element rootElement = document.getDocumentElement();
    NodeList nodeList = element.getElementsByTagName("category");
    for(int i = 0; i < nodeList.getLength(); i++) {
    Node category = nodeList.item(i);
    NamedNodeMap categoryAttributes = category.getAttributes();
    and the i get the 2 attributes
    Node namelist = category.getFirstChild();
    String name = namelist.getNodeName();
    String value = namelist.getNodeValue();
    but name is #text
    and value is empty
    what's wrong with my code?
    thanks

    up
    thanks

Maybe you are looking for

  • How to reboot a macbook pro with no cd

    i'm having trouble downloading a cd to my computer its asking for my password. i put it in but it won't take. so i try to change it, but it say that it the wrong one. so have can it reboot my macbook pro without the cd

  • ITunes unexpectedly quit message comes up every time since the last update! Please help can anyone explain?

    After updating the latest on my MacBook OS X Version 10.6.8 I started experiencing several issues. iTunes will not open and continues to leave an error message on the screen. This is happening repeatedly for about 2 days. The error message looks like

  • Time Dimension and database 8.1.7.3

    Hi, I imported owb_bp project that is located in: <OWB install directory>\owb\misc\time directory into my OWB. Then i copied the standard time dimension and mapping from that project to my project. I changed the necesary things(removed day level, did

  • Classic Crashing my Computer!

    Help! I'm running Windows Vista. I updated to the new version of iTunes, which was great. But now, every time I plug in my iPod Classic, my computer crashes and I get a blue screen error situation. When my system restarts, Windows keeps trying to run

  • Last stock update Date Tab not updating in ICH

    Hi Team I observed that in ICH screen Last stock update Tab is not going to update every time while demand and stock information coming from ECC to ICH. There is no stock inconsistency. All stock tab information are updating correctly in ICH compare