How to display the current value on TOP in a LOV

Hello

I'll have something to say that p1_type a LOV with the following SQL query-based.
select emp_type d, emp_typ r
from emp
default results
EMP
VEN
CON
GEN
suggest that the current value of P1_TYPE is CON... is there a way... while displaying on the screen, CON should be the 1st element to display in the LOV.
CON
EMP
VEN
GEN
Equally, if the current value is - EMP... display must be
EMP
CON
VEN
GEN
Thank you
Deepak

Hello

This can be done without a statement from the UNION. See: [http://apex.oracle.com/pls/otn/f?p=33642:249]

This example uses:

SELECT X.ENAME d, X.EMPNO r
FROM (SELECT CASE WHEN EMPNO = :P249_EMPNO THEN 1 ELSE 2 END SORTORDER, EMPNO, ENAME FROM EMP) X
ORDER BY X.SORTORDER, X.ENAME

The element that corresponds to the selection gets a SORTORDER 1 value, all others are 2. This value is then the primary sort for the list order

Andy

Tags: Database

Similar Questions

  • BI Layout Editor - how to display the current date?

    Hello

    Recently used BI Layout Editor (previously using MS Word to create the presentation of the State).

    He seems really nice and easy to use.

    However quick Q - How to display the current date in the layout editor (to show the report run date).

    Any quick suggestions is appreciated.

    Thank you

    Vivek

    Tab displays your selection available.

    It's like how when you insert the table in the Word document and when you select the table, you would see 2 additional tabs such as the design and the tool.

    Can you please insert "Text Element" and select the text element and see if you go to the tab 'text '?

  • How to get the current value of db in backing bean

    Hello

    I use jdeveloper 11.1.2.3.0

    I would like to know how I could access the old value of an attribute in backing bean.
    I know I can get it in terms of EntityImpl with the getPostedAttribute function,
    but as I see that I'm not allowed to access this function in the ViewImpl.
    I get this error:
    Error (151,33): getPostedAttribute (int) has protected access to oracle.jbo.server.EntityImpl.

    Could you help her?
    What is the right way to get the current value on db in backing bean?

    Thank you very much!

    You can add a transitional attribute to the entity object to hold the old value of the desired attribute, then you can add this attribute to the view object.
    Check [url http://www.youtube.com/watch?v=iKVIiK0FBXI] retrieve the previous value of an attribute ADF BC

  • How to make the current value by default to all controls both

    Choose 'Data Operation'-> 'Do current Default value' to several controls requires a lot of clicking. Is it possible to do so with a single click?

    Yes.  If you select no control, he says 'Do the current default values' and it does all the controls at the same time.  If you have a control is selected, then it does so only the selected controls.

    Reset the current values default works in the same way.  Do not select anything, he does all the controls at the same time.

    Bob Schor

  • How to get the current value of the checkbox button programmatically in the adf

    Hello
    I want to get the current value of the checkbox (checked/unchecked or 0/1) in my bean java whenever I press the button "submit" on my page jspx.

    My version of JDeveloper is: 11.1.1.6.0

    Where the value checkbox link? The State of the check box is held in the value property of the check box. This is normally an EL as

    #{bindings.Myvar1.inputvalue}
    

    or something pointing to a bean property. This value can be read from the listener to the action of the submit button

            BindingContainer bindingContainer = BindingContext.getCurrent().getCurrentBindingsEntry();
            AttributeBinding attr = (AttributeBinding)bindingContainer.getControlBinding("Myvar1");
            Object obj = attr.getInputValue();
    

    Timo

  • How to display the current date in a project CP5?

    What is the best way to display the current date in captivate?

    Hello

    Use a text caption in which you insert the system variable cpInfoCurrentDate.

    Insert a variable is possible with the X in the Format of the text caption properties panel accordion:

  • How to display the current date in a Flex application

    I need to display the current date in my Flex application.  Is there a simple way to do this and post it as a text field or label?  In addition, it can be formatted to display the date as "day of the week, month, day, year"?

    Thank you!

    You can use this page and copy the following code to change the formatString property.

    http://livedocs.Adobe.com/Flex/3/langref/MX/formatters/DateFormatter.html#FormatString

    If this post answers your question or assistance, please mark it as such.

    
    http://www.adobe.com/2006/mxml"
      creationComplete="init();">
      
        
      
      
      
    
    
  • How to change the default value of a parameter and LOV attached to a parameter

    Hi all

    I'm new to the discoverer reports and I need the following tasks:
    1. the need to change the SQL of a discoverer report
    2. need to change the default value of the parameter (from constant for the current month). In the discoverer more responsibility when I open the report and go to tools > > setting > > edit
    I can see the value of the default constant is given. On the right side there is a drop down that says "Value". I suppose that if I put a SQL as default, I need to change the drop-down list for sql or something and then put the code SQL. Problem is the menu drop-down is froezen and I can't change it.
    Even if I try to create a new report parameter.
    3 need to change the LOV associated with the element on which is based the setting.


    I have the discoverer more responsibility to myself and did not have the discoverer administrator (as forms 6i developer desktop tool) tool. My questions are:
    1. can I modify the SQL query using discoverer and responsibility or do I discoverer Administrator tool?
    2. any help on how to get the default value of an SQL query? Currently, it is a constant value.
    3. is there a way to understand is that the LOV is made of the constant values fixed (as a set of values independednt) or they are read in a SQL (value valid table sets)?

    Solutions pointers will be greatly appreciated!
    Thanks in advance.

    Thank you and best regards,
    Shashank

    It is not possible to use a default calculation for a paraeter

  • How to display the current Options in the window treatment result

    Hello

    I am preparing customized results processing plugin in TestStand. TS help I can use Base.OptionsDescriptionExpression to set the Options column in the window treatment result. In this column may consult the summary current settings. I want to display the path of the directory of report in this document, as in the sample report in Simple text format. Unfortunately I'm not able to do this...

    I use FileGlobals.ModelPluginComponentDescription.Default.InitializationExpression to set default report path, in plugin options, by using the following expression:

    #NoValidation, ModelPlugin.PluginSpecific.Options.ReportOptions.Directory = RunState.Engine.GetTestStandPath (TestStandPath_Public) + "\\Reports.

    Then I changed FileGlobals.ModelPluginComponentDescription.Default.Base.OptionsDescriptionExpression into #NoValidation, ModelPlugin.PluginSpecific.Options.ReportOptions.Directory which should contains the default path for the report estimated at InitializationExpression and this directory should be displayed in the column of the Options in the window treatment result.

    I don't know what Miss me, because it doesn't work. When I use the breakpoint in model Plugin - configure the Standard Options to see the Parameters.ModelPlugin.Base.OptionsDescriptionExpression, it displays:

    #NoValidation, / / disable validation because higher level ModelPlugin property exists only when running

    ""

    So it seems that my Default.Base is not copied in Parameters.ModelPlugin.Base

    So how do you view the current Options (at least report the path) in the window treatment outcome? Help, please

    OK, I think what is happening. FileGlobals.ModelPluginComponentDescription.InitializationExpression is evaluated when I add the new instance of the result new treatment-> insert plugin. Then each window treatment of the result of time shows that Parameters.modelplugin.base.optionsdescriptionexpression is evaluated to update the Options column.

  • How to display the max value of channel report repel?

    Hi all

    I have 2 text boxes start and ready target on my report. I need my minimum value of the layer and the other value to automatically display in the start menu and to target channels max case respectively.

    How can I go about it?

    Rsh

    Hello, RSH,.

    Now, how can I limit the decimal points to 2 digits, say, for example, we use d.dd. How can I use it here?

    You can simply convert the string variables and the format of this string using the str function in DIAdem.

    Here is an example for your specific application:

    Maximum: @@str (CMax("[1]/Speed"), "d.dd").

    I hope this helps.

    Otmar

  • How to display the current time?

    Hi all!

    I know how to get the Date / time like this:

    {Label

    text: {}

    New Date();

    }

    }

    in which the label displays, for example: ' 2013-02 - 10 T 15: 52.28.

    How to display ONLY the hour (15)?

    Thank you

    -Ali

    Hello

    Use the formatDateTime Qt method:

    http://Qt-project.org/doc/Qt-4.8/QML-Qt.html#FormatDateTime-method

    For the opening hours:

    varhour = Qt.formatDateTime (new Date(), "hh"); or 'h '.

  • How to display the current page and the total number of pages for a group

    Hi all
    I have a requirement to indicate the current page number and the total number of pages for a group. For example:

    < A >
    < 1 >
    Row1
    row2
    ....
    Clotilde
    < / 1 >
    < 2 >
    Row1
    row2
    ....
    Clotilde
    < / 2 >
    < 3 >
    Row1
    row2
    ....
    Clotilde
    < / 3 >
    < /A >

    Now my requirement is Group 1 can have lines going into several pages say x, so I need to show with in the Group 1 x and on the next page page 1 page 2 x etc.
    Although Group 2 spans several pages, I need to see page 1 of y... etc.

    Can someone help me please how to do this?


    Thank you
    Sunny

    Try if@section

  • How to check the current values of COMMIT_WAIT and COMMMIT_LOGGING

    Is it possible that you can check in a session to determine the current settings for COMMIT_WAIT and COMMMIT_LOGGING? I am not referring to a situation where they are defined via ALTER SYSTEM and changed the world, but changed using ALTER SESSION and locally defined. I'm currently testing a trigger to do it for a very specific batch user and just need to be able to log on and check if the adjustment was established successfully or not.

    >
    Is it possible that you can check in a session to determine the current settings for COMMIT_WAIT and COMMMIT_LOGGING?
    >
    Well, since these are the initialization parameters, you can check the PARAMETER V view $

    select name, value from v$parameter
    where name like 'commit%'
    
    NAME,VALUE
    commit_point_strength,1
    commit_write,
    commit_wait,
    commit_logging,
    

    And after changing their

    alter session set commit_logging = 'IMMEDIATE';
    alter session set commit_wait = 'FORCE_WAIT' ;
    
    NAME,VALUE
    commit_point_strength,1
    commit_write,
    commit_wait,FORCE_WAIT
    commit_logging,IMMEDIATE
    
  • How to display the current state of Multipathing if VI client RDm

    Hi all

    How to view current status of Multipathing if VI client RDm.

    Is anyone have any document to explain in detail on RDM multipathing.

    I was able to do to the data store and can view it in VI client.

    Can someone advice me how do in the case of RDM? Do we need to install a multipathing software in the Virtual Machine?

    Some documents say multipathing is supported by default esxserver for VirtualMachine.

    Concerning

    Neela

    MPIO is host-based.

    http://vmzare.WordPress.com/2007/02/19/VMware-raw-device-mappingrdm/

    http://malaysiavm.com/blog/VMware-VMFS-vs-RDM-raw-device-mapping/

    http://www.vmadmin.co.uk/index.php/resources/35-esxserver/58-rdmvm

    Shan

    If you find this article useful, please give points using the buttons useful/correct... Thank you

  • How to display the current time inside the SQL prompt

    Hi all;

    I want to know how to set the time permanently in the SQL prompt.

    I'm running oracle database (10 g) on linux (5.5) machine.

    Thanks in advance.

    There under the name [g] login.sql file under ... sqlplus\admin (probably X:\xxx\product\11.2.0\client\sqlplus\admin), this file is executed whenever you connect to sqlplus. You may need to place ' set time on "in this file and save.

Maybe you are looking for

  • Automatically updated - don't want to not updated - how to stop?

    Unable to find a solution - found several with the same prob and the only solution was to AppGuard (that I pay for!) I know that the consequences of not updated! -I'm not always up to date. How do automatic updates to stop. I have the correct setting

  • Defy death while improving

    Thus,. I did the upgrade long-awaited to 2.2 through the MSU program to two phones Defy. The fine w/o blur to update retail_EN. Time for a version retail_DE with the blur. (from a friend on another PC) At some point, he says to disconnect the USB key

  • Open Subvi front shows its current state

    Hello I have a Subvi in my MainVi which calculates and displays things continually. In the MainVi, I have a button which, when pushed should open the Subvi front panel and display what ever he did at this point in time. I am able to simply display it

  • Cannot find drivers for Toshiba Satellite A665-S6094

    Let me start from the beginning, I had a virus because im a chronic Downloader and had to wipe my hard drive. I burned a cd of installation of windows 7 because I have the key of windows 7 on the bottom of my laptop. At the end of the windows 7 insta

  • Is X 63 Lexmark with Window Vista compatable printer

    I tried to plug my old printer of 8 year to my computer, but it keeps rejecting!