Uncommitted data warning popup not working

Hi ADF Experts,
JDEV 11.1.1.7.0
I have a jspx page with af:document uncommettedDataWarning="on".
Inside jspx I have a region. In the jsff fragment I have inputText with autoSubmit="true",
The popup does not appear if I try to close the browser or refresh.
Also I tried to set critical for the taskflow. Which either did not help.
Please help me on this.
Thanks,
Roy

Hi Frank,
I filed a bug with customer support but this is what the response.
"Hello Roy,
I brought this issue to our Development but did not get any answer as the framework works as expected.
if a component is set to autosubmit then the data is submitted so no more considered as uncommitted.
The solution would be to change the design in order to commit the data when received or use a specific commit button."
Can you please let me know if we cannot have that warning when autoSubmit="true".
Thanks,
Roy

Similar Messages

  • How to customize the Uncommitted data warning popup message

    Hi,
    As per this link https://cn.forums.oracle.com/forums/thread.jspa?threadID=2381421 we can customize the session time out warning message by adding the below lines of code.
    +<af:document id="d1">+
    +<af:resource type="javascript">+
    function myload(evt)
    +{+
    AdfDhtmlLookAndFeel._TRANSLATIONS['af_document.POST_SESSION_TIMEOUT_MSG']='Time is over...';
    +}+
    +</af:resource>+
    +<af:clientListener method="myload" type="load"/>+
    +...+
    +</af:document>+
    For modifying the uncommitted data warning message which resource string is required instead of 'af_document.POST_SESSION_TIMEOUT_MSG'
    Thanks,
    -Gaurav

    Hi,
    see the red message in http://docs.oracle.com/cd/E28389_01/apirefs.1111/e12046/oracle/adfinternal/view/js/laf/dhtml/rich/AdfDhtmlLookAndFeel.html ? AdfDhtmlLookAndFeel is an internal implementation class that should not be used in custom code.
    Frank

  • 11.1.1.3 Uncommitted Data Warning not working for fields  AutoSubmit =true

    We are facing an issue in our application where [ Uncommitted Data Warning |http://www.oracle.com/technetwork/testcontent/unsaveddatawarning-096556.html] doesnot seem to work for input fields on which autosubmit is turned to true. Once I unset thye autoSubmit property to false , this works fine.
    The autosubmit is needed in our application for specific needs.
    Can you please throw some light on this weird behaviour ! We have followed the exact steps as mentioned viz -
    1)Turn the Critical to 'true' for the bounded taskflow.
    2)Turned the UncommittedDataWarning to 'on' for the af:document of the container .jspx page
    Thanks
    Sudipto

    I tried this as a small prototype . Can someone please give any pointers ?
    TEST CASE 1 (Using a simple jspx and no taskflows)
    1)Created a new Test1.jspx and put a af:inputText in it bound to an attribute binding coming from a DataControl (using EJB).
    2)Set the autoSubmit property to true for the inputText.
    3)For the af:Document of the above Test1.jspx set the UnCommittedDataWarning to “on”
    4)Register the above page in jazn-data.xml for anonymous and auntenticated-role for login purpose.
    5)Run the page and found that the UncommittedDataWarning (UD Warning henceforth) pops up fine after dirtying the inputText and pressing browser back button.     
    TEST CASE 2 (Using a jsff embedded into a taskflow which in turn is embedded into a jspx
    1)Created a new Test2.jsff and put a af:inputText in it bound to an attribute binding coming from a DataControl.
    2)Set the autoSubmit property to true.
    3)Insert the Test2.jsff into a bounded task flow say Test2TF.xml. Have critical set to “true” for this taskflow.
    4)Embed the Test2.xml into a new jspx say Test2.jspx
    3)For the af:Document of the above Test2.jspx set the UnCommittedDataWarning to “on”
    4)Register the above page , jsff and taskflow in jazn-data.xml for anonymous and auntenticated-role for login purpose
    5)Run the page and find that the UD Warning doesnot pop up after dirtying the inputText and pressing browser back button.
    +(The above is a typical scenario of our application)+
    I also checked the steps and concepts well explained at http://www.oracle.com/technetwork/developer-tools/adf/unsaveddatawarning-100139.html
    ,but couldnot arrive at a solution . The transaction and data control properties seem to be fine since , the UD warning does fire for a couple of fields having autoSubmit=”false” .
    Thanks
    Sudipto

  • Uncommitted Data warning on loading the taskflow

    Hi,
    I want to use the Uncommitted data warning for our application.
    I am getting the Uncommitted data warning while loading the taskflow.
    I am using the JDeveloper 11g 11.1.1.3.0
    I have create Taskflow with Isolated scope and start new transaction every time.
    My Takflow have Following thing:
    1) Execute Action: Which will call as default activity adn load the data.
    2) Router: That will if row exist in view then transfer to jsff page otherwise Call CreateInsert binding action and then redirected to same jsff page.
    3) Jsff Page: jsff page that have panelFormLayout with the fields for add/Update.
    In that scenario if my table don't have any record in database that why CreateInsert binding action will called. Once it will called and control is redirected to jsff page.
    Page is throwing the uncommitted data warning but there is not data on that page only the blank fields are there.
    If I click on OK button of popup that is showing blank screen not even label of the fields.
    Can anybody tell me please how can i resolve this issue?
    How will my page will appear with calling CreateInsert binding Action with UncommitedDatawarnings set as on?
    Thanks in Advance
    Amit

    As per http://www.oracle.com/technetwork/issue-archive/2012/12-mar/o22adf-1518265.html , in 11.1.2.1) or later ->
    Access the tab transaction state. Tabs can be marked as having their content changed, in which case they are referred to as dirty.
    A warning dialog box will appear if users or the application try to close these tabs. A tab’s dirty state can be checked and manipulated with the TabContext API.Looks like this is available out of the box.

  • Unexpected Uncommitted Data Warning

    Build JDEVADF_11.1.1.6.0_GENERIC_111205.1733.6192.1
    I have a bounded task flow (The rule TF) wherein I have a table which is backed by a programmatic VO (the rule condition VO). The default page for the rule TF is displayed in the main area of the UI shell template. The rule TF always begins a new transaction and shares data control with the calling task flow.
    From within the rule task flow, I can call a bounded task flow to select a set of products (the select target products TF). The select target products TF used shared transaction ("Always use Existing Transaction") and shares data control with calling task flow. Originally, I wanted to run this as a dialog, but there appears to be some bug in the UI shell that prevents this, so now I have run as dialog "False" and Display type "External Window". The default view for this task flow renders into the main area of the UI shell.
    When I add rule conditions and then invoke the select target products TF, I get an "Uncommitted data warning" when I press the OK button in that task flow, which returns the selected products to the calling task flow. The warning appears to happen after I get the return value from the select target task flow.
    If I don't add any rule conditions and simply invoke the select products TF, I do not see an issue.
    According to http://www.oracle.com/technetwork/developer-tools/adf/unsaveddatawarning-100139.html, calling a bounded task flow from a bounded task flow with shared transaction should NOT cause this.
    Is this a bug? Is there a workaround for this?
    Thanks, -Klaus

    <?xml version='1.0' encoding='UTF-8'?>
    <jsp:root xmlns:jsp="http://java.sun.com/JSP/Page" version="2.1"
    xmlns:af="http://xmlns.oracle.com/adf/faces/rich"
    xmlns:f="http://java.sun.com/jsf/core"
    xmlns:c="http://java.sun.com/jsp/jstl/core">
    <c:set var="ResourcesGenBundle"
    value="#{adfBundle['oracle.apps.common.acr.resource.ResourcesGenBundle']}"/>
    <c:set var="ZspBusinessRulesAttrBundle"
    value="#{adfBundle['oracle.apps.spe.businessRules.resource.ZspBusinessRulesAttrBundle']}"/>
    <c:set var="ZspBusinessRulesGenBundle"
    value="#{adfBundle['oracle.apps.spe.businessRules.resource.ZspBusinessRulesGenBundle']}"/>
    <af:pageTemplate viewId="/oracle/apps/fnd/applcore/templates/UIShellMainArea.jspx"
    id="pt1">
    <f:facet name="localArea">
    <af:panelHeader text="#{pageFlowScope.ManageRuleFolder.title}" id="ph1">
    <f:facet name="menuBar">
    <af:panelFormLayout id="pfl2">
    <af:toolbar id="t2" stretchId="s2" flex="1"
    inlineStyle="background-color:transparent;">
    <af:spacer width="2" height="2" id="s2" clientComponent="true"/>
    <af:commandButton text="#{ResourcesGenBundle['Action.OK']}"
    id="cb1" action="OK"/>
    <af:commandButton text="#{ResourcesGenBundle['Action.Cancel']}"
    id="cb2" action="CANCEL"
    immediate="true"/>
    </af:toolbar>
    </af:panelFormLayout>
    </f:facet>
    <af:panelGroupLayout layout="scroll" id="pgl1">
    <af:panelFormLayout id="pfl-d">
    <af:selectOneRadio id="sor1"
    label="#{ZspBusinessRulesAttrBundle['ColAttr.FolderType.RuleFolderType.RuleFolderEO.RuleTypeName']}"
    value="#{pageFlowScope.ManageRuleFolder.ruleTypeName}"
    autoSubmit="true" required="true"
    disabled="#{pageFlowScope.ManageRuleFolder.ruleFolderId != null}">
    <af:selectItem label="#{ZspBusinessRulesGenBundle['OLabel.Prediction.PredictionRuleType']}"
    value="#{pageFlowScope.ManageRuleFolder.recommendationRuleType}"
    id="si1"/>
    <af:selectItem label="#{ZspBusinessRulesGenBundle['OLabel.Eligibility.EligibilityRuleType']}"
    value="#{pageFlowScope.ManageRuleFolder.eligibilityRuleType}"
    id="si3"/>
    </af:selectOneRadio>
    <af:spacer width="10" height="10" id="s5"/>
    <af:inputText id="id2" columns="50" maximumLength="#{pageFlowScope.ManageRuleFolder.maxNameLength}"
    label="#{ZspBusinessRulesAttrBundle['ColAttr.FolderName.NameofRuleFolder.RuleFolderEO.RuleFolderName']}"
    value="#{pageFlowScope.ManageRuleFolder.name}"
    autoSubmit="true" required="true">
    <af:validateLength maximum="#{pageFlowScope.ManageRuleFolder.maxNameLength}" minimum="1"/>
    </af:inputText>
    <af:spacer width="10" height="10" id="s55"/>
    <af:inputText id="id3" columns="50" maximumLength="#{pageFlowScope.ManageRuleFolder.maxDescriptionLength}" rows="5"
    wrap="soft"
    label="#{ZspBusinessRulesAttrBundle['ColAttr.Description.RuleFolderDescription.RuleFolderEO.Description']}"
    value="#{pageFlowScope.ManageRuleFolder.description}"
    autoSubmit="true" required="true">
    <af:validateLength maximum="#{pageFlowScope.ManageRuleFolder.maxDescriptionLength}" minimum="1"/>
    </af:inputText>
    <af:spacer width="10" height="10" id="s4"/>
    <af:inputDate label="#{ZspBusinessRulesAttrBundle['ColAttr.StartDate.RuleFolderEffectiveStartDate.RuleFolderEO.EffectiveStartDate']}"
    id="id1"
    value="#{pageFlowScope.ManageRuleFolder.effectiveStartDate}"
    autoSubmit="true" required="false">
    <af:convertDateTime pattern="#{applCorePrefs.dateFormatPattern}"/>
    </af:inputDate>
    <af:spacer width="10" height="10" id="s6"/>
    <af:inputDate label="#{ZspBusinessRulesAttrBundle['ColAttr.EndDate.RuleFolderEffectiveEndDate.RuleFolderEO.EffectiveEndDate']}"
    id="id4"
    value="#{pageFlowScope.ManageRuleFolder.effectiveEndDate}"
    autoSubmit="true" required="false">
    <af:convertDateTime pattern="#{applCorePrefs.dateFormatPattern}"/>
    </af:inputDate>
    <af:spacer width="10" height="10" id="s8"/>
    <af:selectBooleanCheckbox text="#{ZspBusinessRulesAttrBundle['ColAttr.Active.IndicatorofActiveRuleFolder.RuleFolderEO.ActiveFlag']}"
    selected="#{pageFlowScope.ManageRuleFolder.activeFlag}"
    label="#{null}" id="sbc1" autoSubmit="true"/>
    </af:panelFormLayout>
    </af:panelGroupLayout>
    </af:panelHeader>
    </f:facet>
    </af:pageTemplate>
    </jsp:root>

  • Uncommitted data warning behavior

    Hie
    I tried to turn on show uncommitted data warning in an adf app developed in latest version of jdev 11g. What I am noticing is it is firing in case i close the browser. But it does not fire if i close the tab of dynamic shell ui.
    the browser used is IE
    Please advise if this is the expected behavior or some possible issue?

    Hi,
    I am alos facing the same issue . But i have another issue and doubt which i wanted to ask you hoping you would give me a proper solution . scenario goes like this ... I have my application in which i have 2 tabs opened . kept the application idle for 20 min , after that when i try navigating across the tabs , the data in the tab is found lost . For the app module , i have kept the idle instance time out as 600s . Can you please tel me as to how to prevent this losing of data in keeping the app idle for long time whererin time = n ..
    Thanks ,
    Vini

  • Date parameter does not work in SharePoint 2010 report using SQL 2008 Server Reporting Service

    Here is the settings:
    SharePoint 2010 with SQL server 2008 reporting services configured
    When create a report for a SP list using SQL server report builder (3.0) the date parameter does not work.
    The data parameter is set as "date and time" type and field name equals the col name in the SP list
    When run the report, the whatever dates I select, the result is always the same, so the parameters do not take any effect.
    Is any step missing?
    Thanks for any advice !

    Hi ,
    How did you configure you "date and time" type parameter and field name equals the col name in the SP list?
    Have you tested if other type parameter worked?
    Have you tried typing the date format as 20140722 in your date parameter filed before run the report?
    http://whitepages.unlimitedviz.com/2012/02/using-sharepoint-filters-with-reporting-services-parameters-for-personalized-reports/
    Thanks,
    Daniel Yang
    Forum Support
    Please remember to mark the replies as answers if they help and unmark them if they provide no help. If you have feedback for TechNet Subscriber Support, contact
    [email protected]
    Daniel Yang
    TechNet Community Support

  • How to turn off uncommitted data warning?

    I have a bounded task flow that calls a second bounded task flow.
    The second task flow shares transaction and data control scope with calling task flows.
    Both task flows use the main area of the UI shell.
    I make changes in second task flow and when I close the task flow I get a uncommited data warning.
    Is there a way to turn off this uncommitted data warning?

    <AF:document uncommittedDataWarning="off">i hope that this will helps you.
    http://www.oracle.com/technetwork/developer-tools/adf/unsaveddatawarning-100139.html

  • Pie chart with two measures and date dimension navigation not working

    Hi Experts,
    Pie chart with two measures and date dimension navigation not working. Any help is appreciated.
    Thanks
    V

    Hi Deepak,
    I had time dimension in the RPD.
    I have stacked bar chart with same time dim like year & month in the report. when I go to legand and set navigation it is working fine. But not with pie chart.
    I am not not sure what is the problem. When I click on Pie chart it is not navigating to the target report. Can it be any other issues..???

  • Oracle date parameter query not working?

    http://stackoverflow.com/questions/14539489/oracle-date-parameter-query-not-working
    Trying to run the below query, but always fails even though the parameter values matches. I'm thinking there is a precision issue for :xRowVersion_prev parameter. I want too keep as much precision as possible.
    Delete
    from CONCURRENCYTESTITEMS
    where ITEMID = :xItemId
    and ROWVERSION = :xRowVersion_prev
    The Oracle Rowversion is a TimestampLTZ and so is the oracle parameter type.
    The same code & query works in Sql Server, but not Oracle.
    Public Function CreateConnection() As IDbConnection
    Dim sl As New SettingsLoader
    Dim cs As String = sl.ObtainConnectionString
    Dim cn As OracleConnection = New OracleConnection(cs)
    cn.Open()
    Return cn
    End Function
    Public Function CreateCommand(connection As IDbConnection) As IDbCommand
    Dim cmd As OracleCommand = DirectCast(connection.CreateCommand, OracleCommand)
    cmd.BindByName = True
    Return cmd
    End Function
    <TestMethod()>
    <TestCategory("Oracle")> _
    Public Sub Test_POC_Delete()
    Dim connection As IDbConnection = CreateConnection()
    Dim rowver As DateTime = DateTime.Now
    Dim id As Decimal
    Using cmd As IDbCommand = CreateCommand(connection)
    cmd.CommandText = "insert into CONCURRENCYTESTITEMS values(SEQ_CONCURRENCYTESTITEMS.nextval,'bla bla bla',:xRowVersion) returning ITEMID into :myOutputParameter"
    Dim p As OracleParameter = New OracleParameter
    p.Direction = ParameterDirection.ReturnValue
    p.DbType = DbType.Decimal
    p.ParameterName = "myOutputParameter"
    cmd.Parameters.Add(p)
    Dim v As OracleParameter = New OracleParameter
    v.Direction = ParameterDirection.Input
    v.OracleDbType = OracleDbType.TimeStampLTZ
    v.ParameterName = "xRowVersion"
    v.Value = rowver
    cmd.Parameters.Add(v)
    cmd.ExecuteNonQuery()
    id = CType(p.Value, Decimal)
    End Using
    Using cmd As IDbCommand = m_DBTypesFactory.CreateCommand(connection)
    cmd.CommandText = " Delete from CONCURRENCYTESTITEMS where ITEMID = :xItemId and ROWVERSION = :xRowVersion_prev"
    Dim p As OracleParameter = New OracleParameter
    p.Direction = ParameterDirection.Input
    p.DbType = DbType.Decimal
    p.ParameterName = "xItemId"
    p.Value = id
    cmd.Parameters.Add(p)
    Dim v As OracleParameter = New OracleParameter
    v.Direction = ParameterDirection.Input
    v.OracleDbType = OracleDbType.TimeStampLTZ
    v.ParameterName = "xRowVersion_prev"
    v.Value = rowver
    v.Precision = 6 '????
    cmd.Parameters.Add(v)
    Dim cnt As Integer = cmd.ExecuteNonQuery()
    If cnt = 0 Then Assert.Fail() 'should delete
    End Using
    connection.Close()
    End Sub
    Schema:
    -- ****** Object: Table SYSTEM.CONCURRENCYTESTITEMS Script Date: 1/26/2013 11:56:50 AM ******
    CREATE TABLE "CONCURRENCYTESTITEMS" (
    "ITEMID" NUMBER(19,0) NOT NULL,
    "NOTES" NCHAR(200) NOT NULL,
    "ROWVERSION" TIMESTAMP(6) WITH LOCAL TIME ZONE NOT NULL)
    STORAGE (
    NEXT 1048576 )
    Sequence:
    -- ****** Object: Sequence SYSTEM.SEQ_CONCURRENCYTESTITEMS Script Date: 1/26/2013 12:12:48 PM ******
    CREATE SEQUENCE "SEQ_CONCURRENCYTESTITEMS"
    START WITH 1
    CACHE 20
    MAXVALUE 9999999999999999999999999999

    still not comming...
    i have one table each entry is having only one fromdata and one todate only
    i am running below in sql it is showing two rows. ok.
      select t1.U_frmdate,t1.U_todate  ,ISNULL(t2.firstName,'')+ ',' +ISNULL(t2.middleName ,'')+','+ISNULL(t2.lastName,'') AS NAME, T2.empID  AS EMPID, T2.U_emp AS Empticket,t2.U_PFAcc,t0.U_pf 
       from  [@PR_PRCSAL1] t0 inner join [@PR_OPRCSAL] t1
       on t0.DocEntry = t1.DocEntry
       inner join ohem t2
       on t2.empID = t0.U_empid  where  t0.U_empid between  '830' and  '850'  and t1.U_frmdate ='20160801'  and  t1.u_todate='20160830'
    in commond promt
      select t1.U_frmdate,t1.U_todate  ,ISNULL(t2.firstName,'')+ ',' +ISNULL(t2.middleName ,'')+','+ISNULL(t2.lastName,'') AS NAME, T2.empID  AS EMPID, T2.U_emp AS Empticket,t2.U_PFAcc,t0.U_pf 
       from  [@PR_PRCSAL1] t0 inner join [@PR_OPRCSAL] t1
       on t0.DocEntry = t1.DocEntry
       inner join ohem t2
       on t2.empID = t0.U_empid  where  t0.U_empid between  {?FromEmid} and  {?ToEmid} and t1.U_frmdate ={?FDate} and  t1.u_todate={?TDate}
    still not showing any results..

  • My international data roaming is not working in china, why?

    I am currently traveling in mid-east china, but my data roaming is not working. it shows good single bar, but when I try to receive emails (from gmail or AOL account), it gives me error messages. it is very frustrating. it has been 3 days that I can't retrieve emails. I do have voice service though.

    You might need to contact VZW for some trouble shooting help. Unless you are using a 3rd party simcard...then you might have to check with them to make sure their isn't an issue.

  • Use member on data form does not work

    Hello,
    "Use member on data" option does not work on composite Data Form. Business rule associated with composite form.
    Who is resolve this problem?
    Version hyperion: 11.1.2
    Thanks

    I don't have a solution for you but more steps to solve the problem
    You are ultimately on the right track in some ways but break it down into it's components.
    The problem could like in the business rule, the form connection, the variables, even the order of operations could all be in play.
    So I would strip this baby down to its bare bones then build it back up.
    1) Run the business rule. Each one separately and only after the previous ones is complete without variables and without touching the form
    Is it successful: go to 2
    If it isn't successful: trouble shoot the calc and or try running in EAS natively to see if that gives you ideas
    2) Run the calc outside the form but with variables included. Did it prompt you correctly.
    Is it successful: go to 3
    If it isn't. What is wrong with the variable
    3) Now attach it to the form but don't hide the prompts
    Still good go to 4
    4) hide the prompts and run on save
    And if it fails on step four then it's not picking up the right variables in the prompt. And you need to look at why it wouldn't grab the right item.
    This will isolate your problem for you and give you steps to fix it. Ultimately 99% of the time something did change in the structure for example that is impacting the calc. And when you isolate the problem this will reveal itself quite quickly.

  • I have iPhone 4 and I update it to iOS 7 and when I try to start the personal hotspot it crashed and for sometime my cellular data was also not working then allot a sudden the personal hotspot icon disappeared from my settings

    I have iPhone 4 and I update it to iOS 7 and when I try to start the personal hotspot it crashed and for sometime my cellular data was also not working then allot a sudden the personal hotspot icon disappeared from my settings.
    Has anyone faced a problem like this!!!

    No. If you go Settings App > General > Reset > "Erase All Content and Settings", you will have the same iOS that was on the iPhone when you tapped the Erase button. If you believe your iPhone is Jailbroken, then this will not work. If you use iTunes on computer, this will put iPhone to current iOS which is iOS 7.0.2

  • UI Shell :Uncommitted data warning on closing tab

    H experts,
    My JDeveloper version is 11.1.2.1.0.
    I am using UI Shell template in my application. How can i show uncommitted data warning on closing a tab using the close icon (which come with the tab by default) on the top right side.
    Help me to solve this problem by sending valuable comments, links, advises...
    Thanks in advance
    gtg.

    As per http://www.oracle.com/technetwork/issue-archive/2012/12-mar/o22adf-1518265.html , in 11.1.2.1) or later ->
    Access the tab transaction state. Tabs can be marked as having their content changed, in which case they are referred to as dirty.
    A warning dialog box will appear if users or the application try to close these tabs. A tab’s dirty state can be checked and manipulated with the TabContext API.Looks like this is available out of the box.

  • Since last week my date & time have not worked on my 5c. The date & time are constantly wrong. I've shut down, doesn't work. Set it automatically, doesn't work. I don't get texts or calls when it's sleeping. Any suggestions?

    Since last week my date & time have not worked on my 5c. The date & time are constantly wrong. I've shut down, doesn't work. Set it automatically, doesn't work. I don't get texts or calls when it's sleeping. Any suggestions?

    try a reset.
    Hold the home & power buttons down simultaneously until you see the Apple logo appear.
    Note: no data will be lost.

Maybe you are looking for