#OWNER# in APEX 4.0 - inconsistent value - possible bug

There is some inconsistency in how APEX 4.0 treats #OWNER# and &OWNER.. I believe that these variables should always have identical values (value of apex_application.g_flow_owner) but this is not always the case with #OWNER# - it is sometimes treated as the default parsing schema of the application and sometimes as apex_application.g_flow_owner. This behaviour is new in APEX 4.0 - in APEX 3.2.1 it works consistently as expected.
Please see the example here: [url http://apex.oracle.com/pls/apex/f?p=16136:1]http://apex.oracle.com/pls/apex/f?p=16136:1
Regards,
Jure

Hi Joel,
Is there an occasion when these should be different values?I see your point that both of these values should always be the same. However, if someone wants to implement a hosting solution with multiple schemas (without VPD for any reasons), this would be a neat solution: the default parsing schema of the application always stays the same, but the value of apex_application.g_flow_owner could be different for each page load.
I believe that many people would find this solution very useful since VPD is only available in EE, which is expensive and small companies can't afford it.
Are you attempting to set this global variable yourself?Yes. My idea is to set this variable in a before-header process in order to change parsing schema dynamically. I got the idea from Roel here: {thread:id=1088599}. I would like to use this solution for hosting purposes with one schema for each customer. I know VPD is the best option here but the company only has SE licence so VPD is not available.
I have tested the functionality (see the link in the first post of this thread) with satisfactory results on APEX 3.2.1. However, in version 4.0 there is a change in automatic row fetch/processing.
For example, my fetch row process is defined as:F|#OWNER#:MY_TABLE:P1_ID:ID In APEX 3.2.1, #OWNER# will be replaced with the value of apex_application.g_flow_owner, but in 4.0 it will be replaced with the default parsing schema, which can't be changed dynamically. This is inconsistent with report regions, where #OWNER# is replaced with apex_application.g_flow_owner. What it also means is that I can no longer use this process with multiple schemas, UNLESS I hack it in to look like this:F|&OWNER.:MY_TABLE:P1_ID:ID This solution works in 4.0.
So I guess what I want to ask is: is there a chance that in a future APEX release all occurences of #OWNER# in an application could always be replaced with the same value - possibly the one from apex_application.g_flow_owner.
Jure

Similar Messages

  • 10g 10.2.0.1.0 - Check Constraint with negative values possibly BUG.

    Hello,
    Why this doesn't work ?
    create table a (b numeric(1));
    alter table a
    add constraint b CHECK (b in (0, 1, -1)) ENABLE;
    select * from a where b = -1;
    I get the following error: java.sql.SQLException: No more data to read from socket
    - Through the jdbc client. It happens with the Oracle Client too.
    When i change my check constraint to this:
    alter table a
    add constraint b CHECK (b in (-1, 0, 1)) ENABLE;
    It works.
    It's a (known) bug ?
    Regards,
    Francisco

    hi dear,
    I want to upgrade my OMS server 10.2.0.1 to 10.2.0.5
    I downloaded the patch 10.2.0.5 and read the README.txt
    Part of the README is:
    1.2 Enter the following command to extract the installation files:
    $ unzip GridControl_10.2.0.5_<platform name>.zip
    This command extracts the following files and directory:
    |- p3731593_10205_<platform name>.zip
    |- 3731596.zip
    |- 3822442.zip
    |- README.txt
    |- doc/
    NOTE: <platform name> will be "LINUX" or "Win32" depending on the platform for which you are installing. For installing Enterprise Manager 10g Grid Control Release 5 (10.2.0.5), refer to the Release Notes available in the "doc" directory.
    - p3731593_10205_<platform name>.zip is the ZIP file that contains 10.2.0.5 patch set software.
    This zip can be used for:
    - Upgrading Oracle Management Service Release 2 (10.2.0.x) or higher to Oracle Management Service Release 5 (10.2.0.5)
    - Upgrading Oracle Management Repository (sysman schema)
    - Upgrading Oracle Management Agent on the host where OMS is running.
    NOTE: This will not upgrade the database in which the Management Repository (sysman schema) resides.
    - 3731596.zip is for patching Management Agent by staging the patch set. To understand how you can apply the Management Agent 10.2.0.5 patch set, refer to method 2 described in section 4.3.3 "Upgrading Management Agent - Multiple Hosts at a Time" of the Release Notes. The Release Notes can be found in the "doc" directory.
    - 3822442.zip is for patching Management Agent by distributing the full patch set.  To understand how to apply the Management Agent 10.2.0.5 patch set, refer to method 1 described in section 4.3.3 "Upgrading Management Agent - Multiple Hosts at a Time" of the Release Notes. The Release Notes can be found in the "doc" directory.3731596.zip - by staging
    3822442.zip - by distributing
    Does the two above have the same function or purpose?
    I can not understand the meaning of the two :( . which do you think is the right one for my setup?
    Thanks a lot

  • Possible Bug In Apex 4.0.2

    Hi Everyone.
    I would like to report what I think is a bug in Apex 4.0.2.
    If you go to my workspace on apex.oracle.com:
    Workspace = EEG
    Username = [email protected]
    Password = galaxy (all lowercase)
    Run the application: 37796 - Elie_Various_Goodies [no credentials are required]
    This app was imported from my 4.0.1 workspace at my job. On the page I created two Date Picker items, P1_BEGIN_DATE and P1_END_DATE. I set them up so that whenever a user selects a begin date, a dynamic action "MANAGE_DATES" fires and automatically sets P1_END_DATE to this selected begin date value. Now when a user goes to select an end date, the displayed calendar starts at the previously selected begin date rather than the default of "Today".
    All of this worked fine on my office (4.0.1) workspace. However, after exporting this app and then importing onto apex.oracle.com, none of this functionality would work. Even worse, whenever I try to select a begin date or even an end date, the selected dates never make it into the date picker fields. Displaying the "Session" window shows these fields as empty.
    It was only after I copied the two date picker fields and also re-created my dynamic action (P1_BEGIN_DATE2, P1_END_DATE2, MANAGE_DATES) did my functionality return.
    This behavior is quite strange. I can only think this is some sort of bug attributed to the export/import process when exporting a 4.0.1 app into a 4.0.2 workspace. I am not sure if this bizarre behavior happens with non-date picker items. Nor am I sure if this beavior would be repeated if I export/import from 4.0.2 into the another 4.0.2 environment.
    Another strange thing I noticed. If I change my date picker items to be "date picker (classic)" type items, the dynamic action does not work at all. This is true in both 4.0.2 and 4.0.1. I'm not sure if this a bug or not. It could be that the classic date picker is just not "javascript" enabled so to speak. If that is true, then it would have been nice if the docs would have warned us about this.
    Has anyone else seen this behavior?
    Thank you.
    Elie

    Hi Joel.
    First let me thank you for the warning about allowing "everyone" access to my workspace.
    You're correct, of course. Anyone could destroy anything within my workspace. I guess I was too trusting especially as I have seen many posts on the Forum where others have given access to their workspace so that responders can offer help. I really should be more discreet about this. Again, thank you. Needless to say, I have changed my password.
    With respect to the possible bug, the MANAGE_DATES dynamic action is intended to be a submit page because that is the only way I can see to get BOTH the P1_END_DATE date picker item as well as the end date textual field to be assigned the selected P1_BEGIN_DATE. I tried to use a dynamic action in which javascript sets the value of the end date textual field to the selected P1_BEGIN_DATE value. This works without the need to submit the page. Unfortunately, this does not cause the P1_END_DATE date picker item to default to this value. Instead, the default remains at today's date. This is why I finally resorted to a dynamic action that submits the page whenever a new value is selected (that is, a "change" event) from the P1_BEGIN_DATE date picker item.
    All of this works in my office 4.0.1 environment. However, I was puzzled when this fails under 4.0.2 on the hosted web site at apex.oracle.com. This is why I posted a "possible" bug in 4.0.2.
    I hope this all makes sense.
    One more thing, as already mentioned in my original post, this "defaulting a date picker" functionality does NOT work at all for the "classic" date picker items in both 4.0.1 nor in 4.0.2. I realize one can implement this functionality (I' guessing) my using, say, a "onChange" javascript call to submit the page. It's just funny that the "classic" date picker items are not acted upon by the dynamic action MANAGE_DATES that submits the page.
    Thank you.
    Elie

  • Dynamic table owner in apex 3.0 and Oracle 10g

    I have an application that requires bulk deletes for all rows in a particular department. The application edits incoming data and then moves final approved data to the 'production' db. End users modify their data via bulk load until they are happy with validity checks. At certain times of the year this could be as many as a million rows in a single table with referential integrity deletes in up to 5 additional tables. This generates unnecessary redo and archive logs so I thought we might just create separate schemas for each department (11) and do DROP/CREATE table instead.
    The problem is that I see no way to dynamically change the table owner in ApEx. Is there any way to do this short of export/import to a 11 different parsing schemas?

    ...I thought we might just create separate
    schemas for each department (11) and do DROP/CREATE
    table instead.Instead of doing drop/create on your tables just do a truncate on the table.
    >
    The problem is that I see no way to dynamically
    change the table owner in ApEx. Is there any way to
    do this short of export/import to a 11 different
    parsing schemas?You may try creating your tables as follows
    CREATE TABLE dept1.table_a AS SELECT * FROM old_table WHERE dept=1;
    CREATE TABLE dept2.table_a AS SELECT * FROM old_table WHERE dept=2;
    Then investigate using UNION logic and possibly a flag to show/hide departments...
    SELECT * FROM dept1.table_a WHERE dept=1 AND :P1_FLAG=???;
    UNION
    SELECT * FROM dept2.table_a WHERE dept=2 AND :P1_FLAG=???;
    The above union logic may work for reporting needs but would likely not work for your maintenance pages where you need to insert/update/delete...
    Message was edited by:
    tfa

  • Inconsistent values in Info Panel and Transform Panel

    Does anyone know what circumstances would cause inconsistent values for Width and Height to be shown in the Info Panel vs the Transform Panelin AI CS6?  For instance,  I have a vector object selected and the Transform Panel has "80 in" for the width value and the Info Panel shows "96.8654 in".  Height is likewise screwy.  Should this ever be happening?  Is it possibly an AI bug?

    That's not normal. Try a restart.
    If that doesn't help, try and trash the preferences. Or try this method http://www.bugge.com/Family-and-friends/Illy/illy.html

  • How does APEX check for null values in Text Fields on the forms?

    Hello all,
    How does APEX check for null values in Text Fields on the forms? This might sound trivial but I have a problem with a PL/SQL Validation that I have written.
    I have one select list (P108_CLUSTER_ID) and one Text field (P108_PRIVATE_IP). I made P108_CLUSTER_ID to return null value when nothing is selected and assumed P108_PRIVATE_IP to return null value too when nothign is entered in the text field.
    All that I need is to validate if P108_PRIVATE_IP is entered when a P108_CLUSTER_ID is selected. i.e it is mandatory to enter Private IP when a cluster is seelcted and following is my Pl/SQL code
    Declare
    v_valid boolean;
    Begin
    IF :P108_CLUSTER_ID is NULL and :P108_PRIVATE_IP is NULL THEN
    v_valid := TRUE;
    ELSIF :P108_CLUSTER_ID is NOT NULL and :P108_PRIVATE_IP is NOT NULL THEN
    v_valid := TRUE;
    ELSIF :P108_CLUSTER_ID is NOT NULL and :P108_PRIVATE_IP is NULL THEN
    v_valid := FALSE;
    ELSIF :P108_CLUSTER_ID is NULL and :P108_PRIVATE_IP is NOT NULL THEN
    v_valid := FALSE;
    END IF;
    return v_valid;
    END;
    My problem is it is returning FALSE for all the cases.It works fine in SQL Command though..When I tried to Debug and use Firebug, I found that Text fields are not stored a null by default but as empty strings "" . Now I tried modifying my PL/SQL to check Private_IP against an empty string. But doesn't help. Can someone please tell me how I need to proceed.
    Thanks

    See SQL report for LIKE SEARCH I have just explained how Select list return value works..
    Cheers,
    Hari

  • Inconsistant value assignment.

    Hi Everybody,
    when iam entering the values for a character, it is showing the message as "Inconsistant value assignment. I have checked in CT04. The data type also showing as Numeric.
    please advise.
    Regards,

    Hi,
    Check the decimal point,Check the Template format of your character.Also the user profile say 1,2987766.78 or 1.23355667,34.
    Regard,
    Raj

  • Possible bug found in Mac Os X Tiger 10.4.11 in conjuction with iPod Touch

    Dears,
    I think I've found a possible bug in Mac Os X version 10.4.11 in conjunction with iPod Touch.
    When the iPod is connected during boot, my Bluetooth hardware fails to be detected. When I restart the portable without the iPod connected, my Bluetooth hardware is recognised & activated again. It is reproduceable.
    1. Attach iPod Touch before starting the MacBook Pro
    2. Boot the Macbook
    3. Bluetooth hardware should be rendered inoperative
    Restore functionality:
    1. Detach the iPod Touch
    2. Reboot the portable
    3. Bluetooth hardware is restarted / recognised.
    Regards
    Cedric

    wrong category

  • Possible Bug with Drag-and-Drop Being Published via HTML5 - Getting "Undefined" Error When Dragging Object

    Hello,
    I came up with a way to use drag-and-drop interactions that will take advantage of file input so that I may create a drag-and-drop interaction that uses one draggable object over and over allowing multiple scoring/tracking possibilities.  Example use...is having the draggable object be dynamic in that it randomly changes its text so that a learner can drag a term it's possible classification.........thus allowing the possibility of having many terms easily loaded without having to redo a drag-and-drop interaction for each needed terms/classifications updates/changes.
    My Issue: When using a variable to represent the text for a draggable Smart Shape object, I'm getting the error message "undefined" when, clicking/pressing on the object, as well as during the drag of the object. This issue occurs when publishing the project in an HTML5 format.  Flash interestingly enough seems to work perfect...but we are not interested in publishing via Flash any longer.
    To better help you explore this error message, I've set up a test project so that you can see when and how the "undefined" message shows up during a drag-and-drop interaction.  I've also included the Captivate 8 project file used to make the exploration project I'm sharing in this post.
    Link to Captivate project I created for you all to explore "undefined" error message": http://iti.cscc.edu/drag_and_drop_bug/
    Link to this Captivate 8 Project file: http://iti.cscc.edu/drag_and_drop_bug.cptx
    It's pretty interesting how things react in this demo, please try the following actions to see some interesting happenings:
    Drag the Yellow (or variable drag box) to the drag target.
    Drag Black Hello square to Drag target and click undo or reset - watch the undefined message come up on the Yellow (or variable drag box).
    Drag the Yellow (or variable drag box) to the drag target and then use the undo or reset.
    Move both draggable boxes to the drag target and use the undo and reset buttons...
    Anyhow, I know you all are sharp and will run the demo through its paces.
    I'd really be very honored if anyone help me figure out how I could (when publishing out to HTML5) no longer have the "undefined" error message show up when using drag-and-drop with a variable for shape text. This technique has been well received at the college I work at...and I have many future project requests for using such an idea on a variety of similar interactions. I'd love see a solution or see if this might be a bug Adobe may be able to fix!
    I tried to find a solution to the issue documented here for quite some time, but I was not able to find anyone with this problem much less attempting the idea I'm sharing in the help request -  save the darn "undefined" message that comes up!
    Many thanks in advance for any help and/or direction that you all may be able to provide,
    Paul

    Hello,
    I just wanted to supply a minor update related to my drag-and-drop question/issue stated above:
    I did another test using Captivate 7, and found that the undefined error (publishing as HTML5) does not appear and the variable data remains visible - except the variable data turns very small and does not honor any font size related settings.
    I did go ahead and submit this to Adobe as a possible bug today.
    Thanks again for any help related to this issue.  If the issued documented above is solved, it will allow many amazing things to be done using Captivate's drag-and-drop for both regular type projects as well as interaction development for iBooks! 
    Matter of fact if this issue gets fixed, I'll publish a Blog entry (or video) on way's I've used Captivate's drag-and-drop to create dynamic learning activities for Higher Ed. and for use in iBooks.
    ~ Paul

  • Possible bug: Saving array with extended and double precision to spreadshee​t

    If one concatenates a double precision array and an extended precision array with the "build array" vi and then saves using "Write to Spreadsheet File" vi any digits to the right of the decimal place are set to zero in the saved file. This happens regardless of the format signifier input (e.g. %.10f) to the  "Write to Spreadsheet File" vi.
    I am on Vista Ultimate 32 bit and labview 9.0
    This is a possible bug that is easily circumvented by converting to one type before combining arrar to a spreadsheet. Nonetheless, it is a bug and it cost me some time.
    Solved!
    Go to Solution.
    Attachments:
    Spreadsheet save bug.vi ‏9 KB

    Hi JL,
    no, it's not a bug - it's a feature
    Well, if you would look more closely you would recognize the "Save to Spreadsheet" as polymorphic VI. As this polymorphic VI doesn't support EXT numbers internally (it only supports DBL, I64 and String) LabVIEW chooses the instance with most accuracy: I64 (I64 has 64 bits precision, DBL only 53...). So your options are:
    - set the instance to use as DBL (by right-click and "Select type...")
    - make a copy of this VI, save it with a different name and make it support EXT numbers (don't rework the polymorphic VI as you would break compatibility with other LV installations or future revisions)
    And yes, those coercion dots always signal some conversions - you should atleast check what's going on there...
    Message Edited by GerdW on 05-21-2010 10:01 PM
    Best regards,
    GerdW
    CLAD, using 2009SP1 + LV2011SP1 + LV2014SP1 on WinXP+Win7+cRIO
    Kudos are welcome

  • Possible bug? formatted number 0 displays as  4,294,967,295

    This is really two questions in one. First, I have a routine
    that sometimes provides a result of 0, which is *sometimes*
    displayed in an AdvancedDataGrid column as 4,294,967,295, which I'm
    assuming is somehow a meaningful number (largest int?). Anyway, I
    have an ADG with a column defined as:
    <mx:AdvancedDataGridColumn headerText="Remaining work"
    labelFunction="rem_work_fmt" textAlign="right" />
    The labelFunction called is shown below:
    private function rem_work_fmt(item:Object,
    column:AdvancedDataGridColumn):String
    var num:String =
    numberFormatter.format(item.get_remaining_work());
    trace ("result: " + num);
    return num;
    The trace output prints: "result: 0" as expected, but the
    number displayed in the grid is sometimes 0 and sometimes
    4,294,967,295.
    More weirdness, this only happens to the last column in the
    ADG. I call the same format logic on a different column and have
    never seen the wrong result. Also, the same underlying function
    "get_remaining_work()" is called elsewhere on the same data and the
    result is correctly displayed in a text field as 0.
    Second question, I've run into some other possible bugs,
    which I haven't reported because I found a work around. How does
    one do that in the beta program?

    lw1001,
    Bugs can be filed in the public bug base at
    http://bugs.adobe.com/flex/
    You'll need to sign up before you can submit bugs.
    Also, if you can attach the bug files to the bug report, it
    makes it a lot easier for Adobe to investigate.
    Let me know if you have any further questions/problems.
    Peter

  • A possible *bug* in java jcombobox

    Hi all,
    I think i found a possible bug in java jcombobox .. i am sure some of you must have already experienced it..
    supposedly you put a jcombobox in a jpanel
    returned the panel from a method to a calling method..
    and that method adds it to another panel that it had created to a frame..
    and if this happens dynamicaly at runtime, as only after u click a button..
    meaning : without adding the combobox or the immediate parent panelto the contentpane .. directly..
    Then,
    your combox's keylistener may not catch events fired.
    .. this has happened to me many times.. and always i could only find a way out
    .. by adding the combobox to panel that is loaded during startup itself and is
    .. not returned through a method call.
    Your opinions please ?
    'Harish.

    All components in a UI are created at run-time.
    When you create your JFrame you call pack() to align and resize the UI. This validates all the components, and sets the default focus on what ever component should have the focus at start up.
    When you create components and add them as children of another component you have to validate the child and parent. This can be done by calling JComponent.validate()
    As for keylisteners not getting called, this might be fixed if you call grabFocus on the new combobox. I can't see a reason why any listener would stop working.
    For me to really understand what your talking about. I'd need to see source code reproducing this problem.

  • Can someone confirm a possible bug with Universal Access?

    Can someone confirm a possible bug with Universal Access?
    I have a Mac Pro 3,1, 10.7.1 but if you could confirm or not this possible bug with any model.
    In Energy Saver preference pane:
    Set Mac to never sleep.
    Set Display Sleep to ~2 minutes.
    In Desktop & Screen Saver:
    Set screen saver to start at ~1 minutes.
    In Universal Access:
    Check Enable access for assistive devices.
    Check radio button Zoom to On.
    Zoom in window not checked.
    Confirm that Zoom works by pressing:
    ⌥⌘= (option, command, =).
    Set screen back to normal by pressing ⌥⌘-.
    Let screen sleep after screen saver starts.
    Wake screen and see if ⌥⌘= still works.
    Thanks … Ken

    Other than the time intervals (smallest Screen Saver kick-in is 3 minutes), it works fine for me - at least I can still zoom in/out after waking the display.
    Tested on two different MacBook Pro models in 10.7.1

  • What are the changes / enhancements / or possible bugs in LR 5 Auto Tone

    Can anyone explain what, if any, changes, enhancements, or possible bugs were introduced in the functionality of Auto Tone since LR ver. 5.0. The reason I ask is that I get different results for the Exposure and Contrast adjustments when applying Auto Tone (using ver. 5.3) from the results  (using ver.5.0) shown in the book "Adobe Photoshop Lightroom 5 CIB" in the "Using Quick Develop in the Library module" section, step 4 on page 37. (This difference in results between LR versions was confirmed by the authors of LR5CIB.)

    I'm not sure about any new bugs but the radical exposure mis-calculations have been improved. I had photos that were over exposed to 5 (and even 10, believe it or not) that were exposed to a more appropriate 2 or so following the improvements (in Lr5.2 if memory serves). It's also less likely to radically underexpose.
    Enjoy, (in my opinion, it's much better)
    I think there may have even been further improvement in Lr5.3 but I can't swear to it - seems to preserve a little more contrast than in 5.2 - could be my imagination..
    Rob

  • Copy and paste adjustment  problem/ possible bug.

    Hi all
    I have just encountered a very strange problem/ possible bug.
    I have been working on a file in photoshop cs5 that had come from lightroom 5.3. This was then saved (automaticaly becomes tiff file in Lightroom). I then wanted to make some more adjustments to it in lightroom (using local adjustment clarity). I then tried to copy the settings of the adjustment brush  from the tiff to the original raw file. This is where it gets very strange. The adjustments are copied but they are rotated ccw by 90 degrees!  I can replicate this every time.
    Could someone else try to see if this problem exists on their catalogs or if its a corrpution problem my end.

    Noted on the bug, thanks.
    1762hd wrote:
    Hi Geoff
    Heres the summary for bug report - please note this bug also affects radial filter/healing brush and crop
    Scenario
    1 open a portrait raw image in photoshop using render using lightroom (I am using cs5)
    2 back in lightroom make a change using the - adjustment brush/ radial filter/healing brush or crop - to the newly created tiff image.
    3 copy and paste this adjustment to the original raw file.
    problem
    all effects are rotated.

Maybe you are looking for

  • Problem with WT2007, SBO2005 and Opportunities

    I am trying to synch opportunities between WebTools 2007 PL3 and SBO 2005 PL31 but every opportunity errors with the following error: -5002:Potential amount is missing  [OPR1.MaxSumLoc][line: 3]    at NetPoint.SynchSBO.SBOObjects.SBOOpportunity.NetPo

  • IPOD IS DISABLED

    screen; "IPOD IS DISABLED" connect to itunes. how can i reset my ipod touch?

  • When I shut down, I get where is the smartmobility notification app

    I have a macbook air, and just upgraded to OS Yosemite 10.10.2. When I shut down, I get the following question: where is the smartmobility notification app? What does this mean? Thank you.

  • Fragmentation in tablespace in oracle 9i

    Hi All, We have oracle 9.2.0.8 installed in solaris 9, database size is 1.5 TB, we are looking for the tablespaces which are suffering from the fragmentation. We have locally manged tablesapaces in the database. so can you please tell me, is there an

  • Need alot of help pls

    i installed itunes in my computer and but when i try open it up nothing appears it just does nothing i do not know what to do i tried reinstalling and repairing it but the same thing happens. please someone help me