Question of value Popup Lov key (description of the poster, returns the key value) by default

Hello

I have a Popup Lov key (description of the poster, returns the key value) and I want a default value. It is based on a list (user name, id).
I tried to put the id of the user logged on as default, but what I see on the screen in the field is the value of the id, not the username.
How can I pass the user id and see the user name?

Thank you.

Oh! My bad, I thought you are talking about regualt lOVs not popups.

OK, so that's what you need to do, I tried it and it worked for me:

your popup LOV > default > type: body of the PLSQL function > and enter a query like:

declare
UID number.
Start
Select user_id from the uid of the user
where UPPER (username) = UPPER(:APP_USER);

This should show username and retune userid.

Hope this helps,

Sam
Please give good answers by marking correct or useful.

Tags: Database

Similar Questions

  • Popup LOV key greyed out: javascript change to "disabled" to "readonly"?

    With a Popup LOV key field, the description displayed as dimmed due to having a disabled = "disabled" attribute of the input tag. Grayed text is difficult to read and a question of ease of use in my application.

    I have not found a way to change this in Application Express and now read an answer in this forum there is no way to change this. However its replacement by a readonly = "readonly" attribute would change it: the text would be black and readable normally, while remaining unmodifiable.

    Someone can give me advice on how best to incorporate a javascript in my Apex page to remove the disabled attribute and add the readonly attribute to the input text tag? Thank you!

    Hi Mark - Three options come to mind.

    (1) use a block style in the HTML page for the re-style control disabled to more the look you want
    (2) use JavaScript to accomplish the same thing as above. Note that 1 and 2 can be a bit tricky as not all browsers likes to you allows you to change the style of the disabled items. That is to say a habit to ignore your changes of colors on a disabled fields
    (3) use JavaScript to change the disabled read-only control. If you do not want to allow them to click in the field (readonly fields are clickable and selectable, editable), you must add some additional JavaScript such as onFocus = "this.blur (); »

    The basic gist 2 and 3 is to find the element using either getElementByID ('') or by using the "document.

    . "syntax and simply run the following example:"
    var popup_fld = getElementById ('p12_blahblah');
    popup_fld.style. .....

    or

    popup_fld. Disabled = false;
    popup_fld. ReadOnly = true;

    To find the name of the field to the right for the var line, you should look into the source of a page with the pop-up page and see what is ID generated by APEX for the context field. You must also tmake that your javascript is after the shape since it will error if she tries to run before the form field is drawn.

    Hope that's enough for you're going to get. I didn't have the time to set up a complete example. Recognize the readonly fields are also submitted with the form while the disabled fields are not, then you'll want to do that there are no surprises in the functionality of the form when you make this change.

    Rgds/Mark M.

  • Popup LOV button 'search' in the Versions of IE - CSS Bug?

    Hello

    I just want to know if anyone has the same problem - it's only a small (but there is always a user who wants to fix!).

    When you display the Popup LOV window in Internet Explorer (IE9 and IE8) buttons are hard to read:

    https://plus.Google.com/photos/104459804528712563956/albums/5847964722134039761?AuthKey=CPGhjNi7rNf0Jw



    Kind regards
    Amanda.

    Published by: Amanda Walsh on 23 February 2013 13:13

    Amanda Walsh wrote:

    I just want to know if anyone has the same problem - it's only a small (but there is always a user who wants to fix!).

    I guess from what I see it is theme 25 (or one of his relatives there)? Can certainly duplicate this theme 25.

    When you display the Popup LOV window in Internet Explorer (IE9 and IE8) buttons are hard to read:

    https://plus.Google.com/photos/104459804528712563956/albums/5847964722134039761?AuthKey=CPGhjNi7rNf0Jw

    Confirmed on IE8 and 9. OK work on IE10 and any other recent, I tested on Windows, OS X and iOS.

    The involved CSS rule is:

    input.lovButton.hotButton {
      ...
      background-image: url('data:image/svg+xml; base64, D94bWwgdmVyc2...'); /* Encoded SVG truncated for forum legibility */
      ...
    }
    

    Which explains the IE8 problem because it does not support SVG background images. Cannot identify what is the problem with IE9 as it should support it. (Likely to be a browser bug: in the way it handles the complex cascade of the rules in question, or by the combination of the properties involved.)

    APEX point of view, I would say that the user that this problem is just. It is certainly a problem of accessibility because that made the contrast ratio of the button text in the background is 1.1:1; well below the WCAG guidelines. In addition to the rule for the SVG gradient background image, the CSS theme should include a rule of background color of help for browsers that do not support SVG backgrounds (or mysterious problems their display). It is common when you use advanced CSS backgrounds.

    So there is an easy solution to add the rule of rescue definition of Page HTML Head Popup list of values of the model, after the substitution string #THEME_CSS # :

    
    
  • Pop - up key LOV (description of the poster, returns the value)

    Hello

    I use this built in functionality to display data from a table, a very simple, just the id and name. Well, it shows me the ID number, the KP but not the name of the Agency

    Select * Agency

    It restores 1, 2, 3, 5, 4 (so the PK disordered instead of the column name) then I tried SELECT name of the agencies and again it returns me these numbers. I have developed a huge headache, faced with this. I'm doing exactly as in the demo

    I chose popup Lov key displays a description...

    then in the Source I tried first as in the example

    Only when the current value in session state is set to zero + static assignment value corresponds to the source attribute

    and I also tried

    always replace an existing value and a column of data

    and I also tried this trick of adding values static lov.

    nothing, at least I get the PK disordered poster.

    Of course, if I run it childish query select * from agencies in the sql script, it displays the table very well but when I try to get this value from the popup selector, it will not

    I must say that I have included this function within a form, so that the user who fills the form can click on the popup selector to select a value instead of enter manually (to avoid data inconsistencies)

    Does anyone know why this strange thing?

    Thank you very much

    Alvaro

    Published by: user12155340 on November 15, 2009 09:21

    You must rename the agency_name and the agency_id according to your field name in the table. and so the name of the table.

    the syntax must therefore

    Select display_value, return_value from by asc

  • The display "Display value" in a popup LOV

    Hi all

    I wonder if you could help me with this question. I have a LOV similar to this:

    Select the name display_val, id return_val
    < Table >;

    I want the LOV and form to display the display value "" and not the code. If I use LOV field type, it works, it displays the significant value to the field at a time, shape the LOV.

    The LOV having too many values, I need to go to a popup LOV. If I use the popup LOV the LOV will work ok, however, the form displays the ID

    How can I make the form to display the value of the end user and not the ID?

    Thank you

    You must set the element type ' Popup LOV key (description of the poster, returns the key value).

  • Presentation tabular popup lov display value erased during validation

    Hello Infantraj and Jitendra

    I have exactly the same problem as in your discussion here

    Presentation tabular popup lov display value erased during validation

    Could you please share what was the solution?

    Hi Mark,

    Just follow the steps described in the blog (Cluttermeleon: Oracle APEX - descriptions of disappearing Popup LOV key) which is given in the thread. Instead of Java script that is at the page level using

    function get_LOV_value (pLOV, pId) {}

    If (pId! = ") {}

    get var = new htmldb_Get (null, $v ('pFlowId'), 'APPLICATION_PROCESS is get_LOV_value', 0);

    get.addParam('x01',pLOV);

    get.addParam('x01',pId);

    Return get.get ();

    }

    }

    Thank you

    Infant Raj

  • Popup LOVs... where's the search value?

    Someone had a bit of luck to dig into the background of the popup LOVs?  Here's a question I'll try to find the answer to.  I have half of the answer, but not all.

    We have an external system that provides real-time data via webservices.  Our goal (and we did that day no problem) is to consume the XML response from webservice with PL/SQL and then turn us these data into pipeline of what looks/walks/talks like a table or view using functions.  The point here is to make these data available to Apex for various things, including the popup LOVs built on the pipeline functions.

    The challenge is that some Web services provide a large amount of data (for example, a list of parties, who at this moment in our dev environment is only about 16 K records, but as we move forward, we know that these data grow to be a good lines 118K or more).  Already at just 16K records, it takes a good 30 seconds for questioning.

    Popup LOVs of apex seem to be based on the model that they perform an implicit request by all reviews and then apply the filter on the value of research (if there is a value entered).  It is very good for LOVs against standard tables and views, but on larger volumes of data to a function in the pipeline against a data source that is out of our control... not very good.

    We made a functional decision on some LOVs (such as a list of 118 K coins) that any user in their right mind really never would come into such LOV and simply browse through the records.  They would already have an idea of a reference number or description of the part they would search by.  Our strategy was so to the LOV follow these steps:

    1 return at any line if the user did enter no search criteria.

    2 manipulate the LOV dynamically if the user did enter search criteria such as the result is * pre set * filtered first through the webservice (it accepts input parameters).  This greatly improves performance and so far we have work * for Apex regular page elements * but not for tabular forms (which is where my question arises.

    Here is an example of such a definition LOV:

    RETURN ext_parts_util.get_parts_lov_sql (p_search_val = > apex_application.g_x02);

    By trial and error, we have found that when the user is in the popup LOV and enters data in the search field and click the "Search for", the value they use to search land behind the scenes on the server in apex_application.g_x02.

    Thus, within this service, we return a SQL string that looks like one of two things:

    1. If apex_application.g_x02 is null, we return to this (a dummy SQL statement that returns no rows):

    Select "," Ruy where double 1 = 2.

    2. else (there is a search value), we call our webservice in pipeline function and pass it apex_application.g_x02:

    Select part_number d, part_number table r (my_package.my_function (p_part = > '%' | apex_application.g_x02 |)) '%'))

    The pipeline works calls the Web service and passes the value of searching with wildcard characters of apex_application.g_x02 and the Web service itself filters the data down, ahead.  This improves performance greatly for us.

    Now, here's the problem and the real question... above fantastic work for Apex points page.  But for a popup LOV in tabular form, it's a no-go.  In a tabular presentation, the popup LOV apparently differs significantly.  The search does not value land in apex_application.g_x02 in this case, and we not were able to know where it ends.  Popup LOVs in tabular forms also lack other declarative features (Don't they always with tabular forms, which appear to be three releases behind the common page elements?)  GRRRR...) popup LOVs such as what makes them not get the first set of rows, etc then we can even use it to help discourage a wide open query.

    Has anyone found where the search for value in a popup LOV in a sub form of table for the back-end that happens? Bottom line, this is what we are looking for so we can define these SQL LOV to refer to everything that is instead of apex_application.g_x02.

    He got after all.  I got to work with a DBA who could clear the SQL area and then watch as I performed a search in the LOV.  Example:

    SQLT AND EXECUTIONS

    ---------- ---------- --------------------------------------------------

    Select 1 37.371843 / * generated * / D, R) (select

    PART_NUMBER | ' -- ' || part_description d,

    PART_NUMBER fofes_ext_parts_v r)

    wwvlovinlineviewname where upper (D) as

    '%'|| Upper(:WWV_LOV_RETURN_KEY_UTIL_1111) | » %'

    It seems that the value in the search LOV popup on a tabular presentation of the land into a link called "WWV_LOV_RETURN_KEY_UTIL_1111" variable

  • Can we make Popup LOV (views, return) key point as EDITABLE field

    Hello

    Can I do Popup LOV key (description of the poster, returns the key value) point as editable... by default, we cannot get anything... Select in the list... it does allow the user to enter the text in the field.

    Thank you
    Deepak

    Hello

    It does not work because it is not supposed to work this way = not)
    You must write the code to make it work.

    How it should work if your display value is not unique?
    How do you determine the value of the key that is inserted to the table if you write just something in the text field?

    This should make any editable element

    $x('Px_YOUR_ITEM').disabled = false;
    

    Of course, there may be exceptions

    BR, Jari

    Published by: jarola on November 22, 2009 20:41

  • create popup LOV values depends on the return values of select tabular list

    Hello

    My requirement is

    In a table, first column is selection list and second column is LOV Popup.

    I want to create if select user from the selection list value 'A' then displays the popup LOV values.

    If the user selects 'B' values in the select list and then display nulls within the popup LOV.

    Kind regards

    Arianne.

    Hi ujwala1234,

    ujwala1234 wrote:

    In a table, first column is selection list and second column is LOV Popup.

    I want to create if select user from the selection list value 'A' then displays the popup LOV values.

    If the user selects 'B' values in the select list and then display nulls within the popup LOV.

    Use the Popup LOV cascading given by Jari wool in this blog: Blog APEX of Jari: pop-up list of the 'waterfall' Article on slot form of

    Write your Popup LOV query such as if, 'A' is selected it returns other values it will return null value.

    Kind regards

    Kiran

  • strange behavior with popup lov

    Request Express 3.1.0.00.32

    I have a popup LOV key (displays the description, returns the key value) that is used to allow the user to select all active employees. Because the popup box doesn't have a function of point of clear page, I included the following in the text of message element:

    ! http://i43.Tinypic.com/5bec6e.PNG!

    The question I have is that whenever you click on the link, the value is no longer displayed but every time saving the changes, the value appears again and it is still saved in the folder. I also checked with the session information every time that the page running.

    The source value is set to replace the value that exists in the session state.

    Have you thought of this announcement in the Apex forum?

    Oracle Application Express (APEX)

  • Skillbuilders Save on exit and form Plugin tabular popup LOVs in IE

    Hello

    I currently use the Skillbuilders Save on exit for a tabular presentation plugin and have a problem that only happens in Internet Explorer (tried 8 and 9) - it does not occur in Chrome or Firefox. I created the dynamic Action for the plugin to execute when the Page is loaded according to instructions.

    My present tabular presentation of the fields that are popup LOVs. If in IE, I change the value of a field in the form of tables and then click on the LOV Save output warning goes off and I have to click OK on warning before my LOV popup window appears. For existing records I have overcome this problem by changing the switch to disable the warning :
    :button, .lov a
    The question I have now is when I add a new line to the tabular form using the button "Add a line" standard. If I change the value of a field on the new line, and then click the LOV I get the Save on the output warning message. I suppose that it is not deleted in the same way that it was for existing records, because the new line does not exist at the time wherever the dynamic Action then ran the lov (link) has not been added to the disabled items.

    I would like to know the following, please? :
    * Is there a known difference in behavior a popup LOV in IE form (which seems to act as if you leave the page) compared to say Firefox?
    * Is it possible to add the link LOV popup on the new line of tabular form it also disables the warning?

    I have created an example of my question here:

    https://Apex.Oracle.com/pls/Apex/f?p=KK_SB_TF_SAVE_ON_EXIT

    Concerning

    Karl

    Hi Karl,

    The difference is that IE (wrongly) raises the onbeforeunload event whenever you click an anchor point, even if the anchor does not take the user to another page - as is the case with the Popup LOV.

    Unfortunately, the plug-in must ensure that its code is executed before any other thing which is the reason why he's working onload. The only thing I can think is that you manually add the same functionality yourself using the public methods. For example, when a new row is added through the form of tables, you must add a click handler to anchor LOV. The call, click on:

    $(document).apex_save_before_exit('disableWarning');
    

    Then use setTimeout to solve the warning after a short period of time:

    setTimeout(function(){$(document).apex_save_before_exit('enableWarning');}, 250);
    

    Let me know how it works for you.

    Kind regards
    Dan

    blog: http://DanielMcghan.us/
    work: http://SkillBuilders.com/APEX/
    Twitter: https://twitter.com/dmcghan

  • Action dynamic apex on popup lov

    Hello

    I have a popup lov in apex 4.1.1.00.23, I want to put some values after the selection of an item from the LOV. That is, select a certain customer and set variables based on customer ie customer...

    I created a dynamic value on the evolution of the popup lov, but we note the change on the selection of a different value.

    If I save the form and then come back shows the correct data, not just directly after changing the value after the value in the LOV POP.

    Dynamic value is triggered on the evolution of the LOV POP to set some values, but it does not work!

    Any help appreciated.

    Thank you

    David

    Thank you

    I managed to get this working:

    Solution for anyone interested:

    Create a dynamic action advanced popup lov

    Event: change

    Select a Type: element

    Element was the popup lov

    No condition

    Now to update the items, I used the set value

    Action: value

    Parameters: Sql statement

    SQL code

    In page items to submit (popup lov name), it's the part that I had not before!

    Item is updated.

  • How to disable the popup LOV

    I have a few items I have disable according to another article with the code in the footer 'region' below.

    The item is grayed and you can not enter anydata inside, but the Popup LOV is always enabled.
    So you can call it upward, select a value, and it will enter in the item.

    How can I disable also Popup LOV icon next to the field of entry points?
    Thank you.


    Code region Footer of the four elements with the Popup LOV
    < script >
    $f_DisableOnValue ('P8_REC_COUNT', '1', 'P8_OFFSET_FUND_CODE');
    $f_DisableOnValue ('P8_REC_COUNT', '1', 'P8_OFFSET_ACCT_CODE');
    $f_DisableOnValue ('P8_REC_COUNT', '1', 'P8_OFFSET_PROG_CODE');
    $f_DisableOnValue ('P8_REC_COUNT', '1', 'P8_OFFSET_LOC_CODE');
    < /script >

    Published by: SPoulos on April 8, 2010 10:12

    Use the event of js on Exchange. Expand the code js with the names of your items.
    Or, use ajax for displays of apex of queries and to know what elements are popup and disable
    those who use the ajax response.

    Dene

  • How to return a query all the elements for an LOV if I select the "white point" (in this LOV)

    Hello. In my application, I have a classic report where, in a region, I built a toolbar with three Popup LOVs which interact with the report. Each LOV displays different items and returns the value according to the selected item.

    For example:

    Popup LOV 1 named P33_DEPARTMENTS has the following components: production, development, projecting, ecc.

    Popup LOV 2 named P33_LOCATIONS was the following: Europe, America, Asia, Africa, ecc.


    Popup LOV 3 named P33_DEVICES has the following: printer, keyboard, mouse, monitor, ecc.


    If I query the table to return the lines according to the selected in these LOVs I have something like this:


    SELECT * FROM < table > WHERE the dep =: P33_DEPARTMENTS AND loc =: P33_LOCATIONS AND dev =: P33_DEVICES


    Now I want that if the user selects all values (LOVs one white point) (or all), then the query must return all values for that LOV.

    For example, if for the named LOV P33_DEPARTMENTS 'white' value is selected, then the query must return to the table lines this cointain values "production ' OR 'developing' OR 'project', ecc for the columns named"dep".

    This means that must be the operator AND between LOVs but the operator or inside the LOV even, if the item is selected.


    How is it possible? Thank you

    SELECT *
    FROM T
    WHERE dep = nvl( :P33_DEPARTMENTS, dep)
      and loc = nvl( :P33_LOCATIONS, loc)
      and dev = nvl( :P33_DEVICES, loc)
    

    You just need to ensure that, when no value is selected, the LOV will return a NULL value.

    MK

  • ADF | Retriving of popup lov attribute value

    Hello

    JDev: 11.1.1.6.0

    I'm trying to select a popup lov attribute value, as well as another attribute value must store them on the corresponding fields.

    EX: when I select point id pop-up window in the table

    table.PNG

    It displays popup and selecting a value of line to select the item id,

    search.PNG

    When I select the product id to the value of time even product category to category, product description value description of the category in the table.

    as below

    afterTable.PNG

    give me suggestions for values

    Concerning

    Is it comes to lov based model, then you can assign several attributes of lov to several attributes of your ViewObject (in the editor where you describe lov).

    Dario

Maybe you are looking for

  • Satellite M100-233: stops right after the "XP" logo

    HelloI have a Satellite M100-233 with XP Home Edition SP3 (in Portuguese)When it is connected to the mains and the battery is not fully charged, sometimes the yellow light does not shine.Check the voltmeter application when this happens, tells me tha

  • Can I replicate snapshots?

    I have a volume with a number of shots, and I want to copy snapshots of another group of storage; in other words, my ultimate goal is a set of volumes on the destination storage group, each of which is a clone of the respective snapshot. I know that

  • How to disable the lock feature in Windows 7

    How do disable you locking on windows 7 it will automatically lock after a short period of time and I would like to disable this option.

  • Where are the games?

    Why are there not all games in Windows 7 Professional. I miss the old Windows Classic, and none of them are there. Professionals not play games? Their lives must be pretty boring.

  • Update a table on one touch

    HelloI'm doing a simple APEX function that allows the user to click a button on the page that corresponds to a team. I use page processes once the button is pressed to increment the value of points for specific team in 1. An example of a process is:T