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

Similar Messages

  • Bounded Task Flow Navigation Issue

    Hi,
    I'm using Studio Edition Version 11.1.2.3.0.
    I have a main page with a panel splitter. The right side has a dynamic region and the left side contains links to launch a bounded task flow in the dynamic region.
    One of my task flows is a search form and has a call to another bounded task flow when I click on a command link in the table.
    My issue is if I want to return to search form, clicking on the dynamic task flow link doesn't render the search page.
    I have a bean for my dynamic task flow and the taskFlowId variable shows the url of my search page, but the navigation does not happen.
    Is there something that needs to be reset for this to work?

    Hi Frank,
    Sorry about being vague.
    I've compiled a little project using the hr sample db that duplicates my issue.
    Let me know if you have issues downloading it.
    I can provide the project via email if needed.
    Change your db connection to whatever you've defined for the hr db. I have mine running on a slave machine.
    If you click on "Search", search for an employee and then load the employee details by clicking on the employee id link in the table, the region navigates to the employee details page.
    However, if you click on "Search" again, the region does not navigate to the search page, it stays on the employee details page.
    I'm hoping it's just a setting in the properties for the task flow or the page fragment, but I can pen some code if needed.
    [Test Project Folder|https://docs.google.com/folder/d/0B5sTioNqfODuNWpfd3l3cEZfNU0/edit]

  • How to invoke task flow navigation after closing inline popup?

    Using JDev 11.1.1.3; I have a commandButton that currently executes task flow navigation when pressed. I need however to invoke an inline popup from the button press before executing (conditionally) the task flow navigation. The Action setting on the button then needs to be removed, but it's not clear where to reinstate it. I have the button executing some managed bean code, which conditionally invokes the inline popup, and when the popup (contains af:dialog) is closed, I have some more managed bean code that determines whether the task flow navigation should occur or not. What I need to know is how to fire off the Action from the managed bean. Any suggestions?
    Thanks,

    1. To add to Timo's solution:
    you can call those code from DialogListener like:
    public void dLstnr(DialogEvent dle){
    if("ok".equalsIgnoreCase(dle.getOutcome().toString())){
    FacesContext context = FacesContext.getCurrentInstance();
    NavigationHandler nh = context.getApplication().getNavigationHandler();
    System.out.println("1");
    nh.handleNavigation(context, "", "go");
    2. As another solution:'
    you can have custom buttons and on one of then (say OK or Yes) you can call bean method like this as Action:
    public String actionMethod(){
    // DO YOUR LOGIC
    return "NEXT_TARGET";
    for Other button (say Cancel, NO) just close the popup.
    Amit

  • InputDate Column Filter Date Format Problem

    Hi,
    I have an af:table with filterable columns and some of these columns are based on Timestamp VO attributes.
    When I enter a date filter - either manually or from the associated date picker, the filter is applied correctly using a date format of dd/MM/yyyy.
    However, when the table is subsequently refreshed, the filter value is still present but has been re-formatted to "yyyy-MM-dd hh:mi:ss" format (default format for a Timestamp datatype?). The an error appears in the column filter component - "Error: The date is not in the correct format".
    If I want to retain the filter value across queries, how can this be achieved?
    My table column is defined as follows:
    <af:column sortProperty="#{bindings.ViewDataVO1.hints.LastReadingDate.name}"
                                                   filterable="true" sortable="true"
                                                   headerText="#{bindings.ViewDataVO1.hints.LastReadingDate.label}"
                                                   id="c59"
                                                   rendered='#{bindings.ViewDataVO1.hints.LastReadingDate.displayHint != "Hide"}'
                                                   displayIndex="#{bindings.ViewDataVO1.hints.LastReadingDate.displayHeight}">
                                            <f:facet name="filter">
                                                <af:inputDate value="#{vs.filterCriteria.LastReadingDate}" id="id4">
                                                    <af:convertDateTime
                                                                        pattern="#{bindings.ViewDataVO1.hints.LastReadingDate.format}"/>
                                                </af:inputDate>
                                            </f:facet>
                                            <af:outputText value="#{row.LastReadingDate}" id="ot59">
                                                <af:convertDateTime pattern="#{bindings.ViewDataVO1.hints.LastReadingDate.format}"/>
                                            </af:outputText>
                                        </af:column>I've tried messing with the properties of the af:convertDateTime component, but I'm thinking the problem is in the population of the filter facet inputDate with the vs.filterCriteria.LastReadingDate value. This does not appear to be re-formatted for display - but I don't know how to manipulate this value...
    Or is there a better way? This seems more complicated than it should be...?
    By the way, I am using JDeveloper 11.1.2.1.0 for my development.
    Thanks.

    Does it work fine if you change the pattern for convertDateTime?
    I.e
    change
    <f:facet name="filter">
                                                <af:inputDate value="#{vs.filterCriteria.LastReadingDate}" id="id4">
                                                    <af:convertDateTime
                                                                        pattern="#{bindings.ViewDataVO1.hints.LastReadingDate.format}"/>
                                                </af:inputDate>
                                            </f:facet>to
    <f:facet name="filter">
                                                <af:inputDate value="#{vs.filterCriteria.LastReadingDate}" id="id4">
                                                    <af:convertDateTime
                                                                        pattern="dd/MM/yyyy"/>
                                                </af:inputDate>
                                            </f:facet>-Arun

  • ADF Mobile : task-flow navigation takes at least 500 milliseconds

    hi
    While navigating the CompGallery sample application [1] I noticed that navigation between (what looks like) simple pages/views was rather slow.
    Surely, this can be caused by different things (possibly the device, the app implementation, the framework, ...).
    To review this, I tried to build a simple example application using JDeveloper 11.1.2.3.0
    at http://www.consideringred.com/files/oracle/2012/NavigationTimeMApp-v0.01.zip
    and as APK at http://www.consideringred.com/files/oracle/2012/navigationtimemapp-v0.01.apk
    It has a bounded task-flow with two views that allow to navigate to each other.
    see the screenshot at http://www.consideringred.com/files/oracle/img/2012/navigationtimemapp-20121025.png
    It has a simple TimerBean that allows to get an idea about how much time navigation requires:
    public class TimerBean
         protected long fStartTimerMillis = 0;
         public void startTimer(ActionEvent pActionEvent)
              fStartTimerMillis = System.currentTimeMillis();
         public String getTimerInfo()
              if (fStartTimerMillis == 0)
                   return "no timer info yet";
              long vMillisAgo = System.currentTimeMillis() - fStartTimerMillis;
              return "timer started " + vMillisAgo + " milliseconds ago";
    }It allows for the following scenario (sc1):
    - (sc1-a) start the app
    - (sc1-b) click the "do goSecondView using a_TimerBean" button, which will navigate to "secondView" showing something like "timer started 621 milliseconds ago"
    - (sc1-c) click the "do goFirstView using a_TimerBean" button, which will navigate to "firstView" showing something like "timer started 537 milliseconds ago"
    - (sc1-d) if you care to stop the app, try a "Force stop" on the "App info" via "Apps" in the Android settings
    On my HTC Sensation Z710e I always get at least 500 milliseconds for each navigation.
    questions:
    - (q1) Anyone who wants to try scenario (sc1) and share his observed navigation times?
    - (q2) Which navigation times can be expected for simple navigation in ADF Mobile apps (like in scenario (sc1))?
    - [1] http://docs.oracle.com/cd/E35521_01/doc.111230/e24475/demoapps.htm#BACGDHDJ
    many thanks
    Jan Vervecken

    Thanks for your reply Joe Huang.
    Joe Huang wrote:
    ... Did you change CVM logging settings? ...I have not changed any defaults. If I unzip "navigationtimemapp-v0.01.apk", I find:
    - assets\storage\jvm\lib\cvm.properties having things like "java.debug.enabled=false" and "javascript.debug.enabled=false"
    - assets\storage\jvm\lib\logging.properties having only "level=SEVERE" configurations
    If you refer to something else, please specify.
    - Did you deploy the application in release mode vs. debug mode in the deployment profile? You would want to deploy it in release mode.Looks like the default is debug, which I have used for "navigationtimemapp-v0.01.apk".
    So, I configured on the Android Options the Build Mode as "Release" in the modified example application
    at http://www.consideringred.com/files/oracle/2012/NavigationTimeMApp-v0.02.zip
    and as APK at http://www.consideringred.com/files/oracle/2012/navigationtimemapp-v0.02.apk (now only 8 MB instead of 20 MB)
    But, I don't see a big improvement, maybe about 50 milliseconds improvement per navigation (so, about 450 milliseconds instead of about 500 milliseconds).
    ... so page navigation performance (and overall UI performance) is primarily dictated by JS performance by the web engine on the device. ...How can I determine (in the app) which "JavaScript / web engine" a device uses?
    At the end of the day, the actual performance of your application will be largely dictated by how you access data and the complexity of your screen. ...Sure, but I explicitly avoided those aspects here to have some kind of "base line" behaviour before introducing other complexities (that can slow things down).
    regards
    Jan

  • External table with Date Format

    I have external table and in the file date format is YYYY-MM-DD.
    i want to insert date format mask in the create table command .
    the bleow command is getting created . But it is giving error when i use select command.
    CREATE TABLE XADV.XADV_test_EXT_TABLE
    BPO_START_DATE Date
    ORGANIZATION EXTERNAL
    ( TYPE ORACLE_LOADER
    DEFAULT DIRECTORY XCRM_DASHBOARD
    ACCESS PARAMETERS
    ( RECORDS DELIMITED BY NEWLINE
    FIELDS TERMINATED BY '|^|'
    BPO_START_DATE date 'YYYY-MM-DD'
    LOCATION (XCRM_DASHBOARD:'test.txt')
    REJECT LIMIT UNLIMITED
    NOPARALLEL
    NOMONITORING;
    the error i am getting is in select * from XADV_test_EXT_TABLE
    RA-29913: error in executing ODCIEXTTABLEOPEN callout
    ORA-29400: data cartridge error
    KUP-00554: error encountered while parsing access parameters
    KUP-01005: syntax error: found "minussign": expecting one of: "column, enclosed, exit, (, ltrim, lrtrim, ldrtrim, missing, notrim, optionally, rtrim, reject"
    KUP-01007: at line 3 column 3
    ORA-06512: at "SYS.ORACLE_LOADER", line 19
    regards
    Mani

    shoblock wrote:
    use double quotes instead of single quotesHas nothing to do with the quotes. Issue is field list must be enclosed in parents:
    SQL> CREATE TABLE XADV_test_EXT_TABLE
      2  (
      3  BPO_START_DATE Date
      4  )
      5  ORGANIZATION EXTERNAL
      6  (
      7   TYPE ORACLE_LOADER
      8   DEFAULT DIRECTORY TMP
      9   ACCESS PARAMETERS
    10   (
    11    RECORDS DELIMITED BY NEWLINE
    12    FIELDS TERMINATED BY ','
    13     BPO_START_DATE date "YYYY-MM-DD"
    14   )
    15  LOCATION (TMP:'test.txt')
    16  )
    17  REJECT LIMIT UNLIMITED
    18  NOPARALLEL
    19  NOMONITORING
    20  /
    Table created.
    SQL> select * from XADV_test_EXT_TABLE
      2  /
    select * from XADV_test_EXT_TABLE
    ERROR at line 1:
    ORA-29913: error in executing ODCIEXTTABLEOPEN callout
    ORA-29400: data cartridge error
    KUP-00554: error encountered while parsing access parameters
    KUP-01005: syntax error: found "identifier": expecting one of: "column,
    enclosed, exit, (, ltrim, lrtrim, ldrtrim, missing, notrim, optionally, rtrim,
    reject"
    KUP-01008: the bad identifier was: BPO_START_DATE
    KUP-01007: at line 3 column 4
    ORA-06512: at "SYS.ORACLE_LOADER", line 19
    SQL> drop table XADV_test_EXT_TABLE;
    Table dropped.
    SQL> CREATE TABLE XADV_test_EXT_TABLE
      2  (
      3  BPO_START_DATE Date
      4  )
      5  ORGANIZATION EXTERNAL
      6  (
      7   TYPE ORACLE_LOADER
      8   DEFAULT DIRECTORY TMP
      9   ACCESS PARAMETERS
    10   (
    11    RECORDS DELIMITED BY NEWLINE
    12    FIELDS TERMINATED BY ','
    13    (
    14     BPO_START_DATE date 'YYYY-MM-DD'
    15    )
    16   )
    17  LOCATION (TMP:'test.txt')
    18  )
    19  REJECT LIMIT UNLIMITED
    20  NOPARALLEL
    21  NOMONITORING
    22  /
    Table created.
    SQL> select * from XADV_test_EXT_TABLE
      2  /
    BPO_START
    19-NOV-08
    SQL> SY.

  • Trying to access a previously released task flow binding issue

    I am using Jdeveloper 11g R2 (11.1.2.4) & weblogic 10 G
    In my pages I use JSF & Facelet
    I get this message in my console
      ADFc: Trying to access a previously released task flow binding 'somename'
    It is not stoper one but it is displayed in weblogic log as error, Is there any way to fix this?
    Thanks
    mohsen 

    mohsen,
    Track what the application is doing when you leave the task flow. May be you try to access the task flow of one of its parameters in a bean method.  This would result in such an error.
    Timo

  • Error saving data in task flow

    Hello all,
    I am at my wits end with this issue! Thanks in advance.
    I have four tables required in a registration process each dependent on the preceding
    Individual -(1 to 1)-> Client -(1 to *)-> ClientService -(1 to *)-> ServiceReview
    During the registration at least one of each record must be created. Code was written to ensure the tables are persisted in the correct order and that the primary keys are passed to their child tables.
    The issue is that all tables are perssisted correctly when using the Model Tester and when I use a single fragment with multiple tabs. However, when the exact process is attempted in a train an error is thrown that starts out with "oracle.jbo.TxnValException: JBO-27023: Failed to validate all rows in a transaction." and ends with "oracle.jbo.NoObjException: JBO-25003: Object ClientCareService of type ApplicationModule is not found."
    I have been stuck at this for the past two weeks and would really appreciate some assitance. The DML statement displayed below is the insert statement for which it complains there is a validation error. However, I have gone over all the data elements and confirmed all is well. Also as I mentioned, this works when using the Model tester.
    I am using: Jdeveloper Studio Edition Version 11.1.2.0.0 Build JDEVADF_11.1.2.0.0_GENERIC_110531.1615.6017
    Detailed log of insert DML
    <OracleSQLBuilderImpl> <doEntityDML> [2542] BEGIN INSERT INTO CLIENT_SERVICE(ID,SERVICE,CLIENT,APPLICATION_DATE,CREATED_BY,CREATED_ON,MODIFIED_BY,MODIFIED_ON,OFFICE,OLD_QUANTITY) VALUES (:1,:2,:3,:4,:5,:6,:7,:8,:9,:10) RETURNING ID INTO :11; END;
    <ADFLogger> <begin> Entity DML
    <OracleSQLBuilderImpl> <bindInsertStatement> [2543] Insert binding null of type 2 for 1
    <JDBCInteract> <println> [2544] cStmt.setNull(1, 2); /*Id*/ // JBO-JDBC-INTERACT
    <OracleSQLBuilderImpl> <bindInsertStatement> [2545] Insert binding param 2: 3
    <JDBCInteract> <println> [2546] // ERROR: Unknown data type java.lang.Long // JBO-JDBC-INTERACT
    <JDBCInteract> <println> [2547] cStmt.setObject(2, "3"); /*Service*/ // JBO-JDBC-INTERACT
    <OracleSQLBuilderImpl> <bindInsertStatement> [2548] Insert binding param 3: 10000000148
    <JDBCInteract> <println> [2549] // ERROR: Unknown data type java.lang.Long // JBO-JDBC-INTERACT
    <JDBCInteract> <println> [2550] cStmt.setObject(3, "10000000148"); /*Client*/ // JBO-JDBC-INTERACT
    <OracleSQLBuilderImpl> <bindInsertStatement> [2551] Insert binding param 4: 2011-08-18
    <JDBCInteract> <println> [2552] // ERROR: Unknown data type oracle.jbo.domain.Date // JBO-JDBC-INTERACT
    <JDBCInteract> <println> [2553] cStmt.setObject(4, "2011-08-18"); /*ApplicationDate*/ // JBO-JDBC-INTERACT
    <OracleSQLBuilderImpl> <bindInsertStatement> [2554] Insert binding param 5: anonymous
    <JDBCInteract> <println> [2555] cStmt.setObject(5, "anonymous"); /*CreatedBy*/ // JBO-JDBC-INTERACT
    <OracleSQLBuilderImpl> <bindInsertStatement> [2556] Insert binding param 6: 2011-08-18 10:21:23.0
    <JDBCInteract> <println> [2557] // ERROR: Unknown data type oracle.jbo.domain.Date // JBO-JDBC-INTERACT
    <JDBCInteract> <println> [2558] cStmt.setObject(6, "2011-08-18 10:21:23.0"); /*CreatedOn*/ // JBO-JDBC-INTERACT
    <OracleSQLBuilderImpl> <bindInsertStatement> [2559] Insert binding param 7: anonymous
    <JDBCInteract> <println> [2560] cStmt.setObject(7, "anonymous"); /*ModifiedBy*/ // JBO-JDBC-INTERACT
    <OracleSQLBuilderImpl> <bindInsertStatement> [2561] Insert binding param 8: 2011-08-18 10:21:23.0
    <JDBCInteract> <println> [2562] // ERROR: Unknown data type oracle.jbo.domain.Date // JBO-JDBC-INTERACT
    <JDBCInteract> <println> [2563] cStmt.setObject(8, "2011-08-18 10:21:23.0"); /*ModifiedOn*/ // JBO-JDBC-INTERACT
    <OracleSQLBuilderImpl> <bindInsertStatement> [2564] Insert binding param 9: 1
    <JDBCInteract> <println> [2565] // ERROR: Unknown data type java.lang.Long // JBO-JDBC-INTERACT
    <JDBCInteract> <println> [2566] cStmt.setObject(9, "1"); /*Office*/ // JBO-JDBC-INTERACT
    <OracleSQLBuilderImpl> <bindInsertStatement> [2567] Insert binding param 10: 0
    <JDBCInteract> <println> [2568] // ERROR: Unknown data type java.lang.Long // JBO-JDBC-INTERACT
    <JDBCInteract> <println> [2569] cStmt.setObject(10, "0"); /*OldQuantity*/ // JBO-JDBC-INTERACT
    <JDBCInteract> <println> [2570] cStmt.registerOutParameter(11, 2); // JBO-JDBC-INTERACT
    <JDBCInteract> <println> [2571] cStmt.execute(); // JBO-JDBC-INTERACT
    Top of the Stack Trace
    [2671] oracle.jbo.TxnValException: JBO-27023: Failed to validate all rows in a transaction.
         at oracle.jbo.server.DBTransactionImpl.validate(DBTransactionImpl.java:4563)
         at oracle.jbo.server.DBTransactionImpl.commitInternal(DBTransactionImpl.java:2008)
         at oracle.jbo.server.DBTransactionImpl.commit(DBTransactionImpl.java:2352)
         at oracle.adf.model.bc4j.DCJboDataControl.commitTransaction(DCJboDataControl.java:1590)
    Second Section of the Stack Trace
    ## Detail 0 ##
    oracle.jbo.RowValException: JBO-27024: Failed to validate a row with key oracle.jbo.Key[130088 ] in ClientServiceEO
         at oracle.jbo.server.EntityDefImpl.validate(EntityDefImpl.java:3116)
         at oracle.jbo.server.EntityCache.validate(EntityCache.java:3599)
         at oracle.jbo.server.EntityImpl.validateEntity(EntityImpl.java:2374)
    Last Section of the Stack Trace
    oracle.jbo.NoObjException: JBO-25003: Object ClientCareService of type ApplicationModule is not found.
         at oracle.jbo.server.ApplicationModuleImpl.findViewObject(ApplicationModuleImpl.java:3367)
         at oracle.jbo.server.EntityImpl.fetchExprValueSupplierOverrideRow(EntityImpl.java:609)
         at oracle.jbo.server.EntityImpl$ViewRowRef.getViewRow(EntityImpl.java:13242)
         at oracle.jbo.server.EntityImpl.getExprValueOverrideViewRow(EntityImpl.java:586)

    Hi..
    Hope following links may helpfully
    11g: NoObjException: JBO-25003: Object of type Appliction module not found
    http://blogs.oracle.com/shay/entry/common_pitfalls_when_deploying
    http://software.itags.org/enterprise-application/42401/

  • SSRS date format in Expression Editor issue

    Hi,
    In the SSRS Report I am using a date field in the expression(=Fields!StartDate.Value), it returns the values in 'mm:dd:yyyy hh:mm:ss'. I dont want the hh:mm:ss part, I want only mm:dd:yyyy. is it possible using the expression editor with the built in SSRS functions?
    Thanks,

    Hi Mahasweta,
    Thanks a lot again ......=formatdatetime(Fields!StartDate.Value,2) works .......
    Please Note : While using format(Fields!StartDate.Value,"mm/dd/yyyy"), i didnt get the 'mm' part, there was '00', rest dd and yyyy works file. Where as =formatdatetime(Fields!StartDate.Value,2) works perfectly.
    In the =formatdatetime(Fields!StartDate.Value,2) expression, what does this '2' stands for? where shall i get more information....

  • Date format from J_1IEXCTAX table...

    Dear All,
    DATA dt type d.
    dt1 = sy-datum.
           SELECT SINGLE RATE ECSRATE J_1IADDRAT1 FROM J_1IEXCTAX INTO
                  (ITAB-RATE,ITAB-ECSRATE,ITAB-J_1IADDRAT1) WHERE J_1ICHID = ITAB-J_1ICHID AND
                                                                  J_1IEXCIND = ITAB-J_1IEXCICU AND
                                                                  ( VALIDFROM >= dt1 AND VALIDTO <= dt1 ).
    Where as in table J_1IEXCTAX date format is different and i am not getting output. VALIDFROM and VALIDTO fields is in text.
    How to get data ? waiting for reply.
    Yusuf
    Edited by: YUSUF BHORI on Mar 4, 2010 12:40 PM
    Edited by: YUSUF BHORI on Mar 4, 2010 12:41 PM

    There are different Convertions required for different applications.
    You can check this at domain level of field.
    Check this from SAP help.
    Conversion Routine
    Conversion takes place when converting the contents of a screen field from display format to SAP-internal format
    and vice versa and when outputting with the ABAP statement WRITE, depending on the data type of the field.
    If standard conversion is not suitable, it can be overridden by specifying a conversion routine in the underlying domain.
    A conversion routine is identified by its five-place name and is stored as a group of two function modules.
    The function modules have a fixed naming convention. The following function modules are assigned to
    conversion routine xxxxx:
    CONVERSION_EXIT_xxxxx_INPUT
    CONVERSION_EXIT_xxxxx_OUTPUT
    The INPUT module performs the conversion from display format to internal format. The OUTPUT module performs the
    conversion from internal format to display format.
    If a screen field refers to a domain with a conversion routine, this conversion routine is executed automatically each
    time an entry is made in this screen field or when values are displayed with this screen field.

  • ExecuteWithParams in adf Task flow is not executing

    Hi,
    I have a generic page fragment(Task Flow) which accepts a parameter from the calling page, when I use it as a Region.
    Based on the value of the parameter passed I have to filter the table data or I have to execute a ViewObject .
    For that I used a bind variable in the View Object.
    And I dragged the ExecuteWithParams from DataControl to the Fragment defenition(TaskFlow).
    <method-call id="ExecuteWithParams">
          <method>#{bindings.ExecuteWithParams.execute}</method>
          <outcome id="__90">
            <fixed-outcome>ExecuteWithParams</fixed-outcome>
          </outcome>Now the Issue I am facing is when I run the page, the jsff page is returning as empty. It is showing a message like "No data to display"
    Also the Method call ExecuteWithParams is showing a warning that bindings is not known.
    Studio Edition Version 11.1.1.2.0
    Build JDEVADF_11.1.1.2.0_GENERIC_091029.2229.5536
    Please Help....
    -Ranjith

    Hi Arun,
    I set the ExecutewithPrams as the default Activity, And I am getting the pageFlowScope parameter in the task flow, but while executing the execute with param I am getting a No data to display message in my table
    here is my task flow
    <?xml version="1.0" encoding="UTF-8" ?>
    <adfc-config xmlns="http://xmlns.oracle.com/adf/controller" version="1.2">
      <task-flow-definition id="Test_definition">
        <default-activity id="__1">ExecuteWithParams</default-activity>
        <transaction id="__35">
          <new-transaction/>
        </transaction>
        <input-parameter-definition id="__21">
          <name id="__22">pCode</name>
          <value>#{pageFlowScope.pCode}</value>
          <class>java.lang.String</class>
        </input-parameter-definition>
        <input-parameter-definition id="__23">
          <name id="__24">pLabel</name>
          <value>#{pageFlowScope.pLabel}</value>
          <class>java.lang.String</class>
        </input-parameter-definition>
        <managed-bean id="__27">
          <managed-bean-name id="__25">TestCommonBean</managed-bean-name>
          <managed-bean-class>view.bean.TestCommonBean</managed-bean-class>
          <managed-bean-scope id="__26">request</managed-bean-scope>
        </managed-bean>
        <view id="TestCommon">
          <page>/TestCommon.jsff</page>
        </view>
        <method-call id="ExecuteWithParams">
          <method>#{bindings.ExecuteWithParams.execute}</method>
          <return-value id="__36">true</return-value>
          <outcome id="__7">
            <fixed-outcome>ExecuteWithParams</fixed-outcome>
          </outcome>
        </method-call>
        <task-flow-return id="rollback">
          <outcome id="__18">
            <name>rollback</name>
            <rollback/>
          </outcome>
        </task-flow-return>
        <task-flow-return id="commit">
          <outcome id="__19">
            <name>commit</name>
            <commit/>
          </outcome>
        </task-flow-return>
        <control-flow-rule id="__8">
          <from-activity-id id="__9">ExecuteWithParams</from-activity-id>
          <control-flow-case id="__11">
            <from-outcome id="__12">ExecuteWithParams</from-outcome>
            <to-activity-id id="__10">TestCommon</to-activity-id>
          </control-flow-case>
        </control-flow-rule>
        <control-flow-rule id="__20">
          <from-activity-id id="__28">TestCommon</from-activity-id>
          <control-flow-case id="__30">
            <from-outcome id="__33">commit</from-outcome>
            <to-activity-id id="__29">commit</to-activity-id>
          </control-flow-case>
          <control-flow-case id="__32">
            <from-outcome id="__34">rollback</from-outcome>
            <to-activity-id id="__31">rollback</to-activity-id>
          </control-flow-case>
        </control-flow-rule>
        <use-page-fragments/>
      </task-flow-definition>
    </adfc-config>

  • Date format in IDT

    Hi,
    I have an universe based on Teradata. I created a filter in IDT and it's like this :
    @Select(Sales\Calendar Day) =  @Prompt('Date:','D',,Mono,)
    When I use this filter and execute a test query in IDT, the date format is shown different in these 2:
    Enter a value : 10.Feb.2015
    Date : 10.Feb .2015 00:00:00
    I formatted the Calendar Day dimension and I can see it as 'mm/dd/yyyy' in the report result. That's fine.
    However, I want to do the same for the prompt screen in IDT too. How can I do this?
    The requirement is, I use the same filter for SAP Lumira and it does not provide a calendar component for date selection.
    So, the format of date to pass to universe is not clear.
    Thank you!

    Hi
    Try to change the format Cal day using below options, and then check the filter date format is showing as per your requirement
    predefined function TO_CHAR
    Use the custom display format option.
    Please find the below link for more info
    BI4.1 Business Layer Enhancements - Create Display Format

  • Problem date format

    Hi Guru's
    I have a problem with a field coming from a file upload in my internal table wich should be insert in a system table in date format.
    When i do my test to check if the field has a correct date format I always receive the error: "Valid_to_date is invalid".
    the field in my csv file has this format 02.03.2009.
    I've written this code :
    TYPES: BEGIN OF t_segm2,
       kokrs    TYPE kokrs,
        prctr   TYPE prctr,
        datbi   TYPE datbi,
        datab   TYPE datab,
    END OF t_segm2.
    DATA:
              wa_cepc_segm TYPE t_segm2,
               i_cepc_segm TYPE STANDARD TABLE OF t_segm2,
              it_datatab TYPE STANDARD TABLE OF string,
              wa_datatab TYPE string,
    LOOP AT it_datatab INTO wa_datatab.
        SPLIT wa_datatab at ';' into
                              wa_cepc_segm-kokrs
                              wa_cepc_segm-prctr
                              wa_cepc_segm-datbi
                              wa_cepc_segm-datab.
        CALL FUNCTION 'DATE_CHECK_PLAUSIBILITY'
          EXPORTING
            date                      = wa_cepc_segm-datbi
          EXCEPTIONS
            plausibility_check_failed = 1
            OTHERS                    = 2.
        IF sy-subrc <> 0.
          WRITE:/ 'Valid To Date invalid'.
        ENDIF.
        append wa_cepc_segm to i_cepc_segm.
        CLEAR wa_cepc_segm.
      endloop.
    Anyone can help me please?
    Regards,
    Mohamed.

    Everything seems fine with the code. I tried it myself and I got strange behaviour.
    I used this code:
    data: datbi TYPE datbi.
    fdate1 = '02.03.2009'.
    concatenate fdate1+6(4) fdate1+3(2) fdate1(2) into datbi.
    CALL FUNCTION 'DATE_CHECK_PLAUSIBILITY'
          EXPORTING
            date                      = datbi
          EXCEPTIONS
            plausibility_check_failed = 1
            OTHERS                    = 2.
        if sy-subrc ne 0.
          write 'Wrong date'.
    "    else.
    "      write 'Date ok'.
        endif.
    When I leave ELSE block commented, the FM returns sy-subrc = 0 and doesn't display 'Wrong date' message. So this works as we want. But when I debug it, I can clearly see that processing goes inside IF block and tries to write the message out (even thought the condition is not fullfilled). But anyhow the message doens't appear on the screen. Strange.
    Now when I uncomment the ELSE block, the processing seems to work fine. Don't know why it is happening but if we leave entire IF,ELSE it works fine. So try this solution. Everything else works fine.
    Regards
    Marcin
    Right now I tried to see if this IF block really changes some data object using:
    data var type i.
    call fm....
    if sy-subrc ne 0.
       var = 1.
    endif.
    write var.
    And I could see that, thought processing is passed inside the block it doesn't change VAR contents. So it stays 0. But just right after it I run the program again to show it to my collegue and the processsing didn't go inside anymore. It must be something with debugger then. My collegue says once he spent some time investigating the same problem and finally he gave up. What the debugger was showing was different from what it was in fact calculating. Fortunatelly the calculation here doesn't change, just debugger is trying to cheat us showing what he is really NOT doing;)
    Edited by: Marcin Pciak on May 8, 2009 9:31 AM

  • Issues with table filter during navigation between task-flows

    Hello everyone,
    I'm looking for a workaround to resolve two issues about the table filter. They are:
    1) If I type something in a filter and I change tha page (in a different task flow) when I return on the first page there is the previous search plus the string "%*". Here the video example: http://screencast.com/t/FbVenZGm
    2) In the same scenario, if I click enter on this filter the system returns this message error: "Attempt to set a parameter name that does not occur in the SQL: vc_temp_1 ". Here the video example: http://screencast.com/t/yMs6rNDF
    I have found something interesting in this thread: task-flow table filtering behaviour related to bug 8602867
    Anyway, I have implemented the solution reported in this document: http://www.oracle.com/technetwork/developer-tools/adf/learnmore/april2012-otn-harvest-1609383.pdf (pp. 8-11). This solution works fine with my master table, but it doesn't with the detail table.
    Have you any idea for this kind of behavior?
    Thanks in advance,
    Baduel

    Sudipto,
    each table has a binding on a page fragment in this way:
    <af:table [...] binding="#{backingBeanScope.MyBackingBean.masterTable}">
    <af:table [...] binding="#{backingBeanScope.MyBackingBean.detailTable}">
    In the pageDef I have two methods, each one of the VOImpl class related to the table:
    <methodAction IterBinding="MasterTableVO1Iterator"
    id="clearOutstandingImplicitViewCriteriaMaster"
    RequiresUpdateModel="true" Action="invokeMethod"
    MethodName="clearOutstandingImplicitViewCriteria"
    IsViewObjectMethod="true" DataControl="MyDataControl"
    InstanceName="MyDataControl.MasterTableVO1"/>
    <methodAction IterBinding="DetailTableVO2Iterator"
    id="clearOutstandingImplicitViewCriteriaDetail"
    RequiresUpdateModel="true" Action="invokeMethod"
    MethodName="clearOutstandingImplicitViewCriteria"
    IsViewObjectMethod="true" DataControl="MyDataControl"
    InstanceName="MyDataControl.DetailTableVO1"/>
    MyBackingBean class:
    public class MyBackingBean {
    private RichTable masterTable;
    private RichTable detailTable;
    /*getter methods here*/
    public void setMasterTable(RichTable masterTable) {
    this.masterTable = masterTable;
    resetTableFilter(1);
    public void setDetailTable(RichTable detailTable) {
    this.detailTable = detailTable;
    resetTableFilter(2);
    /*This method returns the phase id */
    private String printCurrenPhaseID() { 
    FacesContext fctx = FacesContext.getCurrentInstance();
    Map requestMap = fctx.getExternalContext().getRequestMap();
    PhaseId currentPhase=(PhaseId)requestMap.get("oracle.adfinternal.view.faces.lifecycle.CURRENT_PHASE_ID");
    // System.out.println("currentPhase = "+currentPhase);
    return currentPhase.toString();
    public void resetTableFilter(int tab) {
    String phase = printCurrenPhaseID();
    FilterableQueryDescriptor queryDescriptor;
    if(phase.startsWith("RENDER_RESPONSE")) { // Only in this phase the binding is ready
    switch(tab) {
    case 1:
    queryDescriptor = (FilterableQueryDescriptor) getMasterTable().getFilterModel();
    if (queryDescriptor != null && queryDescriptor.getFilterCriteria() != null) {
    queryDescriptor.getFilterCriteria().clear();
    // PPR refresh a jsf component
    AdfFacesContext.getCurrentInstance().addPartialTarget(getMasterTable());
    break;
    case 2:
    queryDescriptor = (FilterableQueryDescriptor) getDetailTable().getFilterModel();
    if (queryDescriptor != null && queryDescriptor.getFilterCriteria() != null) {
    queryDescriptor.getFilterCriteria().clear();
    // PPR refresh a jsf component
    AdfFacesContext.getCurrentInstance().addPartialTarget(getDetailTable());
    break;
    default: return;
    invokeClearViewCriteria(tab);
    public BindingContainer getBindings() {
    return BindingContext.getCurrent().getCurrentBindingsEntry();
    /* This method invokes the exposed method in my fragment */
    public void invokeClearViewCriteria(int tab) {
    BindingContainer bindings = getBindings();
    OperationBinding operationBinding;
    if(tab == 1)
    operationBinding = bindings.getOperationBinding("clearOutstandingImplicitViewCriteriaMaster");
    else if(tab == 2)
    operationBinding = bindings.getOperationBinding("clearOutstandingImplicitViewCriteriaDetail");
    else
    return;
    if(operationBinding != null) {
    operationBinding.execute();
    Finally I have two identical exposed methods in the VOImpl classes of the tables:
    public void clearOutstandingImplicitViewCriteria() {
    // we only want to remove the stuff that was added though the table
    //filter (or a default search form)
    // "__ImplicitViewCriteria__" is the magic name for this VC
    ViewCriteria vcDefault = this.getViewCriteria(ViewCriteriaManager.IMPLICIT_VIEW_CRITERIA_NAME);
    if (vcDefault != null) {
    //Clear the stored values
    vcDefault.clear();
    //And refresh the collection
    this.executeQuery();
    Please note that this workaround works fine with my master table, but i does not with the detail table.
    Thanks again.
    Baduel

  • Can I filter the table being profiled in the Data Profiling task, or know of a work around? SSIS2008r2

    Hi,
    I import several files into a staging table.  Inside a foreach loop, after the data flow task I have a Data Profiling task that profiles the table so we can give feedback to those who sent us the file.
    I just relalized that after the first loop, there is more than one file in the staging table, hence more than one file is being profiled.
    At first glance it doesnt appear I can add a "Where" clause to the table.  I do have a column that states which file the data came from, but with only being able to profile a view or table, I can't filter.
    Anyone have any ideas?
    Mike

    Catching outliers seeing how much of what kind of data exist, deviations, distribution, you get some sort of a historgram in essence with the Data Profiling.
    It is normally a preamble to doing data ingress (or egress) into a new target.
    Now patterns are in Fuzzy Lookups/matching or grouping. Having RegEx used is hard in SSIS! I admit, I proposed to have it included into SSIS VNext. I remember there was a component or two on CodePlex:
    http://ssisctc.codeplex.com/ see if any makes sense, I recall I tried one just out for fun.
    Arthur My Blog

Maybe you are looking for