Parameter problem (Date)

Hi experts
I use developer and oracle 10 g database
work on oracle RBA ERP R12

My problem in date

If I have a transaction July 31, 2010, but it doesnot show when I gave my parameter as values

: P_DATE_FROM = JULY 1, 2010
: P_DATE_TO = JULY 31, 2010

If the passage of a parameter value as this

: P_DATE_FROM = JULY 1, 2010
: P_DATE_TO = AUGUST 1, 2010

July 31, 2010 transaction then shows...

my code
SELECT MMT.TRANSACTION_DATE,
     TRIM('-' FROM (ACC.SEGMENT1 || '-' || ACC.SEGMENT2 || '-' || ACC.SEGMENT3 || '-' ||
     ACC.SEGMENT4 || '-' || ACC.SEGMENT5 || '-' || ACC.SEGMENT6 || '-' ||
     ACC.SEGMENT7 || '-' || ACC.SEGMENT8 || '-' || ACC.SEGMENT9 || '-' ||
     ACC.SEGMENT10 || '-' || ACC.SEGMENT11 || '-' || ACC.SEGMENT12)) ACCOUNT_CODE,
     APPS.GL_FLEXFIELDS_PKG.GET_CONCAT_DESCRIPTION(ACC.CHART_OF_ACCOUNTS_ID, ACC.CODE_COMBINATION_ID, 'Y') ACCOUNT_DESCRIPTION,
     MCB.SEGMENT1 || '-' || MCB.SEGMENT2 || '-' || MCB.SEGMENT3 ITEM_CATEGORY,
     MSIB.SEGMENT2 ITEM_CODE, MSIB.DESCRIPTION ITEM_DESCRIPTION, 
     SUM(MMT.TRANSACTION_QUANTITY) PRIMARY_QUANTITY,
     SUM(NVL(ACC.ACCOUNTED_DR, 0) - NVL(ACC.ACCOUNTED_CR, 0)) AMOUNT
FROM 
     (
          SELECT SOURCE_ID_INT_1, ENTITY_ID
          FROM XLA_TRANSACTION_ENTITIES_UPG 
          WHERE APPLICATION_ID IN (555, 707)
          AND ENTITY_CODE IN ('MTL_ACCOUNTING_EVENTS', 'INVENTORY')
     ) XTE, 
     (
          SELECT EVENT_ID, AE_HEADER_ID
          FROM XLA_AE_HEADERS
          WHERE EVENT_TYPE_CODE IN 
               ('MISC_RECEIPT', 'MISC_ISSUE', 'MOVE_ORDER_ISSUE', 'MOVE_ORDER_XFER', 'MISC_RCPT', 'MOVE_ORDER_TXFR')
     ) XAH, 
     (
          SELECT XAL.CODE_COMBINATION_ID, XAL.AE_HEADER_ID, GCC.CHART_OF_ACCOUNTS_ID,
          XAL.ACCOUNTED_DR, XAL.ACCOUNTED_CR,
          GCC.SEGMENT1, GCC.SEGMENT2, GCC.SEGMENT3, GCC.SEGMENT4, GCC.SEGMENT5, 
          GCC.SEGMENT6, GCC.SEGMENT7, GCC.SEGMENT8, GCC.SEGMENT9, GCC.SEGMENT10, 
          GCC.SEGMENT11, GCC.SEGMENT12, GCC.SEGMENT13, GCC.SEGMENT14, GCC.SEGMENT15
          FROM XLA_AE_LINES XAL, GL_CODE_COMBINATIONS GCC
          WHERE GCC.CODE_COMBINATION_ID = XAL.CODE_COMBINATION_ID
          AND NVL(GCC.SEGMENT1, '%') BETWEEN NVL(:P_SEG1_FROM, NVL(GCC.SEGMENT1, '%')) 
              AND NVL(:P_SEG1_TO, NVL(GCC.SEGMENT1, '%'))
          AND NVL(GCC.SEGMENT2, '%') BETWEEN NVL(:P_SEG2_FROM, NVL(GCC.SEGMENT2, '%')) 
              AND NVL(:P_SEG2_TO, NVL(GCC.SEGMENT2, '%'))
          AND NVL(GCC.SEGMENT3, '%') BETWEEN NVL(:P_SEG3_FROM, NVL(GCC.SEGMENT3, '%')) 
              AND NVL(:P_SEG3_TO, NVL(GCC.SEGMENT3, '%'))
          AND NVL(GCC.SEGMENT4, '%') BETWEEN NVL(:P_SEG4_FROM, NVL(GCC.SEGMENT4, '%')) 
              AND NVL(:P_SEG4_TO, NVL(GCC.SEGMENT4, '%'))
          AND NVL(GCC.SEGMENT5, '%') BETWEEN NVL(:P_SEG5_FROM, NVL(GCC.SEGMENT5, '%')) 
              AND NVL(:P_SEG5_TO, NVL(GCC.SEGMENT5, '%'))
          AND NVL(GCC.SEGMENT6, '%') BETWEEN NVL(:P_SEG6_FROM, NVL(GCC.SEGMENT6, '%')) 
              AND NVL(:P_SEG6_TO, NVL(GCC.SEGMENT6, '%'))
          AND NVL(GCC.SEGMENT7, '%') BETWEEN NVL(:P_SEG7_FROM, NVL(GCC.SEGMENT7, '%')) 
              AND NVL(:P_SEG7_TO, NVL(GCC.SEGMENT7, '%'))
          AND NVL(GCC.SEGMENT8, '%') BETWEEN NVL(:P_SEG8_FROM, NVL(GCC.SEGMENT8, '%')) 
              AND NVL(:P_SEG8_TO, NVL(GCC.SEGMENT8, '%'))
          AND NVL(GCC.SEGMENT9, '%') BETWEEN NVL(:P_SEG9_FROM, NVL(GCC.SEGMENT9, '%')) 
              AND NVL(:P_SEG9_TO, NVL(GCC.SEGMENT9, '%'))
          AND NVL(GCC.SEGMENT10, '%') BETWEEN NVL(:P_SEG10_FROM, NVL(GCC.SEGMENT10, '%')) 
              AND NVL(:P_SEG10_TO, NVL(GCC.SEGMENT10, '%'))
          /*AND NVL(GCC.SEGMENT11, '%') BETWEEN NVL(:P_SEG11_FROM, NVL(GCC.SEGMENT11, '%')) 
              AND NVL(:P_SEG11_TO, NVL(GCC.SEGMENT11, '%'))
          AND NVL(GCC.SEGMENT12, '%') BETWEEN NVL(:P_SEG12_FROM, NVL(GCC.SEGMENT12, '%')) 
              AND NVL(:P_SEG12_TO, NVL(GCC.SEGMENT12, '%'))
          AND NVL(GCC.SEGMENT13, '%') BETWEEN NVL(:P_SEG13_FROM, NVL(GCC.SEGMENT13, '%')) 
              AND NVL(:P_SEG13_TO, NVL(GCC.SEGMENT13, '%'))
          AND NVL(GCC.SEGMENT14, '%') BETWEEN NVL(:P_SEG14_FROM, NVL(GCC.SEGMENT14, '%')) 
              AND NVL(:P_SEG14_TO, NVL(GCC.SEGMENT14, '%'))
          AND NVL(GCC.SEGMENT15, '%') BETWEEN NVL(:P_SEG15_FROM, NVL(GCC.SEGMENT15, '%')) 
              AND NVL(:P_SEG15_TO, NVL(GCC.SEGMENT15, '%'))*/
     ) ACC,
     MTL_MATERIAL_TRANSACTIONS MMT, XLA_EVENTS XE, MTL_SYSTEM_ITEMS_B MSIB, 
     MTL_ITEM_CATEGORIES MIC, MTL_CATEGORIES_B MCB, MTL_CATEGORY_SETS MCS
WHERE 
     XTE.SOURCE_ID_INT_1 = MMT.TRANSACTION_ID
     AND XTE.ENTITY_ID = XE.ENTITY_ID
     AND XE.EVENT_ID = XAH.EVENT_ID
     AND XAH.AE_HEADER_ID = ACC.AE_HEADER_ID
     AND MMT.INVENTORY_ITEM_ID = MSIB.INVENTORY_ITEM_ID
     AND MMT.ORGANIZATION_ID = MSIB.ORGANIZATION_ID
     AND MMT.INVENTORY_ITEM_ID = MIC.INVENTORY_ITEM_ID
     AND MMT.ORGANIZATION_ID = MIC.ORGANIZATION_ID
     AND MIC.CATEGORY_ID = MCB.CATEGORY_ID
     AND MIC.CATEGORY_SET_ID = MCS.CATEGORY_SET_ID
     AND UPPER(MCS.CATEGORY_SET_NAME) LIKE '%IIL%INVENTORY%'
     AND MMT.TRANSACTION_DATE BETWEEN NVL(:P_DATE_FROM, '01-JAN-1000') AND NVL(:P_DATE_TO, '31-DEC-4712')
     --AND NVL(MSIB.SEGMENT2, '%%') BETWEEN NVL(:P_ITEM_FROM, NVL(MSIB.SEGMENT2, '%%')) 
     --     AND NVL(:P_ITEM_TO, NVL(MSIB.SEGMENT2, '%%'))
GROUP BY MMT.TRANSACTION_DATE,
     TRIM('-' FROM (ACC.SEGMENT1 || '-' || ACC.SEGMENT2 || '-' || ACC.SEGMENT3 || '-' ||
     ACC.SEGMENT4 || '-' || ACC.SEGMENT5 || '-' || ACC.SEGMENT6 || '-' ||
     ACC.SEGMENT7 || '-' || ACC.SEGMENT8 || '-' || ACC.SEGMENT9 || '-' ||
     ACC.SEGMENT10 || '-' || ACC.SEGMENT11 || '-' || ACC.SEGMENT12)),
     APPS.GL_FLEXFIELDS_PKG.GET_CONCAT_DESCRIPTION(ACC.CHART_OF_ACCOUNTS_ID, ACC.CODE_COMBINATION_ID, 'Y'),
     MCB.SEGMENT1 || '-' || MCB.SEGMENT2 || '-' || MCB.SEGMENT3,
     MSIB.SEGMENT2, MSIB.DESCRIPTION--, MMT.TRANSACTION_QUANTITY

If you're dealing with dates, treat them as dates and not as strings.

for example

this:

     AND MMT.TRANSACTION_DATE BETWEEN NVL(:P_DATE_FROM, '01-JAN-1000') AND NVL(:P_DATE_TO, '31-DEC-4712')

should be this:

     AND MMT.TRANSACTION_DATE BETWEEN NVL(to_date(':P_DATE_FROM','DD-MON-YYYY'), to_date('01-JAN-1000','DD-MON-YYYY')) AND NVL(to_date(':P_DATE_TO','DD-MON-YYYY'), to_date('31-DEC-4712','DD-MON-YYYY'))

Tags: Database

Similar Questions

  • Data parameter problem

    Hello

    I am facing a problem with the parameter Data;

    I can't able to query the data for different dates in the range, but I am able to query the data for the same date in the range.

    Select the statement-

    Select RCT.GL_DATE in the RCT RA_CUST_TRX_LINE_GL_DIST_ALL

    where TO_CHAR (TRUNC (RCT.GL_DATE), 'DD-MON-YY')

    between TO_CHAR (TRUNC (TO_DATE(:P_GL_DATE_LOW)), 'DD-MON-YY')

    AND TO_CHAR (TRUNC (TO_DATE(:P_GL_DATE_HIGH)), 'DD-MON-YY');

    I am able to get the data for the date range - 05-JAN-2015/05-JAN-2015, 07-JAN-2015/07-JAN-2015 and so on...

    I'm not able to get the data for the date range - 05-JAN-2015/07-JAN-2015, 07-JAN-2015/09-JAN-2015 and so on...

    Can someone help me on this issue.

    Thanks in advance!

    Dilip Manon

    As John pointed out, use the date data type to compare dates:

    Select RCT.GL_DATE in the RCT RA_CUST_TRX_LINE_GL_DIST_ALL

    where RCT.GL_DATE

    (between TO_DATE(:P_GL_DATE_LOW)), 'DD-MON-YYYY')

    (AND TO_DATE(:P_GL_DATE_HIGH)), 'DD-MON-YYYY');

    Using TO_CHAR to compare dates, not only do you risk to make mistake and forget certain values, but also in this case stop you an index on GL_DATE may be used.

  • Primary key several columns with Date - parameter problem

    All,
    I'm having a problem where I can not find the answer to. I looked upstairs and down nothing helps. Help, please.

    The issue is that I have a table that has a primary key of several columns and a column is a date, and the other is a string. I have a simple search and I want a picture update of the results table that users can click on and go to another page to update this record. The question is when I launch an appeal based on the updated image, I also want to define the settings based on the record that I have selected. So I put the string parameter and that works very well. The problem is with the date. When I put the setting date this market but he chops off the coast of the timestamp. Later when I try to access this setting "("dateParameter") pageContext.getParameter"; that it will bring a date as December 15, 2008 but I need the whole date and time stamp (i.e., December 15, 2008 10:20:33) to properly identify the record.

    Help, please!

    Thank you
    Colby J

    Hello

    because each parameter go into url as a format string, so you will never get the full date with timestamp setting, the solution would be to

    1.) set a fire on the photo update action, give his name to the event as "update."

    (2.) by clicking Update photograph fires this event.

    (3.) processFormrequest in the controller method

    OAApplicationModule am = pageContext.getApplicationModule (webBean);

    If ("update".equals (pageContext.getParameter ("event")))
    {
    This will give you the select line when you click Update

    String rowReference = pageContext.getParameter (OAWebBeanConstants.EVENT_SOURCE_ROW_REFERENCE);
    Line VORowImpl = (EmployeeSummaryVORowImpl) am.findRowByRef (rowReference);
    Timestamp sdateVal = (String) row.getAttribute ("Date value");

    This will transfer the values to the next page
    pageContext.putTransactionTransientValue ("transferdvalue", sdateVal);

    }

    and in the next page, you can get the value as follows

    timestamp getDateVal = pageContext.getTransactionTransientValue ("transferdvalue" l);

    hope this will solve your problem, please let me know if you face any problem

    thanx
    Pratap

  • The use of quotation marks in the parameter variable data

    Hey, I have a question very confusing, I'm with headaches, already, hour I google itand nothing...

    Here it goes...

    1. I had a procedure that receives the ID setting

    2. then, I use it to make a few requests in other tables

    3. but, when I go to the query in the data element of this ID, it returns me a large amount of data which are not of this ID.

    I've done some tests and I realize that when I do this:

    DECLARE
    V_ID VARCHAR2 (200): = 35100345580693000762550010000276180000407450;

    BEGIN

    FOR RS TO (SELECT * FROM TABLENAME TN WHERE TN.ID = V_ID) LOOP
    INSERT INTO A1 VALUES (RS. PROD_COD, RS. (UN);
    END LOOP;
    COMMIT;

    END;

    She sends me all THE IDs!

    But when I put quotes in the value, like that!

    DECLARE
    V_ID VARCHAR2 (200): = '35100345580693000762550010000276180000407450';

    BEGIN

    FOR RS TO (SELECT * FROM TABLENAME TN WHERE TN.ID = V_ID) LOOP
    INSERT INTO A1 VALUES (RS. PROD_COD, RS. (UN);
    END LOOP;
    COMMIT;

    END;

    It returns the correct lines, but there is a problem, the ID will come from setting, so how can I solve this?


    To be more precise, the type of the ID column is VARCHAR2 (50), maybe this might help...

    Published by: Nylson on 27/04/2010 03:51

    T it?

    I already showed above that pass the parameter a string, it does so without rounding, but passes the parameter a large number which must be converted to a string first, you're going to get some flare at 38 s.f. going on.

    You need to make sure you pass a string in your procedure, rather than a number, if you want to get your code transmitted intact. It is the only way to avoid the implicit flare.

    Otherwise, could you relook at your application design - why you store these large ID in the first place? If it is a concatenation of several things, why not just break down the numbers and add them in separate columns?

  • Istalling problem, data error games

    Can anyone help please? I can't reinstall some of my games in my computer. I was able to install Far Cry and Splinter Cell, Splinter Cell, but I can't install Medal of honor, Call of Duty, Delta Force, Splinter Cell Pandora to name them. They will try and install, but they seem all to stop on a certain file. I have listed below details of file when the error message occurs.

    Call of duty: install 38% then C:\... \\main\PAK. PK3

    Star Wars: Inxtall to 45% and then C:\...\gamedata\base\assets0.pk3

    Medal of honor Allied Assult: C:\Programmefiles\EAGames\MOHHAA\main\PAK2.pk3

    Splinter Cell "Pandora Tomorrow" C:\UbiSoft\SplinterCell\Videos\2_2_1

    Delta Force 'Black Hawk Down'. Code of C:\ProgrammeFiles\novalogic\DeltaForceBHD\recourse\error 117.

    With each failure, I also receive an error as follow:

    The component: minimum data files

    Filegroup: minimum data files

    File: D:\Data2.cab

    ERROR: Data error (cyclic redudundancy check)

    You may notice that all installation failures, it always says "pk.3".

    I would appreciate some help... anyone.

    Kind regards

    John

    PS. you forgot to say that the problem comes from my desktop running Windows XP Home Edition. I go back to factory settings to see if I could cure the problem but, nothing works.

    A quick google (assuming that D: is your CD/DVD drive) the most likely cause appears to be dirty scratched disks.

    Read some of them for something in until an expert MS suggest something :-) -google search

    Things to check:

    1 are the discs in good condition, all parts clean and free? If this is not the case, try to clean gently, taking care to not damage or scratch that them more in the process.

    2 I guess its possible that your drive may be about to fail. you have another drive(maybe external drive) to try?, or maybe try one of these CD/DVD lens cleaning products and see if that helps.

  • Alignment problem Date 6i Oracle report in Arabic Windows 7 (Professional)

    Hello

    6i Oracle form and report work very well under windows 7, but we are facing problems with Arabic alignment (Date of the Hijra). like his appear 21/11/1431 and we would like to show 21/11/1431.

    Report 6i, we can change the format, but we have hundreds of reports. and same report another excellent work up to version 5.3

    Pleae help

    Thank you

    Contact the Oracle Support for assistance. ~ Robear Dyer (PA Bear) ~ MS MVP (that is to say, mail, security, Windows & Update Services) since 2002 ~ WARNING: MS MVPs represent or work for Microsoft

  • URL parameter problem

    Hello

    I'm new to the development of blackberry applications. I try to access a Web service, I can access using the http connection. When passing a parameter in the URL includes only one word then it works fine and answers correctly, but when I pass the same variable with a different value that contains several words separated by space, then it generates an error. I tried to pass the same URL in the browser, but the browser gives me good performance.

    I believe strongly that there is a problem when the parameter is sent. Please help me

    Thanks in advance

    If you only want to add parameters using percent encoding:

    http://en.Wikipedia.org/wiki/percent-encoding

  • Problem: Data Manager has stopped working

    "data manager has stopped working" it's the pop-up window that appears everytime I open my laptop. I always click on the solution on the net but nothing happens. How to stop or fix this problem. I use windows7.

    Hello

    1. What is the number of brand and model of the computer?

    2 have you made any changes to the computer before the show?

    3. have you installed Data Manager?

    Follow the mentioned methods:

    Method 1:

     

    Step 1: Check in safe mode

     

     

    You can also check if the problem persists in safe mode.

    Reference:

    http://Windows.Microsoft.com/en-us/Windows7/start-your-computer-in-safe-mode

    http://Windows.Microsoft.com/en-us/Windows7/advanced-startup-options-including-safe-mode

    If you are able to see the start icon, then executes the method 2.

     

    Step 2: Perform a clean boot and check.

     

    To help resolve the error message, you can start Windows Vista or Windows 7 by using a minimal set of drivers and startup programs. This type of boot is known as a "clean boot". A clean boot helps eliminate software conflicts.

    How to troubleshoot a problem by performing a clean boot in Windows Vista or in Windows 7

    http://support.Microsoft.com/kb/929135


    Please note:  After troubleshooting, be sure to start your computer in normal mode by following step 7.

    Method 2: Uninstall and reinstall data manager if it is installed and check

    Uninstall or change a program:
    http://Windows.Microsoft.com/en-us/Windows7/uninstall-or-change-a-program

     

    I hope that the above information is useful!

  • Filtering problem date to the table QBE filter when it is supported by the POJO data control

    @Timo Hahn ADFfan 11.1.1.4 or 11.1.1.7

    I have exactly the same problem as described in the discussion archived here unanswered

    Definiton vc_temp_1 not found error for the filter of the columns date

    I used the sample downloaded 37 here as a model

    037. how to build the pagination in the POJO ADF data control

    http://www.Oracle.com/technetwork/developer-tools/ADF/learnmore/index-101235.html

    It is easy to replicate, just to run this sample and try to filter on the date of hire.  It takes about 2 minutes to download and run.

    sample image 37 running on 11.1.1.7

    Here is the stacktrace.   Don't know why it's using java.sql.Timestamp.   My POJO returns a java.lang.Date

    java.lang.IllegalArgumentException: timestamp format must be yyyy-mm-dd hh: mm: [.fffffffff]

    at java.sql.Timestamp.valueOf(Timestamp.java:194)

    to oracle.jbo.common.JboTypeMapEntries$ 3.convert(JboTypeMapEntries.java:149)

    at oracle.jbo.domain.TypeFactory.get(TypeFactory.java:855)

    at oracle.jbo.domain.TypeFactory.getInstance(TypeFactory.java:102)

    at oracle.jbo.common.JboTypeMapEntries.convertValue(JboTypeMapEntries.java:382)

    at oracle.jbo.common.OracleTypeMapEntries.convertValue(OracleTypeMapEntries.java:162)

    at oracle.jbo.common.JboTypeMap.convertValue(JboTypeMap.java:869)

    at oracle.jbo.domain.TypeConvMapEntry.convert(TypeConvMapEntry.java:120)

    at oracle.jbo.domain.TypeFactory.get(TypeFactory.java:855)

    at oracle.jbo.domain.TypeFactory.getInstance(TypeFactory.java:102)

    at oracle.jbo.RowComparator.compareEquals(RowComparator.java:34)

    at oracle.jbo.RowValueSupplier.compareValues(RowValueSupplier.java:253)

    at oracle.jbo.expr.JIParserNode.evaluate(JIParserNode.java:1274)

    at oracle.jbo.ExprEval.doEvaluate(ExprEval.java:1099)

    at oracle.jbo.ExprEval.evaluateForRow(ExprEval.java:911)

    at oracle.jbo.RowMatch.rowQualifies(RowMatch.java:187)

    at oracle.jbo.server.ViewObjectImpl.rowQualifies(ViewObjectImpl.java:2811)

    at oracle.jbo.server.QueryCollection.rowQualifies(QueryCollection.java:3705)

    at oracle.jbo.server.QueryCollection.populateRow(QueryCollection.java:3590)

    at oracle.jbo.server.QueryCollection.fetch(QueryCollection.java:3387)

    at oracle.jbo.server.QueryCollection.sortRows(QueryCollection.java:994)

    at oracle.jbo.server.ViewRowSetImpl.execute(ViewRowSetImpl.java:1184)

    at oracle.jbo.server.ViewRowSetImpl.executeQueryForMasters(ViewRowSetImpl.java:1338)

    at oracle.jbo.server.ViewRowSetImpl.executeQueryForMode(ViewRowSetImpl.java:1256)

    at oracle.jbo.server.ViewRowSetImpl.executeQuery(ViewRowSetImpl.java:1250)

    at oracle.jbo.server.ViewObjectImpl.executeQuery(ViewObjectImpl.java:6809)

    at oracle.adf.model.bean.DCBeanDataControl.executeIteratorBinding(DCBeanDataControl.java:948)

    at oracle.adf.model.binding.DCIteratorBinding.doExecuteQuery(DCIteratorBinding.java:2177)

    at oracle.jbo.uicli.binding.MyIteratorBinding.executeQuery(JUAccessorIteratorDef.java:721)

    at oracle.jbo.uicli.binding.JUSearchBindingCustomizer.applyAndExecuteViewCriteria(JUSearchBindingCustomizer.java:607)

    at oracle.adfinternal.view.faces.model.binding.FacesCtrlSearchBinding.processQuery(FacesCtrlSearchBinding.java:442)

    application example will reproduce the problem with no changes

    Post edited by: Don Kleppinger confirmed it happens on 11.1.1.7 as well (see image)

    Frank Nimphius-Oracle

    I have a work around for this bug to Oracle.  I have a version in 037 sample that actually works and that will sort the field date.  I'm ready to download a copy to replace the download version that is there if Oracle is listening.  The sample was there 5 years ago so it is regrettable that this bug still exists.

    That's what I did

    create beans with custom queryListener

    On the table

    change

    queryListener = "#{bindings.allEmployeesQuery.processQuery} '"

    TO

    queryListener = "#{queryListenerBean.processQuery} '"

    Add an additional field to the line which is a long value of the Date column.   In the queryListener I change the input filter on the value of long type instead of the date value.

    I do not display the column containing the value of long (time) in the table, but she must appear in the binding of the tree. (shuttles to the right)

    In the listener query

    • Read the filter value Date and read the value of time full, clear the value of the filter date
    • long time set in the filter
    • Run the query by call of the listener of the original request #{bindings.allEmployeesQuery.processQuery}
    • Set the date value to the value entered by the user
    • erase the value of long type

    Here is the code

    {} private void processQuery (QueryEvent queryEvent)

    Table richeTableau = (RichTable) queryEvent.getComponent ();

    FilterableQueryDescriptor filterQD = (FilterableQueryDescriptor) table.getFilterModel ();

    Card filterCriteria = filterQD.getFilterCriteria ();

    Date dt = (Date) filterCriteria.get ("hireDate");

    time of to of subject Date and filter on hireDateLong instead of column hireDate column

    containing the value of long type of date instead of the Date

    If (dt! = null) {}

    TM long = dt.getTime ();

    filterCriteria.put ("hireDateLong", tm);

    filterCriteria.put ("hireDate", null); This must be null or will not work

    }

    DCBindingContainer bc = (DCBindingContainer) BindingContext.getCurrent () .getCurrentBindingsEntry ();

    Object execBinding = bc.findExecutableBinding ("allEmployeesQuery");

    does not perform a cast of the class internal oracle but another technique guided under

    does not work with POJO data control

    run the filter

    (ExecBinding) .processQuery (queryEvent) (FacesCtrlSearchBinding);

    This will fail

    invokeQueryEventMethodExpression ("#{bindings.allEmployeeesQuery.processQuery}",)

    restore the value of the filter if he continues to display in the QBE bar

    filterCriteria.put ("hireDate", dt);

    filterCriteria.put ("hireDateLong", null);

    }

  • hot sync problem - Date Palm Z22 - hold on synch book...

    I have a palm Z22.   I got it for several years.  Recently, I downloaded 6.2.

    When I hotsync, everything happens as it should, but it freezes on the synchronization of the agenda.

    Here's what happens in a second nano:

    Installer package

    Install

    Install the Service models

    Install on map

    Synch warm Exchange

    It date Book - aways stops here... 13 green bars, all 2 of 12.

    Does anyone know how to fix?

    Thank you

    SDM

    I have exactly the problem you have described on my Centro.  Looking through the other posts, I found a suggestion to install a program on your handheld called dbfixit.  It's free on cnet.  When you run it, it will not correct the errors (at least the free version won't), but it will tell you what are the mistakes.  If you look at the errors, it will give the date of the registration.  I had a few old calendar entries that had been corrupted.  I deleted them and then the sync works perfectly.  I hope this helps.

  • How to use a list of strings as a parameter of data service

    Hello.

    I need to create a service that receives a list of string as parameter. I read the thread list of values as param - is possible to bring down the query? but I was unable to make it work.

    In the my namespace, I defined an element:

    < xs: element name = "keyList" >
    < xs:simpleType >
    < xs:list itemType = "XS: String" / >
    < / xs:simpleType >
    < / xs: element >

    In my dataservice, I stated the following function:

    declare function tns:list ($keyList as element (bt: keyList)) as {element(bt:employee) *}

    for $key in $keyList
    for $employee in emp:EMPLOYEES()
    where (fn:upper - eq fn:upper-case(fn:string($key))) case($employee/STR_KEY)
    return
    < bt: employee >
    < bt: name > {fn:data($employee/STR_NAME)} < / bt: name >}
    < / bt: employee >
    };

    When I test this situation, the generated SQL code considers that all the keys as the only parameter:
    (...)
    WHERE (UPPER (t1." STR_NAME") =?)
    (...)

    So, if I try a string of a list, it works:
    (...)
    WHERE (UPPER (t1." THE STR_NAME") ="STRING1")
    (...)

    But with two or more strings...
    (...)
    WHERE (UPPER (t1." THE STR_NAME") ="WORD1 WORD2")
    (...)

    What I am doing wrong?

    Also, on the wire, I mentioned, I would like to know how I could make the reference "for $paramString in $paramStrings / AN_ELEMENT ' using my code.

    Best regards and thanks for your time!

    My answer in list of values as param - is possible to bring down the query? has been

    I think you want:

    for $paramString in $paramStrings / AN_ELEMENT

    and you have:

    for $key in $keyList

    $keyList is a single element that contains a complete list, so $key is the only element that contains a complete list. And that is why it does not work for you.

    Yourself and the other poster are doing more complicated things they should be. You can simply use the following (you need not specify a child of $keyList here). The ' * ' after XS: String means minOccurs = 0 maxOccurs = unlimited.

    declare function tns:list($keyList_as_xs:string*)...

    for $key in $keyList
    ...

  • migration of system-jazn problem-"Data.xml"

    Hello! I use 10.3.5 WebLogic and JDeveloper 11.1.1.5.
    We have created the "ADF_server" on stand-alone WebLogic managed server and now we are trying to secure deployment ADF application to it.

    After deploying secure ADF application (secured by the safety of the ADF) AdminServer on stand-alone WebLogic, System-jazn-"Data.xml" is properly set up. It inserts the tag application with all users, roles of application and the company and its mappings. But when I deploy to managed 'ADF_server' no companies role configurations, application or user of the application are inserted into the system-jazn-"Data.xml".

    Everybody recognizes the problem and especially the sollution? That has something to do with permissions? I also tried to give permissions of reading / writing to system-jazn-"Data.xml" at all, but it does not help.
    Thanks for any helpful info.

    In a production environment allowing political security to be overwritten when deploying on a managed server is a security hole. That's why he behaves like that.
    Use EM or migrateSecurityStore script to migrate policies.

    Read the guide to FM security.

    http://download.Oracle.com/docs/CD/E17904_01/core.1111/e10043/devmancfg.htm#BCGDADGF
    http://download.Oracle.com/docs/CD/E12839_01/core.1111/e10043/cfgauthr.htm#BGBDDDBE

  • Parameter problem library persistence using associations

    Hello

    I have recently begun to use the Cairngorm persistence library and ran into a problem with the settings sometimes doesn't work does not correctly when you are using associations.  I use the library of persistence 0.10, 3.5 Flex and AIR 2.0.

    The problem seems to be related to parameter names, and I was able to get around by renaming some of my settings.  I write about this here to try to determine the cause (and if it's a bug, hopefully get it fixed).

    Here's a simplified example where I see the problem.

    I create two classes, ObjectAssociatedWithPath and access path:

    package
    {
        public class Path
        {
            [Id]
            [Mapped]
            public var pathId:int;
    
            [Mapped]
            public var path:String = "C:/";
    
            public function Path()
            {
            }
        }
    }
    

    package
    {
        public class ObjectAssociatedWithPath
        {
            [Id]
            [Mapped]
            public var objectId:int;
    
            [Association]
            public var path:Path;
    
            public function ObjectAssociatedWithPath()
            {
            }
        }
    }
    

    In my SqlMap, I have statements to create and insert elements into an array of path and a table OBJECTASSOCIATEDWITHPATH:

    <grammar:Create id="createPathTable">
         CREATE TABLE IF NOT EXISTS PATH( PATHID INTEGER PRIMARY KEY, PATH TEXT )
    </grammar:Create>
    
    <grammar:Create id="createObjectAssociatedWithPathTable">
         CREATE TABLE IF NOT EXISTS OBJECTASSOCIATEDWITHPATH( OBJECTID INTEGER PRIMARY KEY, PATHID INTEGER )
    </grammar:Create>
    
    <grammar:Insert id="insertPath" type="{ Path }">
         INSERT INTO PATH ( PATH ) VALUES ( :path )
    </grammar:Insert>
    
    <grammar:Insert id="insertObjectAssociatedWithPath" type="{ ObjectAssociatedWithPath }">
         INSERT INTO OBJECTASSOCIATEDWITHPATH ( PATHID ) VALUES ( :pathId )
    </grammar:Insert>
    

    Finally, I have a function that creates the tables and inserts an object in each of them:

    private function parameterTest():void
    {
         var sqlSession:ISqlSession = persistenceClient.createSqlSession();
    
         sqlSession.beginTransaction();
    
         sqlSession.create("createPathTable", new CreateResponder(resultHandler, faultHandler));
         sqlSession.create("createObjectAssociatedWithPathTable", new CreateResponder(resultHandler, faultHandler));
    
         var path:Path = new Path();
         var objectAssociatedWithPath:ObjectAssociatedWithPath = new ObjectAssociatedWithPath();
         objectAssociatedWithPath.path = path;
    
         sqlSession.insertItem("insertPath", path, new InsertResponder(insertResultHandler, faultHandler));
         sqlSession.insertItem("insertObjectAssociatedWithPath", objectAssociatedWithPath, new InsertResponder(insertResultHandler, faultHandler));
    
         sqlSession.commitTransaction(new CommitTransactionResponder(resultHandler, faultHandler));
    }
    
    private function resultHandler():void
    {
    }
    
    private function insertResultHandler(rowId:Number, rowsAffected:Number):void
    {
    }
    
    private function faultHandler(error:SQLError):void
    {
         var errorMessage:String = "Message: " + error.message + "\nOperation: " + error.operation + "\nDetails: " + error.details;
         Alert.show(errorMessage);
    }
    

    When I run this function, I get the following error:

    Mismatch in parameter count. Found 1 in SQL specified and 2 value(s) set in parameters property.
    Expecting values for ':pathId'
    

    When attempting to execute the instruction at 'insertObjectAssociatedWithPath '.  If I rename "pathId' to 'thePathId' property, or specify a different setting for this property, i.e., name

            [Id]
            [Mapped(parameter="thePathId")]
            public var pathId:int;
    

    It seems to work correctly.

    For the association of the way, I think the constructor parameter to add pathId AND path to the settings property, even if I'm only using the pathId parameter.

    Anyone have any idea why this is happening?

    Thank you

    Jay

    This is caused by the hasNamedParameter @ NamedParameterBuilder function that checks for the existence of the already added parameters.

    You have already added the 'path' parameter in your mapping, unfortunatelly hasNamedParameter() checks if sqlStatement.text.indexOf (parameter) >-1

    and because *: pathId *.indexOf(":path") >-1 the pathId is omitted.

  • Default for the parameter value date

    We use Oracle bi apps 7.9.5. In that when an organization dimension that we don't pass any value of loading
    setting $$ SRC_EFF_TO_DT. It is supported as on 01/01/1753. When the default value of 01/01/1753 is set?

    Is there a way we can define the parameter value globally for all dimensions in Informatica or DAC?

    01/01/1753 is Informatica's default date value. It uses this value when the parameter is passed to the parameter file and no default is mentioned in Informatica. To set the default value in Informatica, you may need to change all the mappings of one by one.

    Easy by default is to set this parameter to DAC - Design-> tab settings of the Source System. This will last for all workflows walked through the DCA during execution.

    Ash

  • Several problem data merge Page

    Hey all,.

    I'm doing a data merge to create a product catalog and having a small issue.

    My catalog has 5 rows and 1 column per page. I have guides Setup for this.

    I have the first installation of the product data fusion and you can get an overview of the information are imported acorss from my CSV file. I can change the pages and all information will be updated according to the CSV file. This part works fine.

    My problem strives to bring to merge into several pages. I can't merge onto a single page.

    When you go to "Create a Document merged", choose "All Records", "multiple records per Page.

    When I choose "Cliché recording Multiple Preview" shows nothing outside of the first row.

    If I'm trying to merge, he created approximately 40 new pages, exact copies of the first leaf, but with the new entires of CSV.

    Here's what I would like 5 times per page.

    problem.png

    I tried to play with margins in the preview (I haven tried to hide with the margins, and then merge, I was hoping I could find a simple solution without merging several times)

    I watched several videos on YouTube, The InDesigner and searched this site but could not find something to help with my problem.

    Any help would be appreciated to grealtey!

    Many thanks in advance,

    several records per page presupposes that the data to be cloned are all that is in the indesign file then and there. This applies to:

    • all the graphics in the background
    • the master page items

    without seeing the pdf file and simply looking at the screengrab, I would say it is the question, but I could be wrong. try to get rid of all graphics except for what is meant to merge and try to re-run the multiple records per page.

    and Yes, that means that all the graphics in the background must be set ONCE the merger is completed. an easier way to do this is to save them in another indesign file. and once the datamerge is finished, go to the pages palette and load master pages from the other indesign file.

    This help at all?

Maybe you are looking for

  • Is no longer able to hear sound on youtube videos

    Since upgrading to Firefox 23.0.1, I noticed that I had intermittent problems with no audio in Youtube videos. I've since discovered that, if I go on youtube for a video, there is no audio. The strange thing about it, however, if the video is linked

  • IF (AInfinity A1) =? Help

    I am doing fall to the bottom of boxes on a worksheet of the transactions meet the IF statements to change values in a different worksheet of the summary statistics. There are 5 possible summary boxes for each article I and I would that there is esse

  • Satellite A210-1AP is getting really hot

    Hello I'm sorry if this is solved somewhere on this forum, but I didn t find...I have an overheating problem, my laptop never stops but it s not so hot I can almost burn my hand on him... it's hot so I m play any game in about 10 min. I changed to wi

  • Satellite L655D-s5050: PXE - MOF: exit Intel PXE ROM. No boot device

    Hello I have a laptop Satellite L655D-s5050 running windows.When I put the power, instead of get a toshiba logo, I get a black screen with the command prompt and a few seconds later the following messages: Intel UNDI, PXE - 2.0 (build 083)Copyright (

  • Ansd valet Plus Windows 8.1

    I try to install my new computer to an existing M20 W8.1... Get a msg incompatible or will not work before this system. Any suggestions?