Different LOVs for a single attribute?

Hi,
In our application, we use a "domainvalues" table to store all valid values for enumerated fields. The table has a typical design, with the domain name and the value as primary key and a field for the description. In the database this table is used to validate those enumerated fields. In our ADF GUI we use this table to fill single select lists. For each domain we have a read only View Object, which has a query like this:select value
,      description_short
from   domainvalues
where  upper(dmn_name) = 'IND_YES_NO'
ORDER BY description_shortNow we have a domain with three values, of which one value should not be used under certain circumstances. We simply created two domains, resulting in our domainvalues table containing (among others) the following rows:dmn_name  value  description_short
dom1          1  one
dom1          2  two
dom1          3  three
dom2          1  one
dom2          3  threeNow we have an Entity Object-based View Object that should use one of these lists. Which list is used depends on the page in which the View Object is used. So I selected the appropriate attribute in the View Object editor. Under "List of values" at the bottom of the screen I clicked the green + button to add a List of Values. I added an LOV with the following settings:
<ul><li>Name = LOV_Domain1
<li>List data source = Domain1ViewObject
<li>List attribute = value</ul>
The I added a second LOV by clicking the green + again. This time I used this settings:
<ul><li>Name = LOV_Domain2
<li>List data source = Domain2ViewObject
<li>List attribute = value</ul>
After creating the second LOV, a column of radio buttons appears in front of the table of LOVs, allowing me to select a default. The Domain1 LOV is selected as default and I keep it that way.
Now when I drag-and-drop the field on a page and choose to add it to the page as an "ADF Select One Choice", a List Binding is created in my page definition file. If I double click that list binding, the Edit List Binding dialog opens. the "Model Driven List" option is selected and I am able to select a Base Data Source Attribute and a Server List Binding Name. The Server List Binding Name option is where I am able to select which LOV provider I want to use. In this case I want to use "LOV_Domain2", the one that lacks the value 2. So I selected that one from the list, instead of the default selected "LOV_Domain1". So far so good.
The problem is, when I run the page, my select list still contains all three values, so I have the impression that the default LOV is used, regardless what is selected in the page definition. Is this a bug, or am I missing something?
Best regards,
Bart Kummel

Okay, I've figured out a work around myself. I just added an extra attribute in the View Object, based on the same attribute in the Entity Object. Each attribute of the View Object has it's own LOV definition. I only have to select the other attribute in my JSP to get the other LOV. I still think the solution with two LOV definitions associated with a single attribute would be more elegant. I hope this will be added in a next version.
Best regards,
Bart Kummel

Similar Messages

  • Different LOV for different rows

    Hi,
    Imagine a tabular report with a number of rows, and a select list for each row populated based on data in that row.
    I've seen a solution for this in a few threads, but I've tried to replicate it in 4.2.1.00.08 with no success
    Select list filter in a tabular form problem
    Tabular form - Different LOV for different rows
    my query includes this as a column
    APEX_UTIL.SAVEKEY_NUM(duration) durationwith another column defined as "Select List (query based on LOV)" using
    select apex_util.keyval_num d,  apex_util.keyval_num r from dualand while the duration varies, the LOV is always stagnant.
    This occurs in both classic & updateable reports (tabular forms).
    I was skeptical that it would work anyway, since I'm sure the query is resolved/bound before rendering each LOV - but that's just assuming background process logic.
    Is the only alternative solutions to use APEX_ITEM.SELECT_LIST_FROM_QUERY() ?
    Scott

    Ahh, I had only tried that on my classic report example. It only seems to have that effect on the tabular form.
    Makes me hesitant to use it with that kind of behaviour.
    When comparing normal tabular form, one set to generic, and another changed back - I saw no differences in the metadata that I would think have some form of impact on rendering behaviour
    APEX_APPLICATION_PAGE_RPT
    APEX_APPLICATION_PAGE_REGIONS -- customization/timeout_cache_after changed, component_signature had trailing 0
    APEX_APPLICATION_PAGE_RPT_COLS -- lost tabular form attributes, region had lost selector column, in fact I'm having trouble bringing it back to a point where it actually saves data.
    Scott

  • How to have cascading lov for a single column in tabular form

    Hi,
    How to have a cascading lov for a single column in tabular form
    ie i have one employee name column
    in tabular form if v pressed add row then one row ll be added
    In my scenario based on first row value
    the second row value to be displayed
    To achieve this what i have to do ..
    Regards,
    Pavan

    READ Cascading select list on tabular form  and
    Oracle APEX 4.0: Cascading LOVs/Select Lists | Inside Oracle APEX by Patrick Wolf BLOG
    helps you,
    Pars.

  • How to create a Platinum,Gold and Silver Customer and how to set different price for a single material based on customer?

    Hi All,
    How to create a Platinum,Gold and Silver Customer and how to set different price for a single material based on customer?
    Assume Material is Pen.
    While creating Sales Order in VA01 how to bring different price for the same material for Platinum,Gold and Silver Customers.
    Kindly help me out.
    Thanks,
    Renjith Jose

    A good place to start is http://www.javaworld.com/javaworld/javatips/jw-javatip34.html
    Also, do a search in this forum on HttpURLConnection. That class allows you to use POST method to send form data to a web server.
    "Hidden" variables are only hidden in HTML. The HTTP that gets POSTed to the web server doesn't distinguish between hidden and not hidden. That is, the content you would write to the HttpURLConnection.getOutputStream() would be something like:
    hidden=1&submit=ok(Of course, the variable names would depend on what the web server was expecting from the form.)
    Also, be sure to set the Content-Type request parameter to "application/x-www-form-urlencoded"

  • Tabular form - Different LOV for different rows

    In a tabular form column, is it possible to have a select list whose values depend on some other column in the row? There doesn't appear to be a way to use #COL# notation to refer to current row values in the LOV query definition.
    Ideas? Thanks

    Hi Scott,
    Thanks ..I formed some idea about APEX_UTIL.KEYVAL_NUM. I have a problem where I am not able to decide if I can make use of this package and solve..
    Can you please have a look at this thread.. Re: Tabular form - Different LOV for different rows
    I have a SQL which populates a tabular form on the page.Coulmn1 some text, Column 2 is to show a drop down as YES and NO. i am trying to freeze the option for rows 2,3,4 as NO, if the Option choosen in first is NO.
    So, what I am trying to ask is..can I save my first selection in a global variable and use it in where clause of [select list query] the second drop down..Not sure how I can do this..Appreciate if you can show me a direction.
    Thanks,
    Chaitu.

  • Is it possible to create different invoices for a single contract?

    Hi All,
    is it possible to create different invoices for a single contract?
    My customer is asking an invoice per service line.
    Thank you for getting back to me on this.
    Kind regards
    KK

    Can somebody please advice?

  • How can i give 2 different names for the same attribute in querypannelVC

    Hi
    I have a View criteria and exposing as a query panel.In the VC, we are using one VO attribute instance twice"FullName".We have a requirement of display 2 different names for this attribute in the query panel Ui.Attached the VC screenshot.
    Ex:Present in the Query panel Ui fields are displaying like
    FullName
    FullName
    Requirement:
    Owner
    Assignee
    Thanks in Advance,
    Naga

    Hi Thanks for the reply..So are you saying like add the same "FullName" attribute twice with different Alias Names(Owner,Assignee) ?But here we are having the FullName as common and depends upon role we are displaying "Owner" or "Assignee".If i create two instances for same attribute will it not be like redundancy ?

  • How to display three LOVs for a single label name

    I have requirement to display three LOVs in a form which needs to be displayed side by side (instead of each item in a separate column). The name is common for all three cascaded LOVs and also I have other apex items in the same form displayed as two apex items per each row. The display format is something like ..
    Item1: Tex field Item2: Text field
    Item3: Radio button Item4: Text Field
    Item5: Text Area
    Item6 : LOV1 LOV2 LOV3
    any ideas are appreciated.
    thanks,
    Surya

    Surya:
    This is easy to do. Here's how
    Define the first LOV as you would normally.
    For the second and third LOVs set the following attributes
    Label : Leave Empty
    Begin On New Line:NO
    Field:NO
    Varad

  • Select query based LOV for tabular form attributes

    Hi HTMLDB Team,
    Congrats u all for the new release of HTMLDB in htmldb.oracle.com.
    I badly need a solution of the below problem.
    Say , i have table called user_col_comments now i want to display the table_name ,column_name and comments in a tabular form.I displayed only one row for the tabular form.Now i create a select query based LOV for attribute table_name where i got all table_name in drop down list.
    Point is that after selecting any data from drop down table list i want to get the corresponding fields to be populated in column_name attributes.How can i wrote the select query based LOV for the attibute column_name.
    I wrote it as 'select column_name d,column_name r from user_col_comments where table_name=:TABLE_NAME Its not working?
    Similarly i want same thing to display for comments after matching both table_name and column_name.
    Any solution to get rid of those problem will be highly appreciable...
    If u need my htmldb.oracle.com userid and password to solve the problem i will sure let u email it.
    Cheers,
    Eman

    hi rchalton,
    can u plz little bit more clearer .I know hopefully u can imagine the problem and may u guide me thru proper way.....One think i understand that there must be multiple process and submit but "only when..." that u have said i cant understand that part........
    U are welcome to give me proper solution.....
    Thanks for the reply ....atleast one can pay hid to me.....
    Cheers,
    Eman

  • Set 'IgnoreUnrelatedDimensions' property to True for a single attribute

    Currenlty the 'IgnoreUnrelatedDimensions' property is set to false for a particular measure group. And because of this the measure value is null againist all unrelated dimension attributes.
    There is a requirement to show the measure values against one of the attributes within unrelated dimension, while it most remain null against all the other attibutes.
    Is this anyway possible ?
    Saurabh Kamath

    Thanks Pritam.
    I think you didn't get my question.
    For Example consider AdventureWorks cube, in case of 'Sales Targets' measure group IgnoreUnrelatedDimensions property is set to false and because of this when we look at the value of '[Measures].[Sales Amount Quota]' against any attribute of 'Geography'
    dimension (unrelated dimension) the result is null. Or even Category attribute from Product dimension.
    If I switch IgnoreUnrelatedDimensions property to "True", I get to see measure values for all the attributes of 'Geography' dimension and attributes from other unrelated dimension as well. But I just want have a look at '[Measures].[Sales Amount
    Quota]' against Country attribute of Geography dimension.
    Answer:
    Inclusion of a simple script command shown below will do the trick.
    Scope([Geography].[Country].Children,[Measures].[Sales Amount Quota]);
    This = [Geography].[Country].CurrentMember.Parent;
    End Scope;
    So [Measures].[Sales Amount Quota] value is seen against Country attribute of Geography dimension even though there is no relationship between 'Geography' dimension and 'Sales Targets' measure group, and IgnoreUnrelatedDimensions property
    of 'Sales Targets' measure group is set to false.
    Saurabh Kamath

  • Different Style for a single component

    Hi Everyone,
    <<Searched in the forum but could not find my specific need.>>
    Environment : Studio Edition Version 11.1.2.3.0
    I have a multiple panelTabbed components in my applicatioin. I have a Custom SKIN for styling.
    But for one specific PanelTabbed,  the customer wanted to display the tabs as links. There are two questions here
    1. Is there a way I can display tabs as command links
    2. Using Css can i achieve showing tab as a link.
    Best Regards,
    bnkr524

    bnkr, you don't applay a different skin, but you applay a different style class from your active skin which changes the look & feel of the component.
    Sample: This is the active skin for an af:inputText cmponent
    af|inputText { padding-top: 2px; }
    af|inputText::label
      width:11.0em;
        display:block;
        float:left;
        color:#333333;
        background-color: #ffffff;
        margin-top:0.3em;
      text-align:left;
    Now you can define a new style class .mySpecialInputText as
    .mySpecialInputText af|inputText::label
         width:1.0em;
         text-align:right;
            background-color: #0f0f0f;
            padding-right: 3px;
    If you now specify the 'mySpecialInputText' as styleclass on an inputText component it uses the new style.
    Timo

  • How to set different margins for a single document?

    Hello,
    I'm creating a Pages document that will be exported to PDF.
    On text pages I need to set margins on all sides, but for photo pages I want the margins completely removed.
    What would be the best way to do this?

    The best way would be to choose either *Layout mode* which is free form layout except for headers and footers, or to use *Word Processing* mode but make all your Photos in Floating imageboxes which can be placed wherever you like.
    see p132 of the Pages09_UserGuide.pdf downloadable from under the Help menu.
    Peter

  • P/L A/c for a single day gives different results for different users

    Hi!
         We have SAP B1 8.81 (PL 09) in our office. P/L Account for a particular date gives different value for a single account (Other Income Account) for one user and a consistent value for all other users. The user in question is a super user and does not seem to pick a specific entry posted in the Other Income Account for that day thus giving erroneous result. I have checked the Trial Balance for that day and it gives proper result. Only the P/L account gives erroneous data. Could anyone help with the reason for this.
    Thanks
    Sreekumar

    Hi Jitin,
              Thanks for your reply.
              I tried the way you mentioned. However, the result is the same.
              The entry that I'm talking about is an automatic journal entry posted through the Outgoing Payment option.
              To make it more clear, an outgoing payment to a vendor was posted on 05/19/11 for 1,42,178.32. The check was drawn only for 71,089.16 which was the correct amount and the remaining amount (71,089.16) got posted in the Other Income account. The P/L account for this date is not picking the amount of 71,089.16 in the Other Income Account.
    Thanks & Regards
    Sreekumar
    Edited by: Sreekumar on Jan 31, 2012 5:58 PM

  • Different currencies for multiple line items in a AP invoice?

    Hi, Expert,
    Is it possible to assign different currencies for multiple line items in a AP invoice?
    Eg:
    One vendor is supplying raw materials from different regions, and we have to raise one invoice with different currency rate  to each items 
    regards,
    Sanju

    Hi Sanju,
    It is not possible to assign different currencies for multiple line items in a AP invoice.
    Try to book the different documents(different correncies for a single vendor in a A/P Invoice).
    Regards,
    Madhan.

  • Maintaining different values for Accounting Type (KOART)

    Hi experts,
    I have several accounting tcodes such as FBV0, FB03, FB08, FV65,FV60 in one parent role.
    FV60, FV65 are added to this role as FBV0 is checking internally for this authorization object. 
    All these tcodes share a same object  F_BKPF_KOA which differ by activity and the accounting type (KOART).
    The KOART field is an org level field defined by SAP and I have entered D,K,S as values.
    But the auth object values should be different for the accounting types.
    i.e  03 for D,K,S
         01,02,03,77  for S
         03,77 for K
    All the derived/child roles for this parent should also have the same document type as the parent. How can I achieve this as this object is maintained at the org level.
    I could not delete this obj from being an org level element as it is defined by SAP.
    Appreciate your response.
    Thanks
    Kee

    > If KOART is an org field you cannot differentiate between authorized activities for each of the KOART values in one role. Whether you maintain values in the parent or not only matters if you're planning to assign the parent roles to users or if you just use them as templates.
    >
    Parent Roles should not be assigned to any users. It should only be used as Template to grant and control Non-Organization Level authorizations centrally (you can see these option in Parent roles). Concept of Parent-Child role is to avoid creating same roles where all authorization field values are exactly same and differs only for Organization Values (different Site / Branch Office specific constants). So we can maintain the Org. levels as different sets for a single Parent role as I already explained.
    For more details:  Note#314513 - PFCG: Maintaining individual organizational levels
    Note#532695 - PFCG: Incorrect organizational level values in derived roles
    >
    > Please elaborate on this one. I think we're running into an urban myth here....
    >
    > Organizational levels are only instruments to assist in building roles. For the final profile it does not matter whether a field is organizational or not. It will not influence the behaviour of the authority-check.
    For the final profile it matters during loading of User authorization data to User Buffer. Think about the Parameter values stored for a particular user. How it behaves for all Objects containing a particular Auth. Field and providing default assignment for that user whenever he tries to perform any action where this field is required to populate.
    If we delete any Object from SU24 proposal then it doesn't mean that the check will not be carried out or the Org. Field contained in that object will not be populated with it's values. I tried to make this clear to the requester.
    Regards,
    Dipanjan
    Edited by: Dipanjan Sanpui on Jun 8, 2009 7:49 AM

Maybe you are looking for

  • Infoset based on logical db PNPCE

    A collegue already created an infoset based on logial daabase PNPCE.  When the user runs a query based on this infoset and asks for all education data for a specific PERNR, The result is only 1 line, the one with the highest enddate, not all educatio

  • Removing scroll bars from hierarchial tree

    hi scroll bar appears in the hierarchial tree ,even if it is not expanded to the fullest, does anyone have any workaround for removing this scrollbar if the data is less thanx atul

  • Editing photos and deleting original

    Hi, I have tried to edit my photos (crop, change colors, etc.) but I always end up with my new edit having replaced my original photo, even if that is not my goal. Do you know of a way where I can both edit my photos and keep the originals? Moreover,

  • I've entered 2 different credit cards & still can't make app purchases.

    Credit cards are both valid. I tried 2 types & purchases are denied. I get a message saying to go to the apple support site for help & so far I can't figure out what the problem is.

  • Content Services / Content DB

    Anyone know the relationship between Oracle CM SDK, Oracle Content Serivices and Oracle Content DB. We are happily running away on the CM SDK, but what does the future hold?