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);

}

Tags: Java

Similar Questions

  • Data control for the Web Service based filter table adf only appear not

    I have a SOAP web service I'm consumption as a web service data control.

    When I use one of the results of the web service through data to the web service in the form of a table control in the user interface with the filter and sort, I don't see the filters on the top of the table.

    It comes to JDeveloper version 11.1.1.7.

    Please let me know if anyone has an idea on this issue.

    TIA

    ABS

    You need connect your own logic on the filtering table.

    The table doesn't actually do the filter - it does, is the data control to filter the info - for a Web service we do not know how it will actually make a sort-, so you'll need to add a filterListener on the table and call a WS that will be returned the filtered data method.

  • How can I filter a table of data control without entering the query

    I have a table from a WSDL-based web service data control.

    I want to filter the table without input query in the filter text box. Without text filter box, each could filter the table with a query hardcoded internally.
    For example, when the user menu button click and then it filters the table where type = '1' and B menu button filters the table by type = '2' and C menu button filters the table by type =' "."

    How can I filter the table without entering the query?

    Could someone point me to a solution please.

    Thank you.
    11.1.5 jdev

    Published by: 893364 on October 26, 2011 12:15

    Published by: 893364 on October 26, 2011 12:21

    Hello

    When you have created the table, have you tried selecting the option "filter". Select the table, and access the property of m.. In the toolbar of the Properties Inspector, there is an icon to change the configuration. His fields of filter adding filter for the user to search in.

    Option 2: Data from the Web Service are actually held in iterators. If you want to filter the Web service request, I wouldn't use the WS domain controller but a proxy of JAX - WS in a POJO to recover data from the WS. Then the data control created from the POJO. You might have a method exposed on the POJO which allows you to filter the data internally that is held

    Frank

  • ADF clear the table of filter criteria in the sub-tab

    Scenario: Parent Page has an input field main and two strips of void. Each sub tab is a taskflow region.

    second sub-tab contains a table with filter enabled.

    whenever the data is changed in a main entry field, the data contained in the sub tabs need to be updated and the filter criteria table previous if everything must be deleted.

    Approach: To do this, I raise a contextual event of the main entry field to call the second sub-tab clearFilter method that looks at below.

    public void clearFilter() {}

    If (GetTable ()! = null) {}

    FilterableQueryDescriptor = queryDescriptor

    (FilterableQueryDescriptor) getTable () .getFilterModel ();

    If (queryDescriptor! = null & & queryDescriptor.getFilterCriteria ()! = null) {}

    queryDescriptor.getFilterCriteria () .clear ();

    .queueEvent (getTable (new QueryEvent (getTable, queryDescriptor)));

    }

    }

    }

    Question: When I'm in the second tab and then change something in the main, contextual event entry field and filter of the table in the second tab is cleared.

    But if I enter a filter in the second tab, move to the first tab and then change something in the main entry field. contextual event does not run.

    When I get back to the second tab, I can still see previous criteria. The contextual event handler method is not called.

    Please suggest how to solve this problem. Contextual events will be called only if the Subscriber is visible on the page?

    Can I erase the layer model filter without having to use the table binding?

    Or is there a better approach to do?

    Hello

    That's because contextual events propagate active links, including the second tab does not contain when it is hidden. So try to trigger the popup event in response to an event of disclosure tab (on the showDetail) so that when users switch tab, then filter is removed. To avoid unnecessary event context-sensitive invications you can set a flag each time the data in the parent page changes. If this flag is not set, no contextual event is raised

    Frank

  • Problems to change my url endpoint data control for Web Service design time vs deploy times. Where is the url of time to deploy the "deployment configuration" stored?

    https://blogs.Oracle.com/ADF/entry/changing_endpoint_url_for_a_web_service_data_control

    Using this link as a reference, I created a data control Web Service, and when I deploy via JDeveloper for different environments I can change my point of endpoint accordingly on this screen:

    Capture.PNG

    However when I change my point of termination at the design time, the changes do not appear in the screen "Configuration of the deployment. This would not normally be a problem, but our automated deployment (maven/ant) seems to keep picking up the url "Deployment Configuration" instead of what we change in the DataControl.dcx. So I have a few questions:

    1. Why is there a difference between what we have in the source code and what is shown on this ""Deployment Configuration "screen for manual deployment of JDeveloper? "

    2. where is this "Deployment Configuration" end point url located? I can change it during an automated deployment as I can on a manual deployment?

    3. What is the best practice to change a url endpoint to the Web Service data control with during an automated deployment?

    It turns out that the connections.xml had the url of the endpoint that the profile of the deployment and jdeveloper was referencing at deployment time.

    In order to get our automated generation work, we use a search and replace of Ant utility to change endpoint in this connections.xml before construction/deployment of the application.

  • Table of contents, problems in applying the character style

    Hi all

    This is my first post, I checked if there was already something similar, but I can't find anything so I'm asking here.

    I work with Indesign 9.3 and I created a book of 80 pages and there are 20 + chapters.

    I wanted to create a table of contents, so I made an and I put my paragraph for her style, but I had problems to set the character style (he set only to the number of the page, but not to the number and the name of the chapter).

    When I create my summary style I have no problem to indicate the paragraph style that you want to use (and then it automatically applies it properly when I generate my list).

    The problem I want to solve, is that I need that my table of contents automatically the value of the character style, cause, for the moment, I have to apply it after its generation.

    Sorry for my bad English, I hope you understood

    Concerning

    Filippo

    In this case you must use the character for numers style nested within the paragraph style

    I'm usually two independent sparagraph styles (primary materials) chapters and sections (toc details). In this way, you can add a different same nested character style to stand them.

    Addibn later - style, it is not good idea. After the update of the table of contents, you have lost the

    macpawel

  • How to solve "here has been a problem to read the data in the layer. read the composite data instead? »

    Hello

    I'm working on the UI for a 2 month Word Press theme, and it has a ton of layers with file size of 900 MB.

    When designing, I get a message that says:

    "here was a problem to read the data in the layer. read the composite data instead? »

    Please solve this problem because I am so tired of working on this that I don't want this effort in vain.

    and sorry if my English is bad.

    dffd.jpg

    Hi AymanAlrifai,

    Would you be able to share the file problem with me zipped upward? petgreen [at] adobe [dot] com

    I'll see if I have the same problem and check with the team to investigate the issue here and see if we can resolve it for you.

    Kind regards

    Pete

  • Blue screen errors the problem points to the files Volsnap.sys or Classpnp.sys.

    Last month, I had a series of blue screens.  The problem points to the files Volsnap.sys or Classpnp.sys.

    I have a Dell Precision T3500, running 64-bit Windows 7 Prof.  The system is configured with RAID.

    Sometimes rebooting the system in the middle of the night and sometimes it freezes while I work on that.  It is during the night to safeguard and Virus scanning using Trend Micro, which is the only type of trainer of spam on the system.

    No idea on how to stop this would be really appreciated!  Thank you

    Hello

    Results verified BlueScreenView WinDBG / DumpCHK.

    TrendMicro is most likely part of this question, as it is known to have caused or
    make these problems worse. Uninstall it and run the removal tool to prevent
    remains of troublecausing. The following recommendations to use during the test,
    even better all the time.

    TrendMicro removal tool
    http://eSupport.trendmicro.com/pages/how-do-I-remove-old-or-new-versions-of-trend-micro-products-in-my-comp.aspx

    List of tools to clean/uninstall anti-malware programs
    http://social.answers.Microsoft.com/forums/en-us/msestart/thread/407bf6da-C05D-4546-8788-0aa4c25a1f91/

    ------------------------------------------------------------

    Here's what I use and recommend: (these are all free and very effective versions.)

    Avast and Prevx proved extremely reliable and compatible with all I have
    launched on them. Microsoft Security Essentials and Prevx have also proven to be very
    reliable and compatible. Use MSE or Avast and Prevx, Prevx 3 but not all.

    Avast Home free - stop any shields is not necessary except leaving Standard, Web, and
    Operation of the network.

    Prevx - Home - free

    Windows Firewall

    Windows Defender (is not necessary if you use MSE)

    Protected IE - mode

    IE 8 - SmartScreen filter WE (IE 7 phishing filter)

    I also IE always start with asset if filter InPrivate IE 8.
    (It may temporarily turn off with the little icon to the left of the + bottom
    right of IE)

    Two versions of Avast are available 6.x and 4.8 x

    Avast - home - free - 6.x stop shields you do not use (except files, Web, network, &)
    Shields of behavior) - double click on the icon in the Notification area - real time Orange - click on the
    Shield that you want to stop - STOP. To stop the Orange icon to show an error indicator-
    Click on the Orange icon - top right - settings - click on the status bar - uncheck shields you
    disabled - click OK
    http://www.avast.com/free-antivirus-download

    Avast 4.8 x - home - free - stop shields, you don't need except leaving Standard, Web,.
    and the network running. (Double-click the blue icon - look OK. - upper left - Shields details
    Finish those you don't use).
    http://www.avast.com/free-antivirus-download#TAB4

    Or use Microsoft Security Essentials - free
    http://www.Microsoft.com/Security_Essentials/

    Prevx works well alongside MSE or Avast

    Prevx - home - free small, fast, exceptional protection CLOUD, working with other security
    programs. It is a single scanner, VERY EFFICIENT, if it finds something come back here
    or use Google to see how to remove.
    http://www.prevx.com/   <-->
    http://info.prevx.com/downloadcsi.asp  <-->

    PCmag - Prevx - Editor's choice
    http://www.PCMag.com/Article2/0, 2817,2346862,00.asp

    Also get Malwarebytes - free - use as scanner only. If you ever think malware and that
    would be unusual with Avast and occasional Prevx running with the exception of a low level cookie
    (not much), to UPDATE and then run it as a scanner. I have a lot of scanners and they
    never find anything of note that I started to use this configuration.

    http://www.Malwarebytes.org/

    ==========================================================

    The Bug_Checks were D1 (19 long happened if he should really
    do not be in the mix) and CAUSE volsnap.sys classpnp.sys which are
    Components of Windows, which means something else led in error.

    1. Uninstall TrendMicro as it has a role - is not enough to just disable
    such that it will still load chunks of itself in memory.

    2 Volsnap.sys is the Windows volume shadow copy driver and disk problems
    or other corruption could be at stake. Classpnp.sys is the SCSI class system
    dll checking and disk problems will affect the it. Run SFC/scannow, and then
    Checkdisk (chkdsk /f r).

    Run DiskCleanup - start - all programs - Accessories - System Tools - Disk Cleanup

    Start - type in the search box - find command top - RIGHT CLICK – RUN AS ADMIN

    sfc/scannow

    How to fix the system files of Windows 7 with the System File Checker
    http://www.SevenForums.com/tutorials/1538-SFC-SCANNOW-Command-System-File-Checker.html

    Then run checkdisk (chkdsk).

    How to run check disk in Windows 7
    http://www.SevenForums.com/tutorials/433-disk-check.html

    =========================================================

    Other troubleshooting methods:

    BCCode: D1 0x000000D1

    Check these KB

    Stop error when you resume a computer that is running Windows 7 or Windows Server 2008 R2
    from sleep or standby extended: "STOP: 0x000000D1".
    http://support.Microsoft.com/kb/978982

    Stop error on a computer based on Windows Server 2008 R2 or Windows 7 during operation
    system uses a storport virtual miniport driver to save a dump file or a file of hibernation: "0x000000D1.
    http://support.Microsoft.com/kb/2320550

    Those 7 other KB Articles are available
    http://support.Microsoft.com/search/default.aspx?mode=a&query=0x000000D1&SPID=14019&catalog=LCID%3D1033&1033comm=1&Res=10

    --------------------------------------------------

    Think video drivers especially if it may be others. Refer to the section of driver in my generic bluescreen
    methods of troubleshooting below. BIOS, low and antispyway/antivirus/security chipset drivers
    programs may also cause this. Check the resolution of the problems and when you get to the pilot and sections tests memory refer to the generic methods in the next message and then returns to the resolution of problems
    If necessary.

    Cause

    A driver tried to access a pageable (or that is completely invalid) address while the IRQL was too high.

    This bug check is usually caused by drivers who used a wrong address.

    If the first parameter has the same value as the fourth parameter, and the third parameter indicates a runtime operation, this bug check was probably caused by a driver who was trying to run code when the code itself has been paginated outside. The possible causes for the error page are:

    • The function was marked as pageable and was operating at an IRQL higher (including obtaining a lock).
    • The function call was made to a function in another pilot, and that this driver has been unloaded.
    • The function was called by using a function pointer that was an invalid pointer.

    BCCode: d1 0x000000d1<-- read="" this="">
    * 1210.html? order = votes http://www.faultwire.com/solutions-fatal_error/Driver-IRQL-not-less-or-Equal-0x000000D1-

    =========================================

    Look in the Event Viewer to see if something is reported on those.
    http://www.computerperformance.co.UK/Vista/vista_event_viewer.htm

    MyEventViewer - free - a simple alternative in the standard Windows Event Viewer.
    TIP - Options - Advanced filter allows you to see a period of time instead of the entire file.

    http://www.NirSoft.NET/utils/my_event_viewer.html

    -------------------------------------------------------------------------

    Here are a few ways to possibly fix the blue screen issue. If you could give the blue screen
    info that would help. Such as ITC and 4 others entered at the bottom left. And all others
    error information such as codes of STOP and info like IRQL_NOT_LESS_OR_EQUAL or PAGE_FAULT_IN_NONPAGED_AREA and similar messages.

    As examples:

    BCCode: 116
    BCP1: 87BC9510
    BCP2: 8C013D80
    BCP3: 00000000
    BCP4: 00000002

    or in this format:

    Stop: 0 x 00000000 (oxoooooooo oxoooooooo oxoooooooo oxooooooooo)
    Tcpip.sys - address blocking 0 x 0 00000000 000000000 DateStamp 0 x 000000000

    It is an excellent tool for displaying the blue screen error information

    BlueScreenView scans all your minidump files created during 'blue screen of death '.
    hangs and displays information about all accidents of a table - free

    http://www.NirSoft.NET/utils/blue_screen_view.html

    BlueScreens many are caused by old or damaged, in particular the video drivers drivers however
    There are other causes.

    You can do mode if necessary safe or the Vista DVD command prompt or
    Options recovery if your system is installed by the manufacturer.

    How to start on the System Recovery Options in Windows 7
    http://www.SevenForums.com/tutorials/668-system-recovery-options.html

    You can try a system restore to a point before the problem started when one exists.

    How to do a system restore in Windows 7
    http://www.SevenForums.com/tutorials/700-system-restore.html

    -------------------------------------------------------------------------

    Start - type this in the search box-> find COMMAND at the top and RIGHT CLICK – RUN AS ADMIN

    Enter this at the command prompt - sfc/scannow

    How to fix the system files of Windows 7 with the System File Checker
    http://www.SevenForums.com/tutorials/1538-SFC-SCANNOW-Command-System-File-Checker.html

    How to analyze the log file entries that the Microsoft Windows Resource Checker (SFC.exe) program
    generates cbs.log Windows Vista (and Windows 7)
    http://support.Microsoft.com/kb/928228

    The log can give you the answer if there is a corrupted driver. (Says not all possible
    driver problems).

    Also run CheckDisk, so we cannot exclude as much as possible of the corruption.

    How to run the check disk at startup in Windows 7
    http://www.SevenForums.com/tutorials/433-disk-check.html

    -------------------------------------------------------------------------

    Often drivers up-to-date will help, usually video, sound, network card (NIC), WiFi, part 3
    keyboard and mouse, as well as of other major device drivers.

    Look at the sites of the manufacturer for drivers - and the manufacturer of the device manually.
    http://pcsupport.about.com/od/driverssupport/HT/driverdlmfgr.htm

    Installation and update of drivers to 7 (update drivers manually using the methods above is preferred
    to make sure that the latest drivers from the manufacturer of system and device manufacturers are located)
    http://www.SevenForums.com/tutorials/43216-installing-updating-drivers-7-a.html

    How to disable automatic driver Installation in Windows Vista - drivers
    http://www.AddictiveTips.com/Windows-Tips/how-to-disable-automatic-driver-installation-in-Windows-Vista/
    http://TechNet.Microsoft.com/en-us/library/cc730606 (WS.10) .aspx

    -------------------------------------------------------------------------

    How to fix BlueScreen (STOP) errors that cause Windows Vista to shut down or restart
    quit unexpectedly
    http://support.Microsoft.com/kb/958233

    Troubleshooting Vista Blue Screen, error of JUDGMENT (and Windows 7)
    http://www.chicagotech.NET/Vista/vistabluescreen.htm

    Understanding and decoding BSOD (blue screen of death) Messages
    http://www.Taranfx.com/blog/?p=692

    Windows - troubleshooting blue screen errors
    http://KB.wisc.edu/page.php?id=7033

    -------------------------------------------------------------------------

    In some cases, it may be necessary.

    Startup Options recovery or Windows 7 disk repair

    How to run a startup repair in Windows 7
    http://www.SevenForums.com/tutorials/681-startup-repair.html

    How to start on the System Recovery Options in Windows 7
    http://www.SevenForums.com/tutorials/668-system-recovery-options.html

    How to create a Windows 7 system repair disc
    http://www.SevenForums.com/tutorials/2083-system-repair-disc-create.html

    I hope this helps.

  • Filtered hierarchical data - previous available ancestor?

    I'm trying to find a solution to a problem with hierarchical data and the concept of the closest available ancestor – my platform is gr 10, 2 and 11 GR 2.  I give myself a few hierarchical data (in its simplest form it is in the form ID, NAME, PARENT_ID, where of the PARENT_ID since ID links).

    For example:

    with qryData like)

    Select 1 as ID, 'Bert' as NAME, to_number (null) as PARENT_ID from dual union

    Select 2 as ID, 'Brand', 1 double Union

    Select 3 as ID, 'Brenda', 1 double Union

    Select option 4 as ID, 'Mike', 3 double Union

    Select 5 as ID, 'Steve', 4 double Union

    Select 6 as ID, 'John', 2 double Union

    Select 7 as ID, 'Jo', 6 double Union

    Select ID, "Jim", 2 double Union 8

    Select 9 as ID, 'Jane', the double 7

    )

    Select q.*, sys_connect_by_path (ID, ' /') ID_PATH

    of qryData q

    Start by parent_id is null

    Connect ID PARENT_ID = prior

    /

    ID NAME PARENT_ID ID_PATH

    ---------- ------ ---------- ----------------

    1 Bert 1

    2. Mark 1/1/2

    6 Jean 2/1/2/6

    7 Jo 6/1/2/6/7

    Jane 9 7/1/2/6/7/9

    8 Jim 2/1/2/8

    3 Brenda-1/1/3

    4 mike 3/1/3/4

    5 Steve 4/1/3/4/5

    In reality, this data set can be several thousand rows with dozens of levels of nesting, the several nodes to start without parent but especially often filtered, so some arbitrary lines are missing.  When this happens, I need to find the closest available ancestor that appears in the list. "The closest available ancestor" is closest relationship to ancestor in your family tree which still exists in the filtered list found from parent, then upward contuniing to grandparent, great-grandparent... nth grandparent grand until an ancestor is found.


    For example:

    ID NAME PARENT_ID ID_PATH AVAIL_ANCESTOR_ID

    ---------- ------ ---------- ------------- -----------------

    1 Bert 1

    Jean 6 2 1 1/2/6

    Jim 8 2 1 1/2/8

    Jane 9 7 6 1/2/6/7/9

    Brenda 3 1 1 1/3

    Steve 5 4 3 1/3/4/5

    For example.  Who is Steve closest ancestor in the filtered list?

    Steve's family tree is: / Bert/Brenda/Mike/Steve

    Mike (ID = 4) is not in the filtered list, so we move on Brenda, what is.  Brenda, ID = 3, so ANCESTOR_ID = 3

    I have access to the original table, so that can join the list filtered to the full table, I can also ask other columns (such as ROWID, and ROWNUM, LEVEL SYS_CONNECT_ROOT) to be included in the filtered set.  I tried various methods to achieve this, but all seem to be quite poor in performance (the columns ID and PARENT_ID indexed as appropriate) or does not quite give the correct result, such as...

    1. the analysis of the ID_PATH and the treewalking on this basis and to join the list...

    Select distinct CUSTOMER_ID, regexp_substr (ID_PATH, "[^ /] +', 1, level") as ANCESTOR_ID

    of qryData

    connect regexp_substr (ID_PATH, "[^ /] +', 1, level") is not null

    2 anti-assemblage to return to the full list in order to identify the missing elements, then for those treewalking.

    3 write a function that return treewalks.

    It of a difficult problem, so someone can think a solution that works well?  Ideally, I try to find a SQL based solution?

    Hello

    paulzip wrote:

    It is a clever solution!  The only problem I have is that I wouldn't be able to generate "good_id_path" as part of the filtered list, filtering is not done by me and is done once the id_path is generated.  I have to join the most complete list list filtered back to generate, unless there is a tweak to do?

    I see it; You are given connect_by_results (with id_path), and that's what you have to work with, in addition to the original table.

    Here's one way:

    SELECT d.id d.name, d.parent_id, d.id_path

    MIN (a.id) DUNGEON (DENSE_RANK LAST ORDER BY a.id_path) AS avail_ancestor_id

    OF connect_by_results d

    LEFT OUTER JOIN connect_by_results has the d.id_path AS a.id_path. '/%'

    GROUP BY d.id d.name, d.parent_id, d.id_path

    ORDER BY d.id_path

    ;

    The fastest way depends on a lot of things, some may not be known until the moment of execution.  The query above could be better if the number of rows in the result set is small, but you don't know anything else about them (for example, if all have a common ancestor).

  • Reference the same data control in different pages

    I have two different pages in an application that display a data table referencing the object of the view in data controls. IE: PatientInventory.jspx has a table showing the InventoryView and FullInventory.jspx also has a table showing the InventoryView.
    The support of PatientInventory.jspx bean, I apply a where clause condition clause to the compulsory InventoryViewIterator to filter the results of InventoryView dynamically, to show the inventory related to a patient selected on the page. In FullInventory.jspx, I want to leave InventoryViewIterator without any where clause to show all the inventory of all patients.

    The problem I have is that the tables in the two pages seem to refer to the same object, so the filter applied to PatientInventory.jspx is also applied also to FullInventory.jspx, which is not what I want to display.
    Is it possible to declare the InventoryView link in these two pages to be separate and unique? I already tried their unique ID in their PageDef.xml liaison statements, that is to say:

    PatientInventoryPageDef.xml:
    < iterator lie = "InventoryView1" RangeSize = '25' DataControl = "AppModuleDataControl" id = "PatientInventoryView1Iterator" Refresh = "always" / >

    FullInventoryPageDef.xml:
    < iterator lie = "InventoryView1" RangeSize = '25' DataControl = "AppModuleDataControl" id = "FullInventoryView1Iterator" Refresh = "always" / >

    This is expected behavior since you use the same instance of the view object (InventoryView1) in the two pages.
    try using a different object instance in each page.
    Visit this link
    http://andrejusb.blogspot.com/2011/06/understanding-ADF-BC-view-object.html

  • Metadata filtering problems

    Are there known problems of filtering metadata are PSE 7?

    I have a few thousands of picture in my collection and want to be able to filter by the camera, on which they were made.

    Some of my photos are a compact Panasonic Lumix (I am able to see the data in the exif on shots properties I know are this camera: do = Panasonic, model = DMC - LX2).

    However, when I put "find - details ' camera contains"Panasonic", I get only some of the correct pictures.  The it's show (about 53) are correct (so no false positives), but I know that there is that much, it's missing.   I have found several that have metadata that should be a game and they are certainly not back into research.

    I imported this pic in a test catalog and find > details > camera = Panasonic has found.

    I suspect that what is stored internally in the PSE catalog is different from what the properties pane is showing under the camera (Exif) data.  To correct this:

    1. make a new catalog test with the file > catalog > New and import a picture of problem inside.  The problem persists?

    2. in the main catalog, select the picture of the problem and change > update thumbnail, which causes the PSE to reread the photo metadata in the catalog (except for key words).   The problem persists with this pic?

  • Problem with iterator and EJB data control

    My project components:

    JDeveloper 12.1.3

    Back end & the intermediate layer, JPA, EJB 3, controls data EJB

    JSF pages simple front end (no fragment), bounded task flow

    Hello

    I have a weird problem with iterators in my project, project using EJB 3 & JPA and EJB data controls

    When the user come to a page (this page is part of a stubborn workflow) and add a record to a table (linked to an iterator) and without saving changes, leave the page (means output delimited task flow)

    do something else and again back to the first page iterator always keep this line is entry and it cause problems in my system

    If I close the browser and come to this page for sure the line is not there

    I expect when the user leaving a stubborn workflow each thing belongs to this workflow should be deleted. Is this true?

    Or someone has the same problem? Any suggestions / or work around?

    Respect of

    Mohsen

    Have you read the link I posted? Have you named the BA a transactional data control?

    When you leave the workflow you issue a rllback and the new line should have disappeared.

    Timo

  • Return of the bound data control method causes IllegalArgumentException

    JDeveloper Version: _12.1.2.0.0_GENERIC_130608.2330.6668

    Problem:

    I have a Service method on a data control which takes the parameters. I'm able to drag the Service method on a JSF/ADF page and it creates an ActionBinding and all links in the input parameter as well. No problem. I can run the page and enter values in the display, press the binding Action and the method on the façade of the Session is called perfectly. So far so good. Now, I want to display the results of the (returned as a collection of POJO) Service method in the method declaration.

    If I drag the method declaration of data control on the same page and request that the results will be displayed in a table (or any control that will display a collection, in this example, this is a graph) control is created and all links with her. Once again, so far, so good.

    Now I start the page. This time, I IllegalArgumentExceptions (two of them) returned as messages when loading the page. Stack trace looks like this (my apologies, I hate when people put a huge stack traces in positions):

    [code]

    java.lang.RuntimeException: java.lang.IllegalArgumentException

    at oracle.adf.model.adapter.bean.UpdatableBeanDataControl.invokeOperation(UpdatableBeanDataControl.java:606)

    at oracle.adf.model.adapter.bean.BeanFilterableDataControl.invokeOperation(BeanFilterableDataControl.java:80)

    at oracle.adf.model.bean.DCBeanDataControl.invokeMethod(DCBeanDataControl.java:472)

    at oracle.adf.model.binding.DCInvokeMethod.callMethod(DCInvokeMethod.java:266)

    at oracle.jbo.uicli.binding.JUCtrlActionBinding.doIt(JUCtrlActionBinding.java:1658)

    at oracle.adf.model.binding.DCDataControl.invokeOperation(DCDataControl.java:2189)

    at oracle.adf.model.bean.DCBeanDataControl.invokeOperation(DCBeanDataControl.java:560)

    at oracle.adf.model.adapter.AdapterDCService.invokeOperation(AdapterDCService.java:309)

    at oracle.jbo.uicli.binding.JUCtrlActionBinding.invoke(JUCtrlActionBinding.java:751)

    to oracle.jbo.uicli.binding.JUMethodIteratorDef$ JUMethodIteratorBinding.invokeMethodAction (JUMethodIteratorDef.java:170)

    to oracle.jbo.uicli.binding.JUMethodIteratorDef$ JUMethodIteratorBinding.initSourceRSI (JUMethodIteratorDef.java:659)

    at oracle.adf.model.binding.DCIteratorBinding.callInitSourceRSI(DCIteratorBinding.java:1741)

    at oracle.adf.model.binding.DCIteratorBinding.internalGetRowSetIterator(DCIteratorBinding.java:1715)

    at oracle.adf.model.binding.DCIteratorBinding.refresh(DCIteratorBinding.java:4684)

    at oracle.adf.model.binding.DCExecutableBinding.refreshIfNeeded(DCExecutableBinding.java:341)

    at oracle.jbo.uicli.binding.JUCtrlHierBinding.getRootNodeBinding(JUCtrlHierBinding.java:108)

    at oracle.adfinternal.view.faces.dvt.model.binding.common.BindingKeyChangeHandler.setBinding(BindingKeyChangeHandler.java:52)

    at oracle.adfinternal.view.faces.dvt.model.binding.graph.ActiveGraphDataModel.setHierBinding(ActiveGraphDataModel.java:82)

    at oracle.adfinternal.view.faces.dvt.model.binding.common.FacesCubicBinding.getDataModel(FacesCubicBinding.java:194)

    at oracle.adfinternal.view.faces.dvt.model.binding.common.FacesCubicBinding.getDataModel(FacesCubicBinding.java:159)

    at oracle.adfinternal.view.faces.dvt.model.binding.common.FacesCubicBinding.getDataModel(FacesCubicBinding.java:111)

    at oracle.adf.model.dvt.binding.common.CommonBinding.internalGet(CommonBinding.java:149)

    at oracle.adf.model.dvt.binding.common.CubicBinding.internalGet(CubicBinding.java:580)

    at oracle.adfinternal.view.faces.dvt.model.binding.common.FacesCubicBinding.internalGet(FacesCubicBinding.java:234)

    at oracle.adf.model.binding.DCControlBinding.get(DCControlBinding.java:751)

    at javax.el.MapELResolver.getValue(MapELResolver.java:199)

    at com.sun.faces.el.DemuxCompositeELResolver._getValue(DemuxCompositeELResolver.java:176)

    at com.sun.faces.el.DemuxCompositeELResolver.getValue(DemuxCompositeELResolver.java:203)

    at com.sun.el.parser.AstValue.getValue(AstValue.java:138)

    at com.sun.el.parser.AstValue.getValue(AstValue.java:183)

    at com.sun.el.ValueExpressionImpl.getValue(ValueExpressionImpl.java:224)

    [/ code]

    Now, if I fill in the parameters on the screen and call the ActionBinding by pressing the button created, the method calls the function on the façade and the data is returned in the control (chart or table). From that moment, I never have the illegalArgumentException and the page the way I want it.

    So, my question is, why the return of the method lie I invoke a method call on a page load until the ActionBinding is called and give me an illegalArgumentException. And - most importantly - how can I avoid this error?

    Any advice would be greatly appreciated.


    Thank you

    Nigel

    It is a normal behavior.  Check blog Shay https://blogs.oracle.com/shay/entry/delay_method_execution_when_us

    Timo

  • «A fatal problem occurred, stopping the service of VMware VirtualCenter.»

    Although I doubt it's related, after the problems in this number - and do work very well the the rest of the day, I walked into the Office to another topic!  Maybe it's related but I do not know...

    As I said, after you complete the migration, things seemed fine for the rest of the day.  This morning, I can't even on the server via vSphere.  For some reason, the service was not working and I can't restart.  Here is my error in the Windows Event Viewer...

    Error:

    Log name: Application

    Source: VMware VirtualCenter Server

    Date: 28-09-2010 08:15:10

    Event ID: 1000

    Task category: no

    Level: error

    Keywords: Classic

    User: n/a

    Computer: VCENTER1. HOMENET.local

    Description:

    The description for event ID 1000 from source VMware VirtualCenter Server can not be found. Either the component that triggers this event is not installed on your local computer or the installation is corrupted. You can install or repair the component on the local computer.

    If the event is on another computer, the display information had to be saved with the event.

    The following information has been included in the event:

    An unrecoverable problem has occurred, stopping the service of VMware VirtualCenter. : Error [VdbODBCError]-(1) "ODBC error: (42000) - [SQL Native Client] [SQL Server] log transactions for the database"VIM_VCDB"is full." To find out why space in the log cannot be reused, see the log_reuse_wait_desc column in sys.databases"is returned when you run the SQL" UPDATE VPX_DATASTORE (ROWLOCK) SET NAME =?, STORAGE_URL =?, CAPACITY =?, free_space =?, TYPE =?, DATACENTER_ID =?, IORM_ENABLED =?, IORM_CONGESTION_THRESHOLD =? WHERE ID =? »

    the message resource is present, but the message is not in the string/message table

    The event XML:

    " < event xmlns =" http://schemas.Microsoft.com/win/2004/08/events/event "> "

    <>System

    < name of the provider = "VMware VirtualCenter Server" / >

    < qualifiers EventID = '0' > 1000 < / EventID >

    < niv.2 > < / level >

    < task > 0 < / task >

    < Keywords > 0 x 80000000000000 < / keywords >

    < TimeCreated SystemTime = "" 2010-09 - 28 T 12: 15:10.000000000Z "/ >"

    < EventRecordID > 3048 < / EventRecordID >

    Application of < channel > < / Channel >

    VCENTER1 < computer >. HOMENET.local < / computer >

    < security / >

    < / system >

    < EventData >

    data <>a fatal problem occurred, stopping the service of VMware VirtualCenter. : Error [VdbODBCError]-(1) "ODBC error: (42000) - [SQL Native Client] [SQL Server] log transactions for the database"VIM_VCDB"is full." To find out why space in the log cannot be reused, see the log_reuse_wait_desc column in sys.databases"is returned when you run the SQL" UPDATE VPX_DATASTORE (ROWLOCK) SET NAME =?, STORAGE_URL =?, CAPACITY =?, free_space =?, TYPE =?, DATACENTER_ID =?, IORM_ENABLED =?, IORM_CONGESTION_THRESHOLD =? WHERE ID =? "< / data >

    < / EventData >

    < / event >

    Any ideas?

    This is your on your VCDB (Virtual Center Database).  Talk to your DBA and let him look at the logs of transactions for the DB instance in question.

    I would suggest also go full recovery simple

    http://KB.VMware.com/kb/1003980

  • problem with playing the clash of clans

    I'm having some problems while playing the clash of clans on my 2 mini ipad screen does not seem to meet sometimes as if it was some sort of delay so I have to tap several times in order to use a filter or throw the troops on the battlefield.

    Hi Trinitygr,

    Thanks for posting in the Community Support from Apple! I understand that you are having problems with your iPad screen while playing a game. I like to play games on my iPad and I don't see how this could be a nuisance. I'm happy to offer assistance.

    Are you only had this problem when using the app clash of Clans, or does it happen in all applications? I recommend to start by following the steps described in this article:
    If an application you have installed unexpectedly closes, unresponsive, or does not open

    Take care!

Maybe you are looking for