When "change" pop-up key (named lov)

apex on the cloud ,
hi all ,
a medical laboratory app
i have a page , with a pop-up key(named lov) , the lov is based on some test names and a derived column beside the pop-up key column ,
what i want is : when i choose a test from the pop-up list , the price is selected from the database into the derived column ,
what i did is :
a dynamic action on the pop-up key column (on-change) , execute javascript code , which is : -- on the jquery selector [name="f07"]
/*Declare the variable being used*/ 
var row, priceElement,priceElementId, testElement,price,getPriceAJAX,price; 
/*Get the jQuery object of the DOM element that triggered the dynamic action.*/ 
testElement = apex.jQuery('#'+this.triggeringElement.id); 
/*Get the row in which the triggering element is located*/ 
row = testElement.closest('tr'); 
/*Travers back to the element that holds the price*/ 
priceElement = row.find('[name="PRICE"]');
/*Create the object that is going to get the price from an ondemand proces*/ 
getPriceAJAX  = new htmldb_Get(null,$v('pFlowId'),'APPLICATION_PROCESS=GetPrice',$v('pFlowStepId')); 
/*Add the value of the triggering element this value will be submitted and set to apex_application.g_x01*/ 
getPriceAJAX.addParam('x01',$v(this.triggeringElement.id)); 
/*Run the dynamic action and get the price*/ 
price = getPriceAJAX.get(); 
/*Set the price to the price element*/ 
/*$s(priceElementId,price);  Doesn't work on new rows.*/
priceElement.text(price);
then i created a process -- on demand when called by ajax
with this code :
declare 
cursor c_test(TstID number) 
is 
SELECT COST_OF_TEST
FROM   TEST_DEFINITIONS  
WHERE  TEST_ID =TstID;
v_test_no number; 
v_price   number; 
begin 
v_test_no := to_number(apex_application.g_x01); 
open c_test(v_test_no); 
fetch c_test 
into  v_price; 
close c_test; 
sys.htp.prn(to_char(v_price,'L999G990D00')); 
end;
but when i choose a test , nothing happens , the cost of test is not selected from the database into the derived column , why ? what is wrong ?
thanks a lot
the link for the application is
http://apex.oracle.com/pls/apex/f?p=26522:30:7917782328738:::::
the login attributes is
friend
friend

it's solved , thanks to all of you

Similar Messages

  • Typing in remote Control when changing language with key combination of Alt + Shift some time change to Upper Case and Caps Lock is off

    let me first say that this links dos not apply to my problem the first one is :
    http://social.technet.microsoft.com/Forums/en-US/winserverTS/thread/46b24b68-debf-466e-a780-66a3b999724c
    and it dos not apply because I dont use remote app, and also i able to change settings
    http://social.technet.microsoft.com/Forums/en-US/winserverTS/thread/6a0f0eda-d3f6-4cd9-91ef-a7e0b20bc799/
    this one has similar problem but he working with remote app and do not have the Upper Case and Caps Lock is off
    http://social.technet.microsoft.com/Forums/en-US/itproxpsp/thread/f978e234-2b3c-4780-9dda-bec52b25330d
    this one using XP i have it on windows 7 connecting to remote server 2008 r2
    here is the issue 
    my users remote control a terminal services farm, now when they changing language to English some  time it change to English Upper Case and caps lock is off ! then the Alt + Shift and the go back to English lower case and if they just play with
    this (i mean they just use Alt Shift over and over to try to get back to normal state when you hold shift and alt and you change to English and back to Hebrew if you hold the alt shift one more time )
    i tonic some thing strange ifi hold down first the alt and then the shift this issue happen more often
    i upload a video on this showing the problem live on my dropbox :
    https://dl.dropboxusercontent.com/u/103434771/meditowers/IMG_0245.MOV
    here is how the normal setting should be
    Alt + shift need to change to lower case English
    then Alt shift one more time will go back to Hebrew
    now if you hit on the caps lock you will be in English all the time with Upper Case

    Hi Yitzhak,
    Please refer to this post:
    www.davidbond.net/2012/10/rdp-shift-key-gets-stuck.html
    This post includes fix to this issue at the comments.
    Netanel Ben-Shushan, MCSA/E, MCTS, MCITP, Windows Expert-IT Pro MVP. IT Consultant & Trainer | Website (Hebrew): http://www.ben-shushan.net | IT Services: http://www.ben-shushan.net/services | Weblog (Hebrew): http://blogs.microsoft.co.il/blogs/netanelb
    | E-mail: [email protected]

  • Why doesn't a Popup Key LOV (named LOV) in a tabular form not display values in the popup?

    I have a tabular form and I'm setting one of the fields to a Popup Key LOV (named LOV). The named LOV is a static LOV. When the popup is displayed there are no values displayed. The same thing happens if I use a Popup LOV (named LOV).
    I created a sample application http://apex.oracle.com/pls/apex/f?p=15762:1that shows what happens. When the job field popup is selected, no items are displayed. If I change the item to a Select List (named LOV) it works fine.
    Is this a bug?

    Hi
    I am also getting the same issue. Hope it could be a bug.
    Can anyone plz confirm this?
    Thanks
    Lakshmi

  • When my husband set up his new iPhone I read a message wrong when it popped up on my phone and now our messaging is synced. Is it because we have the same apple ID? Do we need to change that?

    When my husband set up his new iPhone I read a message wrong when it popped up on my phone and now our messaging is synced. Is it because we have the same apple ID? Do we need to change that?

    Yes, its best to have each individual apple ids. You can also go to settings, messages, send and recieve, start new conversation from, make sure there is a check mark beside each of your own individual email, not the same one on each phone.

  • Since updating my iPhone 3GS on my friends laptop, it keeps asking for her iTunes Id not mine. When I log onto a computer it comes up with my Id but from my phone it's my friends. I don't have an option to change the user Id when it pops up either.

    Since updating my iPhone 3GS on my friends laptop, it keeps asking for her iTunes Id not mine. When I log onto a computer it comes up with my Id but from my phone it's my friends. I don't have an option to change the user Id when it pops up either. So I can't update my apps, download songs or games now as it will charge my friend

    Hello, 34sandy. 
    Thank you for the question.  This behavior is normal if updated on another Apple ID account holders computer.  To change the Apple ID on your device, follow the steps in the article below. 
    iOS: Changing the signed-in iTunes Store Apple ID account
    http://support.apple.com/kb/ht1311
    Cheers,
    Jason H. 

  • Error when using named LOV

    This is for Apex 4.0.2.
    I wonder if anybody else has come across this issue: after creating a named LOV in Shared Components and using the LOV on an item, I get this error:
    ORA-20001: Error fetching column value: ORA-20001: Query must begin with SELECT or WITHIt doesn't really matter which item type I choose:
    Display as text (based on LOV)
    Select list (named LOV)
    Popup LOV (named LOV)
    When using popup LOV there is some additional error information:
    Error in init lov: ORA-06561: given statement is not supported by package DBMS_SQL
    p_lov:wwv_flow_security.g_security_group_id:1278218559423697
    wwv_flow_security.g_curr_flow_security_group_id:1278218559423697
    Unable to initialize query.
    etc.However, if I copy-paste the LOV code in the LOV definition on item level (so, not as a named LOV) it works!
    The LOV is simply:
    select rv_meaning d
          ,rv_low_value r
    from   cg_ref_codes
    where  rv_domain = 'F_RC_STATUS'Any ideas?
    Ino
    Forgot to add: I have a lot of named LOV's without problems. It's just when using cg_ref_codes that this occurs (Oracle Designer users will recognize this table :-) )
    But even when using cg_ref_codes, it doesn't happen every time. Some LOV's based on cg_ref_codes do work.
    Edited by: InoL on May 10, 2011 10:33 AM

    I am one step further: I think the problem is that my named LOV was a "Copy and subscribe" from an LOV in my master application. I have deleted and recreated the LOV in the master several times, but that did not help.
    Now, I have created the named LOV in the application itself (not as a copy of the master LOV) and it works. It looks like the copy function in Apex Builder may be the problem.

  • Frame dropping when Chinese Pinyin-10 key Keyboard pops up

    Almost all the Apps are effected by this issue in iOS 8.1, even you creating a new message can cause this noticable frame drop when Chinese Pinyin-10 key keyboard pops up.
    Note that:
    (1) This issue never occurs in iOS 7.1.X, 8.0 and 8.02, and full QWERTY keyboard is fine.
    (2) If turn on Settings->Accessibility->Increase Contrast->Reduce Transparency,  Chinese Pinyin-10 key Keyboard also works fine.
    I have to use full keyboard instead now. Please fix this.

    Kurtis614 wrote:
    I bought my device from China-Unicom.
    Thanks, I was curious because I think only devices bought in china have the Chinese Pinyin 10 keyboard, it is missing for everyone else.

  • OneNote 2013: Font changes when pressing Enter / Return key

    I have the same problem as this guy (who didn't get a relevant answer): http://social.technet.microsoft.com/Forums/office/en-US/233833f7-dde8-414d-bdca-604ed8d57667/onenote-2013-font-changes-when-pressing-enter-return-key?forum=officeitpro
    I set my default to Calibri 14, but every time I press enter (I make a lot of bullet lists) the font changes to Calibri 11. 

    Hi,
    Did you change the default font after you typed a few words in a note container?
    Setting the default font in Microsoft Office OneNote affects text that you type in new note containers only. It does not affect existing text or text that you add to existing note containers.
    If you want to change the font in an existing note container, you need to change it manually under
    Home tab > Basic Text.
    Thanks,
    Steve Fan
    TechNet Community Support

  • SQL Report Display Error when change LOVs In Report Attribute.

    Dear Friend,
    i have created SQL Report .Now In Agent Name Column ,Agent_code is Display .
    i want to display Agemt Name In to Agent_CODE Column so i have change in Report Attribute-->edit column AGENT_CODE-->Tabular Form Element-->Display As text (Based on LOV,Does not save state) -->List of Values -->Agent_name
    Apply Changes .
    Then it show me Below Error in Report
    report error:
    ORA-20001: Error fetching column value: ORA-06502: PL/SQL: numeric or value error: character string buffer too smallHow to resolve it?
    Thanks
    Edited by: Vedant on Sep 5, 2011 10:06 PM

    Dear Jari,
    yes i am not using Named LOV ,
    i am follow
    Report Attribute-->Tabular Form Element-->Display As text (Based on LOV,Does not save state) -->List of Values -->Agent_nameThen Show me Error.
    thanks
    Edited by: Vedant on Sep 6, 2011 1:37 AM

  • When trying to download Itunes this pops up " key not valid for use in specified state" what does this mean and how can I fix it?

    When trying to download Itunes this pops up " key not valid for use in specified state" what does this mean and how can I fix it? I am using a pc laptop if that makes any difference.

    Try reading through this thread: key not valid for use in specified state. Possible solution involves moving the RSA folder. Rather than deleting it as aniwack suggested I'd try this:
    For "Key not valid for use in specified state" errors try moving the folder RSA from C:\Users\<User>\AppData\Roaming\Microsoft\Crypto\RSA to say C:\RSA (just in case there should be a need to restore it) then try installing again. This folder appears to act as a cache and should be rebuilt automatically as required.
    tt2

  • How do I change the speed of the cursor when using the arrow keys?

    How do I change the speed of the cursor when using the arrow keys?

    Applications folder or Apple icon > System preferences > Keyboard increase key repeat.

  • Popping sound soundbar when changing channels

    I recently purchased a soundbar to go with my HDTV set. Experience popping when changing channels or when changing settings in the DVR. Manufacturer of the soundbar says that I must match the STB (Motorola 7232) audio settings with the TV's which is Force or LPCM and turn off Dolby Digital. However, I cannot find these settings.
    Take the soundbar out of the mix and the TV does not experience any popping. This tells me that this cannot be the STB but the manufacturer says it is. Any help with audio on FiOS TV would be greatly appreciated.
    Solved!
    Go to Solution.

    Let us know if you find the menu. The tricky thing is that you have to power it off from the front display and then do ok menu using the remote. It took ne a couple times to get there with the new box. Best of luck.

  • SAP Screen Personas: How to Change the background when a pop up shows?

    So I am using the current version of Personas (2.0) and I need to add an image to the background when a pop up appears. However, no matter what I have tried I cannot seem to get it to place an image in the 'grey' area behind the pop up. Any help would be greatly appreciated.
    Here is a screenshot so you can see what I mean:
    The current Transaction is XD03, it goes to this pop up where I can change the background of the pop up itself, but I cannot change the background behind the pop up, it remains the same SAP screen which is not optimal for Personas output. Once I get out of the pop up I can change the background no problem - but during the pop up I am unable to edit the grey area. Even after the background has been changed on the screen following the pop up this background always remains the same. Has anyone had any luck changing this?

    Thank you for the tip Sivaganesh,
    When I went back and tried to change the background I was able to add an image but it still would show the header section in the back behind the pop up.
    However when I pulled an image that was filling the background up into the pop up area, Personas would re-size the pop up! Then I was able to drag the pop up to cover the header of the background to prevent it from showing anything similar to a traditional SAP screen.  It is not exactly what I wanted but it will suffice for a work around. Thanks again for your help!

  • My wireless key board doesn't seem to communication with my computer even though bluetooth shows it is connected.  I have changed the batteries on the keyboard and when turn on the key board the green lights comes on shortly and disappears.How to fix ?

    my wireless key board doesn't seem to communication with my computer even though bluetooth shows it is connected.  I have changed the batteries on the keyboard and when turn on the key board the green lights comes on shortly and disappears.  Can any one  help?

    Hey Annar99,
    I found a few articles that might help with the issue you're encountering. These first two are if the Bluetooth keyboard you're using is the one that came with your iMac. The first is a general "how to" for setting up your Apple Wireless keyboard, while the second one is for troubleshooting if the advice in the first article isn't working:
    Bluetooth: How to set up your Apple Wireless Keyboard
    http://support.apple.com/kb/ht1809
    Troubleshooting wireless mouse and keyboard issues
    http://support.apple.com/kb/TS3048
    If, on the other hand, you're using a third party keyboard, then I would take a look at the following article's troubleshooting section:
    Bluetooth Quick Assist
    http://support.apple.com/kb/HT1153#Tips
    Hope that helps,
    David

  • How to update the table when change list item in classic report

    hi ,
    i worked with apex 4.2 and i create normal classic report with one select list(named loved)Column ,now i want to update table when user change the list with new value ,i can't create dynamic action to do this,i create check box with primary key and loop for check item to update the table but i can't get the value of list item. and for more speed the user want to do this when change the list value.
    my question
    1- how to do this by javascript and get the value from list item and update the table with new value
    2- is i must use API to create list item so i can get the value of item in report or what.
    Thanks
    Ahmed

    I coded the following to give you direction:
    1. In the "Element Attributes" section of the DEPTNO column, I call a javascript function as:
    onchange = "javascript:updateTable(this);"2. I wrote a simple javascript function that shows an alert when the user changes the select list as:
    <script language="JavaScript" type="text/javascript">
    function updateTable(pThis)
        var vRow = pThis.id.substr(pThis.id.indexOf('_')+1);
        alert('Row# - '+ vRow + ' has the value - ' + pThis.value);
    </script>Now, you can call a AJAX on-demand process inside the javascript function to update the database value.

Maybe you are looking for