LOV sort STATIC values

I like to make use of a Checkbox to maintain the appearance of certain columns of report.
Either I use STATIC LOV and paste all columns in there - QUESTION 1: how can I sort the sequence - default is alphanumeric - ?
Or QUESTION 2: when I use a dynamic LOV how can I obtain the columns of a table to use these in a Checkbox.
Any help wud be appreciated.
brdgs
Bernhard

Bernhard,
to get a sorted LOV you can create a new list template. Go to Shared components -> themes and templates -> details of the theme (click on the name of the theme) -> Create. If you're asked for the theme class choose vertical sorted list. The items of the list are sorted alphanumeric.
For question 2 I have only a suggestion - Oracles provides a table "DBA_TAB_COLUMNS" that includes the columns of each table. Maybe you can make a select on this table to create the dynamic LOV?
Regards,
Bettina

Similar Messages

  • Sorting a column according to LOV displayattribute's value?

    Hi,
    a quick question over an issue that probably some of you have already encountered.
    How to sort an af:column in a table according to the content (displayname) of the LOV associated with the FK attribute?
    e.g. field Orders.CustomerId with a LOV that takes values from a Customers table, LOV value: Customers.Id, LOV display attribute: Customers.Name
    If I click on the CustomerId column on the parent af:table (Orders), the column gets ordered according to Orders.CustomerID (or Customers.Id, they're the same of course) which is meaningless to the user.
    How to actually make the column ordered according to what the user actually sees, thus Customers.Name?
    Tried fiddling with af:column's sortProperty but got nowhere.
    Is there a way to get this behaviour?
    thx in advance

    Hi,
    Sorry. I overlooked the question. In this case, you might want to modify the VO query to include the FK attribute as well and change the sortProperty of the table to the new attribute.
    For ex.
    Emp (with Dname) VO query
    select emp.empno......dept.dname
    from emp emp, dept dept
    where emp.deptno=dept.deptnoFor the deptno column in the af:table, change something like
    <af:column sortProperty="Dname"  headerText="#{bindings.DeptView1.hints.Deptno.label}" id="c3">Also make sure, you set the Updatable property of the Dname attribute in the vo to never.
    -Arun
    Untested

  • How to change the values in an LOV based on values selected in another LOV

    Hi,
    I have a requirement in ADF where there are two LOVs. Based on the values that I select in the 1st LOV, the values in the second LOV should change dynamically.
    Also, the 1st LOV accepts 3 values, for every value I select, a different query is executed to populate the 2nd LOV.
    I have a rough thought that I can use 3 different read only view objects containing these 3 queries. And based on the value I select in the 1st LOV I can execute the corresponding View object from the backing bean. But my doubt is how to link the results of that query that is executed to populate the 2nd LOV.
    Thanks in advance.
    Edited by: 886591 on Sep 21, 2011 4:48 AM

    Hi Brisk,
    Thanks for your reply.
    The link that you have provided explains how to disable and enable the other LOVs based on a parent LOV. But in my case there are two Select One Choice fields i.e. the dropdowns (sorry that I addressed it as LOV in my previous post which might be confusing). There are 3 static values in the parent dropdown where each of them are associated with a different query. for e.g if the three values in the drop down are A, B and C; if i select A, then query associated to A should be executed ; if i select B, then query associated to B should be executed and if I select C, query associated to C should be executed. Then the output attribute of that query should be populated in the child dropdown.
    Please let me know about the solutions to this.
    Thanks,
    Kavitha

  • Dropdown box with query *and* static values?

    Hi guys,
    If I had a dropdown box with a LOV being generated from a query,
    Select distinct PERSON from USER_TABLE
    Bill
    Fred
    Steve
    Is it possibe to somehow add static values so that they sit permanently on top of what ever values are produced by the query?
    Null
    Not Null
    Bill
    Fred
    Steve
    Thanks,
    Neil.

    select 'Null' d, 'Null' r from dual
    union all
    select 'Not Null' d, 'Not Null' r from dual
    union all
    select distinct person d, person r from user_table
    ...like that?
    Scott

  • Static values in SAML assertion

    In Saml 1.0, will it be possible to include static values in SAML assertion?

    These are two different queries. The static list:
    select * from tab_1 where
    (col_1) in (1,2,3) means return all rows where COL_1 = 1 or COL_1 = 2 or COL_1 = 3. The syntax only allows one column as the argument in this sort of IN.
    The variable list:
    select * from tab_1 where
    (col_1,col_2) in (select col_1,col_2 from tab_2)means return all rows where TAB_1.COL_1 = TAB_2.COL_1 and TAB_1.COL_2 = TAB_2.COL_2. In this case the number on arguments on the left hand side of the IN must match the number of arguments on the righthand side of the argument.
    In other words this is not valid syntax either: select * from tab_1 where
    (col_1,col_2) in (select col_1 from tab_2)If you want to test two columns against a static list you need separate clauses for each of them.
    You may find the documentation helpful.
    expression lists: http://download-west.oracle.com/docs/cd/B10501_01/server.920/a96540/expressions14a.htm#1029285
    membership conditions: http://download-west.oracle.com/docs/cd/B10501_01/server.920/a96540/conditions5a.htm#1013449
    Cheers, APC

  • Static Values in IN operator

    Hi All,
    Can we use static values with IN operator for multiple columns.
    Ex :- I have a table tab_1 with col_1 and col_2.
    If i try to execute the query
    select * from tab_1 where
    (col_1,col_2) in (val_1,val_2)
    Iam getting invalid relational operator error message.
    But
    select * from tab_1 where
    (col_1,col_2) in (select col_1,col_2 from tab_1)
    Works Fine.
    Pls help me to understand this problem.
    Thanks & Regs
    Dhananjaya.H

    These are two different queries. The static list:
    select * from tab_1 where
    (col_1) in (1,2,3) means return all rows where COL_1 = 1 or COL_1 = 2 or COL_1 = 3. The syntax only allows one column as the argument in this sort of IN.
    The variable list:
    select * from tab_1 where
    (col_1,col_2) in (select col_1,col_2 from tab_2)means return all rows where TAB_1.COL_1 = TAB_2.COL_1 and TAB_1.COL_2 = TAB_2.COL_2. In this case the number on arguments on the left hand side of the IN must match the number of arguments on the righthand side of the argument.
    In other words this is not valid syntax either: select * from tab_1 where
    (col_1,col_2) in (select col_1 from tab_2)If you want to test two columns against a static list you need separate clauses for each of them.
    You may find the documentation helpful.
    expression lists: http://download-west.oracle.com/docs/cd/B10501_01/server.920/a96540/expressions14a.htm#1029285
    membership conditions: http://download-west.oracle.com/docs/cd/B10501_01/server.920/a96540/conditions5a.htm#1013449
    Cheers, APC

  • LOV shows no value after conditionally showing other field

    I am a newbie quietly desperate trying to do something basic.
    I have a comments field LOV (static values not sql) as "select list with redirect". If they select "other" then a second field appears to enter details. Field appears as planned but value in LOV disappears. Any other value chosen displays even it it hides the further comments field.
    The session state shows that the value is "other" but it is not displayed.
    Thanks
    Ron

    Hi,
    If the LOV value is stored on the database, then the settings should be:
    Soruce Used: Always, replacing any existing value in session state
    Source Type: Database Column
    Source value or expression: Name of database field
    The display value for Other shouldn't affect the saving of the data and I don't think that "Other" would cause a problem as such - I tend to use initials for things like that, so would have "O" instead. I have set up a test page on my OTN and used the following for my LOV and it works as expected: STATIC2:No;N,Yes;Y,Other (Blah blah blah);O
    The "Other (Blah blah blah)" is there when the page reloads and the other fields do become available.
    Andy

  • Is there a standard map sorted by values

    Tree Map is sorted by keys..Is there standard jdk map sorted by values ?

    You can also use a method similar to the following:
    private static final Collator PL_COLLATOR = Collator.getInstance(new Locale("PL"));
         public static <E> Map<E, String> sortMapByValue(Map<E, String> unordered) {
              Map<E, String> ret = new LinkedHashMap<E, String>();
              Set<Entry<E, String>> sort = new TreeSet<Entry<E, String>>(new Comparator<Entry<E, String>>() {
                   public int compare(Entry<E, String> o1, Entry<E, String> o2) {
                        Entry<E, String> e1 = o1;
                        Entry<E, String> e2 = o2;
                        String s1 = e1.getValue();
                        String s2 = e2.getValue();
                        return PL_COLLATOR.compare(s1.toLowerCase(), s2.toLowerCase());
              sort.addAll(unordered.entrySet());
              for (Iterator<Entry<E, String>> iterator = sort.iterator(); iterator.hasNext();) {
                   Entry<E, String> e = iterator.next();
                   ret.put(e.getKey(), e.getValue());
              return ret;
         }

  • Query Issue with adding a static value

    I have written a query in SAP that works the way I need it to. I am going to schedule it so that SAP does a file transfer of the output to another area where the data will be accumulated.
    My problem is that I want the name of the system to appear at the end of each line but it is not in any table I can find to match up with the userid.
    EX:
    UserID        Group                          System
    JDOE         HR Query Group            P201
    The field for system is not in any tables but I want to add it and give it a constant/static value all the time in the output.
    Any ideas?
    Thanks!
    Justin Dauby -- SAP Security Analyst
    Kimball International Inc.,

    The name of the system is not in a table, but rather a structure called SYST. You can evaluate it using the system field sy-sysid.
    Another option is to call function module RFC_SYSTEM_INFO. The export parameter RFCSI_EXPORT will deliver the system id from component RFCSYSID of the structure RFCSI.
    Cheers,
    Julius

  • BO Webi: How to populate a variable with the set of static values for Graph

    Hi All,
    I have the data: Order number, Order Date, processing time coming from the SAP Bex query in the below format:
    Order No    Order Date    Processing time (Days)
    1                 Jan-2011      4
    2                 Jan-2011      5
    3                 Feb-2011      6
    In BO webi report, I have to report the number of orders which were processed in <1day, <2days, <3days,...<10days in a graphical view. i.e., X-Axis:  <1day, <2days, <3days,...<10days(10 static buckets for the processing days)
    Y-Axis: Number of Orders.
    The graphical output should be like below:
    X-Axis: <1day, <2days, <3days,<4days,<5days,<6days,<7days,<8days,<9days,<10days
    Y-Axis: 0, 0,0,0,1,2,3,3,3,3  (count(Order No)) (Cumulative count)
    I am able to calculate the number of orders individually for each of the 10 buckets. But the problem i am facing is that I am not able to hold the 10 static bucket values in a variable to use it for the x-axis in the Graph, as these 10 static bucket values are not coming from the backend source.
    I would like to know if there is way to populate a variable(to use it for the X-Axis in the graph) with the set of 10 static values.
    Any help would be highly appreciated.
    Thanks,
    Leela

    Hi ,
    I think we can use the variable as X-axis in chart.. but Variable Qulaification should be Dimension.
    can you try this?.
    Using efasion universe
    1) Select month and Sold at (unit price) , then run the query
    2) create the variable V_Month ==If [Month]=1 Then "Month1" Else "Month2"  (Note = Variable Qulaification should be Dimension)
    3) Create the variable V_Sum= sum (Sold at (unit price))
    4) create another variable V_Cumulative_Sum==[V_Sum]+Previous([V_Sum])
    Now add V_Month and V_Cumulative_Sum in table , then convert to chart.. now you can add the variable V_Month as X-axis of the chart.
    Hope this will help:)
    Thanks
    Ponnarasu K

  • Evaluate function doesn't work with Static values

    Hi All,
    I have been trying to call a evaluate function and have been successfully in calling it..but i face problem when i pass any static values to it...
    For eg
    when i try calling the function using one of the columns...it works fine
    Evaluate('dbo.Hello(%1)',"Dim table_name"."Department" )
    the function normally changes it to upper case.so i get all the value in the column in department in upper case.
    but when i call any static value like
    Evaluate('dbo.Hello(%1)','hello') it throws the following error..
    [nQSError: 43113] Message returned from OBIS. [nQSError: 43119] Query Failed: [nQSError: 42015] Cannot function ship the following expression: Evaluate( dbo.Hello(%1),'hello') . (HY000)
    Can any one please help me in this
    Regards
    SK

    Which version of Jdev are you using? What are the results you are getting?

  • Setting up a static value in a field then saving it

    if i have the case of a field, and i add a dynamic action to set a static value for it (e.g. a status field and when accessing a certain form it should change the STATUS field to CONFIRMED as a static text), how do i make sure that this value gets saved into the database?
    meaning, when i create the assigned form and set the dynamic action to display the status (as a display only field) as "confirmed", when pressing the apply changes button nothing happens and the CONFIRMED status does not get saved into the database.

    Make sure the printer is at least 3 feet away from the router.  Now try here.
    Set a static IP in the printer (click here) outside the DHCP range of the router (check your manual). 
        This is for Linksys routers but can be used for all routers.  Verify your DHCP range and change this
        first if needed.  More Wireless Printing help is here.
    Say thanks by clicking the Kudos Thumbs Up to the right in the post.
    If my post resolved your problem, please mark it as an Accepted Solution ...
    I worked for HP but now I'm retired!

  • Sort variable values in selection box in BEx web report.

    Hello friends,
    In my BEx web report I have cal/month selection. When I do dropdown to select values it starts with 01/1960 and I have to click 10 times to get to 01/2006, 02/2006 and so forth.
    Is there a way to sort these values so I can get most current cal/month in first list?
    Thanks in advance.
    Regards,
    BJ

    I would consider changing the read mode for the dropdown box.  Are all of those dates actually relevant?  Check out the properties of the dropdown box in WAD. 
    Thanks,
    Jeff

  • Sort the values in Bex query variable screen

    Dear Experts,
    Is it possible to sort the values of a dropdown list for variables on BEX variable selection screen ? 
    For example, For calender month selection, the values are by default sorted by ascending order.
    Is it possible to sort by descending order ? 
    Regards,
    ravindra

    Hi Ravindra,
    yeah it is possible by writing an abap code for the field calmonth/week...etc this is depends on the F4 help of the selection field. so you need to write a code for F4 help for making it in descending order. hope it helps.
    Thanks,
    Vachan

  • Sort F4 values in BEX variable screen

    Hi ,
    Does anyone know how to sort F4 value help in BEX variable selection screen. This query has come up time and again in SDn and there seems to be no proper reply to this. If anyone has worked on this do let me know.
    Thanks,
    Vaishnavi

    Hi Nara,
    Kindly have a look at below thread,
    Sort the values in Bex query variable screen
    Hope this helps.
    Regards,
    Mani

Maybe you are looking for

  • IPOD VIDEO PROBLEMS

    I have a 30gb ipod video. When I plug it in my computer it plays. When I use my earphones or my brand new monster fm transmitter it doesn't play at all. What can be the problem and how can I fix it?

  • Event - At selection-screen

    Hi Friends, Use of at selection screen event is to perform some validation PBO .. process before output. But wht is the use of AT SELCETION-SCREEN ON AT SELECTION-SCREEN OUTPUT Please explain with some sample programs.

  • Removal of Reservation on Process Order Locking

    Hi Experts, I'm unable to clear the reserved materials under a Process Order after Locking the same. Is it possible to release the reserved material after locking an Order? Regards Subhasis

  • Facebook push notification issues

    I have recently converted to an iPhone 5C.  I was previously on Android and never had this issue before. I have followed step by step instructions and have successfully installed other apps such as twitter, bbm, whatsapp and am able to receive notifi

  • Adding anchor is adding a 'sub-layer' ! help!

    Help!! I haven't had this happen before,.... I created and named a layer. Typed in a header and added an anchor -- BUT THE ANCHOR DOESN"T APPEAR! I find it 1/2 way down my page, in a newly created layer! When i loof at the 'layers" panel, it is in fa