Sort in a lov

Hi,
I am using designer 6i for generating forms...
How can I sort a lov with an order witch is different than the one used by default ( I have in a look up table...)
example : I want to sort in alphabetical order of a libelle...
thanks for help!

set order by in the prop. sheet of the table in the LOV

Similar Messages

  • Extra sort field in LOV with Union

    I'm building an LOV that is based on a single table, but the list needs to be broken up into two groups to show preferred vs. non-preferred values. I would like to display the preferred values in the table first (sorted) and then the non preferred values (sorted) second. I am able to do this in SQL with a UNION and by creating an extra "sort" column for the ORDER BY clause. The problem is, Dynamic LOV only allows a query to return exactly two columns, hence I can't include my sort column. Below is the query that works in SQL Builder, but no LOV. Any suggestions on how I can do this in an LOV without including the 3rd column?
    /* Preferred companies */
    select     CC_COMPANIES.NAME||'*' as display_value,
         CC_COMPANIES.ID as return_value,
    'A'||CC_COMPANIES.NAME as sort_value
    from     CC_WATCHLIST CC_WATCHLIST,
         CC_COMPANIES CC_COMPANIES
    where CC_WATCHLIST.ITEM_ID=CC_COMPANIES.ID
    and CC_WATCHLIST.MEMBER_ID=:CC_MEMBER_ID
    and      CC_WATCHLIST.CATEGORY_ID = 6
    UNION
    /* the rest of the companies */
    select     CC_COMPANIES.NAME as display_value,
         CC_COMPANIES.ID as return_value,
    'Z'||CC_COMPANIES.NAME as sort_value
    from     CC_WATCHLIST CC_WATCHLIST,
         CC_COMPANIES CC_COMPANIES
    where CC_COMPANIES.ID not in (select CC_WATCHLIST.ITEM_ID from CC_WATCHLIST where CC_WATCHLIST.MEMBER_ID=:CC_MEMBER_ID
    and      CC_WATCHLIST.CATEGORY_ID = 6
    and CC_WATCHLIST.ITEM_ID=CC_COMPANIES.ID)
    ORDER BY sort_value

    Jeff,
    Try this:
    select x.display_value, x.return_value from (
    /* Preferred companies */
    select CC_COMPANIES.NAME||'*' as display_value,
    CC_COMPANIES.ID as return_value,
    'A'||CC_COMPANIES.NAME as sort_value
    from CC_WATCHLIST CC_WATCHLIST,
    CC_COMPANIES CC_COMPANIES
    where CC_WATCHLIST.ITEM_ID=CC_COMPANIES.ID
    and CC_WATCHLIST.MEMBER_ID=:CC_MEMBER_ID
    and CC_WATCHLIST.CATEGORY_ID = 6
    UNION
    /* the rest of the companies */
    select CC_COMPANIES.NAME as display_value,
    CC_COMPANIES.ID as return_value,
    'Z'||CC_COMPANIES.NAME as sort_value
    from CC_WATCHLIST CC_WATCHLIST,
    CC_COMPANIES CC_COMPANIES
    where CC_COMPANIES.ID not in (select CC_WATCHLIST.ITEM_ID from CC_WATCHLIST where CC_WATCHLIST.MEMBER_ID=:CC_MEMBER_ID
    and CC_WATCHLIST.CATEGORY_ID = 6
    and CC_WATCHLIST.ITEM_ID=CC_COMPANIES.ID)
    ORDER BY sort_value) xJoel

  • User parameter LOV sorting

    Is there any way to sort a parameter LOV in descending order? I can't find that option anywhere.

    Hi,
    Sreedhar is correct if the select generating the LOV was in descending order,
    If not it will just show the LOV in the order it was created.
    If the LOV is generated from a custom folder then change the order there,
    If not then you can create a new list of values and replace the existing one.
    You can also use the "alternative sort" to sort your list of values, there are a few posts here regarding that issue...
    Good luck

  • Disable sorting in LOVs?

    Hi,
    We have a lot of LOVs in our ADF 11g application. We noticed that using the sort function of the table inside the LOV sometimes causes errors. Since we don't need the sort functionality in our LOVs (we have appropriate ORDER BY statements in the queries that fill them), we would like to disable the sort function in LOVs. I can't find a way to do this. Am I missing something? Or is it simply not possible?
    Best regards,
    Bart Kummel

    Hi Bart,
    I don't know if I've understood the requirement well enough.
    You mean, you have an LOV as one of the column in your table, for which you you want to disable the sorting?
    If yes, you can set the sortable property to false.
    Something like
              <af:column sortable="false" id="c1" width="105">
                <af:selectOneChoice label="Label 1" id="soc1" ... >
                  <f:selectItems id="si1" .. />
                </af:selectOneChoice>
              </af:column>-Arun
    P.S : Also make sure to remove if you have any sortProperty set for the column

  • Sorting LOV

    Is it possible to define the sort/order of LOV items?
    Right now when I press an 'E' key, EBS CRM will automatically change my 'E' to 'email Tier I%' and displays the matching items as 'Email Tier II, Email Tier III, Email Tier I' (in that order)
    What we'd like is for it to display 'Email Tier I, Email Tier II, Email Tier III' (in that order)
    I've looked into Customizing through Diagnostics>Custom Code>Personalizations. However, I see nothing in there that involves LoVs or sorting options. And searching OTN has yet to turn up anything of value with respect to my question..
    Is there anything one can do to make this function as requested in EBS?

    Take a look at the built-in type 'Create Record Group from Query'. This allows you to build your own custom record group for the LOV (within the restriction that you need the same number of columns in your custom group as in the seeded one) and to specify order by criteria.
    Once you've created your record group, you then assign it to the property type 'LOV' where target object is the field you're applying the lov to, property name = 'GROUP_NAME' and property value = your custom record group name.
    Regards,
    Jon

  • My new macbook pro has a dull, yellow tinted screen.

    I purchased a (new, with warranty) standard macbook pro 13" on eBay to downsize from my 15" 2010 model, and the screen is notably duller and has a yellow overcast to it. I have tried to calibrate the screen which helps a little bit but it still gets on my nerves and every time i go from looking at my iphones screen to my laptop screen i cant help but notice how it looks. Ive already had the LCD replaced and the screen was just as yellow. From what I've read on here already it seems to be quite difficult to get a proper working screen replacement from Apple but i was wondering did anyone with this problem get it sorted and how they got it sorted? I love Apple and could never go back to a PC but this screen is ruining it for me.

    Read the attached link and see if this helps:
    http://http://support.apple.com/kb/HT2341?viewlocale=en_US
    Ciao.

  • Adding All Records In Report Parameter

    This is in addition to my previous post.
    I have this code as the source to a lov
    SELECT l.extkey||' - '||l.longdescr a, l.clocid b
    from udm_cloc l, udm_cust c, udm_lde lde
    where l.custid = c.custid
    and c.ldeid = lde.ldeid
    and lde.ldekey = :F140_LDEKEY
    and l.closedate is null
    and l.orddcid = :P9_DCID
    union
    select 'ALL Records' a, -1 b from dual
    ORDER by 2It is working fine except I need to change the ORDER BY clause to
    ORDER BY to_number(l.extkey) asc
    When I do that, I get an error
    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.
    Cheers
    Gus

    Gus C wrote:
    This is in addition to my previous post.
    I have this code as the source to a lov
    SELECT l.extkey||' - '||l.longdescr a, l.clocid b
    from udm_cloc l, udm_cust c, udm_lde lde
    where l.custid = c.custid
    and c.ldeid = lde.ldeid
    and lde.ldekey = :F140_LDEKEY
    and l.closedate is null
    and l.orddcid = :P9_DCID
    union
    select 'ALL Records' a, -1 b from dual
    ORDER by 2It is working fine except I need to change the ORDER BY clause to
    ORDER BY to_number(l.extkey) asc
    When I do that, I get an error
    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.Create your query as an in-line view, including any additional columns required for sorting, and perform the sort and final LOV projection in the outer query:
    select
              lov_label
            , lov_value
    from
              (select
                        deptno || ' - ' || ename                lov_label
                      , empno                                   lov_value
                      , /* to_number here if required */ deptno lov_sort
              from
                        emp
              union all
              select
                        '- All -'
                      , null
                      , null
              from
                        dual)
    order by
              lov_sort nulls first

  • How to restore safari

    My computer froze and it was necessary to use the 'apple c' while starting up with the osx install discs. Once everything was restored (the computer only used 2/5 install discs), my safari will not respond. I am unsure what to do.

    Brillianrt! Worked like a charm.
    Then I found an easy solution to alphabetizing that doesn't require 3rd party software in a Macworld article:
    "Without resorting to external tools or dragging links about, it’s actually fairly simple to order the list. Make sure you can see a Finder window, or your Desktop, and the Safari Bookmarks window at the same time. Now just drag the folder (or folders) you want sorted from the Safari window to your Desktop—you’ll see the folder appear when you release the mouse. Switch to the Finder, and open each folder. Set the view to List view, and then close the window (not strictly necessary, but I’m a neat freak).
    Now drag the folder back into Safari’s Bookmarks window; Safari will treat it like a newly-imported folder of bookmarks and add it to the list. Open the folder in the Bookmarks window, and you’ll see your neatly-sorted bookmarks."
    Love my Mac

  • How to Restore Safari Bookmarks with Time Machine in Lion

    Hi -
    I want to restore my Safari bookmarks.
    I am running Lion and have a Time Machine backup with the correct bookmarks.plist file.
    The problem - as I see it - is that the "Library" folder - where the Safari bookmarks.plist file is located - no longer shows up (by default in Lion) in the Home folder.
    I fixed it so that "Library" does now show up in the home folder but since it was not set to show "Library" at the time the backup I need was done, it doesn't show up in the Home folder for the backup that I need.
    I have tried restoring the entire Home folder but this is not restoring my bookmarks for some reason.
    I even tried restoring the entire hard drive but that did not work either!
    It would seem that the "library" folder - even if it was hidden - would be restored when I did the entire Home folder or the entire hard drive.
    Any ideas?
    Thanks!

    Brillianrt! Worked like a charm.
    Then I found an easy solution to alphabetizing that doesn't require 3rd party software in a Macworld article:
    "Without resorting to external tools or dragging links about, it’s actually fairly simple to order the list. Make sure you can see a Finder window, or your Desktop, and the Safari Bookmarks window at the same time. Now just drag the folder (or folders) you want sorted from the Safari window to your Desktop—you’ll see the folder appear when you release the mouse. Switch to the Finder, and open each folder. Set the view to List view, and then close the window (not strictly necessary, but I’m a neat freak).
    Now drag the folder back into Safari’s Bookmarks window; Safari will treat it like a newly-imported folder of bookmarks and add it to the list. Open the folder in the Bookmarks window, and you’ll see your neatly-sorted bookmarks."
    Love my Mac

  • Importing Tags?

    Is there any way to import keywords or tags from Photoshop Elements? I have quite a large number of photos and they have all been assigned at least some basic tags in Photoshop Elements, but I notice that they don't appear under the keywords in Bridge.. Surely there must be some way to do this without having to re-create them?
    Thanks for any help.

    Thanks Alan - I found it last night. I guess doing this also changes all the modified dates... not sure how I feel about that. The other thing I was concerned about is that trying to do them all at once may crash the computer since it won't like the videos, etc. that are listed in the organizer. I have sort of a love/hate relationship with the organizer. It does a good job, but it's not very reliable I've found.
    Maureen

  • My brain hurts !

    HI,
    I'm finally starting to do serious investigation of the wonderful world of  "non standardized " HD editing.
    Starting with the Red camera, and moving along to the panavision 'genesis', and then to the newer ( and supposedly rising star) arri 'Alexa'....
    I want a hardware combination ( PC ) that can handle that with CS5 or the next release...  this will take a lot of time for me to work out...because the more I get into it the more I realize I haven't a clue what I will need...   whether it's prores or cineform, whether I need a dual link HD-SDI capture card, or 3gig SDI, and so on....
    At any rate these are all technical issues not belonging in the lounge where I would rather have a beer and draw pictures of my dream editing machine on paper napkins wet with condensation....so the question I'd like to ask opinions about is basically...
    Where is all this going ????  What is the future a year from now ???  Why does my Head Hurt from thinking so much ! ?

    Hi Chuck...I've been working as a grip for 35 years and now I sorta fell in love with editing. I probably WONT be able to break into doing any commercial editing at this point (as I am also looking at retirement in a few years or so -God willing ) - but would love to ...even if it's just doing dailies for a tv show or commercial, feature, whatever.  I wouldn't turn down production work either ( maybe some kinda associate coordinator or something) as I kinda know a lot about the crew end of things ( what it takes to do the jobs ).  Anyway, the footage for editing would be coming from arri alexa, pany genesis, red camera, and that sort of stuff... probably hard drive or tape to me ( tape on way out though...solid state memory(basically stacked flash cards) are being transferred to hard drives and those drives get sent to editor...eg. a show in NY (genesis camera) sends a hard drive at end of shoot day to california ( saving a tape backup from the flash drive) and they get stuff back next day.
    Apparently its raw from genesis which is I think a sony camera that got panavisionized...and has a different logarithm   now..haven't got sample footage form that camera yet.  Did get sample of ProRes 422 in a mov wrapper and played with that yesterday using CS3.  Even with just 4-5 HD clips and a 30 sec timeline my machine is having trouble handling these files...so I need to get new computer and CS5...and am trying to determine beforehand what I will need.
    Thanks for your interest Chuck...and any suggestions you have would be appreciated.
    Rod
    ps. grip work has been "per diem" - meaning every job ( movie, commercial, tv show in film format ( now digital sometimes) ) is a different "employer". Sooo, in answer to your question re: who I'm associated with..it's more or less a word of mouth thing and represented by a union of us who keep an office in NYC ( iatse).

  • Terrible hd on demand...the last time

    i just ordered hot tub time machine which was hilarious, unfortunately the hd sucked.  there was at least ONE point every 5 minutes that there was some pixelation or skippage of some sort.  i love the idea of watching hd movies on demand but this will be the last time.  i'd rather give my money to more business savvy services like red box instead of being disappointed again by verizon.  if it wasnt for the 25mb down and 15mb up there would be no reason to have the tv service.  why don't i call and ask for a refund you ask...because its a waste of my time to try and figure out which 3rd tier automated service to select then maybe a person can actually help me then wait on hold and then finally figure out that i dont have verizon phone number....god help you if you dont!
    i can't wait until all tv is internet based and tv service is a mere commodity and conduit for the entertainment that people can choose what they want.
    also note that when i add message tags: on demand, hd poor quality, pixelation, on demand, skip ....it makes me remove it because its not permitted.
    Quote: "The message tags contain on, which is not permitted in this community. Please remove this content before sending your post."

    I tried these steps and the problem resolved itself. Thanks to user Hubrisnxs !!
    reset the router.  use the on/off switch in the back.  turn it off for about 30 seconds, and then turn it back on.  wait for the internet light to come back, and then go to the on demand and try it again.
    -- This in itself did not work... but when I took the next step -- success..
    if it still pixelates, then hit the STB auto correct.   you do that on the TV/Fios menu.  so you hit menu / customer support / in home agent / stb auto correct (set top box)
    -- Total clarity now. !!!
    if it still doesn't work properly, then you might have a cabling issue.  if you're comfortable working with tv cables, then all you're doing is unhooking the router coax, and rehooking it back in nice and secure (do it at both the router and the wall/splitter) and doing the same thing at the STB that is having problems,   unhook the coax from the back of the STB (cable box) and rehook it back and do the same at the wall/splitter for that box.
    otherwise give a call to Verizon  800 - VERIZON or open a chat support.     Tell them the steps you did

  • IMac keeps going to sleep

    Hi there.
    I bought a second hand Rev. A G5 2 months ago. It has always been noisy - loud fan and a whiny noise. It's a bit annoying but I can live with it.
    My major problem is the computer falls asleep by itself. It's unpredictable when it will happen but it does seem worse when it's been turned on for a few hours. It will wake fine once it's gone to sleep but will usually go back to sleep a couple of minutes later. I usually leave it for an hour or so and then it's okay. I have wondered if the noisy fan is linked to this. Is the computer overheating all the time? I tried resetting the SMU but that didn't really work.
    Yesterday trying to import into iMovie was near impossible as it would keep sleeping - and the main reason for switching was because I liked the idea of iLife and using it to make DVDs of our old home movies and photos.
    I'd like to get this sorted as I love my Mac (my friends say I've become obsessed!) but it's starting to get to me. I've read lots of posts about similar problems but there doesn't seem to be a solution mentioned.
    Please help!

    Hi
    My kid's Rev A falls within these serial numbers but Apple refused to believe there was anything wrong and sent it back to my dealer untouched! The CPU fan constantly sits at a noisy 5600 rpm and the machine goes to sleep frequently during processor-intensive Flash games on the internet.
    It's now back with my dealer in the hope he can convince Apple to fix it - although I am convinced the problem only started when I loaded Tiger - it ran quietly on Panther.
    Having owned more Macs than I care to remember (and with a beige G3 still running 24/7 as a server in my office) - I really think this is software related rather than hardware. Apple kit has always been pretty reliable!
    Hopefully soon I will know one way or another!
    PowerBook 17" 1Ghz - too many others to mention!   Mac OS X (10.4.3)  

  • Iphone Screen Blank

    I was using my Iphone and the screen went black. It looks like it died. I have plugged it back into my computer and all of the information is intact but the screen wiil not come back. I have pushed every button on this thing but it will not come back on any suggestions.

    Actually, after a bit of searching I found the tip to hold down the screen and home buttons for 8 seconds. It reset fine.
    I'd previously only been aware of the soft reset ie holding screen for 4 seconds - which was no use when you can't see the bar to slide. There's an awful lot of little iTips that aren't very well documented.
    Anyway, all easily sorted. My love affair with my new iPhone can continue.

  • Alphabetizing imports from a CD

    When importing from a CD, iTunes alphabetizes the tracks by name instead of importing them in the order on the CD. Sometimes this is no problem, but some CDs need be kept in sequential order. Is there a way to import them in the correct order?
    Dell dimension 4600   Windows XP  

    I trust your intuition, b. Let's give it a try!
    so i read that, Bill, and thought "uh-oh ... i've got expectations to live up to now ...", and i stared at your screenshot for five minutes in a state of rising panic.
    then i suddenly thought, "aha! we're in the browser view, not the main library! the rules are different in there."
    while you're in there, right-click on the column headings and select "view options" (or go "edit > view options"). select "track number". click on the track # column heading, and you should see something like this:
    browser view sorted on track #
    love, b

Maybe you are looking for