Programmatically refresh an LOV

I want to programmatically refresh an LOV. From what I can tell--through documentation and forum threads--LOVs are implement using ListBindings in the ViewObject in which they are defined.
Does anyone know how I can get a reference to a ListBinding in order to execute the query of the its RowSetIterator?
Edited by: lili5058 on Feb 21, 2009 9:54 PM

Sure
On my Delivery Order Form, my Lov displays 3 columns for field. (SO_ORDER_NO)
Custname,      Order No.      BALQTY
cust1               5                10
cust2               6                25Now lets say i select Order 5
My detail records of my Delivery Order Form gets populated with 2 records.
prod_code      so_qty       qty_dispatched       balqty
prod1                5                2                     3
prod2                5                3                     2The only entreable field of my detail block is qty_dispatched
when i save this record the above LOV should get displayed like this;
Custname,      Order No.      BALQTY
cust1               5                 5
cust2               6                25this is what i want. My query is OK, just need help regarding updating my LOV,
either i remain on the same record, after Saving or, move to next record.
hope its clear now..

Similar Messages

  • Programmatically refreshing an LOV automatically generated in an af:query

    Hello,
    I am using 11.1.1.6.
    I have created a VO with LoVs created on two of the attributes, linked to view accessors. I also created a ViewCriteria which was used to create the af:query panel.
    The LoVs were created using the choice list option type and show a list of query options on the query panel.
    This query panel works fine. The problem is that another page allows the user to create and delete items from the list of query options. When the apply those changes, the query panel
    does not get refreshed and the user is allowed to choose values from the LoV that were just deleted.
    Is there a way to programmatically "reload" the af:query panel such that the ViewAccessor that is responsible for the LoV list is rerun and the LoV values are refreshed?
    Thank you!

    Hi,
    Do you found a solution for that problem, I'm looking to do the same as you. I created a button to update the ViewObject by a function in the shared AM when i click on the button some LOV is refreshing but not the LOV in the af:query even if i put a poll to update the af:query.
    If you have some idea, thanks for sharing,
    Nico

  • Text items not being refreshed by LOV items.

    Hi all,
    I've got a strange LOV behavior problems which I cannot solve and require your valuable time and efforts.
    I've created a simple ADF JSF pages with 3 fields and the first field is LOV enabled. For all new row, after clicking the LOV icon, the LOV will show up and after selecting a particular value, it closes the LOV screen and replace it with a new row with the selected LOV data. It is all working well for all new rows just like a normal LOV should perform.
    But I had problem with existing data. The row which I selected from the LOV somehow cannot referesh and overwrite any existing row (visually) but after commiting the data, it was actually written and refreshed with the correct data. Is there a property in the JHeadstart Application Definition Editor where I enforce the text items to be refreshed by the LOV items?
    Thank you for your time and efforts.
    Kind Regards,
    John

    Hi Guys,
    I've performed the following scenarios attempting to refreshed Text items by the LOV Items.
    Scenario 1: Create a new column called some_key load unique number into it. Set this column as the primay key and deselect existing primary keys as key attributes. Also, I've created a sequence and some_key is of type of DBSequence getting value from the new sequence starting from 1.
    After generation when run and the result is:
    JBO-27022: Failed to load value at index 11 with java object of type oracle.jbo.domain.DBSequence due to java.sql.SQLException.
    ## Detail 0 ##java.sql.SQLException: Invalid column index
    Scenario 2: Create a unique index for the some_key column, rerun and the result is:
    JBO-27022: Failed to load value at index 11 with java object of type oracle.jbo.domain.DBSequence due to java.sql.SQLException.
    ## Detail 0 ##java.sql.SQLException: Invalid column index
    Scenario 3: Set some_key as number instead of DBSequence (from Entity Object Editor), rerun and the result is:
    JBO-27021: Failed to load CustomDatum value at index 11 with java object of type oracle.jbo.domain.Number due to java.sql.SQLException.
    ## Detail 0 ##java.sql.SQLException: Invalid column index
    Scenario 4: Deattach the offending View Object from the Application Module. Remove the offending view link and view object. Recreate view object and view link. Reset some_key is of type of DBSequence getting value from the new sequence starting from 1 (From the Entity Object Editor). After generation when run and result is:
    SUCCESSFULLY!!
    So, I guess the bottom line is here are the following things which you need to perform in order to enable text item to be refreshed by LOV item (if the detail table has composite primary keys)
    1.) Create a new column
    2.) Load unique value to it
    3.) Create unique index for it
    4.) Create entity object, view object and view link object.
    5.) Set the new column as primary key.
    6.) Deselect the key attributes for all composite primary key columns.
    Regards,
    John

  • Programmatically refresh components inside a specific row of an af:table

    How to programmatically refresh components inside a specific row of an af:table without refreshing the whole table ?_
    I have an af:table displaying a read-only view object. There is an edit button inside the table calling an af:popup, where the user can update some informations and click a submit button to validate his changes.
    The action property of this button is a method in a backing been where
    -     1 : A stored procedure is called to update several tables (related to my read-only VO).
    -     2 : The VO is re-queried (VO. refreshQueryKeepingCurrentRow() )
    -     3 : The whole table is refreshed (AdfFacesContext.getCurrentInstance().addPartialTarget(myTable) )
    Is it possible to programmatically refresh some components of the current row of the table without refreshing the whole table (point 3)?
    I’ve tried to play with the “partialTrigger” property of af:outputText (table:column:outputText), without success.
    Thanks
    Nicolas

    "+do you happen to want to refresh following an action on the row? Like a link/button click?+" : NO
    There is a table on my page. The user select a row and click on an edit button. This edit button call a popup where the user can modify some information (not directly on the viewObject. All fields in the popup are dummy fields bind to attributes in my backing bean) and then he click on a submit button.
    The submit button action execute a method "submitInformation" in a backing been.
    public String submitInformation(){
            Map<String, Object> params = new HashMap<String, Object>();
            params.put("pManNo", xManNo.getValue()); //xManNo is an attribute of the backing bean
            params.put("pDate", xPeriod.getValue()); //xPeriod is an attribute of the backing bean
            // Execute Operation
            OperationBinding oper = ADFUtils.findOperation("serviceSubmitInfo");
            oper.getParamsMap().putAll(params);
            String results = (String)oper.execute();
            // Close Popup & Refresh Row if OK
            if(!StringUtils.isStringEmpty(results) && results.equals("TRUE")){
                 closePopup("pt1:popAbs");
                 refreshMyCol();
    }The serviceSubmitInfo method is defined in my serviceImpl
        public String serviceSubmitInfo (String pManNo, String pPeriod, ......){
             String results =
                callStoredFunction("? :=myDatabaseFunction(?, ?, ?, ?)",
                                   new Object[] { pManNo, pPeriod, ...... });
              // Commit
              getDBTransaction().commit();
              // Refresh VO (re-query & set currentRow)
              getMyVO().refreshQueryKeepingCurrentRow();         
              return results; // TRUE if ok
        }I want the " refreshMyCol()" method to refresh only the current row and not the whole table...
    Regards
    Nicolas

  • Automatic Refresh of LOV

    Hi,
    When I click on LOV button for a new transaction, the LOV is filtered by the value that was used in the previous transaction.
    Is there a way to automatically refresh the LOV so that all values appear?
    I am using jdeveloper 10.1.3
    Thanks

    Hi,
    there are two aspects in your question that I cannot make sense of
    1. what has the "transaction" to do with it
    2. There is no LOV in ADF Faces of 10.1.3, so which technology are you talking about ?
    Frank

  • Programmatic VO with LOV

    I am trying to use programmatic VO with LOV. View is initialized properly. But when i click go button in LOV , It is not showing any values from my VO.
    Any help to solve this issue?

    Thanks .......
    Did you check the final query at runtime? I have mulitple queries to create my VO. SO i have stored my query result values into ArrayList object.I used this ArrayList's Object to create my VO programmatically. I checked each query separately. Every queries are returning some set rows and my result ArrayList is also having records.
    Are you running it from Jdev?I am running it from JDev only.
    If runtime query is fine,
    then only thing wrong could be the mappings.I hope mapping will be correct. I have checked it with SQL VO, It is working fine. While i combine it with Programmatic VO.
    can we use programmatic VO for LOV?
    Thanks........

  • Auto Refresh Linked LOV's

    Hello,
    I have a form with two LOV's and they
    are linked to each other. One the first changes of value the page should refresh and the select of the second one is adapted (via bind variables ).
    All this works fine, when I put the LOV's on items of the table. If I put the first LOV on a item, added later to the form, he tries to refresh, but doesn't fill up the second LOV.
    Is this a bug ?
    Thanks.

    HI
    <p>apologies, but now when I click on LOV Javascript errors are generated!
    <p> I don't know why
    <p> what could be wrong here
    <p> can anybody please suggest!
    <p> when I click on javascript icon, it show message
    "value is null or not an object"
    how do I debug this?
    thanks
    - Ejaz

  • LOV Refresh based on the business rule

    My requirement is to refresh the LOV based on a value selected in another LOV. Say the LOV required to be refreshed as LOV2 and the LOV in which the value is selected and which triggers the LOV2 refresh is LOV1. Both the attributes of LOV1 and LOV2 are present in the same VO. Lets say attribute A1 for LOV1 and A2 for LOV2. The VA for LOV2 is present at EO Level and there are 2 view criteria and 4 bind variables in this view accessor. 3 of the bind variables are assigned values at the EO level by calling get method of another EO. For the value selected in LOV1 (i.e. it displays values of the attribute present in UI Hints of View Accessor) the corresponding attribute value present in the VO is required and that should be passed to the bind variable so that the query gets executed for LOV2 and LOV2 gets refreshed.
    The few constraints which I have here is
    1. View Accessor of LOV2 cannot be written at VO Level because 3bind variables should be set at the EO level as there is an association present
    2. VA Override is not permissible as it throws an error because other bind variables are set at the EO Level
    3. I can have a value change listener and pick the attribute Value when the user selects it and store in a page flow scope. But this value is the UI Hints value (which is displayed in the UI ) , I require the corresponding attribute value of this UI Hints attribute value being displayed.
    4. I was not able to use a view link for this scenario because I've to use a DECODE functionality in where clause.

    Hi Gary,
    You can have try by using following tab :
    The table CRMD_ORDER_INDEX: Contains GUID’s of all the transactions in CRM. Also provides a link to connect Business Partner with the CRM Transaction (Contains Header as well as Item details for a Business Transaction.Note: This table can be used for search based on the Partner No ).
    Hope this will help you
    Regards,
    Arjun
    <b>Reward points  if it helps</b>

  • LOV's auto refresh and having unique values.

    Hi, I'm having LOVs connected with few attributes of a table, and those fields are used in view criteria of the table.
    This view criteria is used in the af:query component as search fields.
    To avoid the duplicates in the LOV, i created a separate view for each of the attribute, using the distinct key , and connected them with the attribute via view accessors. So that the af:query component , search field drop downs can give unique value of the column.
    There is an another requirement, to refresh the LOVs of the search field, when there is a change in the database. To accomplish this auto refresh property of the view's query, i added the PK of the table with each view. By doing this i can see the latest values of the database in the UI . ie, the LOVs of af:query getting the changes of database.
    But this one causing, the duplicate values to be in LOV, and the distinct key word in the view's query will not work because of the PK of table is added to query.
    I tried different ways to query , like groupby . But no success.
    I need both auto refresh as well as unique values in the LOVs of the af:query . Could some one point me a reference to solve this. Thanks .
    Edited by: user642477 on Oct 7, 2010 10:52 AM

    user642477 wrote:
    Hi, I'm having LOVs connected with few attributes of a table, and those fields are used in view criteria of the table.
    This view criteria is used in the af:query component as search fields.
    To avoid the duplicates in the LOV, i created a separate view for each of the attribute, using the distinct key , and connected them with the attribute via view accessors. So that the af:query component , search field drop downs can give unique value of the column.
    why you have done that what is your reason?!!! it seems so wierd to me? you could easily add distinct on query of the viewobject!

  • LOV dynamic refresh in CR2008 with BOXI3.1

    Hi,
    I'm in a confusion whether the LOV for the prompts refresh dynamically when the crystal report is opened.
    It is a universe based report. I heard, in XIR2 it is a problem and it wont behave similar to WebI.
    When i tried in CR 2008 with BOXI3.1 unvierse, it DID refreshed dynamically and the LOV was changing for every user as row level security was applied. But at times, it doesnt refresh, which puzzles me.
    Will the LOV refresh dynamically in CR2008 with BOXI3.1or it will not?
    Please confirm.Many thanks.

    Yes it refreshes the LOV from Universe. For more details please go through the following document
    [http://www.sdn.sap.com/irj/boc/index?rid=/library/uuid/20984c2b-17f1-2b10-1091-d18977f7cd8f&overridelayout=true]
    in CRXIR2 if it is not refreshing the LOV from universe we have to follow these steps
    Registry Entry Information
    Subkey: HKEY_LOCAL_MACHINESOFTWAREBusiness ObjectsSuite 11.0Crystal ReportsDatabaseAlwaysRefreshUniverseLOV
    Type: STRING
    Recognized Values: Yes, 1
    Default Value:
    Creation Method: Hot Fix Installation
    Subkey: HKEY_LOCAL_MACHINEsoftware usiness objectssuite 11.5crystal reportsdatabaseAlwaysRefreshUniverseLOV
    Type: STRING
    Recognized Values: Yes,1
    Default Value: 0
    Creation Method: Hot Fix Installation
    Known limitations:
    When this registry key is in use, it may take longer to open a universe report in Crystal Reports designer or to view a report on-demand in a Business Objects Enterprise web application. Performance is affected because the Business Objects Enterprise Web Intelligence Report Server is called when a report that is based on a universe is opened, which adds more work to the server.
    In XIR2, the "Always Refresh List of Values" check box must be selected within the report. This option is on the Query Panel of Crystal Reports, within the properties of the object in the Query Filters section for each object that uses a list. By default, the "Always Refresh List of Values" option is enabled.
    In a universe, the object being used must have the "Automatic refresh before use" property enabled. For more information, see the "Using lists of values" section in chapter five of the Designer Guide.
    HTH
    Raghavendra.G
    Edited by: Raghavendra Gadhamsetty on Nov 18, 2009 6:48 PM

  • LOV Automatic Refresh

    Hello,
    I'm using an automatic refresh list of values, which works fine in WebI,
    in editing mode (java). My clients use the HTML/PDF view of the report, and
    have to refresh the LOV manually.
    Has anyone an idea of how to make the LOV behave the same in Java and HTML
    Thank you
    Martin

    Greetings,
    What happen if you set the document to refresh on open?
    Did you by any chance tick the box at universe to export LOV with universe? If yes you may need to untick this box and set the Automatic Refresh for the LOV.
    You may need to purge the LOV before experting the universe after unsetting the export with universe button.

  • Automatically refreshing LOV with user restriction failes

    Hi,
    I have a report based on Crystal Reports. This reports includes a dynamic parameter (LOV) based on one field in an SAP Query. This SAP query contains an user exit, so that each user can only see "his" data.
    Based on that user exit, the LOV of the parameter shows only these values for which the user is qualified for.
    When User1 opens the report in InfoView on his own PC he gets "his" LOV, chooses the parameters and runs the report, when User2 on his PC also opens the report a short while after User1 runs his report, then User2 gets the LOV from User1. That means Crystal uses the LOV from the cache and does not refresh the LOV for each execution of the report.
    Does anybody has a solution for that?
    THis is a very annoying problem.
    (I've already done a search on this forum and found someone with exactly the same problem...the post is marked as answered but without explanations...)

    hi antinous,
    this would most likely have something to do with the way the enterprise crystal reports servers are caching the reports and doesn't really relate to the design of the report.
    you can double check this by running the report in the crystal reports designer, and then rerun the exact same report also in the crystal reports designer using different user credentials...this is of course just to double check that the LOV is indeed bringing back the appropriate data for each user.
    if the LOV's work fine in the designer and if you haven't found the answer you are looking for then you may wish to repost this to
    SAP BusinessObjects Enterprise/Edge, and SAP Crystal Reports Server Administration
    BI Platform
    you'll have more luck there as this would be the forum that looks after those servers.
    jamie

  • Automatically refreshing LOV failes

    Hi,
    I have a report based on Crystal Reports. This reports includes a dynamic parameter (LOV) based on one field in an SAP Query. This SAP query contains an user exit, so that each user can only see "his" data.
    Based on that user exit, the LOV of the parameter shows only these values for which the user is qualified for.
    When User1 opens the report in InfoView on his own PC he gets "his" LOV, chooses the parameters and runs the report, when User2 on his PC also opens the report a short while after User1 runs his report, then User2 gets the LOV from User1. That means Crystal uses the LOV from the cache and does not refresh the LOV for each execution of the report.
    This is absolutly NOT correct. Does anybody has a solution for that?
    I know that Crystal has problems with dynamic LOV when using Universes, but don't use an Universe in this report.
    Please help!
    Thank you,
    Stefanie

    This is a WAG at best, but a thought none the less...
    Might there be an entry in the system registry or .ini file that is used to tell Crystal how old a cached LOV can get before it is refreshed?  Perhaps that could be changed to "zero"...  (Modify the registry at your own risk!  :->  )
    HTH,
    Carl

  • Problem with refresh issue in Table Overflow Area for LOV in edit mode

    Hi Friends,
    I am facing a problem with LOV if i keep this in Table Overflow area,
    When i select a Employee name from the List of Value clicking on select button it will not refresh the lov to display the currently selected Employee Name, but if i click on show and hide link of Table overflow the selected employee name will be displayed.
    But the if move the same lov item from Table Overflow area to Table layout it works fine.
    I tried my best to look into this but i could not, can any one suggest me what i need to do for this refresh issue.
    Regards,
    Rahul

    Hello Rahul,
    Strange, it's working for me.
    I assume you added Employees as reference entity to your updatable entity in your ViewObject.
    Did you uncheck "Key attribute" in EmployeeId of your reference entity?
    Anything in the log?
    Groeten,
    HJH

  • Lov need to be refreshed automatically

    Dear All,
    I have report with 7 prompts (3 are optional) . Whenever we refresh the report all the prompts are displayed. Now requirement is when we click on any of the prompt in view mode, LOV list with updated Values need to be populated for the selected prompt.
    I tried using "Automatic refresh before use" option still its not refreshing automatically after selecting any prompt. We still have to refresh the LOV list manually.
    Can we do something for auto population of LOV?
    I am working on BOXI 3.1, WEBI
    Your help is appreciated. Thanks in advance.

    Hi Saurabh
    We had the same issue in our universes. I found that when the prompt has default value, LoV is not refreshed automatically even with "automatic refresh" option for the LoV...
    For example, in our case we used such condition objects to allow selection all companies by entering asterisk:
    @Select(Company\Company No.)
        IN @Prompt('Company Numbers:','A','Company\Company No.',multi,free,,{'*'})
    or
    '*' IN @Prompt('Company Numbers:','A','Company\Company No.',multi,free,,{'*'})
    List of values is not refreshed automatically with asterisk as default parameter. Without default value, it is working fine:
    @Select(Company\Company No.)
        IN @Prompt('Company Numbers:','A','Company\Company No.',multi,free)
    or
    '*' IN @Prompt('Company Numbers:','A','Company\Company No.',multi,free)
    Regards,
    Dmytro

Maybe you are looking for

  • Credit Note to be adjusted against sales order value

    Hi Experts, The scenario is as follows: a. Customer is having credit note(balance) in SAP CRM b. In subsequent order the credit note value to be adjusted against the order value c. Customer is advance payment only d. The sales order value to be calcu

  • Basic Difference: Copy Control Settings

    Dear All, I have got confused over Copy Control Settings b/w VTFA & VTFL. Please help me to understand the both (with differences). Best Regards, Amit.

  • Small qn in Process Chain

    Dear Guru's I need a small Clarification regarding Pchains.. Suppose i have a process chain in which i have to add a process ''Delete PSA Request'' in this process if i keep 50 PSA's object name, Then will all these PSA data gets deleted parallelly o

  • Svc:/system/ca-certificates:default in maintenance

    After Upgrade from U1.SRU19 to U2.SRU5 the ca-certificates SMF is in maintenance -bash-4.1$ svcs -x svc:/milestone/multi-user-server:default (multi-user plus exports milestone) State: maintenance since January 10, 2015 01:23:34 PM CET Reason: Start m

  • Components problem

    Hi. I have problem. When I import the file using simple code, the components not working. This is how I import swf file to my project: function otworz_napisz(event:MouseEvent):void { var myLoader:Loader = new Loader(); var urlRequest:URLRequest= new