Unable to throw 'Error: A value is required' on a field from bean

Scenario: I have an input text field and a button on a page. The input text is not required initially. I want this to be set to required after the button is clicked. So, I am doing this on the action listener of the button and returning to the page. This just returns to the page but does not throw the required error. The error is thrown the second time I click on the button(No listeners are called this time as the required property is already set). I want the error message to display immediately after clicking the button, the first time(after returning from the bean).
Options Tried:
I used the following in the action listener of the bean
setValueMandatory(true); //Used this as a binding value for the required property on the input field
textValue.setValid(false); //textValue is my input text's binding to the bean
textValue.validate(facesContext);
textValue.processUpdates(facesContext);
textValue.processValidators(facesContext);
AdfFacesContext.getCurrentInstance().addPartialTarget(textValue);
FacesContext.getCurrentInstance().renderResponse();
I am able to focus on the field using the cursor but unable to throw the message. Clearly, some form submit or an action need to occur on the page to render the response(or, repaint the page programmatically). But, how do I do this from the bean?
Jdev Version: 11.1.1.4

Divya,
Have you tried passing the Component instead of null in my previous code?
here is the sample i tried and it works fine.
jspx code snippet
    <af:inputText label="Label 1" id="it1" binding="#{pageFlowScope.attributeValuesBean.rtx}"/>
    <af:commandButton text="commandButton 1" id="cb1"
                                  actionListener="#{pageFlowScope.attributeValuesBean.throwMessage}"/>backing bean snippet
    private RichInputText rtx; // add getter and setter
    public void throwMessage(ActionEvent actionEvent) {
        // Add event code here...
           FacesMessage fms = new FacesMessage("A value is required");
            fms.setSeverity(FacesMessage.SEVERITY_ERROR);
            FacesContext ctx = FacesContext.getCurrentInstance();
            ctx.addMessage(getRtx().getClientId(), fms);
    }-Arun

Similar Messages

  • BDC error-- INPUT VALUE IS LONGER THAN SCREEN FIELD

    Hi all,
             I wrote BDC for VA01. Here I need to pass condition amount to the BDC SCreen ( field name : KOMV-KBETR). When i run the BDC, it is throwing error -- ' INPUT VALUE IS LONGER THAN SCREEN FIELD '.
    Then I passed the amount value manually to the BDC screen field. Still it is not working.
        DATA : v_kbetr1 TYPE komv-kbetr.
        MOVE itab-kbetr1 TO v_kbetr1.
       PERFORM bdc_field       USING 'KOMV-KBETR(08)'
                                      v_kbetr1.      
    Please look into this issue.
    Thanks,
    Murali Krishna.T

    v_kbetr1 type komv-kbetr
    have you seen the code automatically generated after recording in SHDB. You may notice that all the variable will be declared of character type. That is to avoid these kind of problems.
    Change the declaration as character type of length 14. it should work.

  • Error getting values by getParameterValues() in a servlet from a jsp page

    Hi, i cant recive in my servlet the values that a user write in some input text in the next page:
    <%@ page language="java" contentType="text/html; charset=ISO-8859-1"
        pageEncoding="ISO-8859-1"%>
    <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
    <html>
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
    <title>Insert title here</title>
    </head>
    <body>
         <form action="/ProyectoWeb/ServletPruebas" method="post">
              <table>
              <%
                   for(int i = 0; i<10; i++){
    %>
                   <tr>
                        <td>
                             <input type="hidden" name="ps_oculto" value="<%=i%>">
                             <input type="text" name="ps_valor">
                        </td>
                   </tr>
    <%
              %>
              </table>
              <input type="submit" value="VALOR">
         </form>
    </body>
    </html>and this is the post method of my servlet:
    protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {
              PrintWriter pw = response.getWriter();
              String[] pocultos= request.getParameterValues("ps_oculto");
              String[] valores= request.getParameterValues("ps_oculto");
              for(String oculto: pocultos){
                   pw.println("ps_ocultos: " + oculto);
              for(String valor: valores){
                   pw.println("ps_valores: " + valor);
              pw.flush();
              pw.close();
         }When i open the jsp page in my web server and do the sumit of its form i get the folow response of my servlet:
    ps_ocultos: 0
    ps_ocultos: 1
    ps_ocultos: 2
    ps_ocultos: 3
    ps_ocultos: 4
    ps_ocultos: 5
    ps_ocultos: 6
    ps_ocultos: 7
    ps_ocultos: 8
    ps_ocultos: 9
    valores: 0
    valores: 1
    valores: 2
    valores: 3
    valores: 4
    valores: 5
    valores: 6
    valores: 7
    valores: 8
    valores: 9
    I can´t get the values that i put in the input text when i open the jsp in my web server, (before press the submit button i write text in the input text), i only get indexes 0,1,2,3 ... What is wrong?
    Thanks in advance

    My error its on the post method. I am getting the worg parameter for the values of my input text. I have change in the doPost the line
    String[] valores= request.getParameterValues("ps_oculto");for this
    String[] valores= request.getParameterValues("ps_valores");the code run perfect. Sometimes happens ...

  • Error when referencing an RTF-encrypted Memo Field from ACT! in CRXI r2

    Post Author: Scottco1986
    CA Forum: Data Connectivity and SQL
    I'm creating a report from an ACT! Premium 2007 database, and I seem to have hit a snag.  A field in ACT! which is labeled "Regarding & Details" seems to be stored as two separate fields in the database.  The first, TBL_HISTORY.REGARDING is easily displayed on the report.  The second, however, TBL_HISTORY.DETAILS, is an RTF-encrypted Memo field.  "No problem," I thought.  I could just specify the text interpretation to interpret the Memo Field as RTF.  Unfortunately, as soon as I include the field on the report and preview it, I get an error:  "Database Connection Error: 'HY010:&#91;Microsoft&#93;&#91;ODBC Driver Manager&#93; Function Sequence Error' ".  So, I cancel the preview operation, and remove the field.  Everything should work now, right?  Wrong.  I now get an error:  "Failed to retrieve data from database," followed by "Failed to retrieve data from database.  Details: HY000:&#91;Microsoft&#93;&#91;ODBC SQL Server Driver&#93;Connection is busy with results for another hstmt".  These errors do not stop occuring on preview until I restart Crystal (effectively undoing my unsaved changes).  I then thought that maybe this error had something to do with the fact that it is a memo field.  So, I wrote a SQL statement to convert the Memo field to a String.  This, however, caused the same errors.  So, now I'm stuck.  How can I include this field without errors?!?

    Post Author: ayla1209
    CA Forum: Data Connectivity and SQL
    I'm having the same error - did you ever get a solution?

  • PCUI 4.0, Search Help Required for New field

    Hi everyone
    I am working in CRM 4.0 Sales Order application
    We created a new field in CRM sales Order in Header level in SAP GUI through EEWB.
    The search help for the new field is working fine in SAP GUI. We want to add the same field with F4 help functionaliity in PCUI as well.
    The field has been added in structure CRMT_BSP_SLS_OD1_General. It also shows domain value for the field however Origin of input field ie empty
    The field has been added in PCUI and is successfully showing data inputted in SAPGUI
    However we need search help functionality for the field
    i tried these two steps
    1) i checked on domain value checkbox and changed the field from input to dropdown. However the dropdown is empty in PCUI. Whenever i check box domain values for some field then all the possible values in SPA GUI are displayed in PCUI, however this is not working here.
    2) I put Value_table in F4 of the field
    This is also throwing up empty values
    Am i missing something in this case
    Please let me know how to go about it
    TIA
    Asad

    Hi Frederic
    Thanks for your response
    I am not sure what is meant by regenerating the field group in this case
    I added the entries for my view in the field group and generated the layout of the field group (If this is what you mean)
    The field is working fine. I am able to save values to the field and able to see values saved in GUI.
    I haven't linked search help of the field in PCUI
    I am not sure how to go about it.
    I used the data element in the structure for the field.
    The data element has Domain entry in <b>Entry Help/Check</b> of the structure
    If i check the Domain Value checkbox in my field group then the domain values should be available in dropdown if the field is dropdown
    However i am not able to see the possible values of the field (It is present in SAP GUI)
    Does something else needs to be done in this case
    TIA
    Asad

  • Script throwing error" Object required: 'API'

    Hi All,
    We need help in one issue. We have following script which is running fine when we ran it from script editor, but when use this as expression in import format is throwing error
    Error: An error occurred importing the file.
    Detail: Object required: 'API'
    At line: 12
    Script:
    Function ME_to_LE(strField, strRecord)
    ME_to_LE =API.SqlMgr.fMapItemLookup (749, "UD8", Left(strField,3))
    End Function
    We have created few other Scripts which are running fine and producing required result when we check them with MsgBox. But when we are using these scripts in import format it is saying: Object required: 'API'
    IF I can not use API object in import script, how can I process multiple column with one script. We need to derive three-four column based on one input column and we don't want to write separate import script for each column. How and where we can write this script?
    Are we missing any step? Any help will be highly appreciated. Looks I asked long question :)
    Thanks,
    Shivendra
    Edited by: shiv2 on Sep 16, 2011 9:30 AM
    Edited by: shiv2 on Sep 16, 2011 10:36 AM

    Hi Robb,
    "It looks like you and James are on the same project" That is correct.
    OK. In requirment we have three-four column based on these column we need to derive few other column. We want to do spilitting and validation in Import itself. This is mainly a Validation requirment.
    There is one column which may have 12,13,14,17 or any other number of character in it. first three will represent one dimension but exact value be a mapped result based on these three digits.
    There are many validation based on the number on charaters and most importantly we don't want to process other column is validation get failed at any stage.
    Do we have anything like Import Action? Probably we want to change that script. Or if we can write something like integration script. We need every column to be processed in one shot.
    I don't think it is self explantry. Can we have your email please?
    Thanks,
    Shivendra
    Edited by: shiv2 on Sep 16, 2011 8:52 PM

  • Error-No value given for one or more required parameters when using oleDBDa

    Hello,
    I have this sql statement and it works well, the Crystal Report gives good result when I put concrete values like:
    string comstring = "SELECT NOVI.GBR as gbrnov, NOVI.AB as abnov, NALOG1.DATA as datanov, Min(NALOG1.POCKM) AS MinOfPOCKM, Max(NALOG1.KRAJKM) AS MaxOfKRAJKM, (Max(NALOG1.KRAJKM)-Min(NALOG1.POCKM)) AS RAZLIKA, Count(IIf(([MAGACIN.SIFRA]='0991000'),[MAGACIN.KOL],Null)) AS Gorivo, Avg(IIf(([MAGACIN.SIFRA]='0991000'),[MAGACIN.KOL],Null)/100) AS potrosgor100km, Sum(IIf(([MAGACIN.SIFRA]='0993050' Or [MAGACIN.SIFRA]='0993051'),[MAGACIN.KOL],Null)) AS Motmaslo, Sum(IIf(([MAGACIN.SIFRA]='0992201'),[MAGACIN.KOL],Null)) AS Addblue, ([Addblue]/[Gorivo])100 AS Addbluegor, Sum(IIf(([MAGACIN.SIFRA]='0999001'),[MAGACIN.KOL],Null)) AS Antifriz, NOVI.DATAP, NOVI.DATAS, IIf(([NOVI].[KM]<=([NOVI].[KMS1][NOVI].[KMS2])),'ZA SERVIS',(IIf(([NOVI].[KM]<=([NOVI].[KMP1][NOVI].[KMP2])),'PROVERKA',''))) AS Zabeleska FROM (NALOG1 INNER JOIN NOVI ON NALOG1.GBRV = NOVI.GBR) INNER JOIN MAGACIN ON NOVI.GBR = MAGACIN.GBR where (((NOVI.GBR)>='1001' And (NOVI.GBR)<='1080') AND ( ((NOVI.AB)='AK') OR ((NOVI.AB)='AK') ) AND ((NALOG1.DATA)<=#10/31/2011# and (NALOG1.DATA)>=#10/31/2011#) ) GROUP BY NOVI.GBR, NOVI.AB, NALOG1.DATA, ([Addblue]/[Gorivo])100, NOVI.DATAP, NOVI.DATAS, IIf(([NOVI].[KM]<=([NOVI].[KMS1][NOVI].[KMS2])),'ZA SERVIS',(IIf(([NOVI].[KM]<=([NOVI].[KMP1][NOVI].[KMP2])),'PROVERKA','')))";          
    but when I use code like this :
    string comstring = "SELECT NOVI.GBR as gbrnov, NOVI.AB as abnov, NALOG1.DATA as datanov, Min(NALOG1.POCKM) AS MinOfPOCKM, Max(NALOG1.KRAJKM) AS MaxOfKRAJKM, (Max(NALOG1.KRAJKM)-Min(NALOG1.POCKM)) AS RAZLIKA, Count(IIf(([MAGACIN.SIFRA]='0991000'),[MAGACIN.KOL],Null)) AS Gorivo, Avg(IIf(([MAGACIN.SIFRA]='0991000'),[MAGACIN.KOL],Null)/100) AS potrosgor100km, Sum(IIf(([MAGACIN.SIFRA]='0993050' Or [MAGACIN.SIFRA]='0993051'),[MAGACIN.KOL],Null)) AS Motmaslo, Sum(IIf(([MAGACIN.SIFRA]='0992201'),[MAGACIN.KOL],Null)) AS Addblue, ([Addblue]/[Gorivo])100 AS Addbluegor, Sum(IIf(([MAGACIN.SIFRA]='0999001'),[MAGACIN.KOL],Null)) AS Antifriz, NOVI.DATAP, NOVI.DATAS, IIf(([NOVI].[KM]<=([NOVI].[KMS1][NOVI].[KMS2])),'ZA SERVIS',(IIf(([NOVI].[KM]<=([NOVI].[KMP1][NOVI].[KMP2])),'PROVERKA',''))) AS Zabeleska FROM (NALOG1 INNER JOIN NOVI ON NALOG1.GBRV = NOVI.GBR) INNER JOIN MAGACIN ON NOVI.GBR = MAGACIN.GBR where (((NOVI.GBR)>=? And (NOVI.GBR)<=?) AND ( ((NOVI.AB)=?) OR ((NOVI.AB)=?) ) AND ((NALOG1.DATA)<=? and (NALOG1.DATA)>=?) ) GROUP BY NOVI.GBR, NOVI.AB, NALOG1.DATA, ([Addblue]/[Gorivo])100, NOVI.DATAP, NOVI.DATAS, IIf(([NOVI].[KM]<=([NOVI].[KMS1][NOVI].[KMS2])),'ZA SERVIS',(IIf(([NOVI].[KM]<=([NOVI].[KMP1][NOVI].[KMP2])),'PROVERKA','')))";
    Edited by: Don Williams on Nov 23, 2011 7:22 AM

    and the code after that:
    command.CommandText = comstring;
                if (radioButton4.Checked == true)
                    if (textBox1.Text == "")
                        button1.Enabled = false;
                        MessageBox.Show("Внесете гаражен број", "Warning", MessageBoxButtons.OK, MessageBoxIcon.Warning);
                        textBox1.Focus();
                        command.Parameters.AddWithValue("@gbr1", textBox1.Text);
                        command.Parameters.AddWithValue("@gbr2", textBox1.Text);               
                else if (radioButton5.Checked == true)
                    command.Parameters.AddWithValue("@gbr1", "1001");
                    command.Parameters.AddWithValue("@gbr2", "1080");
                    button1.Enabled = true;
                    textBox1.Text = "";
                else if (radioButton6.Checked == true)
                    command.Parameters.AddWithValue("@gbr1", "1081");
                    command.Parameters.AddWithValue("@gbr2", "1149");
                    button1.Enabled = true;
                    textBox1.Text = "";
                else if (radioButton7.Checked == true)
                    command.Parameters.AddWithValue("@gbr1", "1001");
                    command.Parameters.AddWithValue("@gbr2", "1149");
                    button1.Enabled = true;
                    textBox1.Text = "";
                else
                    MessageBox.Show("Немате избрано гаражен број или тип на автобус.", "Warning", MessageBoxButtons.OK, MessageBoxIcon.Warning);
                    button1.Enabled = false;
                if (checkBox1.Checked == true && checkBox2.Checked==true)
                    command.Parameters.AddWithValue("@ab1", "AK");
                    command.Parameters.AddWithValue("@ab2", "GP");
                    button1.Enabled = true;
                else if ((checkBox1.Checked == true) && (checkBox2.Checked == false))
                    command.Parameters.AddWithValue("@ab1", "AK");
                    command.Parameters.AddWithValue("@ab2", "AK");
                    button1.Enabled = true;
                else if (checkBox2.Checked == true )
                    command.Parameters.AddWithValue("@ab1", "GP");
                    command.Parameters.AddWithValue("@ab2", "GP");
                    button1.Enabled = true;
                else
                    MessageBox.Show("Немате избрано автобаза.", "Warning", MessageBoxButtons.OK, MessageBoxIcon.Warning);
                    command.Parameters.AddWithValue("@ab1", "AK");
                    command.Parameters.AddWithValue("@ab2", "GP");
                    button1.Enabled = false;
                command.Parameters.AddWithValue("@data1", dateTimePicker1.Value.Date);
                command.Parameters.AddWithValue("@data2", dateTimePicker2.Value.Date);
                 DataSet2 dataSet2=new DataSet2();    
                 OleDbDataAdapter oleDBDataAdapter1 = new OleDbDataAdapter();
                oleDBDataAdapter1.SelectCommand=command;
                    dataSet2.Clear();
                    oleDBDataAdapter1.Fill(dataSet2,"Tabela");
                    if (dataSet2.Tabela.Count == 0)
                        MessageBox.Show("Nema podatoci za toj period");
                    ReportDocument cryRpt = new ReportDocument();
                    cryRpt.Load(@"C:\Potrosuvacka-Pregledi\Potrosuvacka-Pregledi\CrystalReport6.rpt");
                cryRpt.PrintOptions.PaperOrientation = CrystalDecisions.Shared.PaperOrientation.Landscape;
                    cryRpt.SetDataSource(dataSet2);
                    crystalReportViewer1.DisplayToolbar=true;
                crystalReportViewer1.ReportSource = cryRpt;                      
                crystalReportViewer1.Refresh();
                    conn.Close();
    I get an error:
    "No value given for one or more required parameters."
    Could anybody help me please?
    Thank you in advance.
    Edited by: nelpet06 on Nov 23, 2011 9:30 AM

  • Frm-40502: oracle error: unable to read list of values

    Hi All,
    I am personalizing the assignment form, where we need to restrict the JOB LOV based on Organization value.
    In Forms Personalization we are creating the record group from query and attaching to Job field.
    The query is,
    SELECT DISTINCT j.NAME, DECODE (1, 2, 1, NULL) c_valid_job_flag,
    j.job_id job_id
    FROM per_jobs_v j
    WHERE j.business_group_id + 0 = :CTL_GLOBALS.BUSINESS_GROUP_ID
    AND j.date_from <= :CTL_GLOBALS.SESSION_DATE
    AND ( (j.date_to IS NULL)
    OR (j.date_to >= :CTL_GLOBALS.SESSION_DATE)
    ORDER BY j.NAME
    When we use this query, we are getting the error "frm-40502: oracle error: unable to read list of values"
    If i replace the bind variable with values we are not getting the error and its working fine.
    Replace query:
    SELECT DISTINCT j.NAME, DECODE (1, 2, 1, NULL) c_valid_job_flag,
    j.job_id job_id
    FROM per_jobs_v j
    WHERE j.business_group_id + 0 = 202
    AND j.date_from <= TRUNC(SYSDATE)
    AND ( (j.date_to IS NULL)
    OR (j.date_to >= TRUNC(SYSDATE))
    ORDER BY j.NAME
    how to use bind variables (Block.field) here? We are getting this error only when using the bind variable in the query.
    Please share your ideas.
    Thanks.

    Hi;
    What is your EBS version? There are 96 docs avaliable about similar error message. I suggest use metalink for your issue
    You can also check:
    FRM-40502: Oracle Error: Unable To Read List Of Values [ID 1161404.1]
    Frm-40502: Oracle Error: Unable To Read List Of Values. [ID 351931.1]
    FRM 40502: Oracle Error:Unable to Read List of Values [ID 179162.1]
    Regard
    Helios

  • MDIS Unmapped Values ADD is not Working Throws errors

    Hi Experts,
    I have a Qualified table where the Non qualifier is a Lietaral Date field.
    Qualified Update -> Update
    New links -> Create
    Existing Links -> All mapped Fields
    MDIS unmapped values -> ADD
    All is working well,When the Incoming file has exactly the same NOn qualifier as in Data manager,  But when the incoming file has some New non-qualifers then it fails with a value Exception...
    1166657856 2011/09/27 16:29:16.326 GMT Importing: 'Samplee_27sep[1].xml.MDM_DATA' Table --> 'CostCentre.CostCentre' Table.
    1166657856 2011/09/27 16:29:16.341 GMT Could not create lookups. Source record number: -10, error message : Type mismatch. Invalid field values.
    1166657856 2011/09/27 16:29:16.346 GMT Import failed. Could not create lookups. Source record number: -10, error message : Type mismatch. Invalid field values.
    Import action: Update (All Mapped Fields)
    Source record no: 1
    But ideally it should NOT fail as the MDIS Unmapped fields are set to ADD..
    I would expect it to Add any new NON qualfiers to QT and add that Link to that Record.
    But it is throwing error...
    Did anyone face this issue till date???
    Kind Regards
    Eva
    Why is this behaviour..

    Hi,
    In the Import map as the Non qualifier is the literal date field and in DM i can see they are stored in MM/DD/YYYY format.
    The incoming value from the File is also the same format but the Config parameters date format in Import map is different, is this the problem for not adding New dates even though the MDIS unmapped fields are set to ADD..
    Also, are Config parameters Specific to Map or Repository Or server!!
    i.e if i change a config parameter and save the map.
    will the config parameters in all import maps be changed automatically??
    Kind Regards
    Eva

  • Logging into Oracle Apps R12 throws error - unable to authenticate session

    Hi All,
    Working on R12 OS:AIX
    Logging into Oracle Apps R12 throws error - "unable to authenticate session".
    Earlier Guest user was end-dated which has now been removed and autoconfig was run.but still the same issue..(services were bounced too)
    Guest user password is:ORACLE(uppercase) in xml file,dbc file,GUEST profile options..
    could anyone please share such an experience encountered before and suggest resolution...
    Would appreciate an early response!
    Thanks for your time!
    Regards,

    Pl see ML Note 342332.1 on steps needed to troubleshooot login. Although this doc is for 11i, it should also apply to R12
    Srini Chavali

  • Troubleshoot Error - Unable to perform table-based value assignment config

    After to creating class, characteristics, and value assignment type, the system is unable to perform table-based value assignment configuration. The following error is displayed:

    Hi Mr. SAP,
    Based on the diagnosis, you can figure out that most likely someone is already editing the customizing table or might you are not authorized..
    In case if you have the access to SM12 Transaction code, kindly check if an entry present there. If yes it means the table is locked and you can't proceed on that. you have to reach out to the specific resource to unlock the table who did a lock, else you need to reach out to BASIS to make that entry delete.
    Regarding authrization for locking of table, please check SU53 after the execution of the T-code, if you are missing any role. If you find anything there, then reach out to your Security team to get and assigned roles to your profile.
    Regards,
    Abhi

  • PLSQL Clob Document in Oracle Apps Workflow throwing "Numeric or value Error " in the Notification Body

    I’m Using PLSQL Clob Document for printing data in HTML table format in the Notification Body,even PL/SQL Clob variable is capable of storing data up to 4gb ,when I’m trying to print the data greater than 32767bytes (32kb) it is throwing error “Numeric or value Error” .Please help me out to print data >32kb in the notification using document type attribute in oracle workflow.Appreciated for the Solution.
    Thanks,
    Kishore.

    Please see if these docs help.
    How to Write CLOB Data > 32K Out to a File? (Doc ID 358641.1)
    How To Write Out Multiple Clob Fields > 32k To A File in 4K chunks? (Doc ID 358781.1)
    Thanks,
    Hussein

  • Unable to set the selected value for a ADF LOV

    Hi,
    I am developing an application using jdeveloper 10.1.3 and Struts.
    I have created a ADF LOV on my JSP Page as given below:
    <html:select property="lob" onchange="javascript:selectLOB(this.form)">
    <html:optionsCollection label="prompt" value="index" property="lob.displayData"/>
    </html:select>
    When i submit the form, i am able to get the value of the selected Value in the List.
    JUCtrlListBinding listBinding = (JUCtrlListBinding) formBean.get("Lob");
    Row r = (Row) listBinding.getSelectedValue();
    String SoLob = (String) r.getAttribute("LobLob");
    But i am unable to set the selected value back in the list when i return to the form again.
    I tried the following:
    int x = listBinding.getSelectedIndex();
    listBinding.setSelectedIndex(x);
    It would be really helpful if some one could let me know what needs to be done.
    Thanks,
    Subashini

    Gyan,
    I tried with the code you suggest , its trying to set the value of a field, but my requirement is to change the property for
    "Rendered" on the field so that based on search parameters we can hide result table column.
    After searching online, I modified the controller code as follows
    1.Created a new transient attribute (Testrender) with type "Boolean" and always updateable.
    2.changed the "Rendered" property value on the field I want to hide as ${oa.PoSearchVO1.Testrender}.
    3. Modified the controller code as follows :
            OAApplicationModule am = pageContext.getApplicationModule(webBean);
            OAViewObject testvo = (OAViewObject)am.findViewObject("PoSearchVO1");
            OADBTransaction txn = am.getOADBTransaction();
            if (testvo != null)
              OARow row = (OARow)testvo.first();
                if (a.equalsIgnoreCase("Approved"))
                     row.setAttribute("Testrender", Boolean.FALSE);
                else
                     row.setAttribute("Testrender", Boolean.TRUE);
            } But now when i run the page and populate the search field and click "Go" its hiding the field but throwing the following error and the search results are also bad.
    Its using only the value of one search parameter but not the second one .
    The search cannot be executed because the table has pending changes that would be lost. I think the vo is getting dirty when I update the transient attribute value. So I used txn.rollback ,then search is working fine but its not hiding the field.
    So can you please let me know how to proceed from here ?

  • Why Webdynpro framework is throwing error in this testcase

    Hi All,
    In my requirement i'm using the WTGXXX(for Discount field) in Webdynpro ABAP.
    If I validate the entries there is a standard check performed by the webdynpro framework when entries other than the numercie fields are given.
    This is a webdypro ALV.
    For Ex:
    when the discount is given as (9-33) it is throwing the error that "The entered value can only contain numerical characters" but it is not throwing any error for (9-(9/22)) or (9-(42)) instead it is calculating the values which is a good feature. But why, (9-33) this case is not handled.
    I tried to keep the value in duegging it is working fine.
    Before any event gets trigerred for the above cases the value is calculated by the framweork by defalut.
    Some times some cases are handled sometimes not.
    I'm unable to get this behavior of the framework.
    For the first time (9-3*3) calcuation is throwing error from the 2nd time onwards this is giving the correct output. When I load the view for the first time and do this check then error is thrown, second time when the other calcuations are done and again do this calcaulation then this error is not shown instaead it is giving me 0 which is the result.
    This case applies to the cases where the expressions result in 0 (defalut values)
    One mroe test case for this is - (9-9).
    Eventhough the user knows the result of these expresions, these are throwing errors.
    How to handle this.
    I tired handling this with own DE/Domanin CURR 15 but for the 1st time this error is theon 2nd time on wards the reuslt is shown correct.
    Isn't a special case.
    When I bound the table again with INITIAL data then again the erorr is thrown for that case.
    ie I have one RESET button where i will bind the table again with the INITIAL table entries then agian the error is thrown for (9-3*3).
    Is there any SAPNOTE applied or Exceptions to this. Please let me know.
    Please replicate the same in Webdynpro Java also and share the reasons.
    Currently I'm doing this by taking the string only to avoid these erorrs in case of Zero.
    Regards,
    Lekha.

    Hi
    Use another forum for Webdynpro questions: Web Dynpro ABAP
    BR, Sergei

  • SPIMport is throwing error when import .aspx file second time onwards

    Hi,
    when I am trying to import already existing file (second import) the import is throwing error  -
    Error: Value does not fall within the expected range.
     [ListItem]   Debug:    at Microsoft.SharePoint.SPFieldMap.GetColumnNumber(String strFieldName, Boolean bThrow)
       at Microsoft.SharePoint.SPListItemCollection.GetRawValue(String fieldname, Int32 iIndex, Boolean bThrow)
       at Microsoft.SharePoint.SPListItem.GetValue(SPField fld, Int32 columnNumber, Boolean bRaw, Boolean bThrowException)
       at Microsoft.SharePoint.SPListItem.GetValue(SPField fld, Int32 columnNumber, Boolean bRaw)
       at Microsoft.SharePoint.SPListItem.get_Item(Guid fieldId)
       at Microsoft.SharePoint.Deployment.ListItemSerializer.SetObjectData(Object obj, SerializationInfo info, StreamingContext context, ISurrogateSelector selector)
       at Microsoft.SharePoint.Deployment.XmlFormatter.CallSetObjectData(Object obj, SerializationInfo objectData, ISerializationSurrogate surrogate, ISurrogateSelector selector)
     Verbose: Performing final fixups.
     Progress: Import completed.
     Finish Time: 2/5/2015 4:37:25 PM.
     Duration: 00:18:41
     Total Objects: 5
     Finished with 0 warnings.
     Finished with 1 errors.
    I am unable to debug also. Though import is happening successfully. Thanks in advance

    Hi
    Use another forum for Webdynpro questions: Web Dynpro ABAP
    BR, Sergei

Maybe you are looking for