Cannot get APEX_ITEM.POPUP_FROM_LOV to display correct values

Hello.
I am using APEX 2.2.x. I created a report region in which the underlying report query looks like:
SELECT
APEX_ITEM.HIDDEN(1,X.TN_ID),
APEX_ITEM.HIDDEN(2,X.PHONE_ID),
APEX_ITEM.HIDDEN(3,X.KEY_ID),
APEX_ITEM.CHECKBOX(4,NULL) AS REMOVE,
APEX_ITEM.TEXT(5,X.KEY) AS KEY,
APEX_ITEM.POPUP_FROM_LOV(6,PHONE_ID,'DN') AS DN
FROM
MY_TABLE X
WHERE
X.TN_ID = :P10_TN_ID
Here, the LOV 'DN' is defined as:
SELECT PHONE_NUMBER, PHONE_ID FROM PHONE_NUMBERS
ORDER BY 1
This report renders correctly. After setting my three ID columns from the query
to "No Show", the results display as 3 columns:
Remove Key Dn
"Remove" is a checkbox, "Key" is a simple input text field, and "Dn" is a popup
field.
My problem is that, when the selecting from the "Dn" popup, I get the "phone_id" value instead of the "phone_number".
Does anyone know why this is happening?
Thank you.
Elie

Thanks, Scott.
I'm facing a deadline at work, and so, am burning the midnight oil to get my APEX project done. I'll try to post my issue on apex.oracle.com - just can't right now.
I'm going to try a different tack.
The problem I reported in this post stems from my using the APEX_ITEM API to
create text items, checkboxes, and a single popup field in a report region.
However, what I'm ultimately trying to accomplish is a form (not a report) in which users can edit multiple rows and then submit their multiple row edits
with one click of the APPLY button.
So, you might be thinking, why did I not just create a form based on a table.
The reason is that I did not have a table to work with. I needed to have a
form in which EXACTLY 10 rows (no more, no less) appear. Of these,
there might be up 10 rows that actually have data whereas the remaining
rows consist of all NULL columns.
And so, I created a "pivot" table function that generates "missing rows".
This works fine in a report query. But I could not find a way to use this
pivot table function as part of an Oracle view against which I could point
the APEX "Create Form On Table/View" option. This is why I tried to
create a report region rather than a form and then use the APEX_ITEM API
to create the text, checkbox, and popup fields I mentioned above. It's just
the popup field that's giving me all the trouble.
I'm going to try to create a different method of generating "missing rows" so as
to get an Oracle view that consists of exactly 10 rows (of which up to 10 have
actual data and the remaining rows consist of all NULL columns). I'll then make
a view out this (as mentioned, I was unable to create this view using the pivot
table function) and then try to create a form via APEX. Hopefully, this will
eliminate the popup problem I'm having.
Thanks very much for your help.
Elie

Similar Messages

  • HT4561 After updating to 10.6.3, I installed the 10.6.8 update just to start experiencing these font issues. HELP! How do I get the fonts to display correctly in my browsers especially (Chrome & Safari)

    After updating to 10.6.3, I installed the 10.6.8 update just to start experiencing these font issues. HELP! How do I get the fonts to display correctly in my browsers especially (Chrome & Safari)

    What I ended up having to do was open up the Font book & remove duplicates. I knew it was Arial that was causing the problem, so I deleted the duplicate of that font. Inadvertantly I deleted all the Arial regular font, so I had to reinstall one copy. That was the solution. Thanks!

  • HT4623 I cannot get my ipad setup with correct password

    I cannot get my ipad4 setup with correct password. No ive tried resetting router password doesnt work...help!

    What setup password?
    Apple ID?
    WiFi connection password?

  • Dynamic Select List not displaying correct value

    Hi there!
    I have a page with a dynamic repeat region.
    As I press one record I get up all the details based on id on an edit page.
    The problem is that the info that is inserted via a Select List is not displaying correct on edit page.
    All the other values are correct, also the values in the repeat region on index page,
    but the value from the Select List on edit page is just displaying the initially selected item.
    Have tried using SELECT DISTINCT in the SQL statement, but no luck.
    Any other ideas?
    Cut and paste from form:
    <select name="Vegtype" class="ProvDet" id="Vegtype" title="<%=(rsAs.Fields.Item("VegType").Value)%>">
                        <option value="Ev" selected="selected">Ev</option>
                        <option value="Fv">Fv</option>
                        <option value="Rv">Rv</option>
                        <option value="Kv">Kv</option>
                      </select>
    Recordset
    <%
    Dim rsAs
    Dim rsAs_cmd
    Dim rsAs_numRows
    Set rsAs_cmd = Server.CreateObject ("ADODB.Command")
    rsAs_cmd.ActiveConnection = MM_LabCon_STRING
    rsAs_cmd.CommandText = "SELECT DISTINCT DatoM, DatoR, DatoU, Distr, FagFelt, Felt, IntNr, Km, KontrNr, Kontrollor, Masse, MasseBK, Punkt, Resept, TestID, UserID, VegHp, VegNavn, VegNr, VegType FROM tblTest WHERE TestID = ?"
    rsAs_cmd.Prepared = true
    rsAs_cmd.Parameters.Append rsAs_cmd.CreateParameter("param1", 5, 1, -1, rsAs__MMColParam) ' adDouble
    Set rsAs = rsAs_cmd.Execute
    rsAs_numRows = 0
    %>
    Regards,
    Christian
    DWCS5 | .Asp | MS Access

    Ok, here goes the top down approach...
    In the HTML header of my page, i have this reference to a js file containing the javascript - <script src="#WORKSPACE_IMAGES#108.js" type="text/javascript"></script>
    Then in an HTML Region I have the following code to create the divs that will be shown and hidden - <div id="divREGION" class="divs">Select region to get list of countries.</div>
    <div id="divCOUNTRY" class="divs">Select country to get list of cities.</div>
    <div id="divCITY" class="divs">Select city and then press "Get Employees". </div>
    Note that these divs contain static content. You may be able to create dynamic content for these divs by creating dynamic query regions and putting div tags around the region (i havent tried this, it may require template modification).
    The select boxes have this code in the "HTML form elements attributes" - onFocus="javascript:showHideDiv(this,true)" onBlur="javascript:showHideDiv(this,false)"
    This onFocus and onBlur call the showHideDiv() function, passing in the object reference of the select box and a true/false to show/hide the related div.
    The actual javascript function that is contained in the 108.js file is:
    function showHideDiv(objThis, inBool){
         var divid = "div" + objThis.id.substring(3);
         if (inBool) {
         ShowDiv(divid);
         else {
    HideDiv(divid);
    That function in turn calls either the ShowDiv() or HideDiv() functions, depending on the true or false, passing in the ID of the div to be changed...
    function ShowDiv(divid){
         eval('document.all'+ '["' + divid + '"]' + '.style' +'.display = "inline"');
    function HideDiv(divid){
         eval('document.all'+ '["' + divid + '"]' + '.style' +'.display = "none"');
    Hope this helps.

  • How can I get my photo to display correctly as background

    I decided to change my background setting today, only to find that it doesn't display correctly anymore.
    Before the update, the photo would automatically 'fit in the window' - now it gives you the option to size and scale, but this doesn't actually work, so the photo is HUGE..  I can move it side to side, but can't reduce the zoom so it all fits on the screen.
    Is there a way around this - or is it another glitch?
    Thanks in advance

    There's a work around, although it's not perfect. Go to your photos app, choose the image you want for wallpaper. Tap on the little box with the arrow poking out of it, send to wallpaper. then you can scale and move a bit to get your image closer to what you want.
    It's still not perfect. Basically it scales your image so that it fits the whole screen, which means if your image is wider than your screen, you can just slide it left or right, but you do have more control than if you go through the settings.

  • JComboBox setSelectedIndex not displaying correct value

    Hi,
    Not sure if this is a bug or implementation issue.
    When trying to use the setSelectedItem(int) method of JComboBox, what's being displayed in the panel is not the same item that is selected when you open the dropdown.
    If you run the example code below a few times in a row you'll see that it eventually displays something other than "Item 2". However, if you open the combobox it will always display the correct value. So, just on a whim I surrounded the setSelectedIndex(int) call with the SwingUtilities.invokeLater method and it all started to work. I was able to run it 6 times in a row and always displayed the correct value. Whereas without it usually by the 3rd run, I'd see the issue.
    So, my question is - Should I be putting all setSelectedXXX() methods in SwingUtilities.invokeLater methods? We originally found this issue in our JApplets. I made the code below so I could post it, but essentially it's the same thing. We do use Javascript to call back into the JApplet to set the indexes. I'm guessing I DO need to since we're dealing with different Threads and Swing?
    Thanks,
    - Tim
    import java.util.logging.Level;
    import java.util.logging.Logger;
    import javax.swing.JComboBox;
    import javax.swing.JFrame;
    import javax.swing.JScrollPane;
    import javax.swing.SwingUtilities;
    * To change this template, choose Tools | Templates
    * and open the template in the editor.
    * @author tmulle
    public class Test {
        public static void main(String[] args) {
            // Create the Frame
            JFrame f = new JFrame();
            final JComboBox combo = new JComboBox();
            // Add some items to the combo
            for (int x = 0; x < 20; x++) {
                combo.addItem("Item " + x);
            // Create a scrollpane
            JScrollPane pane = new JScrollPane(combo);
            f.getContentPane().add(pane);
            f.setSize(300, 200);
            f.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
            // Tester thread
            Thread t = new Thread(new Runnable() {
                public void run() {
                    try {
                        Thread.sleep(5000);
                    } catch (InterruptedException ex) {
                        Logger.getLogger(Test.class.getName()).log(Level.SEVERE, null, ex);
                    // Uncomment this and things seem to work consistently
    //                SwingUtilities.invokeLater(new Runnable() {
    //                    public void run() {
    //                        combo.setSelectedIndex(2);
                    // Comment this out when uncommenting above
                    // This is supposed to select the 2 index in the list
                    // However, run running the example multiple times you'll see
                    // that it sometimes displays something other than the correct
                    // value. But the correct items is selected in the dropdown
                    combo.setSelectedIndex(2);
            // Start the thread
            t.start();
            // Show the frame
            f.setVisible(true);
    }

    You do need to set the selected index from the EDT, as shown in the code you commented out. Or, the SwingWorker class is very useful for simplifying your threading code.
    Also, if I may, I think Darryl is suggesting you also create the gui components in the EDT as well. People often use this construct in the main method since the main method is run in a separate thread from the EDT, just like the threads you create. It is technically not safe to make Swing calls from the main() method.
    public static void main(String args[])
            SwingUtilities.invokeLater(new Runnable()
                public void run()
                    createAndShow();
    }Edited by: mpmarrone on Apr 27, 2010 1:08 PM

  • Cannot get Month and Year display off screen

    In Iphoto 6 I have photos that I imported. I cannot get the middle dark oval in the center of the screen to stop displaying on the photos.
    It makes it very difficult to edit the photos when I cannot see the center of the photo.
    How do I stop the display of the month and date

    In iPhoto Preferences, Appearance, uncheck "Show scrolling information."

  • Cannot get Excel Report to display on Internet Explorer

    Hi,
    We have an issue with displaying Excel reports on IE on some client machines. A window just pops up and closes. The reports run fine on Firefox and I was able to run it on IE earlier. I had this report working before on all application servers. Now I cannot get output on browser from dev. and test app servers after a small fix in the report. But I can still run the production version.
    Note that I can get the Excel output when I use 'getjobid' from an url :
    http://server:port/reports/rwservlet/getjobid1887?server=xxx&mimetype=application/vnd.ms-excel
    This is the code to output the report:
    SHOWDOCINFO :='/reports/rwservlet/getjobid'||JOBID||'?server='||REPORTSERVER||'&mimetype=application/vnd.ms-excel';
    The funny thing is my colleague can run the report on his pc without any problem. Is there some issue with the browser setting ?

    Yes. I use WEB.SHOW_DOCUMENT in the calling form. The window that pops up is an IE window. Yes we both use IE 7.0.
    I noticed today that if I uncheck the 'always ask before opening this type of file' on the File Download window, I can get it to work. How do I change this setting?

  • I cannot get epson workforce to work correctly on imac mountain lion

    I have not been able to get the epson workforce to work on imac mountain lion.  I first tried using the epson software.
    Then read that I should do it from the mac's " printer/scan".
    Unfortunately when I get to the screen that says --add printer--- i cannot get workforce to appear.
    Can anyone walk me through it?
    I have it connected to my  netgear wireless router which is recognizing it on their management page?
    Help!
    Mahalo,

    First check to see if the device is compatilbe with ML, you can find that information at Mac Basics: Printing in OS X Mountain Lion & OS X Lion

  • Cannot get certain applications to display via projector

    I was trying to display a movie on YouTube to my class (MacBook Pro connected to LCD projector), but Safari would not display, nor would QuickTIme Player. Understand: I  DO get my screen to display, but only certain applications will display via projector. In fact, I was able to get the YouTube movie to display on the projector by inserting it into a PowerPoint slide, as PowerPoint can be displayed.
    How do I solve this problem in the future?

    Hi b,
    Always best to start with basics. Is the projector turned on? Have you tried different input options on the projector (usually on a menu accessed with a button called Source or Input)?

  • [Solved] Can't get external monitor to display correct resolution

    I have a laptop with 1280x800 resolution, I hooked up a spare monitor we had sitting around that has a native resolution of 1280x1024 to my laptop. When I hook it up the external monitor displays a resolution of 1024x768. I use KDE 4.5, so I tried to change the resolution for the external monitor in System Settings but 1024x768 is the highest resolution listed.
    I've tried messing around with xrandr through the command line (somewhat anyway) but I'm at a loss in trying to get the external monitor to display its native resolution. I'd like to get the external monitor to possibly replace my laptop monitor as it would add another 224 vertical pixels. Anyone have any ideas?
    Last edited by herrvideman (2010-08-31 02:17:48)

    You had said the native resolution is 1280x1024 -- I therefore assume this is an LCD monitor.
    I would not generally expect LCDs to flicker.  At what vertical frequency are you driving the display? Most LCDs operate at 60Hz.  This is regardless of the local power line frequency or television standard.
    Many CRT monitors are driven at 75 Hz to keep them from flickering or from "beating" with ambient lighting that is flickering at the local power line frequency (50 or 60 Hz).  Again, this is not the correct thing to do with LCDs.
    Bottom Line: Make sure your vertical frame rate is 60 Hz.

  • Access 2013 - How do I get my charts to display correctly?

    I have a pretty siimple, straightforward application I've developed and used over the past 20 years to handle my home finances. It includes several charts that were probably created back in Access 2003, which I used up until a couple of weeks ago when I
    subscribed to Office 365 Home and set up Office 2013, including Access.
    Most things worked without a hitch. In fact, all my old VBA code seems to run just fine.
    However, the charts don't work. The right side of chart gets cut off way short of the margin both in print preview and report view. Everything else looks fine and the data is correct.
    I've fiddled and fussed and fangled with zoom, clip and stretch. I've tried to resize the chart area - it just snaps back. I've tried everything I can think of based on 20 years of fussing with Access charts - which has always been a major pain - without
    success.
    I know, I've probably overlooked whatever is the obvious answer, so feel free to talk down to me.
    Any suggestions much appreciated!
    I'll try to get a screen shot in here as soon as this forum figures out that my account has already been verified.
    Bob

    Just to be a little more clear: I have a report, originally constructed in Access 2003, which contains an OLE data object. That's how charts have been done in Access for at least the past ten years, if not longer. I would imagine that there are thousands
    of people out there who have charts created in this way. I have seen many, many reports of exactly the same problem I'm having. Until Access 2010, things worked. Now they don't. I happen to have upgraded to 2010 very briefly before upgrading again to 2013.
    There is no problem with the data in the query. The query works fine. The part of the OLE object which is visible shows correct data from the query. The problem is that the whole OLE object is not visible. The right side of the OLE object is cut off. It stays
    that way regardless of the clip/zoom/stretch setting,
    When I to adjust the size of the OLE object, I put the report into design mode and double-click on the OLE object, which brings up Microsoft Chart. I then drag the right edge of the object to the left to make it smaller. It appears that it snaps back; the ruler
    in the embedded Chart display makes it appear that the size of the OLE object hasn't changed.
    In fact, however, it has. And if you make the OLE object small enough, the entire object becomes visible. However, by that time, you've made it so small that the chart is now fairly useless and your report looks stupid.
    So far, the only work-around I have found is to very carefully, working one small step at a time, saving, closing and re-opening at each step, reduce the size of the OLE object until the whole thing shows, then, still one small step at a time, increase the
    size of the object until it becomes useful. It's still not good, but at least it's useful.
    Fortunately I only have a half-dozen or so charts to deal with. I shudder to think of the people with corporate databases with dozens or hundreds of charts in them, none of which now work, trying to fix them all by this slow and cumbersome process.
    I was about to write, "Surely there must be some solution for this." Is there? Or am I just being overconfident?

  • How do I get my page to display correctly in IE?

    I am redesigning my template, and I have posted the current result here:
    http://www.bikeraceinfo.com/test5.html
    Most of the CSS is in the document itself (I've left in the comments until I get done, sorry it's so long; DW put most of it there), but the CSS for the menu (the main problem) is here:
    http://www.bikeraceinfo.com/menu4.css
    The menu works fine in Opera, Firefox, and Chrome. Then there's IE (I'm testing it in 8). The menu is all spread out vertically (items too far apart), and the while the sub-menu shows up when you hover over the main title, it doesn't stick around long enough to choose a sub-item (unless you mouse really fast).
    IE behaves enough differently than the other three that I feel there must be some single line of code that IE wants in order to render correctly.
    Another thing that happens in all of them: when you get the mouse near the menu, all of the type on the page gets an underline, like it's linked to something. IE goes one further and puts a red box around the graphic in the sidebar.
    Help! Thanks---

    The DW built in scripting will do that, those specific to the DW generated scripts are  not an issue.
    The missing end tags are a big issue though. None of your links in your menu have an end tag </a>, you are also missing a few </li>, that causes the rest of your page to basically become a link since the browser doesn't understand what you're trying to do. That is not part of any pre-made template I've ever seen in DW.
    You also have <%@LANGUAGE="JAVASCRIPT" CODEPAGE="65001"%> at the beginning of your page, that needs to go completely. That gets added when you accidentally choose "ASP Javascript" when creating a new page rather than "HTML".
    There is a meta tag outside the <head> area of your code, that needds to be moved between your head tags. You also forgot to self close the keywords and description meta by using /> instead of > (not a major issue, but due to doctype, should be fixed)
    Because you're missing an ending </p> tag at about line 287 you'll get errors involving a lot of the remaining tags saying something to the effect of "canot go here, missing object..."

  • Cannot get my website to display properly on Iphone...what gives?

    This mild annoyance has now become a huge problem lately.  My supporting pages on my website do render properly on the browsers in my iphone.  The background repeats itself and when I add the "no-repeat" code, one side of the screen is gray.
    Also, my "ol" is not lining up properly with the image.  I've checked the website on Chrome, Firefox, Safari and Internet Explorer on Desktops and everything is uniform, however, on my mobile phone, I am experiencing these render issues.  I have attached a screen shot of how one of my pages looks on my iphone and have also provided a link to show how it usually looks (provided it is being viewed from a desktop).
    Any assistance would be greatly appreciated.  Thanks so much!
    www.tricksmovie.com/Buy_Now.html - (viewed in browser on Desktop)
    The image below is how it is showing up on my iphone under Chrome and Safari (with the "no-repeat" code added)
    FYI: I also talked to a friend of mine who has a Samsung Galaxy 3 and he says it displays on his phone normally, the way it displays on desktops.

    Thank you so much Bregent!  I was corrected my "ol" and it fixed the layout
    error.  The  remaing 12 errors are coming from my email code that came from
    Icontact.  I'm not quite sure what I can do about that.
    I'm still trying to determine why the background photo is cutting off on my
    iphone and what I can do to resolve it.

  • Cannot get my 30" cinema display to come on after power outage

    I have a 30" cinema display running with my 2010 mac pro...all was fine, then we had a power outage last night. When I started the computer the next morning, computer came on but no monitor. So I took the display to apple store and they started on a mac book pro , no problem. When I went home and hooked everything back up to my mac pro, the 30" display will not work but a 20" cinema display I have did. Very confusing
    Please help if anyone can
    thanks

    The 30" cinema display has a cable that accepts inputs from its custom power brick, a Dual-Link DVI, a USB-2, and a FireWire-400.
    For a Silver Tower Mac Pro, you must connect the power and Dual-Link DVI.
    USB is needed by the display (for Brightness and possibly other controls from the Mac), and to run the convenience USB ports if desired.
    NB> Keyboards connected through the USB hub on the display cannot generate "snag key" codes early enough to be used at Startup. If you need to Option-Boot, you will need to plug your keyboard directly into a USB on the chassis.
    You need not connect FireWire unless you wish to use the hub and convenience ports on the display. It may require a FireWire 800 to 400 cable or adapter. (The adapter is good to place permanently, and its length (short) is good. For any other use, these adapters seem to "grow legs and walk away", so an adapter cable is superior.

Maybe you are looking for

  • How to solve this please???

    Hello, I'm trying to solve a problem in setting up Devrloper Suite 10g with the database in the same machine. Another user helped me with the message below but when I try to run it I receive the message last below. Message from the user: You should i

  • Is it possible to change an existing PDF from brochure format (2 columns) to single page?

    I have an old PDF, but not the source document. It is in two-column format, that is, two pages of text on one PDF page. I've tried converting to Word in Acrobat Pro XI, but that still preserves the two-column format. It's too big and complex to refor

  • HT3529 How can i send and receive text messages with pictures?

    The camera button on the text screen won't let me send pictures. And I also can't recieve pictures.

  • Firewire 400 and 800 together

    I have 2 external HD firewire: 120Gb Firewire 400 and 500Gb Firewire 800. They work fine EXCEPT when I connect both HD to my PB. I have to use 1 at a time, not together. Do I have to do something to use them togheter? Its both LaCie HD PB G4 17" 1.67

  • Reconcilation Error

    Hi Experts, I am working on 11g r2. I followed the below document while creating a GTC Connector and Reconciling from a notepad to OIM. But I encountered the following errors. http://www.oracle.com/webfolder/technetwork/tutorials/obe/fmw/oim/10.1.4/o