Conditional branch after the page

Hi all

I have a page where I have to present and process elements and page (insert and update the database) then branch to a specific page that the button has been pressed. I have 4 buttons and each button has to go to another page, each button must also submit page and process data (thanks to a process of Apex DML and passing 'SAVE' demand to each button). the problem I have is no matter what button I press the "app to the first domestic branches. I have 4 branches set to run after the process. Each branch should go to a different page depending on the button. In each branch I made the conditional branch based on the key.

APEX seems to ignore the condition (in Debug) button it says unconditional, even if the button is definitely conditional.

I'm under Apex 4.2.2

It seems that when passing to a request to 'SAVE' Apex all the buttons to this request in the same way? Whatever the button has been activated?

Any ideas or alternatives?

Thank you

Andrew

Hi Andy,.

I didn't know all of your buttons send the same request, so it is normal that your different branches spoil, because your process and your branches looks like demand that sends your button and not the label of your button. You will need to make sure that each gives a different request.

Kind regards

Joni

Tags: Database

Similar Questions

  • After delete: 'branch to the page identified by the element' not playing Message from treatment and do not return to correct Page

    Hi all

    I have reproduced it on APEX.  workspace VRS 291 pages 9-application report, 10-form test/test.

    I'm using a branch of type creates a branch to the page identified by the element . I do I selected "Message Processing" when I select it. However if I go to the report on page 9. Click to go to page 10 on a record... (getting P10_Calling_page at the same time.) : when I delete the records in two things happen incorrectly:

    (1) it does not refer to the page calling it. It goes back to page 1. (the same as in my application)

    (2) when it arrives on page 1 it shows not all processing of the message.

    If I change the direction of a standard... (currently on page 10 to condition never)... then I get a message to process, and it goes to the page defined in the branch...

    It makes no difference if I set the State of the button on the branch...

    I don't know if this is a bug, or Ive missed something, but if someone could take a look and check...

    Rgds

    It seems that the message of the process if the value of the element has the value and management goes to the correct page.

  • Problem with branch to the Page identified by the element when I delete

    I have a form on page 107.
    When I delete an item with the form I automatically go to page 101.
    But I have a branch (branch of Page identified by element). Normally, after the deletion of the article, it should go to page 104 (the number of a page, it came out a field on my form on page 107).

    Obviously that is possible with a branch to the page?

    It's a little difficult to understand, your post, what is exactly the problem, but here is a proposal: when you create a form page, ApEx creates by default a "reset page" process to clear the cache for all elements on the page when you remove and in this case, it also erases the page identifier at the junction.

  • Branch of the page pass nulls to the elements on the page

    I have a branch of the page that is supposed to pass a value to a page element to another, but what I find is that it is passing a null value.  "I have the field 'Defined these elements' as 'P10_ID' and the ' with these values as ' & P3_ID. ' (without the single quotes).

    The url redirects to the right page, but this is what it looks like:

    ' f ? p = 259:10:7766556198967978:NO:P10_ID:'

    P3_ID is a page element hidden with the source as "Always replace the value that exists in the session state" and the Type of Source as "database column".

    Anyone had problems using branches to move page elements?  I use Apex 4.1.0.00.32

    Thank you

    -Steve

    switbeck wrote:

    I have a branch of the page that is supposed to pass a value to a page element to another, but what I find is that it is passing a null value.  I have the field 'Defined these elements' as 'P10_ID' and the ' with these values, defined as '& P3_ID' (without the single quotes).

    The url redirects to the right page, but this is what it looks like:

    ' f ? p = 259:10:7766556198967978: NO::P10_ID:'

    P3_ID is a page element hidden with the source as "Always replace the value that exists in the session state" and the Type of Source as "database column".

    Anyone had problems using branches to move page elements?  I use Apex 4.1.0.00.32

    It seems that P3_ID doesn't have a value in session state when the branch occurs. It is not clear from the foregoing if this branch is on page 3 or elsewhere. Please describe the treatment more in detail. Search for process/branch settings to clear the Cache and use traces of debug on the affected pages to check for changes in the value of P3_ID.

  • Branch to the Page identified by the element

    Apex 3.2

    The pages of my application is accessible in several ways, so I use branch to the page identified by the element.
    Here I pass the page number of the calling page in a link to a hidden item (PX_PG) on the new page.
    I created a branch to the page identified by the element on each page which refers to PX_PG. This is also related to the Cancel button.
    It's that everything works fine.
    My problem is clearing the cache of the page when you press the Cancel button.
    There is no option to clear the cache in the branch and if I create a process page to clear the cache, then it is raised before
    the branch, so my PX_PG value is cleared and my branch fails.

    How can I add a cache clear to a branch to the page identified by the element?

    Gus

    Gus,

    If you want to delete news cache the current page, in this case page 12, then the following will work

    f?p=&APP_ID.:&P12_PG.:&SESSION.::&DEBUG.:&APP_PAGE_ID.
    

    If you want to explicitly reset page 12:

    f?p=&APP_ID.:&P12_PG.:&SESSION.::&DEBUG.:12
    

    I thought you wanted to clear the cache in the target page, my apologies.

    Good luck

    Tyson

  • Branch to the Page identified by the element with parameters

    A certain page we originally had a 'branch at or the Page URL' that has parameters associated with it (which one who reset the element on the page the branch goes back to the current value of the item page before branching him given that this necessary element to stay with the current value of population but was erased when he branched out) but now I have a new Application process that defines an element of the request for the page that should be branched to.

    Since Apex does not recognize the elements of the Application in a "branch of Page or URL", I need to create a "branch of Page identified by Item", the problem is that there is no "Set these elements" "with these values" with this type of branch or the option to include parameters in a URL target. I already tried to use the "branch Page or the URL" with the Application in the URL element, but that no longer works.

    Any suggestions on how I might branch to a page based on an element of the Application (if not this way, somehow creates a branch to a page based on a value in an application process) with the settings?

    What does not make sense to me, is that you could create a branch to a Page with a value of Page element with parameters defining the elements with certain values, but you can do this when identified by the item or it is not yet Application_Items in a Branch_to_Page/URL.

    Thank you in advance,
    -Brian

    Brian,

    Have you tried to use the Type of the branch "Branch to the Page identified by the (name of the use element) element" and put the name of your APP_ITEM like

    APP_ITEM

    ?

    This should work for you.

    Denes Kubicek
    ------------------------------------------------------------------------------
    http://deneskubicek.blogspot.com/
    http://www.Opal-consulting.de/training
    http://Apex.Oracle.com/pls/OTN/f?p=31517:1
    ------------------------------------------------------------------------------

  • make a text box show only after a branch of the page

    Hello

    I have a form on apex 3.0 page. This form has a 2 textarea element and configuration of width for 110 and the maximum width is 500. After a user to enter data on all points, when he clicks on support I branch to another page that has been copied from the page of the form, but this time I want to make the textarea elements and other elements appearing on this page read-only, I have no success with making the textarea a readonly. I changed the readonly condition point to say always, it worked bu it shows the data on a long line it does'nt keep the same width as the text box has.

    I hope that I can get an answer soon. Thank you.

    Kind regards
    Sofia.

    In the attributes of your text box HTML form elements put disabled = "yes" or readonly = "readonly".

    Denes Kubicek
    -------------------------------------------------------------------
    http://deneskubicek.blogspot.com/
    http://www.Opal-consulting.de/training
    http://Apex.Oracle.com/pls/OTN/f?p=31517:1
    -------------------------------------------------------------------

  • Hide filter interactive report dynamically after the page load

    Hello

    I try to hide the section of interactive report filters (hide/show the area with +/-sign on the top of the report) the loading of the page

    I have the reference to the thread after http://apex-at-work.blogspot.com/2011/02/hide-interactive-report-filter.html posted by Tobias Arnhold...

    According to the expert, all I have to do is post the following code the code JS "page loading" within a dynamic action...


    / * Hide filter IRR after page load * /.
    If ($('#apexir_CONTROLS_IMAGE').attr ("src") == ' / i/minus.gif ') {}
    gReport.toggle_controls ($x ('apexir_CONTROL_PANEL_CONTROL'));
    }

    I did, but apparently it does not work for me...

    I posted a sample on APEX. Oracle.com for review and comment

    Thank you

    Edited by: qwe12654 may 3, 2011 19:15

    Hello

    01. in the report Footer region put this

    
    

    * This will hide your filters, highlight conditions

    02. then Goto 'Report attributes' => 'Search Bar' => for 'Include search bar' select 'no '.
    * This will hide the full search bar (do this only if you want to hide this part)

    * If you get the answer then mark as 'Correct '.

  • Do not forget the values in the form after the page

    Hello

    IM absolutely new to APEX (as you can see this is my first post ;)), I've read the documentation, I found on the oracle Web site and know at least the basics...
    So I started building my first application and already have my first problem :D Maybe you can tell me if I want to do is possible and how to do it.

    I have several pages by a form on the left side as well as a report of sql on the right side.
    The form contains fields that are the list of values (fields that contain foreign keys so that the user can select only a valid value). I have a button next to each list in the value field. When the user clicks on the button I have a branch to the same page and the sql report is updated. Depending on which button next to the list values with foreign keys was pressed, it shows the complete table list the values of references to (so the user can see that contains the foreign key, it is to select). After I finally made this work.

    But the problem is: when the user enters values in the form and then click on a button to see what the foreign keys contain values that it has already entered disappeared. But I want the values that he went in to stay in shape after he pressed the button. is there an easy way to do this? the only thing I could imagine is to create a variable for each form field, save current in variable values before the page is sent and write the values of the variables in the form when the page reloads. but it seems kind of the beast... I must do this for each page of this kind (which are many). so is there a better way?

    thx a lot :)

    I think you're talking about the region 'filter' on the left side as 'form '.

    Try this... Open the setting page , click on the item to change (to that values stay after submit), goto SOURCE region, here the source value * "only when the current value in session state is null" * this will fix the problem.

    See you soon,.
    Hari

  • JavaScript: box always invalid after the page

    Hello

    In a region, I have a check box that must be disabled by default. After clicking on a button that applies a MRU/present (and verification of certain conditions) the box should switch to on.

    What I did:
    -The Javascript of the enableCheckbox() and disableCheckbox() functions are defined in the HTML page header (they work).
    -In the foot of the region with the box I call the function disableCheckbox ('myCheckbox'); to get the default value.
    -The optional URL redirection of the button says:
    JavaScript:doSubmit('SUBMIT'); to submit
    JavaScript:enableCheckbox('myCheckbox'); to activate the checkbox

    The problem is that the box will switch on, because submit/reload the page to disable the checkbox through the foot of the region. Think of other solutions, I realized that each top up will set the default again...

    How can that be resolved?
    Thanks in advance,

    Roger

    Hi Roger,

    You must have somewhere a logic that determines if the checkbox should be disabled/enabled.

    Generally speaking, it would be the value of one or more fields and the box should be checked whenever the field related (s) is / are updated using the onchange event.

    There are several ways to check for this, but the principles would be the same. For example:

    function check()
    {
     var x = document.getElementById("P1_PAGEITEM");
     var c = document.getElementById("P1_CHECKBOX");
     if (x.value == 'XXX')
     {
      c.disabled = false;
     }
     else
     {
      c.disabled = true;
     }
    }
    

    This function can be used on the page loading - by adding a call to it in Footer region region - and the attributes of the P1_PAGEITEM using:

    onchange="javascript:check();"
    

    Andy

  • How to load a popup conditionally loading of the page

    Hello

    I want to load popup on loading the page if:

    1. the user is autheniticated
    2. and popup does not appear.

    I am aware of the new feature in JDeveloper 12.1.2.0.0 release conditionally disabling af:showPopupBehavior

    ADF binary Decompilation: conditionally disabling af:showPopupBehavior

    But I use the 11.1.1.6 version.

    I'd appreciate your help/suggestions.

    Thank you

    Singh

    These are two problems:

    (1) the execution of an action on the page loading

    (2) showing a popup under certain conditions

    1 solution), https://blogs.oracle.com/adf/entry/an_epic_question_how_to

    (Solution 2) each of the 1) use a method somewhere inside this method, you can check your conditions and display the pop-up window of the method. For this 'How to launch a popup programmatically from Java' in http://www.oracle.com/technetwork/developer-tools/adf/learnmore/oct2010-otn-harvest-183714.pdf (Page 6) can be used.

    Timo

  • JavaScript in JSPX and run after the page loads?

    I want to insert some JavaScript to my file jspx, but his does not work... I did this way:
    <?xml version='1.0' encoding='UTF-8'?>
    <jsp:root xmlns:jsp="http://java.sun.com/JSP/Page" version="2.1"
              xmlns:f="http://java.sun.com/jsf/core"
              xmlns:af="http://xmlns.oracle.com/adf/faces/rich"
              xmlns:trh="http://myfaces.apache.org/trinidad/html">
      <jsp:directive.page contentType="text/html;charset=UTF-8"/>
      <f:view locale="#{actionAvailable.userLocale}">
        <af:document id="d1" title="#{bindings.title.inputValue}">    
          <f:loadBundle basename="oracle.bpel.services.workflow.worklist.resources.worklist"
                        var="resources"/>
          <trh:script source="/jsLibs/taskDetails.js" id="s1"></trh:script>
    
        <!-- //I ADDED THIS -->
        <f:facet name="metaContainer">
            <af:group>
                <trh:script>
                   function myFunction()
                   {
                    alert("function called");
                   }
                </trh:script>
            </af:group>
        </f:facet>
        <!-- //END OF SCRIPT -->
    
    
        <!-- //I WANT TO RUN MY FUNCTION AFTER PAGE IS LOADED -->
          <BODY onload="myFunction();">
          <af:form id="f1" usesUpload="true">
            <af:panelGroupLayout layout="vertical" inlineStyle="padding:5px;"
                                 id="pgl5">
              <af:panelLabelAndMessage id="id12" label="">
                <af:goLink text="Click here" id="link"
                           destination="#{LinkCreator.link}#{bindings.taskNumber.inputValue}"
                           targetFrame="_self"/>
              </af:panelLabelAndMessage>
            </af:panelGroupLayout>
          </af:form>
          </BODY>
    
    
    
        </af:document>
      </f:view>
    </jsp:root>
    As you can see, I just very simple jspx file and all I want to do is to run myFunction() after loading the page.
    So I inserted a very simple script with 1 function that handles the simple alert (I followed this instructions http://adfcodebits.blogspot.com/2010/03/bit-3-adding-javascript-to-jspx-page.html).
    I also added BODY onLoad, but nothing happens...

    What's wrong?

    Published by: user1175491 on November 11, 2010 11:55

    Try this:



    function someFunction() {}
    Alert ("OnLoad");
    }


    you don't have to use the body tag

    Published by: Nikhil Gokhale on November 11, 2010 19:18

  • video reset to start the point - after the page transition

    I'm looking for a way to make sure a flash video reset at startup after a page transition. For the moment that the video starts just to the place, it ended after the initial page is displayed. I found some info in the FAQ that enabkes reset components but not for Flash Video elements.

    Anyone know how?

    Did the video come from? I suspect, it has been imported into SWF using Flash Professional. This is the original file, you need to bring in Flash Catalyst.

    Chris

  • create a backing bean after the page created - 11g


    Is there a way to JDev 11 g create a backing bean (bb) for a page fragment after you have created the page fragment?
    I know that you can create the bb a moment of creation of the page, but what happened after then?

    Hello

    Try to add a resetActionListener to your button to create instead. Bean of support should not be taken for that use case.

    Kind regards

    ~ Simon

  • previous image is visible after the page turn on the screen PRS-950

    I can clearly see the shadow of the previous image if I turn the page on my drive, and next page has no duplication of text or photo.
    Say, previous text clearly visible if you view an empty page or an image.

    What is a factory default or current behavior at PRS-950 daily edition (and other newer models)?

    It is normal if the page was present for an extended period. to resolve this problem if the page is hard to read, tilt back a few times and it will be clear.

    Here is more information on your ghost image problem.

    https://us.en.KB.Sony.com/app/answers/detail/A_ID/41678/c/65, kw/66/41678

    Best regards
    Kimberly

Maybe you are looking for