Selected data is stored in corrupted form

Hello All,
In ECC 6.0 unicode system, I am fetching the records from AUSP table in following 2 ways:
a) Fetching the result in internal table of type of standard table AUSP.
     The fetched records are absolutely fine.
b) Fetching the records in internal table of local type:
      The fetched records are in corrupt form. The CHAR fields have extra byte and some fields have arbitary characters like ####.
     The local defined type is as following:
TYPES: BEGIN OF lt_s_ausp,
       mandt(000003) TYPE c,
       objek(000050) TYPE c,
       atinn(000010) TYPE n,
       atzhl(000003) TYPE n,
       mafid(000001) TYPE c,
       klart(000003) TYPE c,
       adzhl(000004) TYPE n,
       atwrt(000030) TYPE c,
       atflv TYPE f,
       atawe(000003) TYPE c,
       atflb TYPE f,
       ataw1(000003) TYPE c,
       atcod(000001) TYPE c,
       attlv TYPE f,
       attlb TYPE f,
       atprz(000001) TYPE c,
       atinc TYPE f,
       ataut(000001) TYPE c,
       aennr(000012) TYPE c,
       datuv TYPE d,
       lkenz(000001) TYPE c,
       atimb(000010) TYPE n,
       atzis(000003) TYPE n,
       atsrt(000004) TYPE n,
       atvglart(000001) TYPE c,
       END   OF lt_s_ausp.
TYPES: lt_t_ausp
       TYPE STANDARD TABLE OF lt_s_ausp.
Data: lt_tab type lt_t_ausp.
Data is fetched and stored in lt_tab.
Would you please help me to find the reason for the issue (why data gets corruped when stored in lt_tab in case b?)? Thanks in advance...
Regards,
Amit

Hi,
TYPES: lt_t_ausp
TYPE STANDARD TABLE OF lt_s_ausp.
Data: lt_tab type lt_t_ausp.
In place of above data declaration try only below one.
DATA : lt_tab type table of  lt_s_ausp.
Thanks,
Vijay

Similar Messages

  • Beginners question - making sense of form, item, pane & variable (with relation to where data is stored in the SQL database)

    Hi Everyone,
    I am new to writing reports (SQL code) for SAP, however I am aware that inside SAP Business One it is necessary to enable System Information (from the View menu) in order to see which tables (and related table attributes / column names) are related to various aspects of the various SAP 'modules' (e.g.: A/R Invoice).
    Using an A/R Invoice as an example I can see at the row (or line) level that an item with the description of 'Opening Balance Transfer' is contained in the table INV1, within the attribute (or column) called Dscription.
    However not every 'on screen object' shows a table / attribute. For example in the same A/R Invoice if I hover my mouse over the Balance Due field all I see is Form related information.
    My question is 'How do I make sense of the Form, Item, Pane, Variable information?', with relation to where data is stored within the SQL database?
    Links to online tutorials explaining how this feature of SAP Business One will be much appreciated, along with any personal advice regarding working with this information.
    Any (and all) help will be greatly appreciated.
    Kind Regards,
    David

    Hi David,
    1.Here I am explaining use of each field except pane
    a. Form ---> Used in additional authorization creator
    b. Item, column--->Useful in creating Formatted search queries (FMS)
    c. Variable --> Some of the field values based on another values. ie. indirect values.
    d. INV1---Table name
    2. How to get variable?
    As per your second attachment, to get balance due ,you need doc total field from OINV table. For example,
    SELECT T0.[DocNum], T0.[DocTotal] FROM OINV T0 WHERE T0.[DocNum] = 612004797
    Thanks & Regards,
    Nagarajan

  • How to solve java.io.IOException: Corrupt form data: premature ending

    hei evryone!
    Does anyone knows how to solve this bug?
    java.io.IOException: Corrupt form data: premature ending
    Im using Oreilly's cos.jar MultipartRequest
    here is my form :
    <FORM METHOD="POST" NAME="uploadform" action="mbbfile" ENCTYPE="multipart/form-data">
    <TR>
    <TD>Select a File:</TD>
    <TD><INPUT TYPE="FILE" NAME="srcfile" style="width:400px"/></TD>
    </TR>
    <TR><TD><INPUT TYPE="SUBMIT" VALUE="Send"/></TD></TR>
    </FORM>
    HERE IS mbbfile which is a servlet :
    package mbb.servlet;
    import java.io.IOException;
    import java.sql.Connection;
    import javax.servlet.RequestDispatcher;
    import javax.servlet.ServletContext;
    import javax.servlet.ServletException;
    import javax.servlet.http.HttpServlet;
    import javax.servlet.http.HttpServletRequest;
    import javax.servlet.http.HttpServletResponse;
    import com.oreilly.servlet.MultipartRequest;
    import org.jconfig.Configuration;
    import org.jconfig.ConfigurationManager;
    public class MBBFileServlet extends HttpServlet{
         private static final Configuration conf = ConfigurationManager.getConfiguration("ConfigFile");
         public void doGet(HttpServletRequest req, HttpServletResponse res) throws ServletException, IOException
              String filePath = conf.getProperty("FilePath", "", "test");
              try{
              MultipartRequest multi = new MultipartRequest(req,filePath,5*1024*1024);
              }catch(Exception e){
                   System.out.println("MBBFileServlet Exception ---> "+e.getMessage());
         public void doPost(HttpServletRequest req, HttpServletResponse res) throws ServletException, IOException
              doGet(req,res);
    Sometimes it works meaning the file is uploaded in the directory without any exception, sometimes the file is uploaded but with exception on the log saying "MBBFileServlet Exception ---> Corrupt form data: Premature Ending". and sometimes the files is not uploaded at all and when i check the error is : "MBBFileServlet Exception ---> Corrupt form data: Premature Ending". Can anyone please help me on this matter. Thx!
    Your response would be deeply appreciated.
    br,
    TAC

    Hi all!
    Since I've spent some days now trying to figure out what was wrong with my file upload in Struts 1.1, I would like to share my solution with the rest of you in order to spare you for the same amout of wasted time I've spent :-)
    My platform is Resin 3.0.8 and Struts 1.1. My problem was that JPEG's got corrupted when arriviving at the server. After a few days searching on the net, I tried with a plain servlet and the O'Reilly package, and the app worked perfect.
    Here is my servlet:
    package no.yourcompany.yourapp.servlet;
    import com.oreilly.servlet.multipart.MultipartParser;
    import com.oreilly.servlet.multipart.Part;
    import com.oreilly.servlet.multipart.FilePart;
    import javax.servlet.http.HttpServlet;
    import javax.servlet.http.HttpServletResponse;
    import javax.servlet.http.HttpServletRequest;
    import javax.servlet.ServletException;
    import javax.servlet.ServletContext;
    import javax.servlet.RequestDispatcher;
    import java.io.IOException;
    import java.io.ByteArrayOutputStream;
    public class ImageUpload extends HttpServlet {
    private static final String PAGE_RECEIPT = "/popImageUploadReceipt.do";
    private static final int MAX_FILE_SIZE_IN_BYTES = 10000000; // 10 M
    * Extracts image from request and puts it into person form.
    * @see HttpServlet#doPost(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)
    public void doPost(HttpServletRequest request, HttpServletResponse response)
    throws ServletException, IOException {
    // custom beans from my project, not defined here
    PersonRegistrationForm personRegistrationForm = null;
    PortraitImage portraitImage = null;
    ByteArrayOutputStream outputStream = null;
    Part currentPart = null;
    FilePart currFilePart = null;
    personRegistrationForm = (PersonRegistrationForm) request.getSession().getAttribute(DsnSessionKeyConstantsIF.KEY_PERSON_FORM);
    portraitImage = personRegistrationForm.getPortraitImage();
    try {
    MultipartParser parser = new MultipartParser(request, MAX_FILE_SIZE_IN_BYTES);
    while ((currentPart = parser.readNextPart()) != null) {
    if (currentPart.isFile()) {
    currFilePart = (FilePart) currentPart;
    outputStream = new ByteArrayOutputStream();
    currFilePart.writeTo(outputStream);
    // portraitImage is just a bean for encapsulating image data, not defined in this posting
    portraitImage.setContentType(currFilePart.getContentType());
    portraitImage.setImageAsByteArray(outputStream.toByteArray());
    portraitImage.setOriginalFileName(currFilePart.getFileName());
    break;
    } // if (currentPart.isFile())
    } // while ((currentPart = parser.readNextPart()) != null)
    } catch (IOException ioe) {
    // noop
    // redirect to receipt page
    ServletContext servletContext = this.getServletContext();
    RequestDispatcher requestDispatcher = servletContext.getRequestDispatcher(PAGE_RECEIPT);
    requestDispatcher.forward(request, response);
    } // doPost
    } // ImageUpload
    AND ADD THIS TO YOUR WEB.XML
    <servlet>
    <servlet-name>ImageUpload</servlet-name>
    <servlet-class>no.yourcompany.yourapp.servlet.ImageUpload</servlet-class>
    </servlet>
    <servlet-mapping>
    <servlet-name>ImageUpload</servlet-name>
    <url-pattern>imageUpload.do</url-pattern>
    </servlet-mapping>
    AND THE HTML-FORM IS HERE
    <form action="/yourapp/imageUpload.do" method="post" enctype="multipart/form-data" accept="image/*">
    <p>
    <input type="file" name="portraitImage" />
    </p>
    <p>
    <input type="image" src="/dsn/img/btn_last_bilde.gif" border="0">
    </p>
    </form>

  • Opening a System-Form with selected Data

    Hi,
    i´m looking for a way to open a System-Form, e.g. Orders with
    selected Data.
    In the moment i do the following:
         application.ActivateMenuItem("2050");  // orders
         SAPbouiCOM.Form belegForm = application.Forms.ActiveForm;
         belegForm.Mode = SAPbouiCOM.BoFormMode.fm_FIND_MODE;
         SAPbouiCOM.EditText edDocNum = (SAPbouiCOM.EditText)belegForm.Items.Item("8").Specific;
         edDocNum.Value = "4711";
         belegForm.Items.Item("1").Click(SAPbouiCOM.BoCellClickType.ct_Regular);
    This works, but the screen is blinking, because first the form ist opened and shown with
    empty values and then filled.
    Is there a way to activate the form and do the search-Operation and afterwards show it ?
    I think ist must be possible, because when clicking on the link-Button near CardCode, the Contacts-Form
    is opened in this way.
    regards Matthias

    Hi Ibai,
    i have tested both: freeze and form.visible = false in
    the form_load-Event. It doesn´t work here.
    Also neither the call
       application.ActivateMenuItem("1281");  // find
    nor the call
       oForm.Mode = SAPbouiCOM.BoFormMode.fm_FIND_MODE;
    work in the form_load-Event.
    After the form-Load-Event the et_FORM_ACTIVATE-Event is called.
    Here the functions work, but here the screen is already visible.
    regards Matthias

  • Selecting data in forms from site column fields

    We are seeing some unusual actions when selecting data from site columns on the new item form.  Here's the context.
    2 lists are maintained at the Intranet level and designated as a site column.
    4 lists are maintained at a subsite level and are also designated as a site column.
    We created a list on the second tier subsite (third level) and added all 6 of the site columns to the list.
    When opening the new item to add an entry, some of the fields have a default value listed.  You only need to click your selection once to populate the field.  Some fields appear with (none) as the default value.  Other fields are blank and
    you have to double click your selection to populate the field.
    We have not edited the default forms in any way...they are straight out of the box.
    I'm assuming this has something to do with the setup on some of the lists, sites, or site columns, but haven't the foggiest as to what may be causing the issues.  All list settings I've thought to check are consistent with each other.  Any help
    would be greatly appreciated.

    robin, you are on to something with the 20 item question.  i created three lists with 19, 20, and 21 items respectively and then added 3 columns to my test library and attached to those lists.  when in internet explorer, 19 works perfect.  however,
    on the new item form, the fields for 20 and 21 are 3 times the length of the 19 field and do require a double click for entry.  when adding a new item in firefox, all three fields were single click entry.  is there someway to change this behavior?
    the mystery remains though on the default value.  in this test library and test columns, (none) shows up as the default value on the new item form for all fields regardless of the number of items in the list.  cameron, since these are lookup columns,
    the default value option disappeared on the column creation page.  is there another location where i need to select a default value?  or, hopefully not, do i need to copy over my data and delete/recreate the lists?  
    i know early on the creation of the lists were somewhat haphazard in that some users turned off required entry for the title field and skipped over it for data entry while others simply renamed the title field and entered data in it.  that may be more
    of a nit on my end, but wasn't sure if it might randomly have an impact.

  • MultipartRequest java.io.IOException: Corrupt form data: premature ending

    i try to upload a file using MultipartRequest
    i want to get the name of the file uploaded with html form
    and display it on jsp page (just for now to see if it works)
    in server.log i see Error creating file: java.io.IOException: Corrupt form data: premature ending
    thank You

    Then whatever is uploading the file, isn't doing it correctly.

  • Auto-fill calender date and validate other fields depending upon selected date for infopath forms

    I have a calender box in infopath form which i want to autoselect when user opens the form..Ex..i am opening form on 14th march the calender should show as 19th march and also i have to perform few validation and action such as if i am selecting date with
    more than 5 days gap should open other field which is a dropdown..How can i perform this..

    Do you have Excel Services? if so, this article may be of use to you:
    http://sergioblogs.blog.co.uk/2013/01/08/infopath-2010-and-excel-services-in-sharepoint-15407321/
    You can configure an excel workbook to validate if a date is a working day and then use formulas to workout the working date for 5 days after the date you enter, then link your InfoPath form to connect to the excel workbook and return the result of your
    calculation.
    Regards
    Sergio Giusti
    http://sergioblogs.blog.co.uk/
    Whenever you see a reply and if you think is helpful, click " Vote As Helpful". And whenever you see a reply being an answer to the question of the thread, click "
    Mark As Answer".

  • Java.io.IOException: Corrupt form data: no leading boundary

    Hi,
    I am trying to upload pdf files using a servlet. The Enctype of the form which calls this servlet is multipart/formdata. I use O'Reilly upload component which uses the class MultipartRequest to do the uploading. The form has textboxes and textareas whose data is also submitted.
    The problem is, when I try uploading with Greek text in these text area and textbox, I get the exception
    java.io.IOException: Corrupt form data: no leading boundary: -----------------------------7d21b8c1502c0 != -----------------------------7d21c2c1502c0
    Has anyone encountered this problem? Any help will be greatly appreciated.
    Sairam

    just check this
    http://www.servlets.com/cos/faq.html
    and http://www.oreilly.com/catalog/jservlet/errata/jservlet.unconfirmed

  • Select data form webservice

    Hi all!
    now I have a problem. I want to recieve data from mysql, I used web service and I built successfully, but it dose not return right. Please fix it for me!
    This code:
    package WsSrc;
    import java.sql.Connection;
    import java.sql.PreparedStatement;
    import java.sql.ResultSet;
    import java.sql.DriverManager;
    public class Testuser {
         public int   testLogin(String name)
                Connection conn = null;
                ResultSet rs = null;
                int result = 0;     
                try {
                 String dbURL = "jdbc:mysql://localhost/dblogin";   // url of the mysql database
                 String username = "root";    // username of  wsasset database
                 String password = "";    // password of  wsasset database
                   Class.forName("com.mysql.jdbc.Driver");
                   conn = DriverManager.getConnection(dbURL,username,password);
                  String StrSql = "select * from tbuser where Username = '"+name+"'";
                  PreparedStatement statement = conn.prepareStatement(StrSql);
                  rs = statement.executeQuery();
              if(!rs.next())
                   result = 0;
                   }else
                     result = 1;
               } catch (Exception ex)
                    ex.printStackTrace();
                         return result;
    }

    Bridging data from one interactive PDF form to another interactive PDF form, programatically,  cannot be accomplished on the desktop.
    In the absence of a a server-based solution you are limited to cut-and-paste for Reader clients. Data export/import is a potential desktop solution under two circumstances:
    1) for Reader clients, the PDF forms have been rights-enabled for data import/export
    2) users have Acrobat
    Steve

  • After upgrade date selection does not work in xml forms

    Hi Experts,
    since we upgrade the portal from 7.0.19 to 7.0.24 we have a problem with the timestamp in the xml forms in combination with IE7. When we click on the date selction button, the date screen appears and the form disappears. The only option we can choose is cancel and then the date selection screen disappears and the form is not comming back. Selecting a date en choose ok does not work. I tried with IE6 then it works fine. Before the upgrade it works fine with IE7.
    How to solve this?
    thanks in advance.
    Vo.

    I created a OSS message and the answer is : [Note 1491775 - XML Forms locked when closing browser window|https://websmp130.sap-ag.de/sap(bD1ubCZjPTAwMQ==)/bc/bsp/spn/sapnotes/index2.htm?numm=1491775]
    gr
    Vo.

  • Send selected data from form

    Hello All,
    I have data in a datagrid and I want the user to be able to
    select data from it and and enter some addition info in text input
    boxes and then send it by clicking a submit button. What is the
    best way to get the selected rows from the data grid into a
    variable to send(somehow convert selected rows to string and put
    them in a text area)? Or is there a better alternative like using a
    list control? Ultimately the data will get sent to me in an email
    via a php script. Any help or insight would be appreciated!
    Thanks!

    Use the DataGrid's dataProvider.
    When you are ready, loop over the dataProvider using
    selectedIndices or selectedItems. In that loop, build your string
    using the current loop item and the values form wherever else you
    need, and put the string in a variable.
    When you build the email, put that string in the body.

  • Displaying data from stored procedure into textbox fields based on user input.

    I have a stored procedure that is selecting data from a table called "Vendor" in my database.  The data that is being returned are vendor names, vendor addresses, vendor Id's, etc...In my stored proc, I have one parameter that allows
    the user to enter a vendor name and then return all the data for that specific vendor.  The report that I'm building is going to look like a basic form with a bunch of textboxes on the screen labeled Vendor Address, Vendor Id, Vendor City, Vendor State,
    etc...In the report I'm trying to build, the user will enter in a vendor name and then it will return all of the vendor's data based on what the user searches for.  However, the report will only return ONE vendor's data at a time. 
    The problem is that some of the data in the database has very similiar vendor names, but different vendor addresses, vendor Id's, etc...In some instances the vendor name is actually
    exactly the same, but the vendor address, vendor city, vendor Id, is all different.  So what I did was added another parameter in my report that shows a drop down list of vendor names based on the wildcard search the user just did and
    allows the user to select the exact vendor name that he/she is looking for based on what they searched.  The problem I'm having is that I don't know what expression I need to put in each one of my textboxes to retrieve the correct data from
    the vendor table that the user selects from the drop down list.  So what I want to do is return the exact data from the vendor table based on the selection that the user makes from that drop down list.  It's like I somehow have to compare the
    drop down list parameter directly to the dataset but I don't know what expression needs to go in the textbox.  I've tried...=First(Fields!VendorName.Value, "DataSet1").EqualsParameters!DropDownList.Value(0) but I keep getting an error message.
    --Here is an example of the kind of thing the user might search for...when the user searches the word "sprint" it returns three different vendor names to the drop down list.
    1. sprint
    2. sprint
    3. sprint co
    Each one of those three vendor names has a different vendor address, vendor city, vendor ID, etc...but the vendor names are extremely similar and in some cases
    exactly the same. In my report now I can't get the textboxes to return the correct data based on what the user selects.  Any advice at all is greatly appreciated.
    P.S. I didn't even know what SQL Server was a month ago and had zero knowledge of SSRS at all.  I've learned a lot recently, but if you could explain a solution in the easiest way possible I would appreciate it. Thanks!

    Hi Jrcowles,
    If I understand you correctly, you wnat to list all the Vendor Name which like the user typed Vendor Name on a drop-down list, right? If in this case, we can use a cascading parameters to achieve your requirement. I have tested it on my local environment,
    the steps below are for you reference.
    Create an other stored procedure using the query below.
    CREATE PROCEDURE GetVendorName
    @VendorName NVARCHAR(50)
    AS BEGIN
    exec( 'SELECT * FROM Vendor WHERE VendorName LIKE ''%'+@VendorName+'%''')
    END
    Create another dataset DataSet2 and using the new created procedure.
    Create another parameter VendorName2 and check "Allow Multiple Values" for this parameter.
    On the Available Values tab, check "Get values from a query". Select corresponding dataset and field.
    On the Default Values tab, check "Get values from a query". Select corresponding dataset and field.
    The screenshots below are for you reference.
    Reference
    http://technet.microsoft.com/en-us/library/aa337169(v=sql.100).aspx
    http://www.msbiguide.com/2012/02/adding-cascading-parameters-to-ssrs-reports/
    Regards,
    Charlie Liao
    TechNet Community Support

  • Call Stored Procedure from Forms 6i -- Urgent Plz...

    Dear All,
    I am first writing a stored procedure as:-
    CREATE OR REPLACE FUNCTION
    good_hire
    (birthdate_in IN DATE,
    reqsal_in IN NUMBER)
    RETURN BOOLEAN
    IS
    too_young BOOLEAN :=
    ADD_MONTHS
    (SYSDATE, -216) >
    birthdate_in;
    too_expensive BOOLEAN :=
    reqsal_in > fin.dept_bal;
    BEGIN
    RETURN NOT (too_young
    OR too_expensive);
    END;
    Now in my forms also i have the same function,which i defined in in my program unit i.e., with the same name good_hire,but with different parameters.
    If I want to call this stored procedure(good_hire)in my form
    I am writing this code in the pre-Insert trigger.
    IF good_hire
    (:newemp.birthdate,
    :newemp.proposed_sal)
    THEN
    SELECT empseq.NEXTVAL
    INTO :newemp.empno
    FROM dual;
    ELSE
    RAISE FORM_TRIGGER_FAILURE;
    END IF;
    Notice that i am sending bind variables from my form to the
    stored procedure. Now my question :
    1) Can i pass bind variables to the stored procedures from
    forms or is there any other way i can access the
    stored roceures from forms(Expecting a detailed answer) and
    from which triggers can I access the stored procedures(like pre-
    Insert here)?
    2) If at all I have the same parameters in my program unit
    function and with the same name good_hire, I know that the code
    in the pre-Insert trigger will call only the function in my
    program unit and not the stored procedure, but if I like to
    call my stored procedure instead of the local function good_hire
    then what should I do?
    2)As I said before if i have different parameters, for the
    stored procedure good_hire and local function good_hire and If
    I call good_hire from my pre-insert trigger .. Is it that the
    Forms will decide and call the Local function or stored
    procedure depending on the parameter list?
    I hope all my points are very clear.
    I am expecting the best and detailed answer for my
    Queries, I also hope these Quests will clear the doubts of many
    members in our esteemed group.
    Thnx in Advance...
    Regards
    siree....

    Dear Siree,
    Oh!! how many Questions? Each how much big??
    Ok First of all the answer to your first question.
    You can use the Stored procedures in the same way as the Forms procedures. You can pass bind variables to the stored procedures as well. You can also use the stored procedures in any triggers, I think there are no restrictions for that. The only thing is you should be connected to database while compiling the trigger where you are calling the stored procedure.
    Answer to your second question.
    You cannot direct Forms (I don't know about version 10g), untill 9i, you cannot tell forms to take the stored procedure and leave the local procedure. It will always take the local procedure, once a procedure is called. If not found locally then only it will go for the Stored procedures.
    For your third question.
    As I told you b4 forms searches for the procedure being called locally first, if locally present, does not go to the stored procedure. If declared by different paramaters in the stored procedure and it is called, then it will throw error (as it first searches for the name locally and if found will take up the one present locally and since that procedure is with different parameter, will throw up error). It is after all a stupid machine and can't think like us.
    Regards,
    Senthil .A. Perumal

  • How i will increment  one day with Selected date

    hi,
    I have written a code, in this code i have selected a date from calendar. Now i want to know how will increment one day with this selected date. IS there anyone who can help me? please help me.
    With regards
    Bina

    Hi Bina,
    Lets break the task into smaller steps.
    You can research on Google and search on how to Implement the select date or enter date with Javascript.
    Lets assume that the date has been entered into a text box inside a form inside the HTML code like this:
    <form action ="target.jsp">
       <input type="text" value="" name="dateField"/>
       <input type="submit" name="submit" value="submit" />
    </form>When the user clicks the submit button, the form gets submitted, then the form redirects the user to target.jsp
    Inside target.jsp you can add a date like this
    <%
        String dateField = request.getParameter("dateField");
        // Here use substring function to extract the day , month and year from
    // date field.
        Calendar cal = Calendar.getInstance();
        cal.set(year,month,day);
    // assuming you are storing days in an integer field
    int days;
    cal.add(days);
    %>Note that I have used JSP scriptlets, and the above code is somewhat pseudo-code. Since the task is big I suggest that you break it into smaller more specific tasks and then try to implement them by searching on Google for help first.
    If you get stuck with something specific you can ask here.

  • How to get selected data in AdvancedDataGrid

    I have an advanced data grid with selection mode set to multiple rows. I need to highlight the selected rows differently based on certain criteria on the row data. For that I define my own selectionIndicatorFunction. The question is: how do I know the current selected data in the function? I tried to use the selectedItem field, however it is NULL; field selectedCells give all the selected rows, not the latest selected row.
    Can anybody enlighten me how can I get the most recent selected row data? I'm using flex 4.5. Thanks in advance.

    Now in the Servlet we can get the same bean by this code:
    PageContext pageContext = JspFactoryImpl.getDefaultFactory().getPageContext(this, request, response, null, true, 8192, true);
    UserBean userbean = (UserBean)pageContext.getAttribute("userbean", PageContext.SESSION_SCOPE);
    String userid = userbean.getUsername();
    For this code to work it is needed to import 2 files:
    import org.apache.jasper.runtime.JspFactoryImpl;
    import javax.servlet.jsp.PageContext;
    The JspFactoryImpl is in jasper-runtime.jar file provided in tomcat dir.It seems to me that you are exactly knowing what you are doing :-(
    You can get a Bean stored in a Session by
    request.getSession().getAttribute("userbean");
    In the login.jsp page for example we have the code
    <jsp:useBean id="userbean" scope="session"class="com.newproj.UserBean" />
    <jsp:setProperty name="userbean" property="*" />the jsp:setProperty is not called when you click on the submit button
    if fills the bean with the request values from the previous request.
    andi

Maybe you are looking for

  • How can I delete a subsite from SharePoint Online using a workflow designed in SPD2013

    Hello, I'm trying to build a workflow that will delete a subsite when an item in a list (Job Numbers) on a parent site is changed to a particular value. My current workflow is triggered when an item in the Job Numbers list is changed. The workflow ch

  • My Apple TV is not recognizing my iTunes login

    I've made sure my password and log in are correct and that my internet connection is set up correctly, but I get an error message saying can not connect. please try again later. What can i do to fix this issue?

  • Mavericks MAJOR Issues - HELP URGENT

    Dear Sir, First of all below is my Macbook Pro specifications:  Processor 2.2GHz Intel Core i7 Memory 16GB 1333 MHz DDR3 Graphics Intel HD Graphics 3000 512MB Hard Disk 750 GB Software OS X 10.9 Second below are my issues after Upgrading to Mavericks

  • Snapshot - Event ID 19542

    Event ID 19542 Cannot take snapshot for 'xxxxxxxxxxxx' because one or more synthetic fibre channel controllers are attached. (Virtual machine ID xxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxx) I get this error when trying to take a snapshot of a VM that does have

  • Not Java..but..Ethereal packet sniffer and (*.cap) capture files?????

    Didn't know where else to post a question like this.. I want to view a certain capture file and see what's happening. I want to userstand the attack and explain how the overlapping IP fragments are be used but i have no clue. Does anybody know anythi