Best application design for LOV's with historical values

Hi,
I'm trying to find a way to solve a standard LOV problem the best way in Apex.
All over my application I am using LOV's which I like to define on a UI defaults level so I can inherit these definitions on all pages I create on these tables.
If I disable entries in these LOV's because for example a product is no longer available the normal Apex behaviour is that you see the code of this LOV entry and not the description, since that one can no longer be found using the LOV query ( if you set the LOV to show extra values ).
I know there is a solution using the item value and include this in the LOV query, so you query all LOV entries which are enabled and also the one with the ID of the page item; but if you need the item value you have to reference to the page item which is not a generic name but something like :P22_LOV_ID. So the lov definition should then be on a page level and is no longer possible on a UI defaults level. This costs me lots of time and maintenance if I want to change a LOV definition and also when creating a new page.
Anybody knows of a nice generic solution to solve this (standard) problem ?
Regards
Bas
B.t.w. I disable LOV enties by setting a field called VALID to false so I know this value is no longer valid, so the entry is still in the LOV table but no longer valid.

Bas,
You might consider using a dynamic LOV, as follows:
SELECT NAME d,
ID r
FROM TABLE(CAST(emp_utils.Return_Emp_Names_LOV(:APP_SHOW_ALL) AS lov_table_type))
ORDER BY 1
The function emp_utils.Return_Emp_Names_LOV returns either all employees (:APP_SHOW_ALL=1) or just the active employees (:APP_SHOW_ALL=0). If a new record is being added, then APP_SHOW_ALL is set to 1. For existing records, APP_SHOW_ALL is set to 0.
The PLSQL types are:
CREATE OR REPLACE TYPE "TABLE_ID_OBJ" AS OBJECT
table_id NUMBER(9) NULL
and
CREATE OR REPLACE TYPE "TABLE_ID_TBL"
AS TABLE OF table_id_obj;
The Function is:
FUNCTION Return_Emp_Names_LOV(p_all IN PLS_INTEGER := 1)
RETURN lov_table_type IS
vt_data lov_table_type := lov_table_type();
BEGIN
CASE
WHEN p_all = 1 THEN
SELECT lov_obj(k.employee, k.empk_mkc_emp_id) BULK COLLECT
INTO vt_data
FROM employees k;
WHEN p_all = 0 THEN
SELECT lov_obj(k.employee, k.empk_mkc_emp_id) BULK COLLECT
INTO vt_data
FROM employees k
WHERE k.empk_emp_status =! 'Terminated';
END CASE;
RETURN(vt_data);
END Return_Emp_Names_LOV;
Cheers,
Jaime

Similar Messages

  • Need best Architecture design for the following scenario

    Hi Experts,
    I need best architecture design for the following scenario:
    Sender: Mail
    Receiver: if sender body contain u201DApproveu201D, then call SOAP adapter, If SOAP adapter execute successfully, then  send Mail(SOAP adapter executed successfully) and SMS .  So receiver is SOAP, Mail and SMS.
    My current approach issue:
    Three message mapping:
    Mapping1: mail to SOAP
    Mapping2: mail to Mail
    Mapping3: mail to SMS
    In interface determinant>u201DSelect all three operation mappingu201D> u201Cselect order at runtimeu201D.
    Issue in current approach: For me first SOAP adapter should complete successfully, after that only my Mail and SMS operation mapping should execute:
    But problem is before success of SOAP adapter engine, Mail and SMS mapping completed or integration engine executed.
    Note: There is possible to fail the SOAP request in adapter engine.
    Kindly help me --> u201CAm I going correct way or want to change the architectureu201D?
    Thanks for advance!!
    Regards, Kumar

    What do you mean by successful execution of soap call?  Are you talking about Successful response (happy flow) from the soap call instead of application error ? Then based on the response you want to decide sending mail and sms.  How big call is your soap ?  If your soap interface is very simple I can give the other possible way.
    Sender sends the message, use mapping  to read the content and then do soap call in the mapping itself and after seeing the soap response decide about two receivers (mail and SMS).  If your soap call is very simple one, you can go for it. Otherwise I would not recommend this. The reason is you loose some visibility regards to monitoring during soap call in the mapping.
    Other option is go for CCBPM.  Here you receive the message, use send step to soap interface which is sync step. Then after seeing the response create another block with fork steps each for two senders mail and sms. If response bad then dont proceed or execute the next block. Simply use exeception or control step to jump out from the block,

  • I am a new mac user and I switch to mac due to the graphics that it brings. I do website in pc and I heard iweb is the best.NOW i heard that iweb will be discontinue. so what is the best application there for website using MAC OSX lion?

    I am a new mac user and I switch to mac due to the graphics that it brings. I do website in pc and I heard iweb is the best.NOW i heard that iweb will be discontinue. so what is the best application there for website using MAC OSX lion?

    It is now confirmed  that iWeb, and iDVD, has been discontinued by Apple. This is evidenced by the fact that new Macs are shipping with iLife 11 installed but without iWeb and iDVD.
    On June 30, 2012 MobileMe will be shutdown. However, iWeb will still continue to work but without the following:
    Features No Longer Available Once MobileMe is Discontinued:
    ◼ Password protection
    ◼ Blog and photo comments
    ◼ Blog search
    ◼ Hit counter
    ◼ MobileMe Gallery
    All of these features can be replaced with 3rd party options.
    I found that if I published my site to a folder on my hard drive and then uploaded with a 3rd party FTP client subscriptions to slideshows and the RSS feed were broken.  If I published directly from iWeb to the FPT server those two features continued to work correctly.
    There's another problem and that's with iWeb's popup slideshows.  Once the MMe servers are no longer online the popup slideshow buttons will not display their images.
    Click to view full size
    However, Roddy McKay and I have figured out a way to modify existing sites with those slideshows and iWeb itself so that those images will display as expected once MobileMe servers are gone.  How to is described in this tutorial: #26 - How to Modify iWeb So Popup Slideshows Will Work After MobileMe is Discontinued.
    It now appears that the iLife suite of applications offered on disc is now a discontinued product and the remaining supported iApps will only be available thru the App Store from now on. However, the iLife 11 boxed version that is still available at the online Apple Store (Store button at the top of the page) and those still on the shelves of retailers will include iWeb and iDVD. Those two apps were listed in small, gray text on the iLife 11 box that I bought.
    Personally, if I didn't already have a copy I would purchase one to have it for reinstallation purposes if ever needed.
    This might be of some interest to you at this time: Life After MobileMe.
    OT

  • "No additional applications designed for your device were found." w/ 9500/Storm bug

    Hi Guys,
    I've been having trouble transfering any files to my handset with a constant return of the error "No additional applications designed for your device were found."
    Does anybody know of a patch/work arround for this?
    BlackBerry 9500/Storm OS 4.7.0.65
    BlackBerry Desktop Manager 4.7.0.25

    Perform clean uninstall of existing Blackberry Desktop Manager.
    Check this link for instructions: http://www.blackberry.com/btsc/KB02206
    After that download and install the most recent version of Blackberry Desktop Manager.
    You can get it here: http://na.blackberry.com/eng/services/desktop/

  • Any suggession on Tools for Performance testing of application designed for Blackberry phones.. which can get some details on CPU usage, memory, response time?? any help on the same is much appriciated.

    Hi Team,
    Any suggession on Tools for Performance testing of application designed for Blackberry phones.. which can get some details on CPU usage, memory, response time?? any help on the same is much appriciated.
    Thank You,
    Best Regards,
    neeraj

    Hi Team,
    Any suggession on Tools for Performance testing of application designed for Blackberry phones.. which can get some details on CPU usage, memory, response time?? any help on the same is much appriciated.
    Thank You,
    Best Regards,
    neeraj

  • Message: No additional applications designed for your device were found

    I'm trying to add a program onto my blackberry Pearl using Desktop manager & I get the message: No additional applications designed for your device were found.  Help!  Thanks in advance!
    - Lola

    Hi
    I have the same problem with a 8310 on Vodaphone. I had a quick look on the link given but it didn't list my phone and doesn't appear to cover Vodaphone.
    Do you know where I can find the software I need ?
    Thanks 
    Thanks
    Rog

  • No additional applications designed for your device were found

    Hello,
    I tried to install my BB Application.
    My env is  -
    Device BB 9700
    Desktop Manager 5.0.1
    The first time of load my .ALX file the desktop manager show the below error :
                           No additional applications designed for your device were found
    I retry to load the same file then this work correctly.
    You have an idea ?
    Tks
    \\ Luigi
    Solved!
    Go to Solution.

    You said, "The first time I try to load my .ALX file..."
    This makes me think you are developing the application. Try the development forums - I'll bet someone there has seen this.

  • What is the best HD videocamera for seamless use with iMovie '11/Mac?

    Hi All,
    Looking for the best HD videocamera for seamless use with iMovie '11/Mac? Looking for the easiest plug and play option for my office that doesn't require conversion for use. Any suggestions or help are very appreciated!

    http://help.apple.com/imovie/cameras/en/index.html?lang=en_US
    above is a list of camcorders that will work with iMovie.
    Others can make suggestions if you perhaps list how much you would like to spend.

  • Best sysctl settings for a netbook with 1G RAM?

    Hi all,
    As the title says, what are (based on your experiences) the best sysctl settings for a netbook with 1G of RAM? I now have vm.swappiness=10 and vm.vfs_cache_pressure=50. Should I change these to a lower or higher value? Any other parameters I should add? Let me know!
    Thanks for your help.
    Luc

    karol wrote:https://wiki.archlinux.org/index.php/Ma … M_and_swap
    I already read that article, and followed most of it. Should I set my swappiness to 1, then?

  • What is the best office program for mac dealing with arabic language?

    what is the best office program for mac dealing with arabic language?

    The best word processor is Mellel.  TextEdit, Nisus Writer, and Open/Libre/NeoOffice should also work OK.
    MS Word for Mac does not do Arabic, but I am not sure about Excel and PowerPoint.  If not, OpenOffice would be the only option.
    iWork has bugs that probably make it unsuitable for RTL for most people.

  • What is the best anti virus for an iMAC with OS 10.7

    What is the best anti virus for an iMAC with OS 10.7

    Just a +1 for Kappy's suggestions. Antivirus software simply is not necessary for OS X. If you are interested in reading more an informative article is Viruses, Trojans, Malware - and other aspects of Internet Security.

  • Whats the best web designer for mac?

    My site, jayapps.co.uk, is built on iWeb. But whats the best designer to use? (Mustn't be flash)

    I concur, this is what most professionals use. Dreamweaver is a horrible tool for this purpose, but it's favored because of it being packaged with other Adobe tools and there being a certain level of integration between them.
    If you are on a Mac and not already tithing to Adobe, you might like Freeway Pro, or even something basic like Nvu might satisfy your needs.
    Unfortunately, I've never really found what I would personally consider a reasonable platform for web-design: a powerful editor with integrated JavaScript debugger and real-time preview that can read actual HTML, CSS, and JavaScript as the native format; one that handles refactoring and changing the filesystem layout properly, integrates image editing, etc.

  • Best security settings for Outdoor P2P with 1300 Bridges

    Hello
    I would like to hear from you otu there what are the best security setting for a P2P bridge outdoor link with two 1310 bridges. (with/without external Radius).
    any input is very welcome
    Oliver

    From one standpoint, best security is achieved by powering the bridges off. You need to balance risk versus reward for any security decisions: How much security do you need, and how much work are you willing to put into it?
    WPA-PSK is a pretty good solution for non-Radius implementations. PEAP, or LEAP with long nonsense passwords, are pretty good solutions for sites with AAA services. Another option is point-to-point VPN terminating on routers adjacent to your bridges.
    Another option is not bothering with any security at all other than restricting your bridges from associating with anything besides each other. It just depends on what you need and how you want to get there.

  • Best sequence preset for short film with all stills?

    Hi,
    I'm working on a short film documentary, its all stills, I usually work with video - first time doing all stills. Project looks great in my time line, but when rendering for standard DVD I'm getting lots of odd pixilation in cross fades and fades to black. Not a lot of time to keep testing the hundreds of sequence and render settings. Perhaps not the best choice but I used AVCHD 1080p30.
    Anyone know which of the sequence presets would be best for a film with all stills?
    Thanks!

    Still a little unsure about the render twice. I did use a AVCHD sequence/timeline, but I am exporting using media encoder to MPEG2. I'm guessing by render twice you mean rendering in the timeline after you bring in stills and apply motion, then rendering again when exporting for MPEG2? If thats your meaning, not sure how you get around rendering twice - I mean the motions and timeline still needs to be rendered, or are you saying leave it all to be rendered at the export process?
    I can see how the terminology could be confusing.  When you Export>Media from Pr, that's the same as Exporting and Rendering (esp. if your output format is different from your Preview format).  One way to look at it is that you're rendering a complete single file to a single codec.
    Rendering is also a term used to "build" Previews in Pr.  That's where your source media - no matter what codec was used - is rendered into the Preview format you selected in your Sequence Settings.
    You have options when making a DVD.  You can export (while simultaneously rendering) to an intermediate file, such as ProRes for Mac people, and then make your DVD from that.  That is "rendering twice."  OR... you can simply Export to an MPEG2 from Pr, and make your DVD from that, which would be "rendering once."
    Based on what you just wrote, it sounds like you're only "rendering once."  But if so, I'm baffled why your fades are blocky.
    Maybe it would help if you described how you're making your DVD.  I wonder if you're re-transcoding your MPEG2 when you get to Encore (or whatever you're using to make DVDs).  That could explain it.

  • What the best table design for item and it's serials ?

    I have Item's Table that hold Items meta data
    what the solution in the case that i bought 500 Item (Ex: Hard Disk) within different serial no for each item
    when  i save this serials will be in one to many ...
    when i think in this solution i found that the table have serial no will be in 2 months about 500,000 record
    is that best case or there is another solution ?
    another one ,
    If i have item with multiple colors
    best case to save every item with its color as one item  (item_ID,Item_name ,Item_color,....)
    or save item in table and colors in table ... and create table to obtain many to many relationship
    what the best case and Fastest ?

    I have Item's Table that hold Items meta data
    what the solution in the case that i bought 500 Item (Ex: Hard Disk) within different serial no for each item
    when  i save this serials will be in one to many ...
    when i think in this solution i found that the table have serial no will be in 2 months about 500,000 record
    is that best case or there is another solution ?
    another one ,
    If i have item with multiple colors
    best case to save every item with its color as one item  (item_ID,Item_name ,Item_color,....)
    or save item in table and colors in table ... and create table to obtain many to many relationship
    what the best case and Fastest ?
    1. I don't think there is any problem in having 1:N relation between ITEM and SERIAL table. That is how relational database works.
    2. I will recomend you to use 1:N rather than N:M. For DML operation 1:N has minimum impact when compare to N:M. For instance if the item color field is added in the serial number table, i may need to update multiple rows however if i add the color code
    field in item table then i may need to update or insert only one row.
    ------------------ RECOMENDATION
    ITEM
     ITEM_ID int (PK)
     ITEM_NAME VARCHAR(50)
     ITEM_DESCRIPTION VARCHAR(100)
     ITEM_TYPE VARCHAR(10)
     ITEM_CATEGORY VARCHAR(10)
     ITEM_COLOR VARCHAR(10)
    SERIAL
     ITEM_ID INT (FK)
     SERIAL_NUM VARCHAR(20) (UNIQUE)
    Regards, RSingh

Maybe you are looking for