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!

Similar Messages

  • LOV with auto suggest and multiple check boxes

    Is it possible to implement LOV with auto suggest and multiple check boxes using ADF faces components?. Any alternative implementation/pointers are appreciated.
    Regards,
    Surya

    Hi,
    build it yourself as a task flow opened in a popup. see: http://www.oracle.com/technetwork/developer-tools/adf/learnmore/69-custom-lov-with-btf-276178.pdf
    Frank

  • Broadcasting of workbooks, auto-refresh and other questions

    Hello Reporting gurus.
    Our users run BEX Analyser queries but this is evolving towards more automation and fancy things. A lot of threads exist on the subject but I have not been able to find clear answers. We are on BI 7.
    1) How do we use the broadcaster to refresh workbooks and output the results to a network share drive.
    2) Queries being part of the workbooks work with user input variables. Do I have to change all queries (or create new ones identical) with user exits variables to fill in the fields for auto-refreshing w(ith let say the current year and current fiscal period etc...) ?
    3) Is it possible to create a parameter input screen to pass on variables values to the broadcaster before the auto-refresh takes place so that I don't have to create user exit variables ?
    4) How can we view workbooks with the BEX WEB Analyser ? Or do we have to create an application with WAD ?
    Thanks

    Hi Yves,
    in Analyzer you have an menu entry publish with BI broadcaster, then a broadcaster will appear. there you can create a setting. inside that setting you can use a variant and with SPS 13 also variable sets. There you can define the users who should receive the updated workbook by mail. It is not possible to save to file system, but you can save in Portal.Web Analyzer is only to use with WAD and is not able to process Workbooks.
    best regards,
    kai

  • Appropriate component with auto complete and list of values

    Hello,
    I am using Jdev 11.1.1.6.0 with ADF BC and ADF Faces as technology stack.
    I have a use-case and right now struggling to find the appropriate component/implementation for same. The requirement is:
    1. User should be able to type and tab out to auto complete with perfect match.
    2. Not all users are expert so they should be able search and select the items from list
    3. Minimum key press should be there. E.g. auto complete should require only one tab press to complete and go to next field
    inputComboboxListOfValues fits most of above except #3. One tab simply selects the item from list and second tab is needed to move out to next attribute. Is there a way to force one tab to auto-complete and move out to next attribute?
    Tried simple inputBox with autoSuggest behavior but it lacks in opening of search and select feature that LOV component provides. Another drawback is that you need to wait for auto suggest list to appear and select before moving out to next attribute.
    This is needed on a very highly frequent used screen, so no speed and key press compromise is expected. Most users are expert and they know the code, so just type and tab out is expected but at the same time if typo happens and code does not exist in valid list then pop-up should appear to search and select.
    Is there a way to achieve this in ADF application (this is very well implemented in Oracle Forms application)?
    Any help is highly appreciated.
    Thanks,
    Jai

    Hi Frank,
    I understand the single matching value and expecting move out in single tab for perfect match only. inputComboboxListOfValues selects the entry in one tab [even for single matching value] and user has to press another tab to go to next attribute.
    Are you suggesting that it actually moves out to next field in single tab for "single matching value"?
    Thanks,
    Jai

  • Auto-Refresh and Order By for view accessors

    Hi,
    We have set auto-refresh to true on a VO(LovVO) in shared AM and used the same to create an lov in another VO. Now if we have Order By in LovVO then we get the exception:
    ORA-29983: Unsupported query for Continuous Query Notification
    This is because of the Order By clause. When i remove the order by then there is no error. But we need the data to be ordered. So I have added the below code LovVOImpl.java executeQueryForCollection method:
    if(this.getSortBy() == null){
    this.setSortBy("Name");
    super.executeQueryForCollection(object, object2, i);
    and this is working fine. Is there any other declarative solution for this scenario?
    I tried setting the order by in the view accessor but that also appends to the sql query and throws the above error.
    Thanks
    Thiru

    Please see http://download.oracle.com/docs/cd/E11882_01/appdev.112/e17125/adfns_cqn.htm#CHDGEBFH. Look like OREDER By is supported only in Best-Effort mode.
    When you call .setSortBy("Name"), it happens in memory not part of SQL, apparently that works

  • Safari auto refresh and iCloud

    When composing an email in the webmail application at the iCloud website, the Safari screen on my MacBook Air will refresh every few minutes, causing me to lose the work I have done. I end up  with a blank screen for the window that I was composing the email in. I don't recall seeing this problem on my other Macs, which are not MBAs. Does anyone have an idea on how to stop this auto refresh? I tried turning off Java Script but iCloud requires it to work.

    Well, perhaps I have fixed this problem. I cleared out all the cookies on my MBA yesterday. I tested this again today and so far, so good. I went 5 minutes without the screen refreshing on me. We'll see if it stays fixed.

  • Need PlSQL code to find out the column/combination of columns from a given table which will be unique values

    Given a table with some columns and data associated with that. Need to find out a column or a combination of some columns, so that the values or combination of values will be unique in the table.
    The table and number of columns and the columns will be dynamic.
    Can you please help me with the solution?

    f8d0dcea-cdf0-4935-8734-632fe021456c wrote:
    No key is defined in the table.
    Suppose a table contains 20 columns then I need the unique combinations of all columns.
    Example: A table 'Employee' has 4 columns: Emp_No, Emp_Name,Passport_No,Emp_Designation. No key is defined for Employee table. Need to find out which column(single column and combination if columns) have unique values. Like, First check if Emp_No is unique then check Emp_No+Emp_Name is unique, then check if Emp_No+Emp_Name+Passport_No is unique, then check Emp_No+Emp_Name+Passport_No+Emp_Designation is unique.
    Then again try with the combination of Emp_No+Passport_No and so on. In this way I need to find out all the combinations having unique values.
    As Paul says, that will be a waste of time, as it will taken a lot of processing for all the possibilities, checking all the data each time to determine which combinations of columns provide uniqueness.  What happens if someone inserts or deletes some data whilst your doing it?
    You'd be quicker to manually look at the tables, and make an educated guess and then test for uniqueness with a quick query on that guess.

  • Using firefox 37 it auto refreshes when I enter @ why

    os is win xp
    Have two issues
    a Everytime i enter @ or the _ symbol while logging into any website the page auto refreshes and I am not able to login this problem is also encountered in ie 8
    b Also a default yahoo search tab opens up everytime I start firefox I have tried going to about config and change settings it works when i restart ff but next day it back to yahoo why

    I do not know why, but it does sound like there is a hot key that may be affecting this, its a guess. Are you holding any other key when this happens?
    *[[Keyboard shortcuts - Perform common Firefox tasks quickly]]
    IF this is not the case, try Firefox Safe Mode to eliminate if this is the issue with an add on: [[Troubleshoot Firefox issues using Safe Mode]]

  • Auto-sleep won't work when web pages auto-refresh

    Dear Apple,
    Around 4 years ago, I noticed that my computer stopped going to sleep. I first noticed it shortly after adopting Gmail for my email platform and was subsequently able to isolate the issue down to Gmail and other websites, such as Huffington Post, which auto-refresh. Apparently, any website that auto-refreshes at shorter intervals than the auto-sleep is set to kick in, prevent the computer's auto-sleep function from activating.
    I have spoken at length with AppleCare about this issue and understand that this is "by design." For instance, we wouldn't want the computer to constantly go to sleep while watching a movie or downloading and conversely, if we are actively working at our computers it's nice that Gmail auto-refreshes and keeps us appraised of incoming mail. However, since the vast majority of users now leave their browsers with multiple tabs open and due to the fact that more and more websites now auto-refresh, the auto-sleep function has become outdated and non-functional. While users can always manually put their computers to sleep, everyone at some time or another forgets to do so. This is exactly why computers are supposed to auto-sleep in the first place. Aggregated across millions of users, this results in a huge waste of electricity.
    I've been writing/calling Apple (through AppleCare and the online feedback form) about this issue for 4 years now. I keep hoping that with each operating system release, some sort of "smart auto-sleep" function will be incorporated that will recognize when websites auto-refresh and still allow auto-sleep to kick in. Unfortunately, this does not appear to be the case in Lion.
    I work in the energy efficiency field, specifically in lighting, and care deeply about this issue. I consider Apple to be an industry leader on this issue as well. I'm not familiar with the technical side of this issue, but I assume that with the right type of programming, the operating system could override a webpage's auto-update feature and activate auto-sleep, while not interfering with functions where a user would not want the computer to go to sleep, such as watching a movie. With Lion, Apple has focused its energy on making the computer adjust to the user,rather than the user adjusting to the computer. Yet, in this case, it appears to be the other way around.
    It is time for Apple to update the auto-sleep function so that it takes into account websites that auto-refresh. When I set my computer to auto-sleep after so many minutes, I want it to do so, regardless of whether I have a browser with auto-updating websites open. Apple must take this issue seriously, as the wasted electricity is too important to ignore any longer.
    Sincerely,
    An Energy-Conscious User

    I am obviously talking to Apple AND I posted this letter here, because a lot users seem confused about why their computers won't sleep. Even most AppleCare reps are confused. In the past, I couldn't find much in the way of explanations pointing to this issue, so I thought I post it here in case other people are looking for an explanation.
    The auto-sleep function was built before websites auto-updated and needs to be updated to accomodate them. For the average user, it doesn't make sense for the computer not to sleep just because Gmail is open. Just because some website auto-refreshes in my browser, doesn't mean I never want my computer to sleep. By the same token, if I wanted to turn off auto-sleep I could easily do so from within Energy Saver Preferences. The two should be independent, so the user has the choice.
    Why should I have to close my browser every time I walk away from my computer in order for it to sleep? I've acknowledged that in certain circumstance it makes sense for the computer not to auto-sleep: watching a movie, uploading, etc, but Apple has already accounted for those instances because the computer does not auto-sleep when those programs are running. All I'm suggesting is making the auto-sleep mechanism more sophisticated so that it isn't overridden by websites auto-refreshing. 
    Why the negative attitude, dwb? Based on the amount of time you spend in these discussion forums, you obviously never turn your computer off, so this doesn't really affect you. Maybe it's time to step outside and get some fresh air?

  • Why can't we disable auto-reloading without having the nag bar every time it does its job?

    Blocking page reloading (or auto-refresh) and being "warned" about a blocked page reload, should be two, separate items in Prefs, or config. Period. If someone wants to be "alerted" or "warned" every time their settings are acted-upon, so be it, they can choose to be warned. As it stands, the only way to block the annoying auto-refresh, is to choose the annoying nag.
    Where is the logic in that? What next? Maybe we should have an alert every time a new tab or window opens, that says, "Firefox just loaded a page you requested."
    Why not follow the structure, already established, over and over, in Firefox's preferences, whereby a user can make one choice, and then there are sub-items that can also be chosen, or not chosen? (i.e., 1-Accept cookies from sites (check, or no check), a) Accept third-party cookies (select from Always, From-visted, or Never)?

    hello, this is a primarily community-run support forum so it's probably not the right place to request features (we cannot implement any features & devs won't read here).
    please either use https://input.mozilla.org/feedback for general feedback or if you feel that it's a missing feature in the browser file a bug at bugzilla.mozilla.org.

  • Auto-Suggest feature in Combo-box LOV is not displaying non-unique values

    Hi,
    I have an auto-suggest feature implementation on a combo-box lov that displays the name and email-id of a list of people. There are non-unique names in the back-end, for example :
    Abraham Mason [email protected]
    Abraham Mason [email protected]
    But when I use the auto-suggest feature and type in, say 'Ab', instead of showing both the Abraham Masons the auto-suggest displays only one of the values.
    As in the example above the email-ids of the two Abraham Masons are different and unique.
    If I use the conventional drop down menu of the combo-box then both the values are visible.
    Is the auto-suggest feature implemented in a manner so as to display only unique values?
    This is the implementation of the auto-suggest feature that I have done -
    <af:column headerText="#{bindings.RqmtAtLevel1.hints.Owner.label}"
    id="c23" sortable="true" filterable="true"
    sortProperty="Owner"
    filterFeatures="caseInsensitive">
    <af:inputComboboxListOfValues id="ownerId"
    popupTitle="#{ResourcesGenBundle['Header.SearchandSelect.Searchandselectanobjectusingad']}: #{bindings.RqmtAtLevel1.hints.Owner.label}"
    value="#{row.bindings.Owner.inputValue}"
    model="#{row.bindings.Owner.listOfValuesModel}"
    required="#{bindings.RqmtAtLevel1.hints.Owner.mandatory}"
    columns="#{bindings.RqmtAtLevel1.hints.Owner.displayWidth}"
    shortDesc="#{bindings.RqmtAtLevel1.hints.Owner.tooltip}"
    autoSubmit="true">
    <f:validator binding="#{row.bindings.Owner.validator}"/>
    <af:autoSuggestBehavior suggestedItems="#{row.bindings.Owner.suggestedItems}"/>
    </af:inputComboboxListOfValues>
    </af:column>
    Thanks,
    Anirudh Acharya

    Hi,
    don't find a bug entry about this, so if this indeed is a defect then this has not been filed. Do you have a test case ? If you have please zip it up and send it in a mail to me. My mail address is in my OTN profile (just click on my name until you get to the profile). Pleas rename the "zip" extension to "unzip" and mention the JDeveloper release you work with. The test case should work against the Oracle HR schema.
    If you need to track the issue, I suggest to file a service request with customer support yourself
    Frank

  • How to refresh page after selecting value from LOV item , in a tabular form

    Hi ,
    I have a tabular form, which contains 2 items(columns), of type "Select List - named LoV".
    Now, couple of issues here.
    1.
    2nd item(column) in tabular form, that LoV should get populated based user's selection value in first item LoV. So how do i refer to the value, that user selected in first item's LoV? I will have to use this reference in LoV query of my 2nd item ( on this tabular form)
    2.
    How can we refresh the page, when user selectes value in first item ( from LoV). As this is a tabular form, here item type is Select List, we dont have an option to pick item type as Select List with Submit. So problem is that when user selects value for item 1, refresh does not happen and item 2 LoV does not get populated as per user's selection in item 1.
    Please help here. Would be really appreciated.
    Thanks and Regards,
    Rave.

    Thanks Ben and Dan for your responses.
    Ben, your solution helped me with refresh of page, as page got submitted.
    This answers to my 2nd question. However, I still need to know first question, which basically is, how do i refer to the value, that user selected in first item LoV.
    Issue is, I selected the value in first item LoV, it got submitted and page fot refreshed. But after page refresh, first item LoV loses its value that I had selected last time. It does not retain the selected value after refresh.
    I have an unconditional process, that on every submit(refresh) of page, I set my items with their corresponding values. But problem is what do i mention there to refer to this item.
    I looked in view source of my page, this item is referred as f03.
    So i used "apex_application.g_f03", to set this item to its value, in my uncoditional submit process. But it did not work. I tried to refer this item as "f03" in this unconditional submit process. But still it did not help, the selected item loses its value after page refresh(submit).
    Any help here would be really appreciated. Please suggest how do we refer to this item's selected value.
    Thanks and Regards,
    Ravi.

  • Using Excel 2007 to display and auto-refresh planning.

    Hi all,
    a customer wants to display a simple planning screen on a 24" monitor.
    We're using an old domain pc, with domain user (planning) logged on to display the planning file.
    We've configured the worksheet so that multiple users can edit it.
    I've also found the settings which auto-update the file. I was amazed that this is standard functionality.
    Although, it doesn't work as we expected. It goes well, but when too much users work in the file, some users still get the error message: 'can't open file because it's already in use'.
    This does NOT happen when the file is not constantly opened by the 'planning user'.
    So that's one issue, probably caused by the 'planning user', having the file opened 24/7.
    Another issue is that the file stops auto-refreshing after a while. I didn't find any pattern in that.
    So basically, what the customer needs is:
    Display Excel worksheet
    Auto-refresh
    I've found some nice articles about SharePoint and Excel services, but unfortunately they're running SharePoint 2010 Foundation, which does not include Excel services...
    Is there any other way or tool to achieve this, without using the Excel-built-in options?
    Or maybe there's a fix for that problem?
    Thanks in advance.

    Hi LunAds,
    I'm afraid you have just discovered how bad these features are implemented in Excel: they just don't work properly and I always advise against using them for any serious long-term solution.
    If you do not have Excel services, then editing the document on the server (which would prevent lots of problems) is out of the question indeed.
    Alternatives depend a lot on your needs.
    For example, you could use sharepoint lists that the users can edit and then import those lists into Excel for reporting purposes.
    But if this is relational data (parent-child tables, which is very often the case) then a database solution is probably the best route to take.
    Regards, Jan Karel Pieterse|Excel MVP|http://www.jkp-ads.com

  • LOV query is invalid, a display and a return value are needed

    hello - i am having this issue and can't get around this when creating a popup LOV based on sql.
    below is LOV query. as you see the view has only two columns. I tried various ways by giving alias to columns in query but nothing works. What did I miss here?
    select description,inventory_item_id from xx_apex_inv_v
    1 error has occurred
    LOV query is invalid, a display and a return value are needed, the column names need to be different. If your query contains an in-line query, the first FROM clause in the SQL statement must not belong to the in-line query.

    Did you try it like this?
    select description d, inventory_item_id v from xx_apex_inv_v

  • 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

Maybe you are looking for