E31 - Unable to set Bios values through WMI

Dear All,
I am trying to set Bios values on E31 through a VB Script using WMI in our lab. It is working on all the machines except one. It does not return an error while setting the value or saving it. But when I manually enter Setup, the values would not be set. No error is set in Event viewer.
Manually modifying the value works.
Machine type: E31 (2552CS4)
Bios Version: 9SKT61AUS
Values trying to set:
Select Active Video=IGD
Total Graphics Memory=128MB
Multi-Monitor Support=Enabled
Core Multi-Processing=Enabled
etc.
Command executed:
    ObjItem.SetBiosSetting Select Active Video,IGD;
    ObjItem.SetBiosSetting Multi-Monitor Support,Enabled;
    ObjItem.SetBiosSetting Core Multi-Processing,Enabled;
Can anyone tell me what could be wrong with the machine. How it can be corrected.
Thanks in advance.
-Uttam

Are those values (WMI commands) actually changing anything from what the defaults are?
It's odd that you've seen it work correctly on other E31 systems but fail on only this one.  Is there something in the configuration that's unique to this system as compared to the other E31 systems that passed with no issue?
In the failing scenario, which value(s) are not getting set correctly?

Similar Messages

  • Setting Bios Settings via WMI

    I wrote a script to change the Ownership Tag on the laptops, desktops, and workstations we have deployed at our site. Sadly it is kind of a mish-mash of models (8470p, 8560p, 8560w, Z420, Z600, ML 110, ML 350, 6000 Pro, 8200 Elite, and several others...a mish-mash). All of the laptops are running Windows 8.1 and all the desktops/workstations are running Windows Server 2012 R2. All the PCs are on a domain, and although I am not a domain admin, I am specifically set as a local admin on all PCs. I am having two issues: 1. I can set the Ownership Tag on my laptop both locally and remotely regardless of what I enter for a BIOS Setup password. The F10 Setup password IS SET on my laptop, and I get prompted for it when I press F10 during the POST. I don't know if it matters, but my laptop's BIOS version is 68ICF Ver. F.50. 2. My script does not work locally or remotely on a z420 (BIOS Ver J61 v03.85) running Server 2012 r2 even when I know I am using the right password. It consistently returns error code 6 (Access Denied). If I remove the BIOS setup password it will work both locally and remotely. I know Windows Firewall is configured to allow remote WMI. Here is my script:If Wscript.Arguments.Count = 2 Then
    strComputer = Wscript.Arguments.Item(0)
    strOwnerTag = Wscript.Arguments.Item(1)
    ' Get BIOS password from user
    Set oPwdCtl = CreateObject("hpPwdCtl.PasswordEdit")
    oPwdCtl.GetPassword _
    "Enter the Computer Setup Password:", strPassword
    Set objSWbemLocator = CreateObject _
    ("WbemScripting.SWbemLocator")
    Set objWMIService = objSWbemLocator.ConnectServer _
    (strComputer, "root\HP\InstrumentedBIOS")
    Set colItems = objWMIService.ExecQuery _
    ("SELECT * FROM HPBIOS_BIOSString", , 48)
    For Each objItem In colItems
    ' strResultMsg = strResultMsg & objItem.Name & _
    ' " : " & objItem.Value & vbCrLf
    If InStr(1, objItem.Name, "Owner") Then
    strName = objItem.Name
    End If
    Next
    ' Obtain an instance of the the class using
    ' a key property value.
    Set objShare = objWMIService.Get _
    ("HPBIOS_BIOSSettingInterface.InstanceName='ACPI\PNP0C14\0_0'")
    ' Obtain an InParameters object specific to the method.
    Set objInParam = _
    objShare.Methods_("SetBIOSSetting").InParameters.SpawnInstance_()
    ' Add the input parameters.
    objInParam.Properties_.Item("Name") = strName
    objInParam.Properties_.Item("Password") = strPassword
    objInParam.Properties_.Item("Value") = strOwnerTag
    ' Execute the method and obtain the return status.
    ' The OutParameters object in objOutParams
    ' is created by the provider.
    Set objOutParams = objWMIService.ExecMethod _
    ("HPBIOS_BIOSSettingInterface.InstanceName='ACPI\PNP0C14\0_0'", _
    "SetBIOSSetting", objInParam)
    ' List OutParams
    strResultMsg = strResultMsg & vbCrLf & "Result: " & _
    objOutParams.Return
    Wscript.Echo strResultMsg
    Else
    'Instruct on the proper use of the script
    Wscript.Echo "Target Hostname and/or Ownership Tag missing!" _
    & vbCrLf & "Usage: SetAssetTag <hostname> <asset tag>"
    End If   So, how do I get this to work on a Z420 running Server 2012 R2 when there is a password set, and NOT work on my laptop when an incorrect password is entered? What have I missed? EDIT:I should note that on some models the Ownership Tag is named "Enter Ownership Tag" while on other models it is simply "Ownership Tag". I suspect there are other variations, and that is why I search for "owner". I am aware that I can use the WQL LIKE operator (eg, SELECT * FROM HPBIOS_BIOSString WHERE name LIKE '%owner%') to find the tag but I was lazy and busy and not thinking...I'll likely edit it later. ____________________________________________________Just to help some others out who may find this thread later: To enable Remote WMI in Windows firewall, you can use this command from a DOS promptnetsh advfirewall firewall set rule group="Windows Management Instrumentation (WMI)" new enable=yes  If you have admin rights on a remote PC, you can use WINRS to run the command on the remote PC (this is a snippet of VB code)"winrs -r:" & strComputer & " netsh advfirewall firewall set rule group=" & chr(34) & "Windows Management Instrumentation (WMI)" & chr(34) & " new enable=yes" For security reasosn you may want to disable Remote WMI when you are done working with the remote machine, so make sure to run that command again but with "enable=no".  Some very helpful tools for working with the HPBIOS WMI stuff are:WMI Explorer 2.0 (https://wmie.codeplex.com/)WMI Code Creator (https://www.microsoft.com/en-us/download/details.aspx?id=8572)HP Client Management InterfaceTechnical White Paper (http://h20331.www2.hp.com/Hpsub/downloads/cmi_whitepaper.pdf) And if you want a nice easy GUI editor for playing with code that is easily transferable to VBScript, I personally like Excel VBA. Just make sure to add a reference to the Microsoft WMI Scripting Library (https://technet.microsoft.com/en-us/library/ee156554.aspx).

    Ok, so I solved problem number 2. It turns out that the Z420 will not accept passwords encoded as keyboard scancodes. Instead they accept passwords encoded as UTF-16. So, if your setup password is abc123, the scancode is "<kbd/>1E302E020304". the utf-16 version of that is...wait for it...."<utf-16/>abc123" tada!! So since I have a mess of models, I'll need to modify my code to either ask the user to re-enter the password so it can be encoded as a scancode, or I can write a function that will convert the utf password that was entered to scancodes. I have not figured out how to pass a string to the hpPwdCtrl object and have it return a value. The documentation on the hpPwdCtl.PasswordEdit object is sketchy or nonexistant, but here's what I've figured out so far: 1. Using early bindingDim oPwdCtl As New hpPwdCtl.PasswordEditstrPassword = oPwdCtl.GetPassword("Enter the Setup Password:") 'keyboard scancode encoded passwordstrUTFPassword = oPwdCtl.GetPasswordAsUnicode(varLocale, "Enter the Setup Password:") I have no clue what varLocale does, but you must use an empty variable there. (varLocale was just my name for it...call your variable whatever you want, but make sure its empty.) 2. Using late bindingSet oPwdCtl = CreateObject("hpPwdCtl.PasswordEdit")oPwdCtl.GetPassword "Enter the Setup Password:", strPasswordoPwdCtl.GetPasswordAsUnicode varLocale, "Enter the Setup Password:", strUTFPassword Again you must have the empty variable for the unicode method. There is a method named GetPasswordAsScanCode but I can't get it to work with either early or late binding. I always get "The Remote Procedure Call Failed".  

  • Unable to set new values in Entity

    Hi Experts,
    I am trying to change an entity from readonly to changeable and set property of an attribute. But, i am not successful. In the below "If ME->IS_CHAN......" condition, the second condition is not successful and it doesnot let the entity to change. I am not sure, from where the data is getting filled for "ME->CONTAINER_PROXY->DATA_REF->ATTRIBUTE_REF". Can someone please point me the solution ?
    Thanks in advance.
    method IF_BOL_BO_PROPERTY_ACCESS~SET_PROPERTY .
      data: LV_IDX       type CRMT_IDX,
            LV_PROPS_OBJ type ref to IF_GENIL_OBJ_ATTR_PROPERTIES.
      field-symbols: <DATA>  type any,
                     <VALUE> type any.
      MAKE_VALID_STATE( ).
      assign ME->CONTAINER_PROXY->DATA_REF->ATTRIBUTE_REF->* to <DATA>.
      assign component IV_ATTR_NAME of structure <DATA> to <VALUE>.
      if SY-SUBRC = 0.
    *   check changeability of property
        LV_PROPS_OBJ = ME->CONTAINER_PROXY->GET_ATTR_PROPS_OBJ( ).
        try.
            LV_IDX = OBJECT_MODEL->GET_ATTR_IDX_BY_NAME(
                                 IV_OBJECT_NAME = ME->MY_INSTANCE_KEY->OBJECT_NAME
                                 IV_ATTR_NAME   = IV_ATTR_NAME ).
            if ME->IS_CHANGEABLE( ) = ABAP_TRUE and
               LV_PROPS_OBJ->GET_PROPERTY_BY_IDX( LV_IDX ) ne IF_GENIL_OBJ_ATTR_PROPERTIES=>READ_ONLY.
              if <VALUE> ne IV_VALUE.
                if ME->MY_MANAGER_ENTRY->DELTA_FLAG is initial.
    *             first 'change' -> proof that entity is locked
                  if ME->MY_MANAGER_ENTRY->LOCKED = FALSE.
                    if ME->LOCK( ) = FALSE.
                      return.
                    endif.
                  endif.
    Edited by: Gaurav Subramaniam on Jun 2, 2011 5:30 PM
    Edited by: Gaurav Subramaniam on Jun 2, 2011 5:31 PM

    Hi Gaurav,
    As already mentioned your entity is set to READ-ONLY mode at GenIL level. Hence, the following line returns READ-ONLY :-
    LV_PROPS_OBJ->GET_PROPERTY_BY_IDX( LV_IDX ) ne IF_GENIL_OBJ_ATTR_PROPERTIES=>READ_ONLY.
    This is set at GenIL level in the GenIL class. Hence, you'll have to find the GenIL class and look for method - SET_ATTR_PROPERTIES. Here you will find code that sets mode (changeable / readonly) each attribute.
    Follow below steps :-
    - Create a Zclass and inherit it from the above class.
    - Redefine the above method.
    - Set attributes to changeable mode.
    Here is a sample code :-
      DATA: lv_attr_props       TYPE REF TO if_genil_obj_attr_properties.
    * First get the property object
      lv_attr_props = iv_object->get_attr_props_obj( ).
      lv_attr_props->set_property_by_name( iv_name  = 'Field1'
                                           iv_value = if_genil_obj_attr_properties=>changeable ).
      lv_attr_props->set_property_by_name( iv_name  = 'Field2'
                                           iv_value = if_genil_obj_attr_properties=>changeable ).
    Alternatively you can set attribute properties for all fields at once :-
    * set property 'changeable' for all attributes
      lv_attr_props->set_all_properties( if_genil_obj_attr_properties=>changeable ).
    Thanks,
    Ashish

  • Unable to set sga_max_size parameter through spfile

    My 10g db running in spfile. I am trying to decrease sga_max_size to 1024M where i have 1504 now ...
    Do i am not doing in a right way ? Please suggest me
    i am trying like this .....
    SQL> sho parameter sga
    NAME TYPE VALUE
    lock_sga boolean FALSE
    pre_page_sga boolean FALSE
    sga_max_size big integer 1504M
    sga_target big integer 0
    alter system set sga_max_size =1020M scope= spfile;
    SQL>system altered
    SQL> sho parameter sga
    NAME TYPE VALUE
    lock_sga boolean FALSE
    pre_page_sga boolean FALSE
    sga_max_size big integer 1504M
    sga_target big integer 0

    SCOPE=SPFILE would not change the in-memory value. So a SHOW PARAMETER would still show the previous value.
    You must compare the SPFILE before and after the ALTER SYSTEM. (Don't copy the spfile in a text editor but make a copy of the spfile to view OR use the "strings" command on Unix/Linux . If you accidentally write to the spfile with a text editor you will corrupt it. So, the best way to check the value is to run a CREATE PFILE FROM SPFILE and view the pfile which would be the initSID.ora file.

  • Setting default value through a database function?

    I have a form to create and display records. When a new record is created, a certain field has to be filled out with a value generated by a database function. When the form is used to display an existing record, off course this function does not have to fill out this field.
    I tried to work with a computation with a query that calls the function, but I have problems assigning it to the item. I fiddled around with the Source option (Source used) with the result that either the field is always filled out (when I choose for "Only when current value in session state is null") by the function, or never (when I choose the other option).
    What am I doing wrong here? What is the best method to have a default value filled out in this form by a database function? Extra info: the result of this database function is based on the place in the application where the form is called. Sometimes the result is something like "ABC-123456789", sometimes it has to be something like "T-123456789".

    Hi ,
    is this you are expecting?
    default value
    type = function body return
    select seqname.nextval into :p1_id from dual
    select count(*) into :p2_total from emp;
    this will fill the form field with seq number.
    Thanks
    Mark Wyatt
    Edited by: Websoft on Oct 14, 2009 12:45 AM

  • How to pass attribute values through variables in JSP  Custom TagLib

    Hi,
    Can anybody help me how to pass values through varuables in the jsp custom tag.
    i am using JSP custom tag. I am unable to pass attribute values through variables.
    <invitation:invdetails invid="<%=invid%>"/> The value is passing as <%=invid%> ,not value of the invid.
    But i am getting throuh the fllowing
    <invitation:invdetails invid='1' />
    Please anybody suggest me how to pass value by using the variable.

    Hi,
    It sounds like you need to set the <rtexprvalue> tag to true in the TLD for your tag. If you do this the tag will read in the value you are trying to pass to it.
    dapanther...

  • How to set Default Value in People Group KFF

    Hi
    We are storing some information in People Group KFF which depends on Employee Category so if employee category is Permanent Headcount then the value in People group KFF will be different and if it is Temporary then the value will be different.
    Now we want to default the People Group KFF value automatically based on Employee Category for a New Hire employee. And also we should be able to change the People Group KFF value for some new hire as there are few exceptions.
    I tried WHEN-NEW-RECORD-INSTANCE and tried to set the value through INITIAL_VALUE but it is not working.
    Kindly please advise if you have idea on how to implement this requirement.
    Thanks
    Gaurav

    Hello Gaurav,
    If I understood correctly, Your requirement is to update People Group segments based on employee category.
    Basically you need to update people group values based on employee category before insert into assignment table.
    You can acheive this using Dynamic Trigger on Assignment Table.
    you need to change the new.people_group_id along with other segment values in this trigger logic.
    Following articles will help you steps on how to create dyanamic triggers.
    http://oracle.anilpassi.com/dynamic-triggers-in-hrms-payroll-demo.html
    http://apps2fusion.com/apps/oracle-hrms/oracle-hr/204-triggers-in-oracle-hrms-and-payroll
    Regards,
    Saurabh

  • UNABLE TO SET parallel_automatic_tuning=TRUE IN Oracle9i Enterprise Edition

    Hi,
    i am trying to set parallel_automatic_tuning=TRUE . but i am unable to set it.
    My oracle version is as below.
    SQL> SELECT * FROM V$VERSION;
    BANNER
    Oracle9i Enterprise Edition Release 9.2.0.1.0 - Production
    PL/SQL Release 9.2.0.1.0 - Production
    CORE 9.2.0.1.0 Production
    TNS for 32-bit Windows: Version 9.2.0.1.0 - Production
    NLSRTL Version 9.2.0.1.0 - Production
    Please help to resolve this issue.
    thanks
    sivasankar.

    hi i am unable to set the value as true for parallel_automatic_tuning parameter. ,
    SQL> SHOW PARAMETER PARALLEL
    NAME TYPE VALUE
    fast_start_parallel_rollback string LOW
    log_parallelism integer 1
    parallel_adaptive_multi_user boolean TRUE
    parallel_automatic_tuning boolean FALSE
    parallel_execution_message_size integer 2148
    parallel_instance_group string
    parallel_max_servers integer 5
    parallel_min_percent integer 0
    parallel_min_servers integer 0
    parallel_server boolean FALSE
    parallel_server_instances integer 1
    NAME TYPE VALUE
    parallel_threads_per_cpu integer 2
    recovery_parallelism integer 0

  • How to set the value to non enabled UDF fields

    Dear All,
    I created a UDF at titile level of PO and that UDF item always disabled (i.e oItem.Enabled=false). Now how can set a value through coding.
    I wrote like this:
    oForm = SBO_Application.Forms.GetFormByTypeAndCount(-142, 1);
                                oItem = oForm.Items.Item("U_Poap");
                                if (oItem.Enabled == false) { oItem.Enabled = true; }
                                oEdit = ((SAPbouiCOM.EditText)(oItem.Specific));
                                oEdit.Value = "1";
                                oItem.Enabled = false; 
    But system throws an error at : oItem.Enabled=true statement.
    How to solve issue.
    Thanks in advance
    Suresh Yerra

    Hi,
    You can set the values using datasource object
    oDBs_Head = objForm.DataSources.DBDataSources.Item("@TableName")
    oDBs_Head.SetValue("U_FieldName", 0, "Value")
    regards:
    SANDY
    Sandeep Saini | Roorkee | India on Dec 26, 2008 11:01 AM

  • How set the values programatically in custom tables ?

    Hi Guru's,
    Please help me where i did mistake....
    My scenario is i have 4 columns that 4 columns are look up based on row i need save the "XX_hr_Vacancies_CompTab"
    4 columns look like....
    column1(15 questions ) column2(message choice) column3(message choice) column4(free text)
    (1-15)question manually select (1-10) manually select (1-10) comments
    this vo purpose i am using this query
    SELECT ROWNUM,
    xhv.VACANCY_ID
    , xhv.RFP_NO
    , hl.lookup_code
    , hl.meaning
    , XJCT.BUHR_RATING
    , XJCT.COMBEN_RATING
    , XJCT.RATIONALE
    FROM hr_lookups hl ,
    xx_hr_vacancies xhv,
    XX_JOBEVAL_COMP_TAB XJCT
    WHERE lookup_type = 'XX_JE_QUESTIONAIRE'
    AND xhv.RFP_NO = 'IRC616'
    AND XJCT.VACANCY_ID(+) = XHV.VACANCY_ID
    ORDER BY ROWNUM
    I am using sample code is for one column inserting.....please help where i am doing mistake.
    public void processRequest(OAPageContext pageContext, OAWebBean webBean)
    super.processRequest(pageContext, webBean);
    OAApplicationModule am = pageContext.getApplicationModule(webBean);
    am.invokeMethod("createjobVacancy1");
    public void processFormRequest(OAPageContext pageContext, OAWebBean webBean)
    super.processFormRequest(pageContext, webBean);
    if (pageContext.getParameter("Save") != null)
    OAApplicationModule am = pageContext.getApplicationModule(webBean);
    OAViewObject vacncyVO = (OAViewObject)am.findViewObject("XXTableLookupVO1");
    int fetchedrowcount = vacncyVO.getRowCount();
    RowSetIterator multiIter;
    multiIter = vacncyVO.createRowSetIterator("VacancyId");//Attribite of the select box
    multiIter.setRangeStart(0);
    multiIter.setRangeSize(fetchedrowcount);
    System.out.println("no before for loop condition rows"+fetchedrowcount);
    for(int i=0;i<fetchedrowcount;i++)
    am.invokeMethod("createjobVacancy1");
    OAViewObject vacncyVO1 =
    (OAViewObject)am.findViewObject("XX_hr_Vacancies_CompTab_EOVO1");
    Object vacancy = vacncyVO.getRowAtRangeIndex(i).getAttribute("VacancyId"); */*63 Line code is this one*/*
    System.out.println("vacancy number is in table region current row is "+vacancy);
    System.out.println("no or rows"+fetchedrowcount);
    if(vacancy != null && !"".equals("vacancy"))
    vacncyVO1.getCurrentRow().setAttribute("VacancyId",vacancy);
    System.out.println("set create vacancy number is in table region current row is "+vacancy);
    }else{
    vacncyVO1.getCurrentRow().setAttribute("VacancyId",null);
    am.invokeMethod("apply1");
    System.out.println("out of for loop :"+fetchedrowcount);
    Sop:
    13/01/10 06:55:28 no before for loop condition rows15
    13/01/10 06:55:29 Header is =725
    13/01/10 06:55:30 vacancy number is in table region current row is 616
    13/01/10 06:55:30 no or rows15
    13/01/10 06:55:30 set create vacancy number is in table region current row is 616
    13/01/10 06:55:30 Header is =726
    Error:
    ## Detail 0 ##
    java.lang.NullPointerException
    at xxsup.oracle.apps.per.jobevaluation.webui.MainCO.processFormRequest(MainCO.java:63)
    at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormRequest(Unknown Source)
    at oracle.apps.fnd.framework.webui.OAWebBeanContainerHelper.processFormRequest(Unknown Source)
    at oracle.apps.fnd.framework.webui.OAPageLayoutHelper.processFormRequest(Unknown Source)
    Regards,
    Srinivas

    Thanks Keerthi,
    i am getting values but i unable to set the values, once i am setting values i am facing null pointer exception ..
    java.lang.NullPointerException
         at xxsup.oracle.apps.per.jobevaluation.webui.MainCO.processFormRequest(MainCO.java:86)
         at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormRequest(Unknown Source)
         at oracle.apps.fnd.framework.webui.OAWebBeanContainerHelper.processFormRequest(Unknown Source)
         at oracle.apps.fnd.framework.webui.OAPageLayoutHelper.processFormRequest(Unknown Source)
         at oracle.apps.fnd.framework.webui.beans.layout.OAPageLayoutBean.processFormRequest(Unknown Source)
    i am using below coding in PFR
    public void processFormRequest(OAPageContext pageContext, OAWebBean webBean)
    super.processFormRequest(pageContext, webBean);
    if (pageContext.getParameter("Save") != null)
    OAApplicationModule am = pageContext.getApplicationModule(webBean);
    OAViewObject oaviewobject =(OAViewObject)am.findViewObject("XXTableLookupVO1");
    if(oaviewobject!=null)
    pageContext.writeDiagnostics(this,"View Object is exists",OAFwkConstants.STATEMENT);
    int rowcountValue = oaviewobject.getRowCount();
    pageContext.writeDiagnostics(this,"Row returned by the View Object"+rowcountValue,OAFwkConstants.STATEMENT);
    System.out.println("before for loop geting values = "+rowcountValue);
    Row rowAdv= oaviewobject.first();
    RowSetIterator iterator = oaviewobject.createRowSetIterator("iterator");
    iterator.setRangeStart(0);
    iterator.setRangeSize(oaviewobject.getRowCount());
    for(int i=0; i<iterator.getRowCount(); i++)
    pageContext.writeDiagnostics(this,"Inside For loop ",OAFwkConstants.STATEMENT);
    rowAdv =iterator.getRowAtRangeIndex(i);
    if(rowAdv != null)
    pageContext.writeDiagnostics(this,"flag not null",OAFwkConstants.STATEMENT);
    pageContext.writeDiagnostics(this,"Flag Value Checked as Y",OAFwkConstants.STATEMENT);
    OAViewObject vacncyVO1 =
    (OAViewObject)am.findViewObject("XX_hr_Vacancies_CompTab_EOVO1");
    if(rowAdv.getAttribute("VacancyId")!=null)
    Object vacancyname = rowAdv.getAttribute("VacancyId").toString();
    vacncyVO1.getCurrentRow().setAttribute("VacancyId",vacancyname); This is the 86 line
    System.out.println("Vacancy ID IS = "+vacancyname);
    System.out.println("Vacancy ID IS = "+rowAdv);
    am.invokeMethod("apply1");
    // System.out.println("out of for loop :"+iterator);
    please help me where i am doing mistake...
    Regards,
    Srinivas

  • 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 ?

  • How to make the LV front panel controls the current value through the program is set as the default value when the next time you open?

    How to make the LV front panel controls the current value through the programis set as the default value when the next time you open?
    1110340051 

    Try this: Re: How to make a VI remember the latest control value?
    Jim
    You're entirely bonkers. But I'll tell you a secret. All the best people are. ~ Alice

  • I recently purchased my first MacBook Air but am unable to set up my @live.ie email account. My emails to this account come through to my iphone no problem. Can anyone help please?

    I recently purchased my first MacBook Air but am unable to set up my @live.ie email account. My emails to this account come through to my iphone no problem. Can anyone help please?

    Open Mac Mail.
    From the menu bar click Mail > Preferencees then select the Accounts tab then the Account Information tab then click + to add the account.

  • Unable to set the column values in Standard alv settings

    Hi,
    In the ALV displays settings  screen, I can set any number as "number of columns displayed", press "apply"  it remains 8 columns that are visible.
    Prevousely its working fine, last two days back i added  two fields in that AlV table. after that i am unable to change column values in ALV settings.
    Can any one tell me how to resolve this issue.
    Regards,
    Dhananjaya

    Adding fields should not affect the settings normally.. is your program fully activated and you have not mentioend any settings explicitly in your code rite?

  • Set Date field value through Form datasource

    Hello all,
    Has anyone set the value of a field of type Date through the form's datasource?
        If (Not Entrega = Nothing And NrDias > 0) Then
            Entrega = Entrega.AddDays(NrDias)
            ds.SetValue("U_data", ds.Offset, Entrega)
        End If
    End If
    If I change the field to a text field it write to the datasource and display no problem.
    Any ideias?
    Best regards.

    Ups,
    Found it.
    ds.setValue("U_dataent", 0, Entrega.ToString("yyyyMMdd"))

Maybe you are looking for

  • Best way to get small file size/best quality- starting from Logic?

    I am in the process of embedding 3 mp3's into a PDF to submit as a portfolio. The PDF also has text, and two scores included, and with the 3 embedded mp3's it can't be more than 10mb. So my question is: When bouncing a project out of Logic, what is t

  • Import all but synonyms

    Hi. I have made a dump of schema with exp and OWNER option. Now i want to import that into other schema using FROMUSER and TOUSER options. But what i don't want is synonyms to be imported. How can i exclude them from the import? Thanx in advance

  • How to know when spotlight is indexing

    hi, in previous OS versions you could tell when spotlight is indexing by clicking the spotlight icon in the toolbar and the dropdown would tell you.  now in yosemite how can we tell when spotlight is indexing?  because i use mail.app a lot and search

  • SAPSCRIPT: loop in a not main window

    Hi, I have created an text element in a NO main window: SA     Objasnienia do jednostek miar: /E     VRKME_TE /      &I_VRKME-VRKME& - &I_VRKME-MSEHT& This is the code of the control program that writes the content of the IT:   LOOP AT i_vrkme.     C

  • There is a problem syncing the folder...

    I keep getting the following message whenever I boot up my PowerBook G4: *There is a problem syncng the folder "Brad's iMac (2)."* *Unknown error: chflags('/Volumes/bradpurvis/Backups.backupdb/Brad's iMac (2)', 0) Please try again later.* Recently, m