Task flow return-Current Record pointing issue.

Hi friends
Newbie in ADF (basically from .net back ground)...........I am in the process of developing my first module.
I have a task flow where a master detail records are displayed ..When I click "Edit" it is calling a edit task flow where the editing of master/detail tables are performed .When I click "New" a blank record is created and it is calling same edit task flow.
my problem is when the child task flow exits and returns to the parent it is not pointing to the current record I edited...This is true if return either by commit or cancel.
My data control is shared , parent task flow does not have any transaction and child always starts a new transaction.
What is the ideal solution to point to the current record when I return?.
Thanks .
Ashraf

Below is updated bean code
ViewObject VO;
FacesContext fctx = FacesContext.getCurrentInstance();
DCBindingContainer bindings = (DCBindingContainer)BindingContext.getCurrent().getCurrentBindingsEntry();
DCIteratorBinding iter = bindings.findIteratorBinding("Delmast1Iterator");
VO = iter.getViewObject();
Key currKey = iter.getCurrentRow().getKey();
Row[] rows = VO.findByKey(currKey, 1);
if (rows.length == 1) {
System.out.println("row found");
VO.setCurrentRow(rows[0]);
iter.executeQuery();
iter.setCurrentRowWithKey(currKey.toStringFormat(true));
iter.setCurrentRowWithKeyValue(iter.getCurrentRow().getAttribute("SaleId").toString());
If my child task flow does not have a commit or rollback the above code works fine...But I am beginning a transaction in my child flow(edit flow) so it is a must to have commit/rollback.
Is there any other options experts ?..Please guide me.
Thax.

Similar Messages

  • Bounded task flow task-flow-return to unbounded task flow throws 404

    I'm using an unbounded task flow (adfc-config.xml) to call a bounded task flow (task-flow-definition). All navigation in the bounded task flow works well, data is committing. (I am omitting many of the pages from the bounded task flow to keep this post shorter. If I can get this first page to return to the unbounded task flow, I can copy it forward.)
    My problem is when running from the unbounded task flow, I cannot seem to configure the bounded task flow to return to the login page inside the unbounded task flow, which called it, without a 404 error.
    Unbounded task flow:
    <?xml version="1.0" encoding="windows-1252" ?>
    <adfc-config xmlns="http://xmlns.oracle.com/adf/controller" version="1.2">
    <view id="CPPLogin">
    <page id="__1">/CPPLogin.jspx</page>
    </view>
    <task-flow-call id="task-flow-definition">
    <task-flow-reference>
    <document>/WEB-INF/task-flow-definition.xml</document>
    <id>task-flow-definition</id>
    </task-flow-reference>
    </task-flow-call>
    <control-flow-rule id="__46">
    <from-activity-id id="__47">CPPLogin</from-activity-id>
    <control-flow-case id="__48">
    <from-outcome id="__49">success</from-outcome>
    <to-activity-id id="__50">task-flow-definition</to-activity-id>
    </control-flow-case>
    </control-flow-rule>
    <control-flow-rule id="__221">
    <from-activity-id id="__222">task-flow-definition</from-activity-id>
    <control-flow-case id="_223">
    <from-outcome id="__224">logout</from-outcome>
    <to-activity-id id="__225">CPPLogin</to-activity-id>
    </control-flow-case>
    </control-flow-rule>
    <managed-bean id="__23">
    <managed-bean-name id="__21">backing_CPPLogin</managed-bean-name>
    <managed-bean-class id="__22">view.backing.CPPLogin</managed-bean-class>
    <managed-bean-scope id="__25">pageFlow</managed-bean-scope>
    </managed-bean>
    </adfc-config>
    Bounded task flow:
    <?xml version="1.0" encoding="windows-1252" ?>
    <adfc-config xmlns="http://xmlns.oracle.com/adf/controller" version="1.2">
    <task-flow-definition id="task-flow-definition">
    <default-activity>ContactInfo</default-activity>
    <no-save-point/>
    <data-control-scope id="__2">
    <shared/>
    </data-control-scope>
    <managed-bean id="__8">
    <managed-bean-name id="__9">backing_ContactInfo</managed-bean-name>
    <managed-bean-class id="__7">view.backing.ContactInfo</managed-bean-class>
    <managed-bean-scope id="__5">pageFlow</managed-bean-scope>
    </managed-bean>
    <view id="ContactInfo">
    <page id="__6">/ContactInfo.jspx</page>
    </view>
    <task-flow-return id="logout">
    <outcome id="__4">
    <name id="__3">logout</name>
    </outcome>
    </task-flow-return>
    <control-flow-rule id="__41">
    <from-activity-id id="__42">ContactInfo</from-activity-id>
    <control-flow-case id="__43">
    <from-outcome id="__44">logout</from-outcome>
    <to-activity-id id="__45">logout</to-activity-id>
    </control-flow-case>
    </control-flow-rule>
    </task-flow-definition>
    </adfc-config>
    Jdev version is 11.1.1.2. WLS is 10.3
    Currently trying to get it to work on the Integrated WLS before deploying an ear to the console.
    I don't know how to configure security, but here is the piece from my web.xml:
    <filter>
    <filter-name>JpsFilter</filter-name>
    <filter-class>oracle.security.jps.ee.http.JpsFilter</filter-class>
    <init-param>
    <param-name>enable.anonymous</param-name>
    <param-value>true</param-value>
    </init-param>
    </filter>
    Also,, I'm finding these hash entries in both Model.jpr and ViewController.jpr:
    <hash>
    <value n="id" v="BC4J Security"/>
    <value n="isJDK" v="false"/>
    </hash>
    Any help would be greatly appreciated. I'm way behind on this deliverable...

    Is the task-flow-return the ONLY way to pass values from the bounded to the unbounded task flow?
    Or is it possible to use a control-flow-case inside the bounded task flow like this, that refers to the unbounded task flow to navigate from the bounded back to the unbounded task flow?
    <adfc-config xmlns="http://xmlns.oracle.com/adf/controller" version="1.2">
    <task-flow-definition id="task-flow-definition">
    <task-flow-call id="adfc">
    <task-flow-reference>
    <document>/WEB-INF/adfc-config.xml</document>
    <id>adfc</id>
    </task-flow-reference>
    </task-flow-call>
    <control-flow-rule id="__41">
    <from-activity-id id="__42">ContactInfo</from-activity-id>
    <control-flow-case id="__43">
    <from-outcome id="__44">logout</from-outcome>
    <to-activity-id id="__45">adfc</to-activity-id>
    </control-flow-case>
    </control-flow-rule>
    I've tried every conceivable way to navigate from the bounded task flow, to the unbounded task flow, and the only consistent thing I receive is a 404. Is this a security issue?

  • Task-flow for inserting record in a popup

    Hi all,
    I am using Jdeveloper 11.1.1.0.
    I have a page with a lot of panelTabbed that displays a lot of data of a table.
    I would like to have a button that show a popup and launch a task-flow for inserting data in the table in more steps.
    I have created:
    1) one fragments for every inserting step
    2) a bounded task-flow having an activity (createInsert before the activities (fragments) to insert a new record), with a task flow return (cancel and commit) to save or rollback the data.
    3) obviusly, a button that show the popup for inserting a new record. I have inserted the task-flow defined in 2) as a region in the dialog of my popup.
    When I launch my page:
    1) I see an empty form (instead of seeing the first record)
    2) the data inserting on the popup are not saved
    3) the second time I try to launch the popup, I see nothing, only the OK button of the dialog.
    I know, in the new version of Jdeveloper it is possible to insert a task flow in a popup, but is it possible, in the previous (my) version?
    Thanks
    Andrea

    1) You are seeing an empty form because you are probably calling CreateInsert method of your data control. You should call it only if you are going to create a new record. Also, if this is a new record, you should not show the tabs below. In my case, i am doing like this:
    There are 3 pages, ListPage, CreatePage and Edit Page.
    User first enters to List page (because it is the default activity in taskflow), to list Master records in a table. There are also 2 buttons, Create and Edit. If Create button is clicked, CreateInsert method is invoked and then CreatePage is called. In create page, there are only 1 form of Master's attributes. After user commits, taskflow redirects the page back to ListPage.
    If user selects a row in list page then press Edit button, EditPage is called, but without calling a CreateInsert method. You don't have to invoke any methods if your table in ListPage has a SelectionListener (which is set by default).
    in launch listener, you can run a method like this:
    public void saveState(LaunchEvent launchEvent) {
    DCIteratorBinding ib = ADFUtils.findIterator("YourMasterIterator");
    RequestContext requestContext = RequestContext.getCurrentInstance();
    //we save key.
    String key = ib.getCurrentRow().getKey().toStringFormat(true);
    requestContext.getPageFlowScope().put("yourKey", key);
    and in return listener:
    public void loadState(ReturnEvent returnEvent) {
    RequestContext requestContext = RequestContext.getCurrentInstance();
    if (null == requestContext.getPageFlowScope().get("yourKey"))
    return;
    DCIteratorBinding ib = ADFUtils.findIterator("YourMasterIterator");
    if (null != ib)
    ib.setCurrentRowWithKey((String)requestContext.getPageFlowScope().get("yourKey"));
    You can find ADFUtils.java and JSFUtils.java in Store Front Demo project and some other sample projects.
    2) About the X button... This is the biggest problem of inline-popups. As far as i learned from people in this forum, it is not possible to remove that if you use an inline-popup. And it does not invoke returnListener. But, it does a rollback! I think it is a big problem and i am hoping to find a solution too. Using a popup component instead of inline-popup as dialog can be a workaround.
    user10799119 wrote:
    Hi Deniz,
    thank you for you reply.
    My task flow is sharing data controls with its caller, because main page displays updatable record, while the button launch a task flow in the popup to create a new record of the same table.
    I have understood what you are saying (save the current key when I launch the popup and restore the key when I return from the popup), but:
    1) when I enter in the main (caller) page, I see an empty form, and not the first record of my table. Why?
    2) the returnListener works even if I close the dialog with the "x" (in the up-right angle of the dialog) or only with its buttons?
    3) where can I find the code/links/examples/guides to implement launchListener and the returnListener for my button?
    Thank you
    Andrea
    Edited by: user10799119 on 2-dic-2009 05:26
    Edited by: user10799119 on 2-dic-2009 05:31Edited by: Deniz Gulmez on 02.Ara.2009 09:52
    Edited by: Deniz Gulmez on 02.Ara.2009 09:58

  • Task Flow Return Listener not fire when FK association fields set manually

    Guys and Gals,
    I've spent two solid days on this and I'm not sure why my task flow return listener is not firing.
    I start by selecting a row in a table. I then click a "Convert" button which converts the Quote document into a Sales document. I then press Submit which commits the data and the task flow exits. At this point my task flow return listener should fire. It does not. This return listener would, in theory, refresh the visible Quotes table and update the selected Quote's status to "Closed".
    The Quote's "Closed" status is a transient attribute which is calculated by looking at the Sales' document Qty attribute. If the Quote Qty = Sales Qty, then the status is closed. This can be measured by utilizing an association where
    Sales' BaseRefDocId = Quotes' OrderId
    Sales' BaseRefRowId = Quotes' RowId
    Setting these two row attributes represent the association linking a Quote document row to a Sales document row.
            nvp.setAttribute("BaseRefDocId", baseRow.getAttribute("OrderId"));     // Take the Quote Id and put in the Sales' Id ref field
            nvp.setAttribute("BaseRefRowId", baseRow.getAttribute("Row_Id"));    // Take the Quote Row Id and put it in the Sales Row Id ref field
            targetRow.createAndInitRow(nvp);                                                    // Insert the new referenced row into the Sales' DocumentAfter two days of running tests, it is the code above that keeps the return listener from firing and the transient attribute from refreshing on the page. These fields are not mandatory, but are necessary for the Quotes status to change to closed. Simply leaving these lines of code out allows my task flow return listener to refresh correctly, albeit with an incorrect Quote status.
    My expression language statements, however, evaluate correctly irregardless of table refresh. If I refresh the table manually, the status will then display the correct value. All other methods of manipulating the table function correctly i.e. task flow return statements work.
    I'm pretty sure it has something to do with some kind of silent association / view link error blocking the task flow from firing behind the scenes.
    Does anyone have any ideas? Using JDev 11.1.2.1.0.
    Will

    Hi Frank,
    Yeah, I thought it was really weird as well. I banged my head up against the wall again today and finally managed to semi-fix the problem.
    The "Convert" table toolbar button has a "Disabled" attribute that I've been setting with something like #{bindings.QuoteIterator.currentRow == null}. If I take this out, everything works fine. However, if I put it in, the task flow will not return. What's screwy is that I have several of these "Quote" tables for other data collections such as Sales, Deliveries, Invoices, etc. About half of them fire a task flow return with the "Disabled" attribute set for the convert button, and the other half don't. They all return a task flow return if I just set "Disabled" to false.
    At three days and counting, this is really an issue I just don't get, and I'm not sure if I could reproduce the problem to submit it to support because everything appears just fine and I've been digging for days.

  • ADF task flow return redirect to page?

    Hello, I am using JDeveloper 11.1.2.3.0
    I have build a task flow (bounded task flow) in my application and I want to redirect on task flow return, to another page from the application. This page is not part of the flow. From what I am reading till now everything I found is to call another task flow on return, but I do not need this. I just need to redirect to a specific page. Can anyone help on this?
    Thank you

    Thanks but is there no possibility at all to navigate to another page within the aplication (not of the same task flow)? I was thinking something like FacesContext.getCurrentInstance().getExternalContext().redirect("Page1") on action method on a button of the page; But I am getting an error saying that can not find the Page1.

  • Region not refreshing while reentry in task flow using task flow return

    Hi,
    Use Case :
    1) I have a task flow TF1 displayed as a region in page fragment Page1. Task flow has certain input parameters. It displays a data in table which is surrounded by Panel Box which is expanded if certain input parameters are set otherwise disclosed
    2) From Parents screen we have a button , on click of that button I am navigating to a different task flow TF2 , adding some data and coming back to screen Page1 through task flow return activity.
    3) Task flow TF1 should be refreshed with new data which is being set on through a bean variable.
    Task flow TF1 is not being refreshed. (I have tried setting the refresh property to 'If Needed')
    Please Suggest.
    Best regards,
    Anu

    Hi,
    Thanks for the response. Query is being execute in the backend. But region is not being refreshed even after change of parameter.
    Best regards,
    Anuradha

  • Question on Task flow return

    Hi ,
    I have the following questions on Task flow return:
    i) I have a Task flow 1 (TF1) . I call Task Flow 2 (TF2) from TF1 using openMainTask method to open TF2 in a new tab. In TF2, I have a task flow return activity. What is the expected behaviour of Task flow return in this case?
    ii)The End Transaction of task flow return in TF2 is 'commit'. The Transaction behaviour is 'Use Existing Transaction if possible' . Is it possible to set the End Transaction to default (none). When I try to set it to default none, it errors out. I have a bean code on the Save and Close for commiting the data and I do not want the Task flow return to commit again.
    iii)Which method is internally called on Commit of a task flow return?
    Thanks !

    Hi,
    if the task flow shares the DataControl with the calling task flow then the transaction mode can be none. If the task flow is isolated (not sharing a DC) then the task flow must commit or rollback
    Frank

  • Current Record Pointer after ResultSet.DeleteRow()

    I have a question about the position of the Current Record Pointer in a ResultSet after a call to DeleteRow(). I have three records in the ResultSet, and call DeleteRow() while positioned on the first record. If I call moveToCurrentRow() or do not call any routine. It appears I am still pointed at the deleted first row. I can call getString() and get the data from the first row, which has been deleted. If I call next(), I find myself positioned on the third row, not the second row. How do I delete the first row and position myself on the NEW first row?

    Here it is again, this time with some formating.
        private void DeleteButtonActionPerformed(java.awt.event.ActionEvent evt) {
            try {
                int result = JOptionPane.showOptionDialog( PeriodicalMaint.this, "Delete Current Periodical?",
                                                          "Warning", JOptionPane.OK_CANCEL_OPTION,
                                                          JOptionPane.WARNING_MESSAGE, null, null, null);
                if ( result == JOptionPane.OK_OPTION ) {
                    String Periodical = PeriodicalField.getText();
                    deleteAllIssues( Periodical );
                    periodicalsRS.deleteRow();
                    JOptionPane.showMessageDialog(PeriodicalMaint.this,
                                                  "Periodical " + Periodical + " has been Deleted!",
                                                  "Periodical Deleted", JOptionPane.PLAIN_MESSAGE);
                    clearAllFields();
                    disableAllFields();
                    boolean rsEmpty = false;
                    periodicalsRS.moveToCurrentRow();
                    if ( periodicalsRS.isAfterLast() && !periodicalsRS.previous() ) {
                        rsEmpty = true;
                    if ( !rsEmpty ) {
                        populateAllFields();
                        addMode = false;
                        if ( Periodicals.UpdatePriv ) {
                            enableAllFields();
                        IssuesTable.setEditable( false );
                        NameField.requestFocus();
            catch (SQLException sqle) {
                JOptionPane.showMessageDialog( PeriodicalMaint.this, "SQLException: " + sqle.getMessage(),
                                               "Delete Error", JOptionPane.OK_OPTION );
        }

  • Calling task flows return activity from Jspx page.

    Hi ,
    Using JDev11.1.1.6
    I have created template for home page, drag and dropped the task flow(Main Task flow) as region.
    Main task flow contains other 2 taskflows with control flows and other 2 taskflows contains Task flow return activity to navigate back to Main task flow.
    I need to call task flow return activity from jspx page.
    How it can be acheived? can you please suggest me.
    Thanks and Regards,
    Raj Gopal K

    Hi,
    My use case is to close the child task flow and navigate back to main task flow. This should be done through homePage.jspx(whch contains main task flow).
    What i have done:
    Having page template which has logout and home page links. Use this template to create homePage.jspx, Next drag the main task flow to create a region inside the homePage.jspx.
    Thanks,
    Rajgopal K

  • 11g Task flow - Method call with router Issue

    Hi, I am using bounded task flow method call - which is default activity. The outcome of method call will go to a router and that decides which method/page fragment has to be selected. But when ever i try to call the default activity only the default out come of the router (Page fragment) is shown in the jspx. When click on some button which is binded with the default activity - the task flow is not working as i expected. Pls find the code of my task flow below.
    <?xml version="1.0" encoding="windows-1252" ?>
    <adfc-config xmlns="http://xmlns.oracle.com/adf/controller" version="1.2">
    <task-flow-definition id="methodcall2task-flow-definition">
    <default-activity>initiatetaskflow</default-activity>
    <data-control-scope>
    <shared/>
    </data-control-scope>
    <input-parameter-definition>
    <name>methodname</name>
    <value>#{CompanyBean.methodname}</value>
    </input-parameter-definition>
    <managed-bean>
    <managed-bean-name>CompanyBean</managed-bean-name>
    <managed-bean-class>com.boeing.seds.view.company.CompanyBean</managed-bean-class>
    <managed-bean-scope>request</managed-bean-scope>
    </managed-bean>
    <method-call id="initiatetaskflow">
    <method>#{CompanyBean.test}</method>
    <outcome>
    <fixed-outcome>#{CompanyBean.methodname}</fixed-outcome>
    </outcome>
    </method-call>
    <router id="selectMethod">
    <case>
    <expression>#{CompanyBean.methodname eq 'default'}</expression>
    <outcome>default</outcome>
    </case>
    <case>
    <expression>#{CompanyBean.methodname eq 'addcompany'}</expression>
    <outcome>addcompany</outcome>
    </case>
    <case>
    <expression>#{CompanyBean.methodname eq 'gotoAddress'}</expression>
    <outcome>gotoAddress</outcome>
    </case>
    <case>
    <expression>#{CompanyBean.methodname eq 'gotoDist'}</expression>
    <outcome>gotoDist</outcome>
    </case>
    <default-outcome>gotoAddress</default-outcome>
    </router>
    <view id="default">
    <page>/includes/company/default.jsff</page>
    </view>
    <view id="addnewcompanyFrgmt">
    <page>/includes/company/addnewcompanyFrgmt.jsff</page>
    </view>
    <method-call id="methodCall1">
    <method>#{CompanyBean.addCompany}</method>
    <outcome>
    <to-string/>
    </outcome>
    </method-call>
    <view id="supplierAddressFrgmt">
    <page>/includes/company/supplierAddressFrgmt.jsff</page>
    </view>
    <view id="supplierDistributorFrgmt">
    <page>/includes/company/supplierDistributorFrgmt.jsff</page>
    </view>
    <control-flow-rule>
    <from-activity-id>initiatetaskflow</from-activity-id>
    <control-flow-case>
    <from-outcome>#{CompanyBean.methodname}</from-outcome>
    <to-activity-id>selectMethod</to-activity-id>
    </control-flow-case>
    </control-flow-rule>
    <control-flow-rule>
    <from-activity-id>selectMethod</from-activity-id>
    <control-flow-case>
    <from-outcome>default</from-outcome>
    <to-activity-id>default</to-activity-id>
    </control-flow-case>
    <control-flow-case>
    <from-outcome>addcompany</from-outcome>
    <to-activity-id>methodCall1</to-activity-id>
    </control-flow-case>
    <control-flow-case>
    <from-outcome>gotoAddress</from-outcome>
    <to-activity-id>supplierAddressFrgmt</to-activity-id>
    </control-flow-case>
    <control-flow-case>
    <from-outcome>gotoDist</from-outcome>
    <to-activity-id>supplierDistributorFrgmt</to-activity-id>
    </control-flow-case>
    </control-flow-rule>
    <control-flow-rule>
    <from-activity-id>methodCall1</from-activity-id>
    <control-flow-case>
    <from-outcome>goAddNew</from-outcome>
    <to-activity-id>addnewcompanyFrgmt</to-activity-id>
    </control-flow-case>
    </control-flow-rule>
    <use-page-fragments/>
    </task-flow-definition>
    </adfc-config>
    Kindly let me know what may be the issue and help me to resolve it.
    Thanks!
    Sankari Kannan

    Hi Sankari,
    Since after the initial method call, your control flow has the router as its next stop, the //method-call/method/outcome/fixed-outcome can be set to a literal value(go to router) instead of an EL.
    And let router decide where to go next(by EL).
    Or you can discard your router activity, let the method-call activity decide where to go directly by setting //method-call/method/outcome/to-string to "true". Then the return value of the method decide the next stop.
    Todd

  • How to call page in adfc-config from bounded-task-flow return?

    Hello everybody, I am using JDeveloper 11.1.2.3.0
    I have in my adfc-config some pages and one bounded-task-flow (with pages, not page fragments). I call the bounded task flow from one of my pages but I want that when I return from the bounded-task-flow to redirect the page to another page rather than the page that called it. I dont know if this can be done, but do you have any idea on how to achieve something like this?
    Thank you

    Here is your sample http://tompeez.wordpress.com/2013/06/18/jdeveloper-navigation-after-return-from-bounded-task-flow/
    Timo

  • Consultation "task-flow-return"

    As a return task flow home.
    For example I have a main flow task which I call another task flow, which in turn calls another, as I can back from the last call to the first task flow that calls unleashed?
    I would greatly appreciate.

    Thank you very much, helped me a lot, thanks again .

  • Af:table filter date format : task-flow navigation issue

    hi
    When trying to use the date format configured on the Entity Object, with Format Type as Simple Date and Format as "dd-MM-yyyy", there seems to be a problem when using task-flows.
    The approach involves an explicitly configured attributeValues binding to use in f:validator and af:convertDateTime components in the af:inputDate in the filter facet, as discussed in the forum thread "af:table filter date format"
    at af:table filter date format
    I used JDeveloper 11.1.1.3.0 to create the example application
    in http://www.consideringred.com/files/oracle/2010/TableFilterDateFormatIssueApp-v0.03.zip
    - The page filterEmp.jspx shows expected behaviour, the filter uses the configured date format and there is no problem when navigating to another page and back.
    see the screencast at http://screencast.com/t/CtQ9rsVFH3k
    - The page menuBTFPage.jspx allows for some navigation after using the filter resulting in the filter showing a date in the wrong format, using scenario (sc1)
    -- (sc1-a) : run menuBTFPage.jspx
    -- (sc1-b) : on "menu-btf : menu", click the "do go-filter-emp-btf" link
    -- (sc1-c) : on "filter-emp-btf : filterEmpFragment", filter on HireDate using "10-03-2005"
    -- (sc1-d) : click the "do goReturnSuccess" button
    -- (sc1-e) : back on "menu-btf : menu", click the "do go-filter-emp-btf" link again
    -- (sc1-f) : back on "filter-emp-btf : filterEmpFragment", see the HireDate filter value in the wrong format as "2005-03-10"
    -- (sc1-g) : click the "do goReturnSuccess" button again, which results in an error "The date is not in the correct format."
    see the screencast at http://www.screencast.com/t/ORHauBd3oQ
    questions:
    - (q1) Can the behaviour in scenario (sc1) be reproduced?
    - (q2) Why is the filter value in the wrong date format in step (sc1-f)?
    - (q3) What can be done to have the filter value consistently in the configured date format, so that errors as in step (sc1-g) can be avoided?
    many thanks
    Jan Vervecken

    hi
    First a short summary of relevant aspects of service request 3-2190488381:
    - development has reviewed bug 10193260
    - development identified some code where a pattern was not applied and started fixing the problem
    - out of the blue, development asked "Will clearing out the filter field completely when moving out of ataskflow be an acceptable behavior ?"
    - I pointed out some concerns (even in a phone call with development), but development did not see any alternative not "perceived to be very risky because of the current design", so the question whether the clearing-all-filter-fields approach would be acceptable became superfluous.
    - following this, bug 10193260 suddenly became an enhancement request (for reasons I still don't understand)
    - a workaround was suggested (for behaviour not perceived as a bug), "Clearing the search fields during taskflow exit in the backing bean (in the app)." for which I also received a modified version of my example application TableFilterDateFormatIssueApp-v0.04.zip with an implementation of the suggested workaround
    As an exercise to try an understand the suggested workaround (an because my example application seemed to have been modified using the currently yet-to-be-released JDeveloper 11.1.1.4.0) I re-implemented it in the example application
    at http://www.consideringred.com/files/oracle/2010/TableFilterDateFormatIssueApp-v0.05.zip
    It has a filter-emp-workaround-btf task-flow with a method-call activity on a managed-bean method, responsible for clearing the search fields, resulting in behaviour where the error "The date is not in the correct format." does not occur,
    as can be seen in the screencast at http://screencast.com/t/Nq7TkkRQ
      public void clearFilterFields()
        BindingContainer vBindingContainer =
          BindingContext.getCurrent().getCurrentBindingsEntry();
        DCBindingContainer vDCBindingContainer = (DCBindingContainer)vBindingContainer;
        DCDataControl vDCDataControl = vDCBindingContainer.getDataControl();
        ApplicationModule vApplicationModule = vDCDataControl.getApplicationModule();
        ViewObject vViewObject = vApplicationModule.findViewObject("EmployeesVOVI");
        ViewCriteriaManager vViewCriteriaManager = vViewObject.getViewCriteriaManager();
        vViewCriteriaManager.clearViewCriterias();
        vViewObject.clearCache();
      }Because the managed-bean method requires access to the ADF Model binding layer to get to the View Object instance used for the filtered table, the method-call activity has a page element configured in DataBindings.cpx referring to the same usageId as the page element for the page fragment showing the filtered table. So that both the method-call and view activity depend on one and the same Binding Container (e.i. PageDef file).
    The method-call activity, responsible for clearing the search fields, would need to be called before each task-flow-return activity.
    As there can be multiple view activities with multiple filtered tables in a bounded task-flow, would that result in multiple method-call activities responsible for clearing search fields (all to be called before each task-flow-return activity)?
    It looks like a more general/generic approach is desirable for the suggested workaround to be feasible.
    - (q5) Does the suggested workaround imply (as bug 10193260 is not a bug) that all bounded task-flows with filtered tables should implement it to avoid errors about formatting?
    thanks
    Jan

  • Best way to refresh page after returning from task flow?

    Hello -
    (Using jdev 11g release 1)
    What is the best way to refresh data in a page after navigating to and returning from a task flow with an isolated data control scope where that data is changed and commited to the database?
    I have 2 bounded task flows: list-records-tf and edit-record-tf
    Both use page fragments
    list-records-tf has a list.jsff fragment and a task flow call to edit-record-tf
    The list.jsff page has a table of records that a user can click on and a button which, when pressed, will pass control to the edit-record-tf call. (There are also set property listeners on the button to set values in the request that are used as parameters to edit-record-tf.)
    The edit-record-tf always begins a new transaction and does not share data controls with the calling task flow. It consists of an application module call to set up the model according to the parameters passed in (edit record X or create new record Y or...etc.), a page fragment with a form to allow users to edit the record, and 2 different task flow returns for saving/cancelling the transaction.
    Back to the question - when I change a record in the edit page, the changes do not show up on the list page until I requery the data set. What is the best way to get the list page to refresh itself automatically upon return from the edit-record-tf?
    (If I ran the edit task flow in a popup dialog I could just use the return listener on the command component that launched the popup. But I don't want to run this in a dialog.)
    Thank you for reading my question.

    What if you have the bean which has refresh method as TF param? Call that method after you save the data. or use contextual event.

  • Task-flow for inserting a record in a popup: error on primary key.

    Hi all,
    I am using Jdeveloper 11.1.1.2.
    I am trying to display a bounded task flow in a popup launched from a page. I am following the steps in: http://www.oracle.com/technology/products/jdev/tips/fnimphius/popupinuishell/declarative_popup_in_uishell.html
    I have a view object (myVO) and I have a page (page1), where I can edit the records of myVO. In this page I have a button that launches (in a window) a task-flow (insertTF, that uses existing transaction if possible, composed by page2 and page3) where I can insert a new record in two step (using a train).
    At the end of the train I can save or cancel (task flow return activity) the inserting record.
    The button cancel work well, but the button save does not. When I click on it, I return in page1 but I have this error: Error: another user modified row with primary key oracle.jbo.Key [[+numberOfKey+]].
    If I see the database navigator or I refresh the page, I can see the record just inserted.
    How can I do to remove this error?
    Thank you
    Andrea
    Edited by: Andrea9 on 10-dic-2009 06:39

    There are default values coming from the DB. There are also default values that I have setted in myModel on myEO.
    I am the only user manages the database, there are no other users.
    So, how can I solve this problem? Have I to remove the default value on inserting? From DB or from myEO?
    thanks in advance
    Andrea

Maybe you are looking for

  • Error in ESS page

    Hi Experts, Iam having problem with my ESS page while iam clicking on it its showing error like this please help me in this. Overview            500   Internal Server Error SAP NetWeaver Application Server 7.00/Java AS 7.00 Failed to process request.

  • Problem with return true and if statement

    I'm making a ship shooter game and I have a problem with the collision detection for the corners of the stage. When you hold down two of the arrows to move the ship into the corners of the screen, the ship will go past it. The function bellow is what

  • Acrobat XI issues

    My initial installation of Acrobat XI seemed stable and worked. Lately since my 10.0.3 upgrade it crashes my computer when opening PDF files.  I am running Windows 7 Professional in 64-bit mode.  I get a blue screen of death, with some error messages

  • Merging iWeb 06 site into iWeb 08 site

    Hi, I've looked around at other posts regarding this subject but don't really understand what's going on. I have an old site built in iWeb 06 that I want to use in iWeb 08. I have multiple copies of the Domain. I have a new site built in iWeb 08. The

  • EDI documents transmitted via the Internet

    Hi Experts , Scenario : EDI Documents via intenet <---> XI <-- > ECC In the above mentioned scenario how can we use Seeburger Adapter? . Does Seeberger EDI adapter has the capability of receiven messages from Internet? Is there any mapping available