How to publish contextual dynamic region event

Hi Experts, please help.

Scenario:

I have a page saying the Page A.
I have two stubborn workflow, say HeaderTF and LinesTF.
HeaderTF is placed as a static region in page A and LinesTF is a dynamic region in A page.
LinesTF has a table with the column Amount.
HeaderTF has a text field that contains the total of the column amount.

Requirement:

When the user adds new lines or changes existing lines or deletes the lines in LinesTF, it suits to update total field in HeaderTF.

On the evolution of the value of the sum in lines, I'm calculating and updating the total attribute of header VO all share same DC.
but the value is non-reflecting because partial triggers can be maintained for the total field.

So I use contextual events.

I created a contextual events for the amount field, delete button and table as well (in LinesTF).
and I created method handler AM that calculates the total and dragged like a text field in HeaderTF.
Now when I try to subscribe to pageA pagedef, I am able to find the manager who is created in HeaderTF but could not find any contextual event in event lov.

Question:
1 is. my approach correct?
2 cant publish us contextual events of dynamic regions?
3. is there another way to do this?

I wasn't refreshing HeaderTF passing the entry params because I don't want the whole region to be updated.

Try to create the mapping of events - please see "How to Create Contextual events manually 28.7.2" in Guide of Dev http://download.oracle.com/docs/cd/E15523_01/web.1111/b31974/web_adv.htm#CACJBFGI

Tags: Java

Similar Questions

  • [JDev12.1.2, ADF] How do I order dynamic region by a menu bar?

    Hallo,

    I saw the video of this useful Shay https://blogs.Oracle.com/Shay/entry/adf_dynamic_regions_switching_just in which succession of dynamic region is managed by creating a "dynamic region link" for each defined workflow to display in the region.

    I would order the change of dynamic region by clicking on the menu to a menu bar items.

    What is the cleanest to achieve this way? Can I use the scope view bean managed which JDev make me create when I drag the first bounded task flows to create the region? I saw every link that I create is added to the partial triggers in the region...

    My page container (in the region) has its own bean support. To manage the region: could I convert the scope of this bean to 'see' and use it? Or is it a good practice creating a bean completely assigned to the management of the region?

    Thank you

    Federico

    Hallo

    This ADF: how to restart a taskflow menu is a good example of creating a dynamic region activated by a menu.

    Ciao,.

    Federico

  • How to upgrade a dynamic region

    Hi all

    I try an update lines of a report based on the selection list
    If I select 3 then it should show 3 rows on the page refreshes



    Kind regards
    Pavan

    Published by: Pavan November 7, 2011 11:11

    Pavan,

    If you use APEX 4.x, you can create a dynamic action to refresh a report from the region. You can find lots of examples of dynamic measurements both at oracle.com and many articles. If you do not use APEX 4.x, you can write code AJAX to refresh the report.

    TGF

  • How to assign components page parent of a page fragment in a dynamic region

    Hi, I am using JDeveloper 12.1.3. I have a single page request that contains a sidebar (with separator) on the left and a dynamic region on the right. One of the fragments of the page that appears in this dynamic region has a task flow that calls another fragment of page. What I do when this event occurs, it is to dynamically hide (or at least close) the left side panel. I created a bean of support that includes a method to do so. This method works very well when I call it from a test button on the parent page. But I can't understand how effectively call it a method in my stubborn workflow (page fragment). I created the method and incorporated it in the workflow. I refer to the method in the bean support. No errors are generated when I perform the navigation. I have debugging instructions that indicate support bean method is called. But the screen will not reflect the changes on the side panel. I tried to use a parent action in my stubborn workflow (and tried to have this action relative to call the method), but that did not help. I thank you very much for any assistance, you can provide.

    The problem is that you can reach the panelSplitter of off the page on which it is located. If you use a methodcall activity that you call with a parent action you get a new instance of the separator, but not then, you try to change.

    What you can try to bind the separator to a property of bean a bean view extended who resides in the workflow of the parent page. Then you pass this bean as a parameter to the flow of the task of the fragment and call the method within the bean. It of called bean reference and is listed in this article by Frank Oracle ADF May / June 2013. Make sure that you use a component for the bean property reference. On second thought, you might not even to bind the separator to the bean as you can look it up in the page directly using findComponent().

    Timo

  • How to access page aplication module of dynamic region?

    Hello

    I have a main app with the shared library. Page.JSFF (from the main application) contains dynamicRegion. Task flow for this dynamicRegion I defined in library shared sessionBean. I need call commit action in the main application for the data in a dynamic region.

    How to access the application module or binding operation for page of workflow dynamic region?

    I try to do this:

    BindingContainer bc is BindingContext.getCurrent () .getCurrentBindingsEntry ();.

    DCTaskFlowBinding dtb = (DCTaskFlowBinding) (bc) .findExecutableBinding ("dynamicRegion1") (DCBindingContainer);

    System.out.Print ("" + dtb.getViewPort().getViewId()+"\n"); -return id correct view

    Form JUFormBinding = dtb.findExecutableBinding ("test5PageDef") (JUFormBinding);

    DCBindingContainer dcRegion = form;

    OperationBinding o = dcRegion.getOperationBinding ("Commit");

    o.Execute ();

    but the result is NullPointerException

    Jdev 11.1.2.4

    Thank you

    Hello

    Try this:

    BindingContext bindingContext = BindingContext.getCurrent ();

    DCBindingContainer dcBindingContainer = bindingContext.findBindingContainer("myPageDef");

    OperationBinding operationBinding = dcBindingContainer.getOperationBinding ("Commit");

    operationBinding.execute ();

    Kind regards

    Ruben

  • Design of pages, dynamic regions? (How?)

    Hi all

    I use JDev 11.1.1.4. I have created a series of pages in the ADF and want to learn more about dynamic regions.

    I have a series of links in the left side of my page. Dependign on the link clicked to the facet Center is expected to open the fragment of the corresponding page. In this way, it doesn't look like the entire page is being updated and loaded whenever you click on a link.
    How can I go on the design of this. have I reason to understand that dynamic regions should be used?

    Thanks in advance
    Saida.

    Hello
    I think that you can do with . Create model with links and side space in the middle to load the page.
    Creation of the Page Template: http://www.youtube.com/watch?v=ZZeP8hNcjTw

    You can get an idea about the dynamic regions with the help of taskflows like...
    http://baigsorcl.blogspot.com/2010/06/working-with-dynamic-regions-in-Oracle.html

  • Dynamic region-{get {return to original taskflow of taskflow another?

    Using JDeveloper 11.1.1.4.0

    Hi all. I have a dynamic region on my page main jspx. It initially opens with "view_a" in the region. The user can then select a button (one of the several buttons) to set the stubborn stain different streams in the region. When the user has completed the work in the flow of the selected task, I want the dynamic region to return the workflow "view_a" when either a submit button or cancel is selected. I could be wrong, but it seems that I need to access the bean that defines the ID of the workflow for dynamic region - it is a managed bean (extended view) on the adfc - config.Xml. A 'Parent' Action would work to do this, if yes, how to implement (I tried putting in place and assigning a command button, but he got a null pointer exception when executing it)?

    Thanks in advance,
    Troy

    Published by: Hoopestr on April 3, 2012 07:18

    Published by: Hoopestr on April 3, 2012 10:25

    Banged

    Published by: Hoopestr on April 3, 2012 14:51

    Hello

    on af:region, set a listener area navigation. If the perspective Id is null (i.e. when a workflow of region ends with a return statement) you define the workflow running in the bean Lockbox_View_Reports_BTF and PPR af: region. It should work then

    Frank

  • Component w/Train of dynamic regions

    I'm working on a web application (JDeveloper 11 g), where a page has a dynamic directian with associated task flow that defines the fragment of the view. Most of the fragments for this region, use a template page with a component of train. Navigation using the train for the most part works fine him fragment is replaced by a new snippet each time you click on a link of train.

    However, a single fragment contained another dynamic region. "I tried to define the scope of the bean to manage this region to viewScope, but I get a message popup in the browser 'viewScope.myManagedClass.dynamicTaskFlowId' is invalid" when I click on the link to train for the fragment component. I get a similar error, if I updated the scope of bean to the session or pageFlow. Only when I set the scope to the backingBean or neither avoid the error message.

    But then another problem occurs. One of the fragments in the stream for the inner region has a panelAccordion with several showDetailItems of selectManyCheckboxes. The panelAccordion does not list anything and crashes if I try to open or close any showDetailItem. This behavior is similar when the scope of the bean, flow management is not set to viewScope or higher.

    By stepping through the code, I noticed that flow to the outer region code runs after the event code trigger the internal region that sets the taskFlowId of the inner region, but before the workflow of the inland region, parameter taskFlowId in the inner region code is therefore lost. I tried to start session context and recover, and which almost works. If I select in terms of the selectManyCheckboxes, they are lost once I move to a different fragment in the region.

    Does anyone have ideas on how to get to this page in collaboration, alternatives to the approach I take, I need to check the settings or any reference material, I could consult?

    Thanks in advance!

    Edited by: tmurphy July 6, 2010 15:30

    Hello

    However, a single fragment contained another dynamic region. "I tried to define the scope of the bean to manage this region to viewScope, but I get a message popup in the browser 'viewScope.myManagedClass.dynamicTaskFlowId' is invalid" when I click on the link to train for the fragment component.

    The managed bean is defined in the metadata definition of the taskflow bounded that you load? Please note the stubborn workflow to initialize only their controlled beans when they are loaded. If you set the bean managed in the defined parent of the workflow then the viewScope is also the parent flow. Appears as if it is the problem you describe

    Frank

  • Dynamic region and dynamic value of parameters of

    Hi all

    I have popup with dynamic region on my page. I also have the button, "button1" and "button2";
    When I press "button1" I want to run my dynamic region with parameter #{bindings. * field1 * .inputValue}
    When I press "button2" I want to run the same dynamic region (the same taskflow) but with the parameter #{bindings. * Field2 * .inputValue}

    How can I do?

    I try to run my taskflow with parameter #{pageFlowScope.valueParam}, but I didn't know when and how can I update this value? I knew I can't use setAcctionListner because it the fire after showPopupBehavior.
    I think, I can also use setPropertyListner because I didn't know which button has been activated and what value I should switch to taskflow.

    Thanks to advice.
    Oscar

    You can define clientAttributes for button1 and button2, and use setPropertyListener for popup. For example,.

    Button1

    
    

    Button2

    
    

    and your popup should look like:

    
        
        ....
    

    Published by: dorra on March 23, 2010 09:48

  • Trade flow of tasks in a dynamic region of menuitem in the menu bar

    Hello

    I have a dynamic region and two workflows. I have headphones action switch workflows in dynamic regions. When these listeners to action are related to the keys, everything works as expected, but if I attach to menuitems in a menu bar, while the listener is executed (based on the debug log file), the workflow in the region does not change.

    Can someone please give me an idea why, and exactly how someone can exchange a workflow in a dynamic region of a menuitem.

    I use Jdeveloper 11.1.1.0.1

    Thank you

    Published by: fakintoy on April 22, 2009 15:45

    Published by: fakintoy on April 22, 2009 15:46

    Published by: fakintoy on April 22, 2009 16:06

    Hello

    My guess is that the region is not added to the list of partial objectives. Add a partialTrigger on the region pointing to the menu item.

    p.s. The Code snippet would be really helpful to get a more precise answer here

    Kind regards

    ~ Simon

  • Dynamic region on the change from the drop-down list of values

    Hi Experts,

    Using the concept of dynamic region, I tried to use buttons as I have 4 buttons and clicking on each button, I am loading the particular taskflow. I used setPropertyListener and type = action to achieve this.

    I have a similar requirement, but I need to use the drop down list here...

    < af:selectOneChoice value = "#{mybean.value}" >

    < f: selectItem itemLabel = "First" Valeurelement = "FirstValue" / > "

    < f: selectItem itemLabel = "Second" Valeurelement = "SecondValue" / > "

    < f: selectItem itemLabel = "Third" Valeurelement = "ThirdValue" / > "

    < f: selectItem itemLabel = "fourth" Valeurelement = "FourthValue" / > "

    < / af:selectOneChoice >

    How can I dynamically load a region on the value selected by the user on top of the data. On the change of the value in the drop-down list, I need to load this particular dynamic region

    JDeveloper version 12.1.3

    Thanks in advance.

    You use a listener to change value of the duo down and detect the region according to the new value of the duo down.

    Timo

  • Dynamic region with several task page fragment flow isn't refreshing VO

    JDeveloper version is 12.1.3 and Weblogic Server is 12.1.3.

    We have a dynamic region with several task page fragment flow.  We have created a menu that will open on the workflow task in the dynamic region. Before defining the workflow id in the bean, we execute query on the original Version after setting the bind variable. When we click on the menu is open the flow of relevant tasks in the region and showing the Original data table.

    But when we open the same request again to a different browser session, it shows all the data in the original Version when the user clicks on the relevant menu item...

    I have attached the code used to navigate to the different workflow tasks written in the bean from the back of the home page.

    We have no idea why anyone what happens, if it's a server problem or a code issue. Because unless and until we open the target application in a new browser it works fine.

    We tried and deployed on a remote server as well, but it gives the same question...

    Would be really grateful for the help...

    The user, the code you posted has some serious problems. Never, I repeat never store a reference to an application module in a static variable in a bean. That is why you see only data once. After that, the second session reuses the application module from the first to the configuration data, but to display data it uses a module different application.

    The way you try to configuration data is too bad. You must pass the parameters to the workflow and init data in the default action of the workflow instead of doing before installing the new workflow id. A workflow is a unit of work that is kind of a black box. You may not assume that the stuff you do outside of this black box can be seen inside the box. This is only true if the workflow share the same control of data as it's parent (share of data control).

    I suggest you read some documents on the workflow and how they work. A good start is to look at this video https://www.youtube.com/watch?v=A3CmDhWHaG0

    or work through this tutorial 12 c (12.1.3) Oracle JDeveloper tutorials - working with bounded task flows, regions and routers

    Timo

  • ADF 11.1.1.7: Control a dynamic region of JSP with a SelectOneChoice

    Hello user community:

    I have a need to understand How to control content within a dynamic on a JSP page region.  In the JSP page content within the dynamic region is determined by a selectOneChoice drop-down list presented to users...  I have spent hours of research and cannot identify the exact procedure for this process.   Please point me in the right direction. I look forward to any input provided.

    Here is my scenario:

    1. users will select a TransactionType in a drop-down list.
    2. According to the selection selectOneChoice the loading of a page of .jsff within the dynamic region.

    Details of the background:

    • I have a dashboard for the details of the Transaction.  This is the JSP page.
    • I have 18 Transaction_Detail fragments of page based on your that take advantage of bind variables & discovers the criteria.  Here are the pages JSFF '.



    I want the JSP page to control what JSFF page is loaded in the menu-driven selection of users drop-down.  I found a simplistic example of this ability in blog of Zeeshan Baig.  However, the logic command what JSFF page is loaded if... otherwise based, and using a workflow IDs.  I can use the flow ID of the task, but I only need 1 page JSFF responsible.


    Thank you very much!

    TreeStrepek

    What you describe is a simple switch of dynamic regions. Watch the video of Shay https://www.youtube.com/watch?v=gNipIBn5Zv0

    Instead use the links to the selected region, you put the id of the workflow in a list that you put on a LOV. When you select a new value LOV the region moves.

    Timo

  • [ADF, JDev12.1.3] Why dynamic region is not spend if I re - call the currently displayed workflow?

    Hallo,

    I have a page with a dynamic region that is managed by a range backingBean bean.

    Functions "startBtf...". "are called when a menu item is clicked.

    The workflow as BTF3 is called by two different functions and each function passes a different value (used by a component of router) to the workflow through the hash table.

    The problem is that startBtf3_Search is called after the startBtf3_Create (and vice versa) the dynamic region is not updated.

    How can I solve this problem?

    Thank you

    Federico

    public class MainDynamicRegion {
      private HashMap parameters = new HashMap();
    
      public MainDynamicRegion() {
      }
    
      public TaskFlowId getDynamicTaskFlowId() {
        AdfFacesContext adfFacesContext = AdfFacesContext.getCurrentInstance();
        String currentTaskflowId = (String) adfFacesContext.getPageFlowScope().get("CurrentTaskflowId");
        if (currentTaskflowId == null || currentTaskflowId.trim().equals("") == true) {
          currentTaskflowId = "/WEB-INF/empty-btf.xml#empty-btf";
          }
        return TaskFlowId.parse(currentTaskflowId);
      }
    
      private void setCurrentTaskflowId(String currentTaskflowId) {
        AdfFacesContext adfFacesContext = AdfFacesContext.getCurrentInstance();
        adfFacesContext.getPageFlowScope().put("CurrentTaskflowId", currentTaskflowId);
      }
    
      public void startBtf1(ActionEvent actionEvent) { 
        this.setCurrentTaskflowId("/WEB-INF/btf-1.xml#btf-1");
        this.parameters.clear();
      }
    
      public void startBtf2(ActionEvent actionEvent) { 
        this.setCurrentTaskflowId("/WEB-INF/btf-2.xml#btf-2");
        this.parameters.clear();
      }
    
      public void startBtf3_Search(ActionEvent actionEvent) {
        this.setCurrentTaskflowId("/WEB-INF/btf-3.xml#btf-3");
        this.parameters.clear();
        this.parameters.put("mode", "S");
      }
    
      public void startBtf3_Create(ActionEvent actionEvent) {
        this.setCurrentTaskflowId("/WEB-INF/btf-3.xml#btf-3");
        this.parameters.clear();
        this.parameters.put("mode", "C");
      }
    
      public void setParameters(HashMap parameters) {
        this.parameters = parameters;
      }
    
      public HashMap getParameters() {
        return parameters;
      }
    }
    

    The workflow as BTF3 is called by two different functions and each function passes a different value (used by a component of router) to the workflow through the hash table.

    The problem is that startBtf3_Search is called after the startBtf3_Create (and vice versa) the dynamic region is not updated.

    How can I solve this problem?

    You call the taskflow even without leaving the previous.

    To update the workflow, you have several options:

    -Give taskflow refresh 'ifNeeded' parameter and change the value of the input parameter (unfortunately, it is not applicable to your usecase because you use the parameter mapping and not point settings so setting change cannot be detected)

    -use the property RefreshCondition

    For more details, see: 23 by using task flows in regions (12 c (12.1.3))

    BTW,

    currentTaskflowId = "/WEB-INF/empty-btf.xml#empty-btf";
    

    Instead, you can change the return type for getDynamicTaskFlowId() to a string and use an empty string ("" ") instead of emptying the BTF (and in this case you don't need even of TaskFlowId.parse (part)).

    Dario

  • Hello all, I need help with creating a dynamic region in jdeveloper 11.1.2.3 version

    . Hello everyone, I need help with creating a dynamic region in jdeveloper 11.1.2.3 version

    What JDK you are using?

    You are probably using an old version of the JDK, that class while compiled under JDK 1.7.0

    http://java67.blogspot.com/2012/10/how-to-fix-javalangunsupportedclassversionerror-major-minor-version-49-50-51.html

    For example, work with the correct version, and it will be fine...

Maybe you are looking for