Strange behavior when Popup LOVs has read-only condition and Bug Report

Hi,
I observed an inconsistent behavior of Popup LOVs when the read-only condition is true. In that case the defined lov query is used to map the internal value of the page item to the display value defined in the lov query.
What is the reason for this behavior? Because if the Popup LOV is in "edit mode" the page item value is just displayed without looking up the display value. The display value is just used for the popup lov. Mapping the value is normally a behavior of the popup key lov.
-> The result is that different values are displayed if the page item is in edit or read-only mode. That's not really the behavior someone would expect.
BTW, there seems to be a bug with "Display Extra Values" set to "Yes" in the case read-only is true. If the lookup doesn't return a value it just displays [ ], but because the property is set to yes it should display the value. The Popup Key Lov has the same bug.
Thanks for bringing some light into that behavior
Patrick
Oracle APEX Essentials: http://essentials.oracleapex.info/
My Blog, APEX Builder Plugin, ApexLib Framework: http://www.oracleapex.info/

Patrick,
I've added your comments to a task already in our queue to examine all item types for correct behavior in read-only mode. I've noticed the quirks with display extra values also.
By the way, still interested in your thoughts re: Re: Bug Report: Images broke when using get_blob_file_src and not authentic .
Scott

Similar Messages

  • Strange behavior when searching a phrase using reg exp and dynamic sql

    Hi,
    I have a strange issue while using dynamic sql for an apex page. I have a requirement to search a string in the database column which is entered by user on a page item. The search process should search the whole phrase only.
    I have a query generated dynamically in the back end and use it in a cursor in the stored procedure
      SELECT t.group_cn , t.group_desc, t.group_type, t.partner_organization_id, t.partner_organization
      FROM vr_idm_group t WHERE regexp_like(t.group_desc,'(^|\W)HR Selection & Assignment(\W|$)', 'i')The pl sql code with the dynamic sql statements are below.
       IF p_search_process NOT in ('PARTNER') THEN
          OPEN v_cursor FOR v_sql;
       ELSE
          OPEN v_cursor FOR v_sql USING p_search_id;
       END IF;
       LOOP
          FETCH v_cursor INTo v_obj.group_cn, v_obj.group_desc, v_obj.group_type, v_obj.partner_organization_id,
             v_obj.partner_organization, v_obj.match_count;
          EXIT WHEN v_cursor%NOTFOUND ;
          v_search_array.extend;
          v_search_array(v_search_array.last) := v_obj;
          dbms_output.put_line(v_sql);
       END LOOP;The search works fine if the search string does not contain any special character like &,- etc.
    However, if the search string contains any special character, it does not return any thing. This strange issue happens only if I call the procedure from the apex page and the search string contains a special character. (please note that the procedure works fine even from apex if the string does not have a special character). When I debugged this, found that, the cursor does not fetch any rows (it is supposed to fetch two rows) for unknown reason. When I run the query separately, it returns the two rows (in which the column group_desc contains the search string "HR Selection & Assignment") as desired. Also, when I test the procedure in the back end (PLSQL developer), it works fine.
    Any idea, what is causing this strange behaviour?
    Advance thanks.
    Regards,
    Natarajan

    i don't see anything about a dataProvider.  you're assigning a source for a scrollpane.  scrollpane's don't have a dataProvider property.
    anyway, other than arrayRun always being false when that last if-statement executes, what's the problem?  doesn't that movieclip display when that 2nd branch of the last if-statement executes (assuming instance is defined correctly etc)?

  • Read Only Conditions - Master Detail

    I have a page with a master detail
    i created an read only condition and the master passed to read only but the detail not...
    Why? Is not possible to put the detail component "read onyl" ?

    Hi,
    When i understand correctly you want that the form is editable when the user is an admin user
    and read only when the user is a normal user.
    You can solve this by the use of dynamic actions
    to enable and disable items of that region(s)
    do this conditional (standard user = disable and admin = enable)
    Other solution
    When making master/ detail with the wizard choose edit detail on different page
    On the edit link you can put a condition (only visible when user is ADMIN)
    Regards,
    Frank

  • Strange behavior when shutting down - only works once

    Hi there,
    I'm taking advice from around the forum to create a shutdown button for my VI. When the user sends the shutdown command, the loop stops all processes running and turns off all heaters. Then when this is complete it passes a shutdown variable to all loops allowing them to close. This seems to work perfectly once, but when I hit run again and test it again, it fails. If I abort the VI and restart again, the shutdown works. I can't quite figure out what the behavior is doing here.
    Attached is my program, it's a little messy but everything works, and it has to be added to by someone who isn't me, so I tried to keep everything clear and seperate. If anyone's got any ideas as to what is causing this strange behavior I'd love to hear it.
    Thanks,
    Chris.
    Attachments:
    Main VI.vi ‏259 KB

    First of all, your event loop should look something more like this.  Otherwise you won't exit the loop until another event comes through.
    Secondly, I think you are writing to the wrong control here (this is in your timed loop).  I have no clue what is in the subVI, but I don't think it should be looking at the Shutdown PB control.  That control should be in it's event case.  But here you are trying to cause the shutdown event, but you are writing to the wrong control.
    There are only two ways to tell somebody thanks: Kudos and Marked Solutions
    Unofficial Forum Rules and Guidelines
    Attachments:
    Event Structure issue.png ‏10 KB
    wrong property node.png ‏3 KB

  • Strange behavior when I try to match a mpeg2 video with the menu size image

    hello all,
    got a strange behavior when I try to match a mpeg2 video with the menu size image,
    menu size is 1920 x 1080 (photoshop file)
    mpeg2 video 1920 x 1080 (1second 19 frames)
    the idea is to go from the menu link to the next sub menu with a video as transition, using the same image on the video as the menu and then zooming in (in my case through a door) to end up after the zoom in the next level menu.
    I try to achieve a smooth change from the first play menu picture to the video image into the next level menu picture,
    everything works good but when I watch it on the preview mode on the left and right side of the video it shows a black bar at least 15 to 25 pixel wide, that means the video image appears smaller and it causes a little jump what is preety disturbing and can not be sold as a professional work.
    why encore treats the video size and picture differently?
    it's gratful appreciated if somebody who got experience in a transition I mentioned obove posting any solution,
    thankl you all

    Hi all
    I'm having a very similar problem with Encore. My menu items are distorting (a minor but infuriating squashing top and bottom) when previewed.
    Using Encore,PS,AE CS4
    DVD format SD PAL DV widescreen
    I created 3 menu frameworks and 3 video transistions to link them in AE. On the final frame of each transistion in AE I saved the frame with Composition>Save Frame to> Photoshop Layers. In PS i added the button functionality and saved.
    In Encore I use Dynamic link to import AE transistions as timelines and imported each PS menu twice, once as "menu" and once as an asset.
    When I link the timeline transistions to the menu and preview at the point the menu begins the whole image is squashed. When the next transistion is activated the image returns to its original size.
    Thinking it was the use of PS that was causing the menus to distort I used the menu asset directly in the time line. Obviously no menu functionality but also no distortion. The AE transistion flowed straight into the "menu" just as I expected.
    In the properties panel the menu Aspect Ratio 16:9
    The AE transistions PAR is SD PALwidescreen 1.4587.
    I did try the Blu Ray suggestion above but the same distortion was apparent.
    Any suggestions short of squashing the video to match the menu would be welcomed.
    Thanks

  • Db Export when database is in read only mode

    Hi All,
    I have to perform a full database export when database is in read only mode. My db version is 9i.
    Kindly let me know whether that export file is valid enough to do full import in new database and make database oprational.
    Thanks.

    rajaryan wrote:
    Hi All,
    I have to perform a full database export when database is in read only mode. My db version is 9i.
    Kindly let me know whether that export file is valid enough to do full import in new database and make database oprational.
    Thanks.Check the log file, if you haven't got any error, then it's valid
    BTW - Why you've taken full export of the database? Why not using RMAN?
    See the following video tutorial:
    http://kamranagayev.wordpress.com/2010/03/29/rman-video-tutorial-series-performing-disaster-recovery-with-rman/

  • Callback function may be NULL only when database handles are read-only

    Hi,
    I am getting some errors when trying to run my java code that will try to open a few cursors and join them to fetch the data.
    ath .:/usr/src/db-4.7.25.NC/java/src:/usr/local/BerkeleyDB.4.7/lib/db.jar bdbtest
    MyDbs: Callback function may be NULL only when database handles are read-only
    Error on inventory secondary cursor:
    java.lang.IllegalArgumentException: Invalid argument: Callback function may be NULL only when database handles are read-only
    What does that error mean? How can I resolve it? I am following the sample program and I can't find anything related.
    Here is my code.
    import com.sleepycat.db.DatabaseException;
    import com.sleepycat.db.Database;
    import com.sleepycat.db.SecondaryDatabase;
    import com.sleepycat.db.DatabaseConfig;
    import com.sleepycat.db.DatabaseType;
    import java.io.FileNotFoundException;
    import com.sleepycat.db.DatabaseEntry;
    import com.sleepycat.db.SecondaryCursor;
    import com.sleepycat.db.Cursor;
    import com.sleepycat.db.DatabaseException;
    import com.sleepycat.db.LockMode;
    import com.sleepycat.db.OperationStatus;
    import com.sleepycat.db.SecondaryCursor;
    import com.sleepycat.db.SecondaryConfig;
    import com.sleepycat.bind.EntryBinding;
    import com.sleepycat.bind.serial.SerialBinding;
    import com.sleepycat.bind.tuple.TupleBinding;
    import com.sleepycat.db.Cursor;
    import com.sleepycat.db.DatabaseEntry;
    import com.sleepycat.db.DatabaseException;
    import com.sleepycat.db.LockMode;
    import com.sleepycat.db.OperationStatus;
    import com.sleepycat.db.SecondaryCursor;
    public class bdbtest {
    public static void main(String args[]) {
    SecondaryDatabase myDatabase = null;
         Database primDB = null;
         Cursor cursor = null;
    try {
    // Open the database. Create it if it does not already exist.
    DatabaseConfig dbConfig = new DatabaseConfig();
         dbConfig.setErrorStream(System.err);
    dbConfig.setErrorPrefix("MyDbs");
         dbConfig.setType(DatabaseType.BTREE);
    dbConfig.setAllowCreate(true);
         SecondaryConfig mySecConfig = new SecondaryConfig();
         mySecConfig.setErrorStream(System.err);
    mySecConfig.setErrorPrefix("MyDbs");
         mySecConfig.setType(DatabaseType.BTREE);
    mySecConfig.setAllowCreate(true);
         primDB = new Database("/tmp/bdb_ca_db.db",
    "bdb_ca_db",
    dbConfig);
    dbConfig.setAllowCreate(true);
    myDatabase = new SecondaryDatabase("/tmp/bdb_ca_sdb.db",
    "ca_sdb_res_alias",
    primDB,
    mySecConfig);
         String res ="in-1";
         SecondaryCursor secCursor = null;
         DatabaseEntry searchKey =
    new DatabaseEntry(res.getBytes("UTF-8"));
         DatabaseEntry foundKey = new DatabaseEntry();
    DatabaseEntry foundData = new DatabaseEntry();
         secCursor =
    myDatabase.openSecondaryCursor(null, config);
    // Search for the secondary database entry.
    OperationStatus retVal =
    secCursor.getSearchKey(searchKey, foundKey,
    foundData, LockMode.DEFAULT);
         if (retVal == OperationStatus.SUCCESS){
              System.out.println("succ");
         }else {
              System.out.println("fail");
    while (retVal == OperationStatus.SUCCESS) {
    String keyString = new String(foundKey.getData(), "UTF-8");
    String dataString = new String(foundData.getData(), "UTF-8");
    System.out.println("Key | Data : " + keyString + " | " +
    dataString + "");
    secCursor.getNextDup(searchKey, foundKey,foundData, LockMode.DEFAULT);
         } catch (Exception e) {
    System.err.println("Error on inventory secondary cursor:");
    System.err.println(e.toString());
    e.printStackTrace();
         finally {
    // Make sure to close the cursor
              try {
              cursor.close();
              }catch (com.sleepycat.db.DatabaseException e) {
    System.out.println("All done.");
    }

    Hi,
    The error is because either the primary database or the secondary database is configured as read only and the callback to create the secondary keys is null. A quick glance of the code, it appears as if you did not set up the secondary database correctly. In the Getting Started Guide for JAVA API chap 10, we have detailed information on what needs to be done as well as a code example. Please refer to http://www.oracle.com/technology/documentation/berkeley-db/db/gsg/JAVA/index.html and look for Chap 10.
    regards,
    Mike Brey, Oracle Berkeley DB

  • When a song has Album Only where the price should be does that mean I'll get it when I purchase the entire album in iTunes?

    When a song has Album Only where the price should be does that mean I'll get it when I purchase the entire album in iTunes?

    yes

  • My ipad is recognised as a camera when connected to my computer running on Windows XP. When my ipad has photos on it and I connect it to my computer it is initially recognised as a camera before my computer crashes.

    When my ipad has photos on it and I connect it to my computer it is initially recognised as a camera before my computer crashes. Resulting in me having to reboot the system again and going through the disc checks to resolve errors. This has happened on several occasions. On previous occasions when I have not had any photos on my ipad it has connected to my computer without any problem.Is there a way of solving this problem without having to remove all of my photos from my ipad.

    Being recognized as a camera is normal. Your computer sees the DCIM folder and doesn't know the difference between a 'real' camera and an iPad.
    One way to stop it could be to tell windows explorer what to do. When you plug your iPad in do you see a little pop up window listing things to do with the device? If so, there should be an option to 'do nothing', which means you tell your computer 'hey, ignore this device'. Your iTUnes will still work when you connect them, the windows protocols that search for images, etc. should just let it be and hopefully stop the crashing.

  • Read Only condition on RadioGroup item

    I have a RadioGroup item on my page that is conditionally set to read only (using a function in the read-only condition type). I have a process that is updating the table with the value of the radio item
    ie. update table
    set column_name = :P1_RADIO
    It seems that when the item gets set to read-only (from the condition), the page value of that item is blank, which in turn sets my DB column value to blank. Why is that? It only seems to work that way on Radiogroups that are readonly.

    Anybody know why setting a radiogroup item to read-only (thru read-only condition in properties) makes the value blank?

  • Create "Sysadmin Read only" Responsibility and add to Application user.

    Hi
    I am using 11.5.10.2 (Single node installation) on RedHat LinuxAS4 OS. I have couple of requests from the users.
    Issue 1:
    The user has requested to "Sysadmin Read Only" Responsibility and attach that responsibility to his user. Please find below the request raised by the user.
    Can u add query only access for Sysadmin responsibility as I need an option to check the values assigned to each profile option and other relevant functionalities in sys_admin responsibility.
    Issue 2:
    The user is unable to open two forms simuntaniously. I was asked to set a profile option for that, please let me know which profile option is that.
    Thanks and Regards
    Amith

    Amith
    Issue 1:
    Refer the following thread
    System Administrator Read-Only responsibility.
    Issue 2:
    Perform the following steps
    System Administrator ->Security->Responsibility->Define
    Query the responsibility for which u want to enable Multiform access
    In the Menu Exclusions tab add
    Type: Function
    Name: Navigator: Disable Multiform
    -HTH
    Regards
    Mahesh

  • Lifecycle issue with table binding + read-only attributes: ADF BUG

    Hello all,
    I have found what I believe to be an easily reproducible bug in ADF that reproduces in 10.1.3.x, but not in 11g (at least not in drop 6). The best way to describe the bug would be to walk through a simple set of steps to reproduce the bug:
    1). Create a new application (ADF BC + ADF Faces).
    2). In the model project, create a new Entity Object from the Employee table in the default HR schema. Allow JDev to create an updatable view object and an AM as well.
    3). Put a validation rule on the first name attribute of the EO (can be anything, really - I made mine so that the first name cannot be "foo").
    4). Test everything using the BC tester if you like.
    5). In the UI project, create a new JSPX page.
    6). Drag the updatable VO on to your page as an updatable af:table.
    7). Put an af:commandButton on the page. Bind its Action or ActionListener to a method in a new backing bean. Put some simple code (I used System.out.println) in the backing bean method.
    8). Run the jspx page.
    9). Put some invalid data in (e.g. "foo" in the first name field) and click the af:commandButton. Verify that you get an error message and that the Action/ActionListener method DOES NOT fire. So far, so good.
    10). Now, to demonstrate the problem. First, look at the page definition for the jspx file. Identify the first attribute that is mentioned (in my case, it was the employee id).
    11). Go to the updatable view object and make the attribute from #10 read-only or updatable when new only.
    12. Now, repeat step 9 - you should see the error message AND also see that the Action/ActionListener method was executed. You will also see in the messages window that ADF attempted to set the value of the read-only attribute, and thus got a ReadOnlyAttrException.
    This issue only happens if the first attribute mentioned in the table binding is read-only. A workaround would simply be to re-order the attributes in the table binding of the pagedef so that the first attribute isn't read-only.
    Don't ask how I figured this out ;)
    Best,
    John

    Hi Frank,
    Yes, I simply scripted it out this way to contrast the behaviour if the first attribute was read-only vs not read-only. I found the issue on a page in our app that was simply drag-and-drop the VO from the data control on the page.
    It's quite annoying, because our particular use case that hit this error is a "save" button on the page. If the commit operation doesn't return any errors (and it doesn't in this use case!), we add a JSF message saying "save successful" - then the attribute errors are further added later in the page lifecycle, so we get 3 messages: "Save successful" and "Fix this error" and "Tried to set read-only attribute" - quite confusing to the end-user when the only message they should see is "fix this error."
    At any rate, the fix is to simply re-order the attributes in the page definition - that doesn't affect the UI at all, other than to fix this issue.
    John

  • Textarea with Read Only Condition Type

    A have a textarea (database field with Varchar2(4000) with the Read Only Condition Type set to Request != Expression 1. Works fine, except that data presented as a long 1 line text (like a Displayed text) when condition meet (no vertical scrollbar).
    Am i missing some additional settings.

    the easiest way to get the read-only version of your textarea item to appear more like your read/write version is to add some style specifications into the "Read Only Element Table Cell(s) Attributes" field that's right below where you specified your read-only conditions ("Expression 1" and "Expresssion 2"). as the name suggests, values entered into that field end up in the table data tag for the cell in which your read-only content is placed. added style specifications for height and width would help you control how the text is spread across your page. you can/should also consider using background and color style attributes to color the table cell the way we're used to seeing read-only data ("grayed out"). so though my colors are way off, a string like this...
    style="width:16px;height:30px;background:#C5D5C5;color:666666;font-weight:bold;font-size:12pt"
    ...in that "Read Only Element Table Cell(s) Attributes" field would format your read-only data closer to what you're going for. at the least, it'd give you an idea for the type of control you have.
    for extremists, there's also another approach: if you want absolute and total control over the way your textarea item's data is displayed, you could display your item's data in an HTML region instead of as the item directly. for instance, you mentioned you liked that scroll bar. you could achieve the scroll bar by defining your table, the scroll bar class, and table cell in an HTML region. say we saved your textarea item's data to a hidden item called P1_MY_TEXTAREAS_DATA. i'm pretty sure this html would let you show that data in that scrollable non-updatable format you're shootin' for...
    <style type="text/css">
    .scrollarea{
    font-size: 10pt;height:250px;width:100%;text-align:left;
    background-color:#ffffff;color:black;padding:0px 0px 0px 0px;margin:0px;overflow: auto;
    float:left;}
    </style>
    <div class="scrollarea">
    <table summary="" width="100%"><tr>
    <td style="width:16px;height:300px;border:4px;margin-left:4px;margin-right:9px">
    &P1_MY_TEXTAREAS_DATA
    </td></tr></table><div>
    ...see? by defining your own table, you get the easy opportunity to wrap it in those div tags that call the scrollarea class. also note that i just referenced the content of your textarea item with that ampersand syntax (&P1_MY_TEXTAREAS_DATA). you could, of course, keep things cleaner by defining your scrollarea class in a css, but that's your call.
    hope this helps,
    raj

  • Read Only Condition Question

    Hello,
    I would like the fields on the screen to be Read Only when the current
    person logged on is not the person that created the Record.
    The following case works in the Read Only condition:
    NOT Exists (SQL query returns no rows)
    SELECT 'X' FROM DUAL WHERE :P90_ASSESSOR_USER_ID = :GLOBAL_USER_ID
    But this does not work:
    Value of Item in Expression 1 != Expression 2
    EXPRESSION 1: P90_ASSESSOR_USER_ID
    EXPRESSION 2: GLOBAL_USER_ID
    I've tried changing the Expression 1 & 2 fields to be prefaced with : and & and also used V('P90_ASSESSOR_USER_ID') and NV('P90_ASSESSOR_USER_ID'),
    but can't get the second way to work. Anyone know why?
    Happy Holiday Season!
    Carol

    Try
    IN EXPRESSION 1
    P90_ASSESSOR_USER_ID IN EXPRESSION 2
    :APP_USER Cheers,
    Hari

  • Strange font when printing pdf with Reader X

    Hello,
    Who can help? I recently upgraded from Adobe Acrobat Reader 9 to Adobe Reader X. Since then, a strange problem occurs. When printing a pdf files to a printer, the font is changed. When viewing the file on the screen and printing them with version 9, everything is OK. The Arial font appears as it should. But when printing, a very ugly font type appears. The pdf files I use contain only a 'standard' Arial and Myriad Web font.This problem is very annoying.
    Can somebody help? I use version 10.0.1

    If you go the attached web page:
    http://www.adobe.com/support/reader/
    (http://www.adobe.com/support/reader/) ,  you
    will see "download an older version" underneath
    the Download Adobe reader.
    If you click in this link (download an older version), you
    can pick from version 8 and 9.
    Since erasing version 10 and downloading version 9.4,
    my problem has gone away completely.
    As with you, I consider this a major problem. It certainly added
    a lot of grief to my life when I could not trust my printer
    output at all.
    Hope this helps.
    Marsha

Maybe you are looking for

  • How to use itune library from an external drive ?

    I have an old old computer that works perfectly fine on window xp and I will like to keep it. However, the disc space on the pc is LESS than my IPOD. I will like to move my library to my external hard disk and wondering if it is possible and if itune

  • IDS in multitenant environments

    Where do I need IDS in a secure hosted multitenant environment - on the exterior firewall only, or also with port-mirroring on virtual switches to monitor inter-vm traffic on ESXI virtual switches?  Or do I always need both? 

  • Microphone buttons do not function.

    So I have the weirdest issue with my headphones. Both earpieces send sound fine, the microphone actually works in a sense that I can have a conversation clearly while on the phone, but the button to start/stop phones, and also the volume control for

  • Usercertificate functionality differences between 10.1.4.3 and 10.1.2

    I'm in the process of moving from one version of OID to another. We use certificates and a java class to map incoming certificates to a user in the OID. Works fine and has for a long time. When I try the working code against the 10.1.4.3 OID instance

  • Viewing Graphics in email 8830 software vs 4.2

    I am unable to view any graphics in my personal email boxes.  Even advertisments come as text.  Is there anyway to fix?