Field not retaining the value

we have a report that we copied from a standard program and made some modifications, when we run that report it provides the list of the accounting documents and the user has the ability to modify the doc and then post it. we are expreiencing a problem now, when user generates the list of the documents and select one and try to make a change to it ... like changing the amount, g/l account.. evrything worked fine but when user tried to change one of the field like order number and hit enter after that... the field is getting cleared out after that.
Can you please suggets something.

thnks for the reply... I found that the issue is in SAP std tcode as well.

Similar Messages

  • Multiple select list not retaining the value for the first time

    Hi,
    I have a 3 select list depends on each other. select_list1 -- > select_list2 --> multiselect3. I have use denes example to create them.
    For the first time when I select values from 1,2,3 and runs a report based on it, it works fine but *does not retain the selected value in multiselect3.
    for the second time submit the process, it retails value in multiselect3. Please tell me if you came across this issue before
    Here is the code.
    function get_select_list_xml_VL(pThis,pSelect,pSelect1,pSelect2){
    var l_Return = null;
    var l_Select = html_GetElement(pSelect);
    var l_Select1 = html_GetElement(pSelect1);
    var l_Select2 = html_GetElement(pSelect2);
    var get = new htmldb_Get(null,html_GetElement('pFlowId').value,
    'APPLICATION_PROCESS=Cascading_Select_List_VL',0);
    get.add('F660_CASCADING_TEST',l_Select1.value + '_' + pThis.value + '_' + l_Select2.value);
    alert(l_Select1.value + '_' + pThis.value + '_' + l_Select2.value);
    // alert(document.getElementById("F660_CASCADING_TEST").value);
    gReturn = get.get('XML');
    if(gReturn && l_Select ){
    var l_Count = gReturn.getElementsByTagName("option").length;
    l_Select.length = 0;
    for(var i=0;i<l_Count;i++){
    var l_Opt_Xml = gReturn.getElementsByTagName("option");
    appendToSelect(l_Select, l_Opt_Xml.getAttribute('value'),
    l_Opt_Xml.firstChild.nodeValue)
    get = null;
    function appendToSelect(pSelect, pValue, pContent) {
    var l_Opt = document.createElement("option");
    l_Opt.value = pValue;
    if(document.all){
    pSelect.options.add(l_Opt);
    l_Opt.innerText = pContent;
    }else{
    l_Opt.appendChild(document.createTextNode(pContent));
    pSelect.appendChild(l_Opt);

    Please ask any question if you dont understand about the problem.
    Thanks

  • Text Fields not retaining passed values.

    I've tried several options to fix this issue, to be more descriptive, I pass a value to the textfield and the page refreshes, after the page refreshes the value is gone. I stepped through the code and the value is there for the time being until the page refresh. I.e:
    public String test () {
    txtTest.setText("asdas");
    String temp = txtTest.getText();
    return null;
    }When i get the value of temp when stepping through the code... temp = asdas meaning it was correct. However when the page refreshes from the return null statment it clears the values, I've used this type of code several times before and it has never given me this issue.

    This has me really stumped, the only thing I really changed from the previous forms where I've done this before is the fact that I put some of the database calls into seperate methods instead of embedding them directly within the action call events.

  • Numbers is not retaining the values of my sorted SUMs in a column.

    I just switched to Numbers 3.0.1
    I have a two tables: Table 1 has a large set of data. Table 2 has various sums of the data from Table 1 (added by using the SUM function). Pretty simple stuff.
    My problem is when I go to sort the data (SUMs from Table 1) in Table 2 using the ascending/descending option all of the data in the column changes and makes no sense.
    Older version of Numbers just sorted the data in the column numerically (ascending or descending).
    Does anyone have a fix for this?

    I find the new way Numbers handles cell references during a sort to be a little odd.  First let's talk your problem then I'll mention another.
    I think for your problem, you need to use "preserve row" on all your cell references.  Otherwise the references become "relative".  For example, if you have =SUM(Table 1::A2:A3) in cell B4 of Table 1 before the sort and it moves to cell B5 after the sort, the formula will become =SUM(Table 1::A3:A4). The formula moved down one row so the cell references also moved down one row.  Seems like a strange result but you can prevent it by using =SUM(Table 1::A$2:A$3)
    For the other problem, let's say you leave Table 2 (the sums) alone and sort Table 1 instead. This also changes all the sums. It makes sense what it is doing but I haven't yet figured out a way to make it do what it used to do.
    If you look at your SUM formulas, they will stay exactly the same after the sort.  If it was =SUM(Table 1::A1:A10) before the sort it will still be exactly that after the sort.  But now you have different numbers in those cells in Table 1 so your sum is different.  In Numbers '09, it would have turned into something like =SUM(A5,A9,A2:A3,A19,.....) as it readjusted to sum up the exact same cells as before. I can''t figure out how to make a SUM or an addition or any other calculation follow a cell around during a sort.

  • Field Symbol not writing the values while executing in background.

    Hi,
    In my program i am writing the values of a field symbol to list output.
    write :/ <f_fs_up_excel_wa2>.
    Its writing successfully when i am executing in foreground.
    But when i am executing in background(Submitting the same program as a job)
    its not displaying the values from field-symbol but all the other write statments are getting displayed in the spool.
    Could anybody help me out in this situation and how to handle it?
    Thanks,
    SAM.

    Hmm.  I think the problem is that the field-symbols is blank in background processing, rather than background process has some fault that prevents it being displayed...
    On that basis - how is this field-symbol populated?
    matt

  • BC Ecommerce SOAP Error: Server did not recognize the value of HTTP Header SOAPAction

    I am trying to add a product to an ecommerce site with this soap action: Product_UpdateInsert
    I have followed this very brief instruction: https://jollyrogers.worldsecuresystems.com/catalystwebservice/catalystecommercewebservice. asmx?op=Product_UpdateInsert
    I have a html page in a secure area with a jQuery ajax soap script.
    I get the this error when I run the script:
    <?xml version="1.0" encoding="utf-8"?><soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema"><soap:Body><soap:Fault><faultcode>soap:Client</faultcode><faultstring>Server did not recognize the value of HTTP Header SOAPAction: https://jollyrogers.worldsecuresystems.com/CatalystDeveloperService/CatalystEcommerceWebse rvice/Product_UpdateInsert.</faultstring><detail /></soap:Fault></soap:Body></soap:Envelope>
    I have also tried to add a header with the Soap action with the beforeSend in the ajax call.
    This must have been solved before I suppose?
    Here is my script:
    <!DOCTYPE html>
    <html lang="en">
    <head>
    <title>Test SOAP Request</title>
        <script type="text/javascript" src="//code.jquery.com/jquery-1.10.2.min.js"></script>
        <script type="text/javascript" src="//cdnjs.cloudflare.com/ajax/libs/jquery-cookie/1.3.1/jquery.cookie.min.js"></script>
        <script type="text/javascript" src="//cdnjs.cloudflare.com/ajax/libs/underscore.js/1.5.1/underscore-min.js"></script>
        <script type="text/javascript" src="//cdnjs.cloudflare.com/ajax/libs/backbone.js/1.0.0/backbone-min.js"></script>
        <script type="text/javascript" src="//cdn.worldsecuresystems.com/bcapi/bcapi-0.0.1.min.js"></script>
    </head>
    <body>
    <script>
    var wsUrl = "https://jollyrogers.worldsecuresystems.com/catalystwebservice/catalystecommercewebservice. asmx";
    var soapRequest =
    '<?xml version="1.0" encoding="utf-8"?> \
    <soap12:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap12="http://www.w3.org/2003/05/soap-envelope"> \
      <soap12:Body> \
        <Product_UpdateInsert xmlns="https://jollyrogers.worldsecuresystems.com/CatalystDeveloperService/CatalystEcommerceWebse rvice"> \
          <username>myEmailAdress</username> \
          <password>mySecretPassw</password> \
          <siteId>1894001</siteId> \
          <productList> \
            <Products> \
              <productCode>ZJAWEyuuyN</productCode> \
              <productName>My test product</productName> \
              <description>Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.</description> \
              <smallImage>/images/product1/small.jpg</smallImage> \
              <largeImage>/images/product1/large.jpg</largeImage> \
             <cataloguesArray> \
                 <string>/Store/</string> \
              </cataloguesArray> \
              <pricesSaleArray> \
                <string>US/19.95,3/17.96,7/16.96</string> \
              </pricesSaleArray> \
              <pricesRetailArray> \
                <string>US/20,5/19,8/20</string> \
              </pricesRetailArray> \
              <pricesWholesaleArray> \
                <string>US/20,5/19,8/20</string> \
              </pricesWholesaleArray> \
              <wholesaleTaxCodeArray> \
                <string>US/0.00</string> \
              </wholesaleTaxCodeArray> \
              <taxCodeArray> \
                <string>GB/VAT</string> \
              </taxCodeArray> \
              <groupProducts> \
                <string>580H0036BL</string> \
                <string>ACAI60</string> \
                <string>ABC-123</string> \
              </groupProducts> \
              <groupProductsDescriptions> \
                <string>Lorem ipsum dolor sit amet</string> \
                <string>consectetur adipisicing elit</string> \
              </groupProductsDescriptions> \
              <supplierEntityId>1234</supplierEntityId> \
              <supplierCommission>0</supplierCommission> \
              <weight>30</weight> \
              <tags>NEW!</tags> \
              <unitType>string</unitType> \
              <minUnits>0</minUnits> \
              <maxUnits>2</maxUnits> \
              <inStock>43</inStock> \
              <onOrder>3</onOrder> \
              <reOrder>2</reOrder> \
              <inventoryControl>true</inventoryControl> \
              <canPreOrder>true</canPreOrder> \
              <custom1>Text in custom field 1</custom1> \
              <custom2>Text in custom field 2</custom2> \
              <custom3>Text in custom field 3</custom3> \
              <custom4>Text in custom field 4</custom4> \
              <popletImages>/images/image1.jpg;/images/image2.jpg;</popletImages> \
              <enabled>true</enabled> \
              <deleted>false</deleted> \
              <captureDetails>true</captureDetails> \
              <downloadLimitCount>20</downloadLimitCount> \
              <limitDownloadsToIP>0</limitDownloadsToIP> \
              <isOnSale>true</isOnSale> \
              <hideIfNoStock>true</hideIfNoStock> \
              <productAttributes>Size*|5|Y:L||UK/2|US/20,S||UK/1|US/10</productAttributes> \
              <isGiftVoucher>false</isGiftVoucher> \
              <enableDropShipping>true</enableDropShipping> \
              <productWeight>0</productWeight> \
              <productWidth>0</productWidth> \
              <productHeight>0</productHeight> \
              <productDepth>0</productDepth> \
              <excludeFromSearch>false</excludeFromSearch> \
              <productTitle>My product title</productTitle> \
              <cycletypeId>3</cycletypeId> \
              <cycletypeCount>-1</cycletypeCount> \
              <slug>my-product</slug> \
              <hasVariations>true</hasVariations> \
              <variations> \
                <ProductVariation xsi:nil="true" /> \
                <ProductVariation xsi:nil="true" /> \
              </variations> \
            </Products> \
          </productList> \
        </Product_UpdateInsert> \
      </soap12:Body> \
    </soap12:Envelope>';
    $.ajax({
         type: "POST",
         beforeSend: function(xhr){xhr.setRequestHeader('SOAPAction', 'https://jollyrogers.worldsecuresystems.com/CatalystDeveloperService/CatalystEcommerceWebse rvice/Product_UpdateInsert');},
         url: wsUrl,
         contentType: "text/xml",
         dataType: "xml",
         data: soapRequest,
         success: processSuccess,
         error: processError
    function processSuccess(data, status, req)
       if (status == "success")
       alert("Success!");
    function processError(data, status, req)
       alert("Failed!");
       alert(req.responseText + " " + status);
    </script>
    </body>
    </html>

    This line is a target namespace so it should not be changed: <Product_Retrieve xmlns="http://tempuri.org/CatalystDeveloperService/CatalystEcommerceWebservice"> It is very easy to think that it's a placeholder and that it should be replaced with your own url, which it should not and which will fail.
    This works now:
    <!DOCTYPE html>
    <html lang="en">
        <head>
            <title>Test 7 SOAP Request</title>
            <script type="text/javascript" src="//code.jquery.com/jquery-1.10.2.min.js"></script>
        </head>
        <body>
            <script>    
                var SoapMessage = '<?xml version="1.0" encoding="utf-8"?> \
    <soap12:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap12="http://www.w3.org/2003/05/soap-envelope"> \
    <soap12:Body> \
    <Product_Retrieve xmlns="http://tempuri.org/CatalystDeveloperService/CatalystEcommerceWebservice"> \
    <username>Your Email</username> \
    <password>Your password</password> \
    <siteId>1894001</siteId> \
    <productCode>HHKDKXS5MB</productCode> \
                </Product_Retrieve> \
                </soap12:Body> \
                </soap12:Envelope>';
                var url = "https://jollyrogers.worldsecuresystems.com/catalystwebservice/catalystecommercewebservice. asmx";
                $.support.cors = true;
                $.ajax({
                    type: "POST",
                    url: url,
                    data: SoapMessage,
                    dataType: "xml",
                    processData: true,
                    contentType: "text/xml; charset=\"utf-8\"",
                    success: function (msg) {
                        alert("suc: " + msg);
                    error: function (msg) {
                        alert("Failed: " + msg);
            </script>
        </body>
    </html>   

  • Signature Scribble field not retaining image file after saving

    I have 2 issues with my PDF dynamic file I sent out
         1) The add/remove controls is adding a random amount of extra blank rows upon saving the PDF
         2) The image files selected for the Signature Scribble field is not retaining the image file after saving. It also doesn't give an opportunity to actually draw in a signature.
    I even tried to use the Subform Instance Controls Insert/Remove/Move in my table, but I keep receiving the error "You have reached the maximum number of items allowed"
    I would appreciate any help you can give me! I have been farting around with this for too long.
    Thanks!
    Rhonda

    Thanks Pat.  Tried each, restarted computer each time; tried the "Accept" routine several days ago - it worked briefly and then stopped.  Uninstalled Reader and Flash as well.  Strange thing with Flash, one of my online broker programs provides streaming of CNBC.  When I clicked on the CNBC option to initiate CNBC, I got a message saying that I needed to load Flash.  I did, and it loaded again with no mention of Flash having already been installed.
    Using Internet Explorer works, as well as, clicking on the .pdf file within Windows Explorer (WE).  Expanding the window in WE makes it large enough to read.  I would still like to find a way to open the files as they are designed to open.
    I have done all of the Adobe updates as they have been presented.  Microsoft updates load automatically, and restart my computer in the process.  I do not look to see what the updates have been.  I figure if there was not a need, Microsoft would not make the updates.
    [private data removed]

  • On Tab function does not set the value in ADF

    Hi,
    I have a table with a columns as 'unit price',quantity and 'Extended amount'. The last field is a calculated field (unit price * quantity). I am trying to set this field when I tab from unit price field to some other field. But the value is not at all getting set to this field.
    Hereis the peice of code.
    <af:inputText value="#{row.RebillUnitPrice}"
    required="#{bindings.RebillInfoView3RebillItemsView1.attrDefs.RebillUnitPrice.mandatory}"
    columns="15" binding="#{CRIIF001.inputText3}"
    id="inputText3" autoSubmit="true"
    valueChangeListener="#{CRIIF001.setExtendedAmount}"
    >
    Auto submit is true and I am calling a value change listener which calls the set method. Though I could see the calculated value, it is not getting set to that column when I tab.
    Please help me in solving this issue,.
    Thanks,
    Venki

    Hi,
    does the page refresh, or do you use PPR? Note that autosubmit in ADF Faces don't automatically refresh the table and need you to set the partial trigger on e.g the table
    Frank

  • Tokenizer not retaining its value

    Again another issue I do not understand! Would anybody understand this?
    The Tokenizer does not retain its value!? Why it does not?
    15,XCV, Some Other String, 10',389.5,4194.0
    while ((rec = aPrintData[rIndex].toString()) != null){
         Iterator tokZ = new myNewGetToken(rec, patS, retD);
             for(; tokZ.hasNext();){               // here I got the value 15
                  tokZorRetD = (String)tokZ.next();     // here I got "NULL"???
                  if (tokZorRetD == null) {
                       patScount--;
                       mCount--;
                  }else{
                       switch(patScount){
    public class myNewGetToken implements Iterator{
    //          class RETokenizer implements Iterator{
              private CharSequence in;
              private Matcher mt;
              boolean retD;
              private String delim;
              private String match;
              private int lastEnd = 0;
              public myNewGetToken(CharSequence in, String patS, boolean retD){
                  this.in = in;
                  this.retD = retD;
                  Pattern pattern = Pattern.compile(patS);
                  mt = pattern.matcher(in);
              public boolean hasNext(){
                   if(mt == null){
                        return false;
                   if(delim != null || match != null){
                        return true;
                   if(mt.find()){
                        if(retD){
                             delim = in.subSequence(lastEnd, mt.start()).toString();
                        match = mt.group();
                        lastEnd = mt.end();
                   }else if(retD && lastEnd < in.length()){
                        delim = in.subSequence(lastEnd, in.length()).toString();
                        lastEnd = in.length();
                        mt = null;
                   return delim != null || mt != null;
              public Object next(){    // the value is not there anymore
                   String result = null;
                   if(delim != null){
                        result = delim;
                        delim = null;
                   }else if(match != null){
                        result = match;
                        match = null;
                   return result;
              public boolean isNextToken(){
                   return delim == null && match != null;
              public void remove(){
                   throw new UnsupportedOperationException();
         }I renamed it because I might need to modify or find out why it does not keeps the value!

    dubwai, I am sure you doubt the programming solutions
    that I come up with BUT while I run into many problems
    to get the results right it seems like that has to be
    done what the man has to do!I don't doubt it. I'm 100% absolutely sure that your 'fix' doesn't change anything.
    Let me explain line by line:
    tempToken = tokZ.next();   //  do Not convert do Not cast, keep it as ObjectThe Object is what it is. Casting the Object doesn't change it. All it does at runtime is check to see
    that the given Object is String or what ever you cast it to: Try the following:
    Object o = "test";
    String s = (String) o;
    System.out.println("o and s are the same Object? " + o == s);
    tokZorRetD = (String)tempToken.toString();  // Now, convert and cast
    // would that have to do anything with StrongTyping?Given that your previous code was not throwing a ClassCastException, the Iterator is already
    a String. Calling toString on a String just returns this:
    String s = "test"
    System.out.println("s.toString returns s? " + s == s.toString());Also, toString returns a String. There's no need to cast a String to String.
    And if s is null (which it appears to sometimes be) calling toString() will throw a NullPointerException.
    In short, if your code has been fixed, it was something else.

  • Query is not showing the values - authentication error

    Hi,
    After running a query it is not showing the values and showing <b>"You do not have the authorization for the selected component."</b>
    Diagnosis
    You do not have the authorization for the selected component.
    System response
    The selected component cannot be edited.
    Procedure
    lease speak to the person responsible for authorization, if you require authorization for the editing of this component. The function is protected by the object "Business Explorer - components" with the following fields:
    InfoCube ZPLAYOPPT
    Type of a component REP
    Component PLAYBOOK_OPPT_1
    Activity 16
      Notification Number BRAIN 800 
    <b>Can u pls tell me the solution.</b>Thanks and Regards,
    Giri.

    Go to SU01, look at your authorization profile for which roles you are given. Then, go to PFCG and check out the roles and how they are defined. It is possible that you are not authorized to view application area, infocube, certain characteritics etc.
    Hope this helps,
    Regards,
    Petter

  • Imqobjmgr does not recognize the value of java.naming.provider.url property

    On Windows, I am running imqobjmgr 4.3
    when I run imqobjmgr -i list.properties, I am getting the following error
    Error [A3052]: imqobjmgr does not recognize the value of java.naming.provider.url property.
    Why is that?
    classpath
    C:\Sun\SDK\imq\lib\jms.jar;C:\Sun\SDK\imq\lib\imq.jar;C:\Sun\SDK\imq\lib\fsconte
    xt.jar;.
    contents of list.properties
    # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER.
    # Copyright 2000-2008 Sun Microsystems, Inc. All rights reserved.
    # The contents of this file are subject to the terms of either the GNU
    # General Public License Version 2 only ("GPL") or the Common Development
    # and Distribution License ("CDDL") (collectively, the "License"). You may
    # not use this file except in compliance with the License. You can obtain
    # a copy of the License at https://glassfish.dev.java.net/public/CDDL+GPL.html
    # or mq/legal/LICENSE.txt. See the License for the specific language
    # governing permissions and limitations under the License.
    # When distributing the software, include this License Header Notice in each
    # file and include the License file at mq/legal/LICENSE.txt. Sun designates
    # this particular file as subject to the "Classpath" exception as provided by
    # Sun in the GPL Version 2 section of the License file that accompanied this
    # code. If applicable, add the following below the License Header, with the
    # fields enclosed by brackets [] replaced by your own identifying information:
    # "Portions Copyrighted [year] [name of copyright owner]"
    # Contributor(s):
    # If you wish your version of this file to be governed by only the CDDL or
    # only the GPL Version 2, indicate your decision by adding "[Contributor]
    # elects to include this software in this distribution under the [CDDL or GPL
    # Version 2] license." If you don't indicate a single choice of license, a
    # recipient has the option to distribute your version of this file under
    # either the CDDL, the GPL Version 2 or to extend the choice of license to
    # its licensees as provided above. However, if you add GPL Version 2 code
    # and therefore, elected the GPL Version 2 license, then the option applies
    # only if the new code is made subject to such option by the copyright holder.
    # @(#)list.properties     1.11 07/02/07
    # This property file will list administered objects
    # Version of command file
    # NOTE: This is not the version of the Sun Java(tm) System Message Queue product
    version=2.0
    cmdtype=list
    # If you want to only list a particular type of administered
    # object, uncomment the following line and specify the type.
    # Acceptable values for the type property are: t, q, tf, and qf,
    # where t = topic, q = queue, tf = topic connection factory, and
    # qf = queue connection factory.
    #obj.type=
    # To use the LDAP service provider implementation from
    # Sun Microsystems, uncomment the following two property lines
    # and set the url property correctly.
    objstore.attrs.java.naming.factory.initial=com.sun.jndi.ldap.LdapCtxFactory
    objstore.attrs.java.naming.provider.url=ldap://localhost:389/ou=imqobjmgr,o=sun.com
    # To use the File System service provider implementation from
    # Sun Microsystems on Solaris, uncomment the following two
    # property lines and set the url property correctly.
    # *** Note that the url syntax here is platform specific. ***
    #objstore.attrs.java.naming.factory.initial=com.sun.jndi.fscontext.RefFSContextFactory
    #objstore.attrs.java.naming.provider.url=file:///home/foo/imq_admin_objects
    # To use the File System service provider implementation from
    # Sun Microsystems on Windows, uncomment the following two
    # property lines and set the url property correctly.
    # *** Note that the url syntax here is platform specific. ***
    #objstore.attrs.java.naming.factory.initial=com.sun.jndi.fscontext.RefFSContextFactory
    #objstore.attrs.java.naming.provider.url=file:///C:/imq_admin_objects
    #objstore.attrs.java.naming.security.authentication=
    #objstore.attrs.java.naming.security.principal=
    #objstore.attrs.java.naming.security.credentials=

    I see you're using Sun Java System Message Queue. There's a forum specific to that product over at [http://forums.sun.com/forum.jspa?forumID=711&start=0|http://forums.sun.com/forum.jspa?forumID=711&start=0] . You could try asking there.
    Nigel

  • Retain the values

    hi all,
    I am looping through a ResultSet to set properties of an Class(cl). Then I add each class to the vector(vt) by casting the cl into Object. But when I try to retrieve elements from the vector. I only get one element as though all the elements in the vector are occupied by only one element.
    Tell me how to retain the values(Objects) in the vector?
    Here I set the properties and load the vector
    aud is an Object
    vt_aud is the vector
    while(rs.next())
    aud.setFirstName(rs.getString(1));
    aud.setLastName(rs.getString(2));
    aud.setEmail(rs.getString(3));
    vt_aud.add((Object)aud);
    To retrive
    for(int i=0;i{
    aud = (audience)vt_aud.elementAt(i);
    firstname = aud.getFirstName();
    lastname = aud.getLastName();
    email = aud.getEmail();
    System.out.prinln(firstname);
    The problem is it prints only the last record of the resultSet.
    Thanks for help.

    Hi,
    Java only stores references to objects in collections such as Vector. If you want to store several different objects in the Vector, you need to make sure each one is a separate object, not just the same object re-used each time.
    Try this code:
    Vector vt_aud = new Vector();
    while(rs.next()){ 
    audience aud = new audience();
    aud.setFirstName(rs.getString(1));
    aud.setLastName(rs.getString(2));
    aud.setEmail(rs.getString(3));
    vt_aud.add(aud);}
    or, if you have control over the "audience" class, you can add a constructor and simplify the loop:
    Try this:
    Vector vt_aud = new Vector();
    while(rs.next()){
    vt_aud.add(new audience(rs.getString(1),rs.getString (2),rs.getString(3)));}
    Hope this might help you.
    Anil.
    Developer Technical Support,
    Sun Microsystems, India.
    http://www.sun.com/developers/support

  • Filters 'OR' function not passing the values to the sql

    Hi,
    I am facing an issue with the 'OR' function on the filters that are used in the reports.
    The report needs to fetch all the records on the three tables as the user enters the value in the dashboard prompts.
    eg: [   update_dt_A1 is prompted
    and user_name_A1 is prompted ]
    or
    [    update_dt_B1 is prompted
    and user_name_B1 is prompted ]
    or
    [    update_dt_C1 is prompted
    and user_name_C1 is prompted ]
    The values entered in the dashboard prompt gets passed to the filter, but the vaules are not passed over to the SQL that runs on the database, hence the reports shows all values and does not reflect the values entered.
    When the 'OR' function is replaced with 'AND' the values get passed to the SQL.
    Can anyone help on what is the issue on the filters?
    Thanks

    Here is how my Filters are set up
    Vendor Name is Prompted
    AND
    Vendor Number is Prompted
    AND
    [   [Last_update_date_Vendor is prompted
    AND
    User_name_Vendor is prompted]
    OR
    [Last_update_date_Site is prompted
        AND
        User_name_Site is prompted]
    OR
    [Last_update_date_Bank is prompted
        AND
        User_name_Bank is prompted]
    The values from the dashboard prompts gets passed to the filter, but the sql that runs does not take the values in the where clause.

  • In a purchase order for 3 GR's Quantity does not equal the value

    Hi,
    I have found the difference in one purchase order, there have been 3 GRs where the Qty does not equal the Value.  How has this happened?
    Any guesses why the difference has come.
    Thanks&regards,
    Veena

    Hi Vishal,
    In po history for agt 3 Gr's  Quantity does not equal the values. I hope the difference is Movement types. But exactly where to check this movements i am not getting.
    Can you tell me this which T.code.
    Tx,

  • Why does iPhoto (9.0/11) not retain the Event name when exporting more than one event? (using File - Export - Album name with number).

    Why does iPhoto (9.0/11) not retain the Event name when exporting more than one event? (using File -> Export -> Album name with number).
    Exporting a single Event retains the Event name which is what I'd expect. But highlighting more than one event and exporting it renames the images to Events 001.JPG, Event 002.JPG etc.
    I was recently on holidays and had all my events nicely split on Dad's computer but when I went to export it I couldn't retain any of this information. Now I have to replicate this all again on my computer.
    It wasn't possible to export the entire library as the external drive was fat32 format an I didn't want all of it. It would be nice to export a bunch of events to someone and have it retain the name.
    Does anyone have a work around or will this be fixed at some point by Apple?

    Why does iPhoto (9.0/11) not retain the Event name when exporting more than one event? (using File -> Export -> Album name with number).
    Exporting a single Event retains the Event name which is what I'd expect. But highlighting more than one event and exporting it renames the images to Events 001.JPG, Event 002.JPG etc.
    I was recently on holidays and had all my events nicely split on Dad's computer but when I went to export it I couldn't retain any of this information. Now I have to replicate this all again on my computer.
    It wasn't possible to export the entire library as the external drive was fat32 format an I didn't want all of it. It would be nice to export a bunch of events to someone and have it retain the name.
    Does anyone have a work around or will this be fixed at some point by Apple?

Maybe you are looking for