Lov popup when select change the item values

Hello

I have a Lov Popup to select cities, once I've selected one city, he must find the departmental and national names to display on the fields "view only".

I tried to create dynamic Action that fires on 'change' to my Popup Lov and run this code:
DECLARE
  V_UF UF_ATM.SIGLA%TYPE;
  V_PAIS PAIS_ATM.DESCRICAO%TYPE;
  CURSOR C_CIDADE IS
    SELECT U.SIGLA UF_SIGLA,
           P.DESCRICAO PAIS_DESCRICAO
      FROM PAIS_ATM P,
        UF_ATM U,
        CIDADE_ATM C
     WHERE U.ID(+) = C.UF_ID
       AND P.ID(+) = U.PAIS_ID
       AND C.ID = :P9_CIDADE;  
BEGIN
  OPEN C_CIDADE;
  FETCH C_CIDADE INTO V_UF, V_PAIS;
  APEX_UTIL.SET_SESSION_STATE(':P9_UF', V_UF); -- I already tried :P9_UF := V_UF
  APEX_UTIL.SET_SESSION_STATE(':P9_PAIS', V_PAIS);
  CLOSE C_CIDADE;
END;
Is there a "correct" way to do it? What Miss me?

Thank you
Alan.

Hello

OK - I added another page to my sample application: http://apex.oracle.com/pls/apex/f?p=56976:13

Dynamic action would not work because the value that changes is in a hidden item - P13_EMPNO * _HIDDENVALUE * and you can not target it in Action.  I used jQuery to attach an onChange function instead.

Andy

Tags: Database

Similar Questions

  • Dynamically change the item values

    Hello

    I defined a form based on a table with the following values.

    consultant_name - popup LOV based on a sql query
    month popup LOV based on a sql query
    year popup LOV based on a sql query

    Bill rate - screen only
    our cost-screen only

    I want to display bill rates and our dynamilly cost whenever I change the values of the 3 LOVs.

    To do this, I defined a dynamic action
    When event: change
    elements: consultant_name, month, year
    no condition
    real action: run pl/sql

    DECLARE
    B_R NUMBER (4.2);
    O_C NUMBER (4.2);
    BEGIN
    SELECT BILL_RATE, OUR_COST IN B_R O_C OF STAFFING WHERE THE CONSULTANT_NAME = V('P3_CONSULTANT_NAME) AND
    YEAR = V('P3_YEAR') AND MONTH = V ('P3_MONTH');
    : P3_BILL_RATE: = B_R;
    : P3_OUR_COST: = O_C;
    END;

    But during execution, it does not all values of bill_rate and our_cost also do not show any error message as data not found.
    What mistake I made?

    Thank you
    Kouadio

    Published by: user10470431 on August 11, 2010 17:43

    Hi Steve,.

    have you written p3_year or P3_YEAR? Because it is case-sensitive. It is the same of the selected item.

    You use Firefox and you have installed the Firebug add-on? If so, you can take a look if it is in fact the AJAX call when you view the Console tab.

    Concerning
    Patrick
    -----------
    My Blog: http://www.inside-oracle-apex.com
    APEX 4.0 Plug-Ins: http://apex.oracle.com/plugins

  • Show and hide regions / buttons by changing the item values

    Hello

    is it possible to change a value of an element (LOV) that in the dependence of the selected a region of value / button see the STI or hide?

    I try this with the conditions of the region / button, but it does not work...

    Workspace: TEST_OA5
    Username: [email protected]

    password: Hund123

    Page: 2


    THX for the help,


    concerning

    René

    Hello

    I've added a new dynamic action called ANIMAL SELECT and changed the terms on your reports using P2_TIER_AUSWAHL

    Gus

  • My requirement is, if we click on the POP UP LOV element so I want the dependent value of this item in column of the text element in a table.

    My requirement is

    If we click on the POP UP dot LOV button then I want the dependent value of this item in column of the text element in a table.

    How do I get this as a table?

    Hi Dan,.

    I have a table, in the first column is popup LOV.and second column key is text element.

    So my question is if we click contextual key lov and select employee name, then I want to show the email address of this employee in the second column of tabular presentation.

    This can be done with AJAX. Write a JavaScript function on the onchange event of popup LOV item (Employee) key and pass the number of the employee selected to your AJAX call, go get the employee email and assign it to your entry corresponding to the key LOV popup text has changed.

    As your dealing with Form (Wizard Based/APEX_ITEM Based-not specified) in a table, you take insofar as each column is the table of elements mapped to APEX_APPLICATION input. G_FXX tables and therefore to write JavaScript to locate the item to update.

    I hope this helps!

    Kind regards

    Kiran

  • Change the default value of Type LOV in dependent window

    Hi all

    I want to change the default value in the Type of Contact LOV (dependent information window) of 'Contact' "External" when I run the form using the customization of the form. Can someone help me reach this goal?

    Kind regards
    Giele.

    Hello

    Please apply the following steps:

    In the status tab
    -----------------------

    Raises the event WHEN-NEW-FOLDER-Forum
    Trigger object = CON
    Condition =: SYSTEM. RECORD_STATUS = 'NEW '.
    Processing mode = not in Enter Query Mode

    In the Action tab
    -------------------

    Type = property
    Object name = Item
    Target the object = CON. USER_PERSON_TYPE
    Property = VALUE name
    Value = external

    Record. Hope it works very well.

    Ayaz

  • I'm on Windows 10. A works fine until the update. How can I make Adobe Acrobat Reader (free verision) my default DC? Seems that the default value is E pdf and when I change the default in the flashes of screen reader and forms are in the same format. I ha

    I'm on Windows 10. A works fine until the update. How can I make Adobe Acrobat Reader (free verision) my default DC? Seems that the default value is E pdf and when I change the default in the flashes of screen reader and forms are in the same format. I rather Acrobat format if possible. Thank you

    Hello

    Could a right click on the PDF file > open with > choose program by default and select CD player as default PDF Viewer.

    You can do it from the control panel as well.

    This would make CD player as default PDF Viewer.

    Concerning

    Sukrit diallo

  • You cannot change the chart value axis when there are several types of graphics in a single diagram

    Illustrator can do graphics with bars and lines / columns, for example in the docs:

    http://help.adobe.com/en_US/illustrator/cs/using/images/gr_15.png

    http://help.Adobe.com/en_US/Illustrator/CS/using/WS3f28b00cc50711d9fc86fa8133b3ce158e-8000 .html

    However, when I create a chart like this, I seem to lose the ability to manually set the y-axis using 'override calculated values.

    To reproduce this problem:

    1. Create a chart as in the example, with bars and an axis on the left, lines and an axis on the right. Unlike the example, don't fix the numbers as well as the lines align perfectly - have a go until just less than 20, a up to a little less than 250, therefore it do not markers and the number of divisions on each side.
    2. Try to make the markers and numbers of divisions to the height, so in fact, the side that is going up 20 going up to 25 and has the same number of divisions on the other side.

    Everything I have tried does not work:

    • If I select the entire chart and go to the "Chart Type", I can not set the options for the value axis. In earlier versions, it's gray, in CS6 I can access, but clicking on 'OK' does nothing.
    • If I select the entire chart and chose the type of a chart, I can set options for the axis value, but that the selected chart type, and then applies the entire table.
    • If I use the direct Selection tool to select one of the series and open the "Chart Type" options, changing the options of the y-axis has no effect
    • If I use the direct Selection tool to select all series that share an axis and open the "Chart Type" options, changing the options of the y-axis always has no effect
    • If I use the direct Selection tool to select the Group of ticks axis itself, or the axis line and groups of ticks axis themselves, of axis labels, axis and graduations of the axis line, or axis labels, axis line, graduations of the axis and series of related data, etc., by changing the options of the axis also has no effect

    It seems that this feature is broken and it seems that the example in the manual has been carefully chosen to use a rare combination of numbers where it would actually look right.

    I thought about it. Like everything to do with the horrible ancient neglected graphic Illustrator tool, it is ridiculously clumsy and involves the caution around what is shamefully bad programming for a professional expensive product.

    It is timing - to do things in a sequence of rigid counterintuitive that seems not to work then meets at the end:

    1. Create the chart but, for now, keep all the same chart type. If you've already set to have different graphics types, put the same thing for now.
    2. Select the entire chart and in the main window of Chart Types, set the value to "Both sides" axis
    3. In the drop-down menu, there should be a left and right axis (or top and bottom...). Set the parameters of the value axis for these now. It will look like it does for a single axis, because it will not change the other axis - naked with her...
    4. Select the data series you want to use the other axis using group selection. Go to graph Type and the value of the y-axis to the other and set the chart type that you want. All of a sudden all be put in place.
    5. If you need to change the settings for the value axis, select the entire chart, set the whole chart type to a chart, change the appropriate value axis by choosing it from the menu drop down and the re - apply types of graph as above.

    (the bug is - it should not necessary to set the graphic object to only have only one chart of type in order to access the axis options of value for two different y-axis)

  • 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

  • Change the default value for the field selection at run time

    I would like to know how can I keep persistent information in Sib. My problem is I want to change the default value of the choice field when running so that when the user starts the application again, it can retrieve the new default value.

    store values can be done using the persistence framework.
    See Persistable, PersistantObject and PersistantStore in the API.

    You can call setSelectedIndex on an objectchoicefield.

  • There is no driver selected for the item or a set of device information

    There is no driver selected for the item or a set of device information

    Error message when I try to update the mouse driver or video driver. Windows 7

    Hello

    Thanks for posting your question in the Microsoft Community.

    From your problem description, I understand that you can not update the driver. Please let me know if this isn't the problem that you are experiencing.

    I understand the inconvenience caused to you. I will help you solve the problem.

    Before troubleshooting, I have little information about the issue.

    1. When exactly do you get this error?
    2. Did you of recent changes to the computer before this problem?

    Try installing the driver in compatibility mode. Here are the steps how to install drivers in compatibility mode.

    (a) place the driver on the OfficeSetup file.

    (b) make a right click the driver installation file and select Properties or compatibility tab select the appropriate options in entries to the displayed image.

    (c) click apply, and then click OK.

    (d) right click on the file and select run as administrator to install.

    I also recommend that you contact the manufacturer of the hardware device, and you learn about the support of future drivers for Windows 7.

    If the problem persists, post your reply with results and questions above. We are happy to help you further in the advanced troubleshooting steps!

    It will be useful.

  • How to choose the item value list based on another value of list item

    Hello friends,
    I have two list items named xxx and yyy... OK, my problem is I want to choose a value of yyy list item based on the value of article xxx...

    Example: I select 'Computer' in xxx... Based on this I want to choose the item values in yyy as a monitor, keyboard, mouse, etc... This must be done at run time. How can I do this... Give me a few examples of code [pls tell me trigger appropriate to place this encodings]
    Thanks in advance,
    Battistelli

    Very simple to use the LOV and query of the lov which is attached to the YYY field, use the query as below...

    SELECT columns
    FROM table
    WHERE column_name = :XXX_FIELD
    

    Use the ENTER OF LIST Yes property for the YYY field.

    -Clément

  • When I change the battery on a power outlet, Firefox is empty, I close firefox, the "do you want to close" box is empty, too.

    I can't change current alternative to battery without incident. When I change the battery on a power outlet, Firefox blinks several times then turns off. To close the browser, I click on the 'X', which fortunately remains, and that the box "you want to close" is empty also. I hit enter and Firefox closes. I reopen and select restore previous... and I can continue. Just something I've ever known, do not know how to fix it. Sometimes, if I reduce the browser (""-"") at the top right before plugging in my diet, I can work around this problem. Sometimes he waits until I have maximize the browser, and again, it flashes and turns off anyway.

    Hello numberonejason, this is perhaps a problem with hardware acceleration. try updating your graphic driver, or in the case where this does not resolve the problem, disable hardware acceleration in firefox > options > advanced > General.

  • Permanently change the default value of the police and the size in hotmail

    I know how to change the size of police and style in hotmail for each email but not how to change the default value.

    Hotmail forums:

    http://www.windowslivehelp.com/forums.aspx?ProductID=1

    They will help you when repost you your question in the Forums above for Hotmail.

    See you soon.

    Mick Murphy - Microsoft partner

  • The poor Internet behavior Device Manager error "' there is no selected for the item or a set of device driver information."

    Original title: poor Internet behavior.

    I bought a laptop Lenovo X100e used with Windows 7 Professional. It was a great computer, but when I go on the internet, it behaves as if the connection is slow or wobbly, even if the connection is fast. This is especially true of the streaming video, who stutters so much, it is virtually impossible to watch Netflix or YouTube or any other video streaming service. It is also a great computer so I really want to solve this problem, rather than buying another computer.

    I used this laptop on my network domestic WiFi so much and a direct connection with the same behavior. I diagnosed my network speed and its good, usually around 20Mps, again I tried this laptop in public places like Whole Foods, and it has the same: wobbly connection. I have an old Dell Latitude that works and it works great on the same network internet and I used my phone on my wifi at home and it works fine, so it's clearly the Lenovo.

    The network cards are 11 b/g/n Wireless LAN Mini-PCI Express Adapter II and Realtek GBE Family Controller christophepaille. I checked the drivers for the two (using Device Manager), and they are both currently. I used the function "diagnose problems" and found nothing. I googled for problems with them and have not found much.

    There is also a Qualcom Gobi 2000 listed (it's a WAN wireless driver for Windows 7) under other devices and he says "there is no driver selected for the item or a set of device information. I tried updating the driver, but got an error message saying "Cannot find Windows driver." software for your device I have no idea if this is relevant.

    In addition, the laptop plays the video without any problem if it is a file on the local drive, such as mp4, so I don't think that the video problem is in itself. It is the general communication with a network. Again, I don't think it's a problem of wifi because I get the same behavior, even if I plug a cable network directly to my router.

    Also, I tried several browsers updated, including Chrome, Firefox and IE. In addition, I ran several antivirus scans, and nothing is found.

    Any help would be greatly appreciated.

    (1) run chkdsk as follows:

    A prompt by right clicking and select "Run as Administrator"
    and then at the command prompt, type: chkdsk /f r, then press the Enter key.

    If you are asked to plan the volume to check the next time that the system/PC reboots,
    Enter: y

    Now, restart the PC.

    If you know the manufacturing of your hard drive you can also download their diagnostic software.

    Another use: SpeedFan has an online health analysis function
    (SMART tab) for hard drives. It will show how your disks
    compared with other discs of the same brand and model.
    http://www.almico.com/SpeedFan.php
    Note: Unfortunately now includes a lot of bloat-ware, be very careful when installing remove bloat-ware.

    =====================================================================

    2) run the SFC/scannow command. This will check and repair if necessary all of the critical Windows system files.

    Click on start / all programs/accessories then
    Right-click on the command prompt option and select "Run as Administrator".
    (or "Safe Mode" open a command prompt)
    At the command prompt, enter: SFC/scannow

    Windows 7 - order SCANNOW SFC - System File Checker
    http://www.SevenForums.com/tutorials/1538-SFC-SCANNOW-Command-System-File-Checker.html

    How to use the System File Checker tool to fix the system files missing or corrupted on Windows Vista or Windows 7
    http://support.Microsoft.com/kb/929833

    How to analyze the entries in log file generating the program Checker (SFC.exe) resources of Microsoft Windows in Windows Vista:
    http://support.Microsoft.com/kb/928228

    =================================================================

    If SFC Scannow could not repair any or all the corrupt system files
    follow these steps:

    (a) open a command prompt (start / all programs / accessories)
    Right click on the command line option, then select: run as administrator

    (b) at the command prompt, enter: DISM.exe/online/Cleanup-Image /ScanHealth

    Press the ENTER"" key.

    (c) then enter: DISM.exe/online/Cleanup-Image /RestoreHealth

    Press the ENTER"" key.

    (d) now rerun the command SFC/SCANNOW...

    At the command prompt, enter: SFC/scannow

    J W Stuart: http://www.pagestart.com

  • When you change the text, all the text in the bounding box is removed...

    I have a PDF file that was created in a different version of Adobe. The Adobe program, I am currently working with that is Adobe Acrobat Pro DC. It is on a Windows 7 PC. When I change the text in the 'framework', any word, I try to change, all of the text in the box is removed. How can I stop this from happening?

    Nevermind, I figured it. I had select the bounding box and select "bring forward" under the "objects" tool

Maybe you are looking for

  • Satellite T130 - 13L - Wireless disappeared

    Hi yesterday my Satellite T130 - 13L had it's wireless stop working completely. When I press FN and F8 bluetooth is there, but nothing else. I've looked everywhere and it simply disappeared. So far I found no solution, I've heard it might be a hardwa

  • HP G62-b31EE notebook PC: automatic shutdown due to overheating

    Hello.I am facing this problem of overheating since the last 3 years and it is getting worse with every passing summer. Whenever I have run a software or try to play a game on this laptop he gets shutdown. The body is not physically warm enough for a

  • Disk is not running.

    I'm trying to run a DVD + R on a Windows XP 2002. the discs I have are DVD +; RW/CD-RW and DVD - ROM. When I try to run the disc it either tells me that I don't have a disc in the DVD - ROM drive, or that it is a blank CD in the DVD + RW/CD-RW;. What

  • black screen YouTube

    When that I go on YouTube to watch videos either directly or from other websites, all I see is a black screen.  The rest of the page looks normal with the thumbnails on the right, as well as the comments under the main screen section, etc.  Even when

  • Hide URL cryptnet

    Hello I use avast security, and he picked up this file "cryptneturlcache" as it could not scan. It appeared only recently in my system. should I worry about this? Thank you brand