Dynamic Default LOV

Hi,
I would like to have dynamic default LOV based on user.
I have a table in Database with username and Region he is working on.
Based on the user who logged in the system, can I show the default region as region stored in the database table.
Appreciate your input on this
Thanks
Bala

simplest solution would be just drag your table containing username & region on universe then join it with the actual fact table(or main table containing all the data)
Now, click on region object and generate custom LOV by writing following sytex
select distinct region from table1 , main_table
where table1.region  = main_table.region
and table1.username = @variable('BOUSER' );
and create the prompt on this newly created region object.
refer link for creating custom Lov
http://www.bidw.org/business-objects/universe-design/list-of-values-lov-in-business-objects-universe/

Similar Messages

  • How to create a condition based on a select that retrieve dynamically a LOV

    Hi all, I need to create a condition based on a select that retrieve dynamically a LOV.
    So, the condition have to be:
    inventory_item_id NOT IN (SELECT inventory_item_id FROM apps.mtl_system_items_kfv WHERE concatenated_segments = 'GENERAL_FAULTS_IPTV')
    I need to create a LOV based on this select without making any join with the folder which contains the field inventory_item_id, because otherwise I have the contradiction:
    and o124757.INVENTORY_ITEM_ID = o118741.INVENTORY_ITEM_ID -- join between the main custom folder (o118741) and the LOV custom folder (o124757)
    and o118741.INVENTORY_ITEM_ID NOT IN (o124757.INVENTORY_ITEM_ID) -- condition
    These two condition together don't show any data, obviously....This means also, that I can't use a calculated field, because if I want to see this field, I have to create a join, another time, with the main custom folder.
    I tried to create a LOV on the Administrator, but when I create the condition I have to check manually the values....and if in the future this LOV will increase I need every time to re-check all the values.....instead I need that the inventory_item_id have to be NOT IN dinamically in the list of values retrieved by the select.
    Anybody has inplemented something similar ??
    Thanks in advance
    Alex

    Hi alex,
    SELECT incidents.INVENTORY_ITEM_ID,
    pcodes.PROBLEM_NAME
    FROM apps.cs_incidents_all_b incidents,apps.jtf_rs_problem_codes_v pcodes
    WHERE incidents.category_id IN (SELECT category_id
    FROM mtl_categories_kfv
    WHERE concatenated_segments = 'IPTV')
    AND incidents.PROBLEM_CODE = pcodes.PROBLEM_CODE
    where incidents.INVENTORY_ITEM_ID NOT IN SELECT inventory_item_id
    FROM apps.mtl_system_items_kfv
    WHERE concatenated_segments = 'GENERAL_FAULTS_IPTV'
    You want to add this condition to the first query it holds good for this scenerio.All the items which are NOT IN will be retrieved.Here you are selecting other than "General_faults_iptv"
    But again your trying to select in the second query where you want "General_faults_iptv"
    SELECT inventory_item_id
    FROM apps.mtl_system_items_kfv
    WHERE concatenated_segments = 'GENERAL_FAULTS_IPTV'
    If you carefully go through what your doing,you will understand.In the above explantion ,there will be no records generated.First query your saying NOT IN and again your saying for the same IN,how will records retrieve its meaningless.
    I dont know what you want to get from second query.I would suggest you to do is dont use the second query and just use the first query and you will get.Here is the query and this will give you result.
    SELECT incidents.INVENTORY_ITEM_ID,
    pcodes.PROBLEM_NAME
    FROM apps.cs_incidents_all_b incidents,apps.jtf_rs_problem_codes_v pcodes
    WHERE incidents.category_id IN (SELECT category_id
    FROM mtl_categories_kfv
    WHERE concatenated_segments = 'IPTV')
    AND incidents.PROBLEM_CODE = pcodes.PROBLEM_CODE
    AND incidents.INVENTORY_ITEM_ID NOT IN SELECT inventory_item_id
    FROM apps.mtl_system_items_kfv
    WHERE concatenated_segments = 'GENERAL_FAULTS_IPTV'
    Regards,
    Kranthi.

  • ADF Swing - Default LOV Dialog

    Can anyone tell me if the ADF Swing "Default LOV Dialog" was improved in JDeveloper 10.1.3? Specifically, are the same major problems with it, as documented in Frank's article at [1], still present in 10.1.3? If so, do you know if an RFE has been filed to fix it?
    Thanks
    Erik
    [1] http://www.oracle.com/technology/products/jdev/howtos/10g/jclientlov/customadfjclientlovpanel.html

    Thanks Frank,
    What about Set Allow Search? That's one of the big ones that doesn't work in 10.1.2.
    What about the extensibility of the panel? Is MyLovPanel still an inner class of JULovButtonBinding?
    Thanks
    Erik

  • Prompts with dynamic default values

    I have a request from my client to modify several reports so that two date prompts will have default values populated with the first and last day of the previous month.  All of the reports are currently using custom sql so I have to be able get the dynamic default value in the extended @prompt syntax.  However, I am not able to use any of the sql functions since the functions merely appear as plain text as the default value itself. 
    I have found a few work arounds to achieve the functionality of the dynamic prompts, but I cannot get the actual default value displayed to the user to be dynamic.  Is it possible to achieve this by using only the custom sql?

    Hi Sandeep ,
    Below blog may answer your query .
    Dave’s Adventures in Business Intelligence » Dynamic Dates Part III: Monthly Date Ranges
    Search for And for Last Month?

  • Dynamic default values in parameters

    Hello,
    anyone knows if it's possible to set dynamic values as default values for parameters in portal?
    i am specially interested in the use the date we are in to pass it to a discoverer worksheet (month or year) via single parameter form or any other porlet that could perform it.
    Many thanks.
    Regards,
    Daniel
    PS
    Is the second thread i create with this question cause i didnt receive any answer before and i am really interested in any solution or knowing that i cant perform it.

    no one have ever used a date parameter (for example, month) that need a default value, and set this default value as the month we are today?
    maybe i didnt explain my problem properly before...
    thanks for any help, i really need this because all the porlets in the portal i am creating are discoverer's reports that presented by month, year or day.
    regards,
    daniel

  • Validate from List property of dynamically attached LOV

    Dear Oracle Gurus,
    I have multi record block , the fields are Argument_name,Argument_Code ,argument_lov
    displaying two fields . data is populated at run time
    user has to input for the argument_value according to the argument_name displayed
    it may look like
    Argument_name Argument_value
    Date of Join User has to input
    Branch office user has to select from a LOV
    Dept User has to select from a LOV
    the LOV's underlying Select statement will fetch data from a table based on other field Argument_Code
    The LOV is attached dynamically for each row based on a value for the field argument_lov value will be Y or N
    IF value for a argumet is Y , the LOV is attached with SET_ITEM_PROPERTY in the When NEW RECORD INSTANCE Trigger
    when user moves to the argument Date of join there will be no lov and the user has to type out the data
    whereas for the argument Branch Office , user can select from a LOV
    now the user has to press the F9 key to invoke the Lov and then select
    whereas we wanted in this way.. that the user can type the first character and the value automatically get selected
    if the user types wrong data then the LOV to be displayed
    For this we used the SET_ITEM_PROPERTY with VALIDATE_FROM_LIST, Property_true in the same trigger.
    we have record validation trigger at the block level .
    But it didnt work out exactly when ever the user moves from a record having LOV after selecting. the other field which is not having a LOV displays a lov with values belonging to another field and asks to select from the list . For example the date of join field displays the lov for dept and asks to input
    please guide me in this regard
    with warm regards
    ssr

    But when table hav too many rows (here i hav 18000 rows) getting too slow....Is this problem is common...? Yes, this is common when you have a lot of rows returned by your LOV query. In situations like this, it is best to try and reduce the size of the data returned by your LOV. One way of doing this is to enable the Filter Before Display property on the LOV. When enabled, it causes Forms to display a query criteria dialog before displaying the LOV. This too can cause slowness because this option could cause a full table scan to occur. Perhaps a better option would be to make your LOV dependent on other limiting values. For example, if your Form showed a list of all employees in a company you could make your user select limiting data like a department number to help reduce the number of employee records returned by your LOV.
    Craig...

  • Set a dynamic default property when a page is created?

    Is there a way to set a default property that is dynamic for a page when it is created? For example, i want to capture a user id from our system and store it in an "author" property when the page is first created. This value can be changed to a different user by the author but in case they don't set it i want to have it default on page creation.
    I guess a better question would be, is there somewhere i can put code so that it will be executed when a page is created?
    I considered writing a custom widget and putting this in page properties, but that won't actually run unless page properties has been opened.
    Thanks

    For anyone in the future, here is how i implemented the event handler -
    @Component
    public class PageCreationObservation implements EventListener {
        Logger log = LoggerFactory.getLogger(this.getClass());
        private Session adminSession;
        @Reference
        SlingRepository repository;
        @Activate
        public void activate(ComponentContext context) throws Exception {
            log.info("Activating PageCreationObservation");
            try {
                String[] nodetypes = {"cq:Page"};
                adminSession = repository.loginAdministrative(null);
                adminSession.getWorkspace().getObservationManager().addEventListener(
                    this, //handler
                    Event.NODE_ADDED, //binary combination of event types
                    "/content/appname", //path
                    true, //is Deep?
                    null, //uuids filter
                    nodetypes, //nodetypes filter
                    false
            } catch (RepositoryException e) {
                log.error("Unable to register session",e);
                throw new Exception(e);
        @Deactivate
        public void deactivate(){
            if (adminSession != null) {
                adminSession.logout();
        public void onEvent(EventIterator eventIterator) {
            try {
                while (eventIterator.hasNext()) {
                    Event newEvent = eventIterator.nextEvent();
                    log.info("something has been added : {}", newEvent.getPath());
                    //Check if node exists and it is a content node of the newly created page
                    if (adminSession.nodeExists(newEvent.getPath())
                            && adminSession.getNode(newEvent.getPath()).getProperty("jcr:primaryType").getString().equals("cq:PageContent")) {
                        Node contentNode = adminSession.getNode(newEvent.getPath());
                        if (contentNode.getProperty("jcr:createdBy") != null) {
                            contentNode.setProperty("author", contentNode.getProperty("jcr:createdBy").getString());
                adminSession.save();
            } catch(Exception e){
                log.error("Error while treating page creation events",e);

  • Dynamic default parameter value

    Hi,
    I'm running Oracle BI Discoverer Plus 10g (10.1.2.45.46c)
    Is it possible to make the default parameter value dynamic ?
    In my case I want the default parametervalue to be set to the week before actual week.
    Eg if I'm running the report during this week it would be set default to '2005W43',
    running the report during next week it would be set default to '2005W44' and so on...
    Have tried to assign the default value with "TO_CHAR(SYSDATE-7,'RRRR')||'W'||TO_CHAR(SYSDATE-7,'IW')"
    Note the enduser must have the possibility to change from the default week to some other week.
    Any ideas ?
    /Sam
    Message was edited by:
    [email protected]

    Post Author: synapsevampire
    CA Forum: General
    A common solution is to use a Union All in a query to get the ...All and the dynamic values using a Command Object.
    select '...All' from tableUNION ALLselect field from table
    -k

  • Dynamic default bind variable

    Hi!
    I have a bind variable in a view object, where i want the default variable to be a text version of now (timestamp) in the format 'dd-mm-yyyy HH:mm'.
    I have tried to look at a solution using Groovy Expression, but I cannot figure out how to do it.
    Please HELP!!!! :-)
    /Casper

    Hi,
    You can create a method in your viewObject implementation class and retrieve the value from there, using groovy.
    I have used something similar to retrieve a dynamic parameter in an Entity validator.
    Have a look here: http://www.gabrielsideras.com/2010/10/03/groovy-display-dynamic-error-message-in-validator/
    and here: http://formattc.wordpress.com/2010/04/02/custom-java-bind-variable-in-a-where-clause-of-an-adf-view-object/
    Gabriel.

  • Possible to have dynamic default selections for a dashboard prompt?

    I'm running OBIEE 11.1.1.6.5, and I have customer who would like to know if it is possible to dynamically select default values on a dashboard prompt based upon other user prompted columns on the same prompt. For example, I built a dashboard prompt with three fields: Month, Customer, and Product; and I want to add a default selection to my Products prompt to pick the "top 4 products" based on the selected Month and Customer.. assuming every Customer+Month has a different "top 4 products".
    Does anyone please have a suggestion on how I could approach this solution?

    Thank you for your response. I've tested this approach and it seems promising. My concern I have there is how to treat "(All Choices)" values. Say the user selects All Choices on customer or period, and the presentation value in my SQL Results query reverts to whatever default value specified, which is not the intended behavior. My question then becomes how do I treat the null or All Choices and somehow omit the filter criteria or specify fy All Choices as a default to the presentation variable? Your advice is much appreciated.

  • Modify dynamically Static LOV and System Tables

    Hello,
    Does anyone know if it is possible to dynamically modify a Static LOV using a system table. All suggestions greatly appreciated!
    Sharon

    Hello,
    I am converting a program from the old HTML-DB. The original program dynamically manipulated a static LOV using a system table. I am trying to do the same thing. If it is possible to dynamically change a static LOV I would like to know how. If there is no way in APEX, I will create a table and dynamically change the table. Thank you for your suggestions.
    Sharon

  • Dynamically remove LOV from item

    Hi All,
    i have 2 items, item A and item B. The value of item A determines if a LOV will be created from item B. When i have item A filled with a value so that we need a LOV on item B, i will dynamically build up the record group for this LOV and assign this LOV to item B. But when i then change item A so that no LOV must be used for item B, the previous LOV stays assigned to item B. How can i unassign this LOV from item B? Set_item_property('itemB',lov_name,''); doesn't work.
    Please help.
    Kind regards,
    Dave

    Thanks for the reactions.
    I checked my code again, and it was my fault.
    set_item_property('itemB',lov_name,''); does work, i only put it in the wrong place.
    Kind regards,
    Dave

  • Dynamically changing LOV whenever another item changes

    I have two items on a page that are implemented as select lists based on LOVs, product and product category. The query for the product category lov references the product item. However, changes made to the product item are not reflected in the list of values for the product category item. As I understand, javascript is needed to make the LOV for product category dynamically change whenever the product item changes. Can somebody point me to documentation which details how to do this. Thanks for your help.

    See this and some other examples on that topic:
    http://apex.oracle.com/pls/otn/f?p=31517:119
    Denes Kubicek
    http://deneskubicek.blogspot.com/
    http://www.opal-consulting.de/training
    http://apex.oracle.com/pls/otn/f?p=31517:1
    -------------------------------------------------------------------

  • Set Dynamic Default Delivery Date in ME21n

    Hi!
    Under personal settings in ME21n, it is possible set a default delivery date. However, as I see it one can only set a fixed date like 2011-08.-12, which would quite useless in a couple of weeks. Is there any way to set this date dynamically as it is possible in normal selection variants.
    I am grateful for all input.

    yes this field is pretty useless, except for hundreds of items within one PO.
    usually delivery dates are defined by the requisitioners  and not by a default value of a buyer.

  • "Dynamic" Default Parameter

    How would one tell a Flash Component that has a Parameter,
    that is viewable through the Parameters tab, to use a variable that
    has been passed through to the swf via the url? For example, my
    Flash component has a Default Filename parameter that shows up in
    the Parameters tab, but I want to set that to be the value that is
    passed in
    http://url/myflashfile.swf?filename=myfilname
    Many thanks.

    Gary,
    > Thank you for responding. I'm using AS2. I still have
    some
    > confusion. In your example the passed in variable is
    OrangeJuice.
    > But what if on the next user it is HashBrowns?
    If the actual name of the external variable changes, then of
    course
    you'll have to update your ActionScript to look for the new
    variable. Does
    that make sense?
    > I'm looking for a way to drop in the passed in variable,
    let's call it
    > BreakfastItem, into the components parameter panel. So
    in my
    > mind I want to be able to put in #breakfastitem# ... in
    the
    > components parameters tab, and have the Flash
    automatically
    > populate the parameter with the actual value that is
    passed
    > in.
    Based on what you're typed, it looks like the name of your
    variable is
    breakfastitem, whose string value might be "orange juice" or
    "hash browns"
    (or whatever) ... which means you'll put breakfastitem
    (without the pound
    signs) into your parameters panel -- and that assumes that
    the FlashVars
    variable (the incoming variable) is named breakfastitem.
    If, for some reason, the Parameters panel doesn't agree with
    dynamic
    data, then give your component an instance name (see the
    Parameters panel or
    Property inspector) use dot notation, as I showed earlier.
    If this still isn't clear, keep asking. :) What you're after
    is
    certainly doable, and I'm happy to keep rewording my
    suggestions until thay
    make sense.
    David Stiller
    Contributor, How to Cheat in Flash CS3
    http://tinyurl.com/2cp6na
    "Luck is the residue of good design."

Maybe you are looking for

  • Populating the G/L account field based on Material in the SC

    HI aLL,    We are runnin on SRM 4.0 (classic).I have a reqt wherein the G/L account which comes in the "Cost assignment details" should be populated at run time (when items are added to SC) based on the material no/Product ID....   I found out a BADI

  • IMovie '08 not displaying my iPhoto videos

    For some or other reason iMovie '08 does not display my iPhoto videos. Even when I do a seperate import using the file import feature and browse my iPhoto video library, do I still not end up with a selection of my imported iPhoto videos. What is cau

  • Regarding assign and transform

    Hi all, iam doing a task, in which the data from one (oracle 10g) is moved to another database(oracle 12i ), source table contains around 30 columns and destiantio contans some N number of columns. I just used data polling for source . when data is i

  • FIM for System Access Management

    Hi All, New to FIM - so, apologies for asking if it has already been answered elsewhere. I have an understanding to some level of what FIM architecture components are. I have a particular scenario and I wanted to discuss if and how FIM can support it

  • Dfm alerts for operationallydown

    Hi All, im having lms 4.2.2 and monitoring a cisco 7600 router interface ten gigabit ethernet x/x under dfm. When ever the interface is down due to any media issue i am not getting any alerts in dfm., the interface used to go down for more than 10 mi