Apex 4 Bug in conditional regions display?

I upgraded to Apex 4 and now face the following problem with one of my applications.
I have two regions of type HTML text on the same page, both with the same condition type (simple SQL exists query), but the second region are displayed. Any ideas?

Christian

Hi Christian,

are you sure it worked before moving on to APEX 4.0? In which version it worked? I think how it behaves now is correct.

Page P2_UMFRAGE element has 'Used Source' the value ' Always, replace the value that exists in the session state "which will result in an assignment of the value specified by"Source Type"and" value Source or expression "each time only when the page is rendered. Note: The assignment is made when the item hidden page P2_UMFRAGE is actually 'rendered' in "region 1". The result is simply stored in the session state of memory and not in persistent session state which has reason why you always see "21" when you view session after the return of the page state.

If the flow is as follows:
(1) with the management on page 1, P2_UMFRAGE's persistent session state is set to the current value (eg. 21)
(2) the condition of the region 1 is evaluated, P2_UMFRAGE session state is always 21 why it is rendered
(3) P2_UMFRAGE is rendered as part of the 1st region, this triggers the evaluation of attributes 'Source '.
(4) because 'Source used' is equivalent to ' Always, replace the value that exists in the session state "the APEX engine will assign a new value to session memory to P2_UMFRAGE database state
Note: All of the values specified for a page element like 'Source', 'Default value', 'Post calculation' will always change only in memory session state. Only the calculations or PL/SQL process will write in permanent session state.
(5) the condition of the 2nd region is evaluated, the session state from P2_UMFRAGE has the value NULL is why the condition false reviews

Hope that explains why zone 2 is not displayed. But I still wonder why it worked before APEX 4.0, because I'm not aware of any change in this area.

Concerning
Patrick
PS: I changed the Type of 'Source' to "Only when the current value in session state is zero" and now the two regions are displayed.

Published by: Patrick Wolf3, July 14, 2010 11:08

Tags: Database

Similar Questions

  • Bug report? The conditional regions affect the provision of grid

    Hello

    I had a few parts on my page, the 2nd has not started a new line, if it appeared horizontally when it is possible.

    In some experiments, I created a new region with a sequence between the new line started, but even when this region was under condition ever, my 2nd home region started on the new line.
    Origin:
    region 1 - region 2
    (empty) - region 3 (no new rows/columns) >
    New added region:
    region 1
    region 1.5 (added, new line)
    Region 2
    Region 3 >
    Region of 1.5 not shown:
    region 1
    region 2
    Region 3 >

    I would like to know if you would like a test case for a better visualization.

    Scott

    Hi Scott,.

    It is by design. The critical attributes as start the new grid, start the new line, start new column of a conditional component will always be used to have the independent grid if the component itself is rendered.

    Just assume that you have a conditional region that begins a new grid, the positioning of the following areas would be difficult to control by a developer, because if a new grid starts or not, depending on the layout page/positioning would be completely different. To make a long story short, it is the intendant behavior to have a predictable pattern.

    Concerning
    Patrick
    -----------
    Member of the APEX development team
    My Blog: http://www.inside-oracle-apex.com
    APEX Plug-Ins: http://apex.oracle.com/plugins
    Twitter: http://www.twitter.com/patrickwolf

  • generator expressions multiple Variables GET conditional region.

    Hi all

    I hope someone can help (If master Günter Schenk thank your far in advance).

    I am at a loss with the selection of multiple variables for a conditional region IF.

    If there is a simple way for a person to give an example that would be great or please read below on what I am tring to do.

    What I need to do

    I have 2 images (1 is a button) with the command of one submission form, the other is just a message already sent to this user.

    When the form send it gets a unique result of generated URL for each of the presentations that I have to check agaist the IF conditional.

    So, if already present it button does not appear but the other saying you already sent message.

    The IF conditional is checked agaist a recordset using two of the main values of the URL that are VenueID and VFSENQI, but not checking the RandomEnquirySent.

    If the Recordset object checks the first 2 variables, which then produces the info to check the URL.

    Or another way to do this would be to check the

    Info

    Expression 1: <? PHP @$ row_rsCKEnqSent ['RandomEnquirySent']? > or @$ row_rsCKEnqSent ['RandomEnquirySent']

    That is the result of the database recordset based on below the URL that is submitted by a form.

    {GET. VFSRAND} IDENQ {SESSION. VFSENQID} IDVEN {GET. VenueID}

    Expression 2: be->

    <? PHP echo $_GET ['VFSRAND'];? > & IDENQ <? PHP echo $_GET ['VFSENQID'];? > & IDVEN <? PHP @$ _GET ['VenueID']? >

    or

    [@$ _GET ['VFSRAND'] & IDENQ@$_GET['VFSENQID'] & IDVEN@$_GET['VenueID "]"

    This is the URL paramiter sent to the database of unique to the message references.

    <? PHP echo $_GET ['VFSRAND'];? > & IDENQ <? PHP echo $_GET ['VFSENQID'];? > & IDVEN <? PHP @$ _GET ['VenueID']? >

    It is also the second part of the expression that should be removed from the URL & or a Session.

    Finishing

    So, if I know how to get the IF conditional to remove information from the URL to check the result recordset agast <? PHP @$ row_rsCKEnqSent ['RandomEnquirySent']? > I'd be a very happy man.

    Please let me know either or to see if it can or cannot be done I would be very grateful.

    Kind regards

    Joseph

    Another is important to keep in mind: What mix static strings (e.g. IDENQ) with dynamic values (e.g. $_GET ['VFSRAND']) inside the 'if' of a conditional region, the final result should be considered as a single string and must therefore be incorporated like the following, what - else - what is called "concatenation":

    method 1)

    $cond_combined = $_GET ['variable_1']. "" IDENQ ". $_GET ["variable_2"]. "" IDVEN ". $_GET ["variable_3"];

    method 2)

    $cond_combined = "{$_GET ['variable_1']} IDENQ {$_GET ['variable_2']} IDVEN {$_GET ['variable_3']}";

    Both methods work in the same way, the only difference from Dreamweaver, method 2 loses the colorization of PHP syntax for dynamic values that are wrapped in curly braces. Well, I´d personally consider cela a bug actually, but who am I to say ;-)

    However, I ve been playing with your stuff a bit using DW/uninstall. Please take a look at the attached screenshots and try to understand what I was doing and - in particular - * why * I did what I did

    See you soon,.

    Günter

  • Conditional regions

    Hi all

    I have a transaction hidden on a page with conditional regions.

    Transaction types are 1,2,6,7 (new hire, transfer-ex, rehire, reemployee).
    The employee types are 1,2,3 (Regular, contractor, Temp).
    If I use the conditional display (item = value); Exp1 = P110_hidden_transaction; EXP2 = 1 (transaction_type), I get the good region to show (New rental, transfer,...).

    But if I try to use exp1 = P110_hidden_transaction; EXP2 = IN (1,2,6,7). I don't see any of any region. I tried many variations.

    I go about it properly?

    Hi Gina,

    Not quite. You can either use the Condition Type "Value of element in the Expression 1 is contained in the colon delimited list in the Expression 2" and use {make: Courier} P110_hidden_transaction {font} and {make: Courier} 1:2:6:7 {font} as your two fields, or you can just use the condition type "SQL Expression" and put {make: Courier}: IN P110_hidden_transation (1,2,6,7) {font} in Expression 1.

    TX, Jen-

  • Bug: Trash does not display 'empty' icon when the Recycle Bin is emptied.

    Bug: Trash does not display 'empty' icon when the Recycle Bin is emptied. This only happens when you use customized for the trash icons. The Recycle Bin appears correctly when office is updated.

    It would be nice if someone could answer this question, as it is 8 months old.

    Click Start, type regedit.exe, and then press ENTER.

    Reach:

    HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\CLSID\ {645FF040-5081-101B-9F08-00AA002F954E}

    Export the branch above into a REG file.

    Exit Regedit.exe

    Open the REG file with Notepad, copy the content and include it with your answer.

    Ramesh Srinivasan . The Winhelponline Blog
    Microsoft MVP, Windows desktop experience

  • links should stay in the same place when the other links disappear because of conditional regions

    I created a Recordset paging. paging consists of three links: previous, today, following.

    I also have conditional regions for the previous links and next, so that they disappear under certain conditions.

    Assume that the links are the words arranged like that in the upper left corner of the Web site:

    previous today next

    Thus, when a certain condition is met, and the previous link disappears, the other two links moving to the left. and that's what I find disturbing.

    How can I make the link disappears, but its place is replaced by blank spaces or something like that to keep the other links to the same place?

    .. .not sure if have put enough clear ^^

    Thanks for the help :)!

    MurraySummers wrote:

    What method do you use to the conditions?

    These three links are really just a menu short list of "chips" without the bullets. If you style this menu with a width explicitly to the

  • elements, and if the conditions cause the content of the list items to be written or not written on the screen, I think that you will reach your goal. This would allow you to have-

    previous | today | next
                  | today | next
    previous | today |
    

    Or other combinations these three meaningless...

    (EDIT - well spacing is off, but you get the idea!)

  • Well, I guess you can set it up like that.

  • < a="" href="previous.html">Previous

  • < a="" href="today.html">Today

  • < a="" href="next.html">Next

  • Conditional region with functions, does not

    Oracle EBS Bi Publisher standard (customer statement) report, using speaking

    I am creating a conditional region with no luck.

    <? substr (INVOICE_NUMBER, 1, 1) xdofx:If. decode (AMOUNT_DUE, ", 'NOPRINT', AMOUNT_DUE)! = "3NOPRINT"? >

    I created a field using all this substr (INVOICE_NUMBER, 1, 1) | Decode(AMOUNT_DUE,'','NOPRINT',AMOUNT_DUE) to confirm that the value is 3NOPRINT, but again the lines appear.

    Any ideas?

    Thank you

    -j

    You can try the code below

  • Conditional region - Advanced Edit tab

    I'm looking for include the XML of the Advanced tab. a conditional region have already filled the tab of properties with a condition, I want to add another. What is the context of the code I have to write? I've looked everywhere without success.

    Currently my Advanced tab shows:
    <? If: number (CompanyCode_ID) = 1? > result: see the "phone number".

    Example of what I'm trying to do:
    <? If: number (CompanyCode_ID) = 1? > AND / + <? If: number (Rep_ID) 010 <>? > need of these will cause: see the "phone number".

    Example of use - http://i50.tinypic.com/17tkpl.png
    Maybe you incorrectly set XPath to your XML tags? Try to use

    or better define it with absolute paths

  • line break conditional regions

    Hello!

    Is it possible to use conditional regions without adding a line break if the condition is met?

    What I use is a simple:

    <? If: STATUS = "IN_PLAN?" > Some Text <? end if? > Some Other Text

    and he always breaks the line after 'Some Text'...

    BR Paul

    Can you send me the xml file and the model RTF to [email protected]? I can take a look.

    Thank you
    Bipuser

  • How to write conditional region coding?

    We know that the BEEP has conditional region. In a cell, you can use conditional region to control the issuance of data of special affection. What happens if this cell is controlled by month? If months = 1, this cell see the 110, month = 2 this cell see the 800 month = 3 this 100 etc see the cell... How can I make this code?

    <? call: sub1? >

    <? model: sub1? >
    <? If: (months) = 1? > 110 <? end if? > <? If: (months) = 2? > 800 <? end if? >...

    Sent u t updated RTF

  • Apex 4.0 bug region display selector export?

    Dear reader

    As we were very happy to use the Chooser to display area on a few pages, we noticed when taking the development app export in order to test that the abandoned region one of the two selected regions view selector. Then only, we saw "Show all"-"region 2". Region 1 disappeared suddenly. By clicking on one remaining options invoked not something.
    When you go to the attributes of the area of region 1 and turn "view of region selector" back Yes does everything upward and run again.

    If someone has been in the same situation?
    It is quite annoying when going from test to production, as we cannot modify the code there after installation.

    Kind regards
    Xnni

    Xnni,

    The information has been very useful. The problem is caused by a bug in the import process, where the relevant attribute is ignored for "SQL report" as well as the types of region "Calendar". I was able to reproduce this and filed bug #10107478.

    Thanks for this identification.

    Kind regards
    Anthony.

  • APEX 4 Bug: time share at the date of display Gantt chart is a mess

    Hello

    A previous thread triggered bug 9861439 on dates in Gantt diagrams.
    It seems that everything has been corrected, but I think that something is wrong.

    When I on Date format dd-MMM-% YYYY % HH: mm %: %ss (current popup)
    Part 'date' is right but the time part is weird: hours always display 12 ', minutes display number of the month and seconds always show '00'.

    I tested twice in apex.oracle.com. You can test this?

    Oscar

    Hi Oscar,.

    Thank you for bringing this to my attention. I'll log a bug for this and should have a solution for it in our next release. Unfortunately, in implementing formatting dates in the component of the chart, the time slice is not properly treated. In the meantime, I suggest selecting a format where the component "hour" is not displayed. Sorry for the inconvenience that this may cause.

    Kind regards
    Hilary

  • Condition region get on is unable to go TO work

    I have difficulty getting to the regions to display conditionally based on the value SUBMIT page. I have a 'Go' button where the value of the shipment is to GO, but if I try to initiate a condition in the region "Request = Expression 1" and I use 'GO' (without the quotes). The region never shows.

    Y at - it something syntax ticky Miss, or is it just not working? It's really annoying because I have some PL/SQL reports that take a few minutes to run, and if the user navigates out of the page and again, he wants to re - run the report before allowing them to change the settings.

    Hello

    your branch defines the value of the CLAIM? The value of the REQUEST appears in your URL?

    brgds,
    Peter

    Blog: http://www.oracle-and-apex.com

  • is this a bug in the region... selector apex5 during import lose region selector

    I have a request to one of the pc... I have to export it and import it into another pc

    with the same workspace name

    But when I run the app I see the region selector donot work like in the first pc... go where I had imported from the

    program and also the database.

    Is this a bug. Or if someone has encountered the same situation...

    What do we do to fix this problem.

    What I've observed as is on the same page down that we do not have the status bar

    Edit page debug debug mode are present in the status bar. It is present in the main pc

    But after I moved the data to the second pc the page where the region selector is present I can't see this status bar. .

    This question is for the page where the region selector is present

    Oracle db 11g xe and apex verison 5, universal theme

    Information appreciated


    I found the solution...

    SELECT *.

    Of apex_release;

    5.0.0.00.31

    The main pc version was

    5.0.1.00.06

    2013.01.01

    Who should be creating the problem...

  • Conditional region

    Hi all

    Currently, I have written java script that has 'Attribute of header and body HTML' on my page

    < /script >
    function Shuttle (doc) {}

    Alert ("doc" + document);
    document.getElementById('Tester').style.display = 'block ';
    Returns false;
    }
    < /script >

    In my area, I put where the attributes of HTML table cell is: style = "" display: none; ""

    Also, where I link in my report that is displayed in a different region, I have an onClick = "Shuttle (this)" in my link attributes. "

    Someone can help me. When I click the link the region now flashes for a split second and then goes. If there is no way to do so is there a way to package the region so it appears when I click on the link in the column?

    Ryan

    Ryan,

    What apex version do you use?

    There are several ways you can do this but it depends on what version of apex you use.

    1. manually create the javascript as you do now. (any version)

    2. use a model of area to see the skin. (I'm sure that this model is available in 3.0 + probably in earlier versions as well)

    3. use a dynamic action for declarativly build javascript to manage it. (4.0 +)

    4. use a dynamic action to generate the javascript code for the delcarativly and associate it with a button (4.1 +)

    Given these options you would have liked to continue?

    See you soon,.
    Janet Tyson

Maybe you are looking for

  • E-mail to PDF files

    Whenever I get a PDF attachment in an email on my iPad, it opens automatically in electronic mail instead of in Adobe Acrobat.  How can I stop this from happening?  I need to print an attachment that I received, not my whole email.

  • GS108Tv2... inaccessible

    Brought a new GS108Tv2. Wired it upward, the packages has been happening very well, jumped on my SRX210H of Juniper (my DHCP server) and I saw the IP assigned by DHCP. Entered the thin device. Change the device name, password, and it has given a stat

  • Question of the Manager Acronis Recovery

    The Acronis Recovery Manager can recover of my files on the hard drive?

  • Pavilion dv6-6c40se: confusion of RAM

    IM intend to update my RAM but im confused as to which is the maximum of RAM my system can support. on the following link, it says 8GB: http://support.hp.com/us-en/product/HP-Pavilion-dv6-Entertainment-Notebook-PC-series/5191856/model/5... but when I

  • BAD_POOL_CALLER and DRIVER_POWER_STATE_FAILURE help Blue death screen

    On 24 December, I built my computer and I had the BAD_POOL_CALLER Blue error screen dead 25. The same day, I ran memtest86 for nearly 3 passes (it takes more than 5 hours at that point and I needed to use it) and found no errors. I also received the