Refreshing data in return of a stubborn workflow (popup)

JDeveloper 11.1.1.6

I have a main page that calls a taskflow bounded as a popup. One of the actions is a workflow bounded to add a line in a VO that is used in the home page.

After you add a line in the VO in the stubborn workflow, the workflow is completed. Unfortunately, the table in the home page is not updated to show the new line added.

I tried the following techniques to update the table in the home page, without a bit of luck:

1. Add call action to run the executewithparams in the page to refresh the VO.

2. added run method to run executewithparams in the stubborn workflow.

Any suggestion?


Thank you.

I don't think you should call executeQuery once again because the same view object is used on the home page and the popup.

What are the properties of the delimited taskflow transaction to view the pop-up window? Are you sharing the data controls with the workflow calling for the popup?

In addition, if you share the data controls, you can try to refresh the iterator binding (by table) instead, run the query again.

    DCIteratorBinding = iterBinding
      (DCIteratorBinding) bindingContainer.get ();
    If (iterBinding! = null) {}
      iterBinding.refreshIfNeeded ();
    }

In addition, to refresh the component af:table to close the pop-up window.

Tags: Java

Similar Questions

  • How to get the return value of the activity of the method in the stubborn workflow

    Hi all

    I use Jdeveloper 11 g R2 (11.1.2.3) & Weblogic 10.3.5.0

    I have a stubborn workflow, default activity is a call method than calling a method in the app module
    This method returns an id

    I need this code in my project to do something else
    Is there a way I can access the return value of the method call activity?

    Concerning
    Mohsen

    Set the value of return as #{{pageFlowScope.myBean.returnValue} pageFlowScope.myBean.returnValue} in the method, call the property inspector and get the value in your managed bean.

    String returnParam = (String) JSFUtil.getFromPageFlow ("returnValue");

  • Problems with the stubborn workflow

    Hi all

    I'm having some trouble with the stubborn workflow. I created the parameters of entry and exit on the workflow and I can't make them work.

    Version: 11.1.1.4

    Here is my scenario:

    1. I created a display on the adf-config to use as my home page
    2. I created two points of view on flows of different delimited tasks two (one for data on employees - a table and one to show the details of the Department - a form)
    3. I dropped two workflows bounded as areas on my main page
    4. I wanted to click on the employee in the area of the employee id and pass the service id in the region of the Department
    5. I converted my employee_id rank to a link and added property inspector set so that I could capture the value of line department id
    6 configure the parameters input and output both bounded task flows (the employee) and pronounce on the Department.


    However, the value does not seem to the Department defined in the workflow... or so it seems. I'm sure it's user error I'm not sure what I'm doing wrong.

    Any suggestions or advice would be appreciated. Are there good ways to see if the values of the parameters are ongoing value and actually passed (as step via the stream in any way and see if my #{pageFlowScope.) Param} is ready?

    Thanks as always!

    S

    Published by: Scarpacci on March 14, 2011 23:12

    I guess you need to pass the parameters in a contextual event. The flow of work in the region begins, but normally doesn't end, if you do not get an output parameter.

    Here are some links:
    http://download.Oracle.com/otn_hosted_doc/JDeveloper/11gdemos/ADF-region-interaction/ADF-region-interaction.html
    http://andrejusb.blogspot.com/2010/10/contextual-events-framework-and-ADF-11g.html
    http://andrejusb-samples.blogspot.com/2011/02/jdevadf-sample-ADF-region-communication_13.html

    If you google you'll find many others...

    Timo

  • Connections container is null after the closure of a stubborn workflow

    Hi, after closing a stubborn workflow open in a modal window expression

    BindingContainer DCBindingContainer is getLovFieldBinding () .getBindingContainer ();.

    Returns the value null inside the bean point JHeadstart LOV. The same code is run correctly in all other scenarios. The workflow is closed normally accessing a special return flow rule and after you close the window other scenarios that use link containers are normally carried out unless this point bean LOV.

    Any comments will be useful,
    Thank you

    Please go to the update service 1, downloadable on cso.oracle.com.
    Should be fixed in the service update 1.

    Steven Davelaar,
    JHeadstart team.

  • ExecuteWithParams in the stubborn workflow?

    Hello

    I use ADF 11 g and I am trying to achieve the following:
    < ul > < li > I have a page with a read-only table.
    < li > the user selects a row in the table, and then click one of the buttons above the table action.
    < li > A popup appears, which shows some details on selected lines, as well as some edit fields to add an entry for the action to perform on the selected record.
    < li > the user clicks OK, a PL/SQL procedure in the database is called to perform the action on the record selected with the input values given. < /ul >

    I have already created most of the features:
    buttons of selection and action < ul > < li > the homepage with the read-only table, single line.
    < li > delimited the workflow based on fragments of the page.
    < li > a fragment of page for each action.
    < li > popup has a region to incorporate fragments in. < /ul >

    I followed the diagram of the Incorporation of the regions inside the pop up windows to implement all of this. Most works very well. When I select a line and press action buttons, popup appears with the right fragment in it. The only problem is that the selected record does not appear, the fragment always shows the first record in the table.

    Here are some of my code:
    My definition defined workflow :
    <?xml version="1.0" encoding="UTF-8" ?>
    <adfc-config xmlns="http://xmlns.oracle.com/adf/controller" version="1.2">
      <task-flow-definition id="editPerceel">
        <default-activity>ExecuteWithParams</default-activity>
        <input-parameter-definition>
          <name>soortActie</name>
          <value>#{pageFlowScope.soortActie}</value>
          <class>java.lang.String</class>
        </input-parameter-definition>
        <input-parameter-definition>
          <name>pclNummer</name>
          <value>#{pageFlowScope.pclNummer}</value>
          <class>oracle.jbo.domain.Number</class>
        </input-parameter-definition>
        <task-flow-return id="ok">
          <outcome>
            <name>editPerceelFinished</name>
            <commit/>
          </outcome>
        </task-flow-return>
        <router id="soortActie">
          <case>
            <expression>#{pageFlowScope.soortActie == 'AMW'}</expression>
            <outcome>wijzigAmCode</outcome>
          </case>
          <!-- other cases left out for brevity -->
          <default-outcome>wijzigAmCode</default-outcome>
        </router>
        <view id="wijzigAmCode">
          <page>/percelen/wijzigAmCode.jsff</page>
        </view>
        <!-- other views left out for brevity -->
        <task-flow-return id="cancel">
          <outcome>
            <name>editPerceelCancelled</name>
            <rollback/>
          </outcome>
        </task-flow-return>
        <method-call id="ExecuteWithParams">
          <method>#{bindings.ExecuteWithParams.execute}</method>
          <outcome>
            <fixed-outcome>ExecuteWithParams</fixed-outcome>
          </outcome>
        </method-call>
        <control-flow-rule>
          <from-activity-id>soortActie</from-activity-id>
          <control-flow-case>
            <from-outcome>wijzigAmCode</from-outcome>
            <to-activity-id>wijzigAmCode</to-activity-id>
          </control-flow-case>
        </control-flow-rule>
          <control-flow-case>
            <from-outcome>cancel</from-outcome>
            <to-activity-id>cancel</to-activity-id>
          </control-flow-case>
        </control-flow-rule>
        <control-flow-rule>
          <from-activity-id>wijzigAmCode</from-activity-id>
          <control-flow-case>
            <from-outcome>ok</from-outcome>
            <to-activity-id>ok</to-activity-id>
          </control-flow-case>
          <control-flow-case>
            <from-outcome>cancel</from-outcome>
            <to-activity-id>cancel</to-activity-id>
          </control-flow-case>
        </control-flow-rule>
        <control-flow-rule>
          <from-activity-id>ExecuteWithParams</from-activity-id>
          <control-flow-case>
            <from-outcome>ExecuteWithParams</from-outcome>
            <to-activity-id>soortActie</to-activity-id>
          </control-flow-case>
        </control-flow-rule>
        <!-- other control flow rules left out for brevity -->
        <use-page-fragments/>
      </task-flow-definition>
    </adfc-config>
    As you can see, the default activity is an ExecuteWithParams. The idea is that this ExecuteWithParams selects a record unique, based on the pclNummer value, which must be unique. The ExecuteWithParams is defined in the pageDef as follows:
        <action IterBinding="TelerHeeftPercelenIterator" id="ExecuteWithParams"
                RequiresUpdateModel="true" Action="executeWithParams">
          <NamedData NDName="pclNummer" NDValue="#{pageFlowScope.pclNummer}"
                     NDType="oracle.jbo.domain.Number"/>
        </action>
    The button that triggers it, is defined as follows:
                      <af:commandToolbarButton text="#{aanvragenboviewBundle.WIJZIG_AM_CODE}"
                                               icon="/images/pencil.png"
                                               disabledIcon="/images/pencil_disabled.png"
                                               id="btnAm" partialSubmit="true"
                                               clientComponent="true">
                        <af:clientAttribute name="pclNummer"
                                            value="#{viewScope.percelenBean.selectedPerceelNummer}"/>
                        <af:clientAttribute name="soortActie" value="#{'AMW'}"/>
                        <af:showPopupBehavior popupId="::pclPopup"/>
                      </af:commandToolbarButton>
    My questions are:
    < ul > < li > by passing the value of key of the selected record and then retrieve the record again seem a bit too complicated for me. Is somehow possible to just get the record selected in the main page in the stubborn workflow?
    < li > if this is not possible, what I am doing wrong in my current approach? Why the ExecuteWithParams works not as long as expected? (It is actually running, I checked that, by setting a breakpoint on this subject). < /ul >

    Any help would be appreciated!
    Best regards
    Bart kummel

    Hello

    If you launch the TaskFlow in a dialog you must pass information as an input TaskFlow parameter. And then read you in the TaskFlow and run the query using a method activity.

    Frank

  • QUESTION: SE 2012 data display returns to the time graph each time

    Hello

    I have SigExp 2012.

    If I try to add a data view and make a pledge of graphic style, thermometer, etc., as soon as I have the right up until it clicks, add my TC chain, the data view returns immediately to a graph time.

    In addition, even if I use the graph of time, once I added the signal, it only let me see the string in a table, a chart of time or a waveform graph.  Those are the only choices.

    If I use a graph of time or a band of waveform graph, it does not read the signal correctly, but I can not configure the data view, the way I want it.

    Is this a bug or I do something wrong?

    Thank you!

    This occurs when you try to change the display of a signal in its raw format "waveform".
    You must convert your signals in scalar format. To do this simply add an amplitude and levels step (under: analysis > measures Time-Domain). Drag this DC signal newly converted to a new chart and right click on the graph to change the display.

    Honestly, I'm not sure why raw waveform signals are inherently limiting viewing functionality, but in such cases, it is.

    You can also; According to the devices on which you use and the order in which you add to your DAQmx Acquire, some default signals step to scalar signals without having to convert.

    See the attached screenshot and you'll see how the icons are different between the waveforms and scalar signals.

    Hope that helps

  • hp has extended the date of return to the offer of the College?

    hp has extended the date of return to the offer of the College?

    You need to ask HP directly for more information about this.

    This is the support forum for the consumer and not a business unit of HP.

  • Data tab returns data differently in different instances of SQL Developer

    On my instance of SQL Developer, when I click on the data tab, the data is returned immediately via a select * table query, but on one of the machines of my developer, when she clicks on the data tab, Developer SQL executes a select query * table... order in...

    The column it is order by is NOT indexed and the query takes a long time to return data.   We cannot understand where SQL Developer's store this particular query and associating it with the data on its instance SQL Developer tab.

    Anyone can shed some light?

    Right click on the grid, and then select "remove persisted settings...". »

  • ADF: Can ignore us the default activity of the ADF train in the stubborn workflow. ?

    Hi all

    I am a newbie for ADF and JDev. Start learning about the documentation provided for the ADF, I try to create a stubborn workflow that has an element of train and every stop on the train should be activated/skippered by program. I am able to jump the train stops after reading the content provided at http://www.oracle.com/technetwork/developer-tools/adf/learnmore/82-programmatically-navigate-trains-396873.pdf.
    But I'm not able to jump to the default train stop which is the first call of the activity in my case during initialization.
    Here are the steps I followed:
    1 creating a project of viewController and created a workflow in bounded with the component train activated.
    2. added 4 displays with train component marking the first view as default activity appeal.
    3. According to the document, which I mentioned above, I've added bean managed to ignore the train stop by program files.

    Now when I run the workflow, I'm able to jump the number of train stops 2/3/4, but I'm not able to jump stop number 1 (first stop which is the default activity) at initialization.
    According to documents from the ADF, for a stubborn workflow must be assigned default activity that is always called first when we enter the stubborn workflow. Which means, default activity will always be called initialization of said defined workflow and never to be ignored by the program. ? Alternatively, if there is a way to jump to the default activity, so please let me know the documentation/measures to do this.

    Thanks in advace.

    Published by: 1004973 on May 9, 2013 02:52

    Thanks Timo. Your idea has solved my problem. :)

    I created a new page in my workflow narrow-minded that I realized as a default activity for the workflow bounded. Then I applied the navigation via router and under certain conditions, I am now able to switch my order to my desired train stop. By this design, I can make another customization on train button(Back/Next).

  • Sharing the view everywhere object to the pagefragments in an af:train in the stubborn workflow

    Hello

    I use JDeveloper 11.1.1.4. I'm in a position to use a display through all the fragments of page object in a train of component in a stubborn workflow.

    Can someone suggest me a way to do it?

    Kind regards

    You have shared it by default if itertor in your pageDefs links the same object of the view. In other words, you will be working with the same instance of VO.

  • Giving date based return number interval

    Here is an example of what I am trying to accomplish. The setting I will use is which days are available for work in the format of (0,1,1,1,1,1,0).

    The first digit represents the Sunday and the last is Saturday. If the day was 0 you have to jump that date, but if the date has a 1 you can use this date. So if the data contained an 0 for Monday if will have to jump Monday when days are added. I can find a way to put the SQL set to skip the Saturday and Sunday, but may not know how to use the format (0,1,1,1,1,1,0) to determine if the work is authorized.

    Here's the SQL I use as a concept I need help on how to incorporate it.

    ~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*
    CREATE or REPLACE function custom_add_days
    (start_date_in date, number of days_in)
    date of return
    IS
    number of v_counter;
    date of v_new_date;
    number of v_day_number;
    BEGIN

    / * This routine adds a specified number of days (ie: days_in) at a date (ie: start_date). */
    / * It will ignore all weekend days - Saturday and Sunday * /.
    v_counter: = 1;
    v_new_date: = start_date_in;

    / * Loop to determine how many days to add * /.
    all in v_counter < = days_in
    loop
    / * Add a day * /.
    v_new_date: = v_new_date + 1;
    v_day_number: = to_char (v_new_date, 'd');

    / * Increment counter if day falls between Monday to Friday * /.
    If v_day_number > = 2 and v_day_number < = 6 then
    v_counter: = v_counter + 1;
    end if;

    end loop;

    RETURN v_new_date;

    Sorry did not see your last post.

    Maybe something like that (changed your function a bit):

    SQL> CREATE OR REPLACE FUNCTION custom_add_days (
      2     start_date_in   DATE,
      3     work_days       VARCHAR2,
      4     days_in         NUMBER
      5  )
      6     RETURN DATE
      7  IS
      8     v_counter          NUMBER;
      9     v_new_date         DATE;
     10     v_day_number       NUMBER;
     11     v_loop_counter     NUMBER := 0;
     12     work_days_status   NUMBER;
     13  BEGIN
     14  /* This routine will add a specified number of days (ie: days_in) to a date (ie: start_date). *
    /
     15  /* It will skip all weekend days - Saturdays and Sundays */
     16     v_counter := 1;
     17     v_new_date := start_date_in;
     18
     19  /* Loop to determine how many days to add */
     20     WHILE v_counter <= days_in
     21     LOOP
     22  /* Add a day */
     23        v_new_date := v_new_date + 1;
     24        v_day_number := TO_NUMBER(TO_CHAR (v_new_date, 'd'));
     25        v_loop_counter := v_loop_counter + 1;
     26        work_days_status :=
     27           TO_NUMBER (SUBSTR (REPLACE (work_days, ','),
     28                              CASE
     29                                 WHEN MOD (v_loop_counter, 7) = 0
     30                                    THEN 7
     31                                 ELSE MOD (v_loop_counter, 7)
     32                              END,
     33                              1
     34                             )
     35                     );
     36
     37  /* Increment counter if day falls between Monday to Friday */
     38        IF  work_days_status = 1
     39        THEN
     40           v_counter := v_counter + 1;
     41        END IF;
     42     END LOOP;
     43
     44     RETURN v_new_date;
     45  END;
     46  /
    
    Function created.
    
    SQL> show errors
    No errors.
    SQL> SELECT sysdate FROM Dual
      2  /
    
    SYSDATE
    ---------
    01-JUL-09
    
    1 row selected.
    
    SQL> SELECT CUSTOM_ADD_DAYS(sysdate, '1,0,1,1,1,0,1', 3) FROM Dual
      2  /
    
    CUSTOM_AD
    ---------
    05-JUL-09
    
    1 row selected.
    
    SQL> 
    

    Kind regards
    JO

    Published by: Joice John July 1, 2009 06:08

  • Query regarding different refreshing data from the grid when returned from a workflow

    Hi Experts,

    JDEV version is: 11.1.1.5

    Our application uses dynamic tabs the user interface shell.

    Whenever the user connects, it is taken in A TAB.

    Since the TAB A, the user navigates to TAB B.

    TAB B has a GRID B(table with a few records).

    Column A on TAB B has a hyperlink which, once clicked on will open a stream of different tasks in a different tab.

    Click on the column of hyperlink for the different lines will open different tf (under certain conditions).

    By clicking on the hyperlink, that the method _launchActivity(String title, String taskflowId, boolean newTab) is used, which the TF open in a new tab.

    The user works on the TF (in a new tab) which opened on click of a hyperlink in the column is and click on SAVE.

    Click to save some operation and removeCurrentTab method is called which will close the current tab, and control passes to the first tab (TAB A).

    The problem:

    Once the user tries to click or to return to the TAB B the WHAT GRID B is never updated that we cannot get the descriptor to refresh the data in the grid.

    Any suggestions would be much appreciated.

    Thank you

    Jean Claude

    huh, I thought it was another library in question.

    In all cases, you can use contextual event (when you close the current tab).

    The second option is to navigate to the method executeQuery by code call activities:

    https://blogs.Oracle.com/jdevotnharvest/entry/how-to_navigate_in_bounded_task_flows

  • Refresh of Page partial update of form before the data control returns the new value

    Hello

    I have a set of paintings of master detail based on a single data source (Session Bean encapsulating a web service call). The high-level table (t1) shows data of opportunity, as the low level (t2) poster contacts for a special occasion. When the opportunity is selected in t1, the contacts associated with this opportunity appear in t2. These tables of work as you wish.

    I have a read only form (form of the Panel layout) based on a different data control (supported by a Session Bean that calls a LinkedIn API and a table of database using EJB3 entities). LinkedIn Session Bean method takes a parameter which I get from the current row in t2. (#{bindings.relatedContact.currentRow.dataProvider.id}) I put the PartialTriggers as 't2' on the form.

    When the page is loaded for the first time, the first line (line A) from table t2 is selected and the display shows the data associated with this line. If I select another line (line B), the Session Bean is called with the value of the id of the newly selected row, but the display will show the associated data from line A. Thereafter, whenever I select a row in t2, bean is called with the new value, but the form displays the data from the selected line previously.

    I guess what happens is that the form is refreshed (using stale data in the data control), and then the call to the session bean is made. I checked using thread and print statements. Sleep() in the bean.

    Is this a correct behavior and how can I make sure that the call to the bean occurs before the form is updated?

    I use JDeveloper version 11.1.2.2.0

    Thank you
    Michael

    Hello

    as answered on StackOverflow, the trick is to set the refresh option on the iterator (s) to the second access WS (table 2) of PageDef on ifNeeded. The default setting is delayed, which in your case is not optimal because refresh occurs during rendering response, which is too late for the access of WS. Try "ifNeeded.

    Frank

  • Is it possible to refresh data LC desktop and persistent?

    I want to create a desktop view of the training pool.   Every week there is a new group of trainees for the environment should be returned to the initial environment every week.

    I have created an automated pool Linked Clone of 8 workstations with persistent disks and added 8 users right.  I logged in as different users and they were still recorded in the same office (which is what I wanted).  I made changes to the desktop and then made an update of the LC.   The update comes back at the office, but do not wipe the persistent user data.

    Is there a simple way to allow these workstations be connected by students with persistent data during the week and then be fully refreshed for the new class?

    Thank you

    -MattG

    You could always delete workstations rather than try to update.

  • How to refresh data in backing bean-based component SelectOneChoice

    Hello.

    I use JD Studio Edition Version 11.1.1.5.0 on Weblogic 11.1.1.5

    I have the resulting page with SelectOneCoice fragment of the backing bean (used as filter)

    < af:selectOneChoice label = "#{projectBundle ['label.toolbar.spinbox.period']}" "

    valueChangeListener = "#{backingBeanScope.backing_jsf_fragments_project_ContentMainView.onPeriodValueChangeListener} '"

    Binding = "#{backingBeanScope.backing_jsf_fragments_project_ContentMainView.SOC2} '"

    ID = value = "#{pageFlowScope.ContentMainView.period"soc2"} ' autoSubmit ="true">"

    < f: selectItems value = "#{pageFlowScope.YearsListBean.yearItems} '"

    Binding = "#{backingBeanScope.backing_jsf_fragments_project_ContentMainView.SI2}" id = "si2" / > "

    < / af:selectOneChoice >

    It supports bean which reads the data from the database and creates the list + adds value null

    package sk.web.view.bean;

    import java.util.ArrayList;

    import java.util.List;

    Import javax.faces.model.SelectItem;

    Import oracle.adf.model.binding.DCIteratorBinding;

    Import oracle.adf.share.logging.ADFLogger;

    Import oracle.jbo.Row;

    Import sk.web.view.common.utils.ADFUtils;

    /**

    * Class is supposed to provide a list of the years for the af:SelectOneChoice component.

    */

    public class YearsListBean {}

    private static final String PERIOD_ITERATOR_NAME = "PeriodView1Iterator"; Auto generated id

    private list < SelectItem > yearItems;

    public YearsListBean() {}

    Super();

    yearItems = new ArrayList < SelectItem > ();

    addYearsToList();

    }

    public void addYearsToList() {}

    DCIteratorBinding iter = null;

    ITER = ADFUtils.findIterator (PERIOD_ITERATOR_NAME);

    Rank [] rows = iter.getAllRowsInRange ();

    addYearItemToList ("", "");

    for (int i = 0; i < rows.length; i ++) {}

    Line = lines [i];

    log.info ("row [" + Integer.toString (i) + "]:" + rows [i].getAttribute("Year").toString ());

    addYearItemToList (rows [i].getAttribute("Year").toString (), rows [i].getAttribute("Year").toString ());

    }

    }

    public void clearYears() {}

    log.info ("called.");

    getYearItems () .clear ();

    }

    ' private void addYearItemToList (String strInYearLabel, String strInYearValue) {}

    SelectItem tObjItem = new SelectItem();

    Configuration object

    tObjItem.setLabel (strInYearLabel);

    tObjItem.setValue (strInYearValue);

    Add list ro

    yearItems.add (tObjItem);

    }

    public list < SelectItem > getYearItems() {}

    Get an output

    Return yearItems;

    }

    }

    When I insert the new record in the DB table, I want to see the new value in the filter. How to get there?

    I tryied to get the current instance of YearsListBean

    YearsListBean yearsList = (YearsListBean) FacesUtils.getManagedBean ("pageFlowScope.YearsListBean");

    Clear and then refill

    yearsList.clearYears ();

    yearsList.addYearsToList ();

    at the end I refresh view Add partial target

    AdfFacesContext.getCurrentInstance () .addPartialTarget (getSoc1 ());

    But this procedure does not work. Please help me find the working method.

    Thanks in advance.

    I found the bug in my code. I added partial target the wrong component. Now, refresh works fine.

Maybe you are looking for