Sort the filenames to be loaded in data portal by date

Hi,
Filenames listed in Diadem File browser are sorted alphabetically.
I would like to script how to load files in search results sorted by date of creation not by name.

Hi Andre Rako,
You mentioned two different ways of loading data into DIAdem (File Browser, Search Results).  Which do you mean?  There's no way to affect the ordering of the files in the File Browser, because that simply shows the same order as the files are in on disk-- the same order you see when you look with Windows Explorer.
The Search Results is a different story, however.  After running any query, you can order to resulting Search Results list by clicking on the "up/down" icon at the top right of any column.  In your case you'll want to display the datetime as a property column in the Search Results and then click on the "up/down" (enumeration) icon at the top of that column.
If you have DIAdem 2010 or later, you can also include the ordering of the Search Results as part of the query.  There is now the "up/down" icon to the left of the condition in the Condition Table (just to the right of the C1, C2, text).  You can click on this icon to set the ordering to be ascending, descending, or turned off.
Brad Turpin
DIAdem Product Support Engineer
National Instruments

Similar Messages

  • Access Channels in Data Portal through Data Plugin

    Hi,
    I am supposed to write two plugins, one plugin creates the channel reads in the data values and from the other plugin I need to read in the channel custom properties.
    Is there a possibility to access the channels in the Data portal through the plugin though I know through plugin we will not be able to access any DIAdem native commands.
    I have an option of reading in these properties to a text file and then pull them into DIAdem but it is not recommendable.All that is required is read the file and create the cutom property for the existing channels.
    Can anyone give me a best suggestion for the above at the earliest?
    Thanks,
    Priya

    Hello Priya,
    A dataplugin is not limited to read a single file only. There are quite a few cases where let's say there is a file "abc.bin" and another file "abc.hdr" which belong together. One contains the channel data, the other contains the descriptive information. We have developed plugins which allow the user to select one or the other and the DataPlugin then reads the information from both. As long as you can find the second file, e.g. through the name or some piece of information which is in the file, its not a problem. And yes, a plugin can read from a binary file and an ASCII file at the same time. We even developed DataPlugins for files which are both, ASCII and Binary, in a single file.
    If you like, you can send me some examples together with a description of the file format(s) and I can try something for you.
    Andreas

  • Error: Boot loader didn't return any data when creating VM

    Env: VirtualBox
    Host: Windows 7
    Guest: Linux
    Domain Type: Xen PVM
    Network Boot Path: http://192.168.1.200/aaa
    (THis is how I mounted...
    cd /var/www/html
    mkdir aaa
    mount -o ro,loop /var/www/html/Linux6.3V33411-01.iso /var/www/html/aaa )
    When creating a VM, I get the following error. (boot loader didn't return any data)
    Actioner
    Starting operation 'Bridge Configure Operation' on object '0004fb0000200000b15ee1091fd244e1 (network.BondPort (1) in vmserver.com)'
    Bridge [192.168.1.0] already exists (and should exist) on interface [bond0] on server [vmserver.com]; skipping bridge creation
    Completed operation 'Bridge Configure Operation' completed with direction ==> DONE
    Starting operation 'Virtual Machine Start' on object '0004fb0000060000bd9fc1468258f53b (first vm)'
    Job Internal Error (Operation)com.oracle.ovm.mgr.api.exception.FailedOperationException: OVMAPI_4010E Attempt to send command: start_vm to server: vmserver.com failed. OVMAPI_4004E Server Failed Command: start_vm 0004fb000003000091ebba8d298de87c 0004fb0000060000bd9fc1468258f53b, Status: org.apache.xmlrpc.XmlRpcException: exceptions.RuntimeError:Command: ['xm', 'create', '/OVS/Repositories/0004fb000003000091ebba8d298de87c/VirtualMachines/0004fb0000060000bd9fc1468258f53b/vm.cfg'] failed (1): stderr: Error: Boot loader didn't return any data!
    stdout: Using config file "/OVS/Repositories/0004fb000003000091ebba8d298de87c/VirtualMachines/0004fb0000060000bd9fc1468258f53b/vm.cfg".
    Fri Aug 10 02:37:21 HST 2012
    Fri Aug 10 02:37:21 HST 2012
    at com.oracle.ovm.mgr.action.ActionEngine.sendCommandToServer(ActionEngine.java:507)
    at com.oracle.ovm.mgr.action.ActionEngine.sendUndispatchedServerCommand(ActionEngine.java:459)
    at com.oracle.ovm.mgr.action.ActionEngine.sendServerCommand(ActionEngine.java:385)
    at com.oracle.ovm.mgr.action.VirtualMachineAction.sendStartVmCommand(VirtualMachineAction.java:121)
    at com.oracle.ovm.mgr.op.virtual.VirtualMachineStart.asyncAction(VirtualMachineStart.java:65)
    at com.oracle.ovm.mgr.api.collectable.ManagedObjectDbImpl.executeCurrentJobOperationAsyncAction(ManagedObjectDbImpl.java:999)
    at com.oracle.odof.core.AbstractVessel.invokeMethod(AbstractVessel.java:330)
    at com.oracle.odof.core.AbstractVessel.invokeMethod(AbstractVessel.java:290)
    at com.oracle.odof.core.storage.Transaction.invokeMethod(Transaction.java:822)
    at com.oracle.odof.core.Exchange.invokeMethod(Exchange.java:245)
    at com.oracle.ovm.mgr.api.virtual.VirtualMachineProxy.executeCurrentJobOperationAsyncAction(Unknown Source)
    at com.oracle.ovm.mgr.api.job.JobEngine.objectAsyncStart(JobEngine.java:596)
    at com.oracle.ovm.mgr.op.virtual.VirtualMachineStart.action(VirtualMachineStart.java:52)
    at com.oracle.ovm.mgr.api.collectable.ManagedObjectDbImpl.executeCurrentJobOperationAction(ManagedObjectDbImpl.java:1009)
    at com.oracle.odof.core.AbstractVessel.invokeMethod(AbstractVessel.java:330)
    at com.oracle.odof.core.AbstractVessel.invokeMethod(AbstractVessel.java:290)
    at com.oracle.odof.core.storage.Transaction.invokeMethod(Transaction.java:822)
    at com.oracle.odof.core.Exchange.invokeMethod(Exchange.java:245)
    at com.oracle.ovm.mgr.api.virtual.VirtualMachineProxy.executeCurrentJobOperationAction(Unknown Source)
    at com.oracle.ovm.mgr.api.job.JobEngine.operationActioner(JobEngine.java:218)
    at com.oracle.ovm.mgr.api.job.JobEngine.objectActioner(JobEngine.java:309)
    at com.oracle.ovm.mgr.api.job.InternalJobDbImpl.objectCommitter(InternalJobDbImpl.java:1140)
    at com.oracle.odof.core.AbstractVessel.invokeMethod(AbstractVessel.java:330)
    at com.oracle.odof.core.AbstractVessel.invokeMethod(AbstractVessel.java:290)
    at com.oracle.odof.core.BasicWork.invokeMethod(BasicWork.java:136)
    at com.oracle.odof.command.InvokeMethodCommand.process(InvokeMethodCommand.java:100)
    at com.oracle.odof.core.BasicWork.processCommand(BasicWork.java:81)
    at com.oracle.odof.core.TransactionManager.processCommand(TransactionManager.java:773)
    at com.oracle.odof.core.WorkflowManager.processCommand(WorkflowManager.java:401)
    at com.oracle.odof.core.WorkflowManager.processWork(WorkflowManager.java:459)
    at com.oracle.odof.io.AbstractClient.run(AbstractClient.java:42)
    at java.lang.Thread.run(Thread.java:662)
    Caused by: com.oracle.ovm.mgr.api.exception.IllegalOperationException: OVMAPI_4004E Server Failed Command: start_vm 0004fb000003000091ebba8d298de87c 0004fb0000060000bd9fc1468258f53b, Status: org.apache.xmlrpc.XmlRpcException: exceptions.RuntimeError:Command: ['xm', 'create', '/OVS/Repositories/0004fb000003000091ebba8d298de87c/VirtualMachines/0004fb0000060000bd9fc1468258f53b/vm.cfg'] failed (1): stderr: Error: Boot loader didn't return any data!
    stdout: Using config file "/OVS/Repositories/0004fb000003000091ebba8d298de87c/VirtualMachines/0004fb0000060000bd9fc1468258f53b/vm.cfg".
    Fri Aug 10 02:37:21 HST 2012
    at com.oracle.ovm.mgr.action.ActionEngine.sendAction(ActionEngine.java:798)
    at com.oracle.ovm.mgr.action.ActionEngine.sendCommandToServer(ActionEngine.java:503)
    ... 43 more
    FailedOperationCleanup
    Starting failed operation 'Virtual Machine Start' cleanup on object 'first vm'
    Complete rollback operation 'Virtual Machine Start' completed with direction=first vm
    Rollbacker
    Executing rollback operation 'Bridge Configure Operation' on object '0004fb0000200000b15ee1091fd244e1 (network.BondPort (1) in vmserver.com)'
    Complete rollback operation 'Bridge Configure Operation' completed with direction=DONE
    Executing rollback operation 'Virtual Machine Start' on object '0004fb0000060000bd9fc1468258f53b (first vm)'
    Complete rollback operation 'Virtual Machine Start' completed with direction=DONE
    Objects To Be Rolled Back
    Object (IN_USE): [BondPort] 0004fb0000200000b15ee1091fd244e1 (network.BondPort (1) in vmserver.com)
    Object (IN_USE): [Vnic] 0004fb000007000010d326921b98ec03 (00:21:f6:00:00:08)
    Object (IN_USE): [VirtualDisk] 0004fb0000120000d8f2f687d3e4c97f.img (VD1)
    Object (IN_USE): [VmDiskMapping] 0004fb0000130000e3b9005a802f903e
    Object (IN_USE): [VirtualMachine] 0004fb0000060000bd9fc1468258f53b (first vm)
    Write Methods Invoked
    Class=InternalJobDbImpl vessel_id=2712 method=addTransactionIdentifier accessLevel=6
    Class=VirtualMachineDbImpl vessel_id=897 method=start accessLevel=6
    Class=VnicDbImpl vessel_id=787 method=lock accessLevel=6
    Class=VirtualDiskDbImpl vessel_id=919 method=lock accessLevel=6
    Class=VnicDbImpl vessel_id=787 method=lock accessLevel=6
    Class=VmDiskMappingDbImpl vessel_id=928 method=lock accessLevel=6
    Class=VirtualDiskDbImpl vessel_id=919 method=lock accessLevel=6
    Class=VirtualMachineStartingEventDbImpl vessel_id=2721 method=notify accessLevel=6
    Class=VirtualMachineStartingEventDbImpl vessel_id=2721 method=setDescription accessLevel=6
    Class=BondPortDbImpl vessel_id=518 method=addJobOperation accessLevel=6
    Class=InternalJobDbImpl vessel_id=2712 method=setCompletedStep accessLevel=6
    Class=InternalJobDbImpl vessel_id=2712 method=setAssociatedHandles accessLevel=6
    Class=BondPortDbImpl vessel_id=518 method=setCurrentJobOperationComplete accessLevel=6
    Class=BondPortDbImpl vessel_id=518 method=nextJobOperation accessLevel=6
    Class=VirtualMachineDbImpl vessel_id=897 method=nextJobOperation accessLevel=6
    Class=InternalJobDbImpl vessel_id=2712 method=setFailedOperation accessLevel=6
    Class=BondPortDbImpl vessel_id=518 method=nextJobOperation accessLevel=6
    Class=VnicDbImpl vessel_id=787 method=nextJobOperation accessLevel=6
    Class=VirtualDiskDbImpl vessel_id=919 method=nextJobOperation accessLevel=6
    Class=VmDiskMappingDbImpl vessel_id=928 method=nextJobOperation accessLevel=6
    Class=VirtualMachineDbImpl vessel_id=897 method=nextJobOperation accessLevel=6
    Class=BondPortDbImpl vessel_id=518 method=nextJobOperation accessLevel=6
    Class=VirtualMachineDbImpl vessel_id=897 method=nextJobOperation accessLevel=6
    Completed Step: ROLLBACK
    Job failed commit (internal) due to OVMAPI_4010E Attempt to send command: start_vm to server: vmserver.com failed. OVMAPI_4004E Server Failed Command: start_vm 0004fb000003000091ebba8d298de87c 0004fb0000060000bd9fc1468258f53b, Status: org.apache.xmlrpc.XmlRpcException: exceptions.RuntimeError:Command: ['xm', 'create', '/OVS/Repositories/0004fb000003000091ebba8d298de87c/VirtualMachines/0004fb0000060000bd9fc1468258f53b/vm.cfg'] failed (1): stderr: Error: Boot loader didn't return any data!
    stdout: Using config file "/OVS/Repositories/0004fb000003000091ebba8d298de87c/VirtualMachines/0004fb0000060000bd9fc1468258f53b/vm.cfg".
    Fri Aug 10 02:37:21 HST 2012
    Fri Aug 10 02:37:21 HST 2012
    com.oracle.ovm.mgr.api.exception.FailedOperationException: OVMAPI_4010E Attempt to send command: start_vm to server: vmserver.com failed. OVMAPI_4004E Server Failed Command: start_vm 0004fb000003000091ebba8d298de87c 0004fb0000060000bd9fc1468258f53b, Status: org.apache.xmlrpc.XmlRpcException: exceptions.RuntimeError:Command: ['xm', 'create', '/OVS/Repositories/0004fb000003000091ebba8d298de87c/VirtualMachines/0004fb0000060000bd9fc1468258f53b/vm.cfg'] failed (1): stderr: Error: Boot loader didn't return any data!
    stdout: Using config file "/OVS/Repositories/0004fb000003000091ebba8d298de87c/VirtualMachines/0004fb0000060000bd9fc1468258f53b/vm.cfg".
    Fri Aug 10 02:37:21 HST 2012
    Fri Aug 10 02:37:21 HST 2012
    at com.oracle.ovm.mgr.action.ActionEngine.sendCommandToServer(ActionEngine.java:507)
    at com.oracle.ovm.mgr.action.ActionEngine.sendUndispatchedServerCommand(ActionEngine.java:459)
    at com.oracle.ovm.mgr.action.ActionEngine.sendServerCommand(ActionEngine.java:385)
    at com.oracle.ovm.mgr.action.VirtualMachineAction.sendStartVmCommand(VirtualMachineAction.java:121)
    at com.oracle.ovm.mgr.op.virtual.VirtualMachineStart.asyncAction(VirtualMachineStart.java:65)
    at com.oracle.ovm.mgr.api.collectable.ManagedObjectDbImpl.executeCurrentJobOperationAsyncAction(ManagedObjectDbImpl.java:999)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:597)
    at com.oracle.odof.core.AbstractVessel.invokeMethod(AbstractVessel.java:330)
    at com.oracle.odof.core.AbstractVessel.invokeMethod(AbstractVessel.java:290)
    at com.oracle.odof.core.storage.Transaction.invokeMethod(Transaction.java:822)
    at com.oracle.odof.core.Exchange.invokeMethod(Exchange.java:245)
    at com.oracle.ovm.mgr.api.virtual.VirtualMachineProxy.executeCurrentJobOperationAsyncAction(Unknown Source)
    at com.oracle.ovm.mgr.api.job.JobEngine.objectAsyncStart(JobEngine.java:596)
    at com.oracle.ovm.mgr.op.virtual.VirtualMachineStart.action(VirtualMachineStart.java:52)
    at com.oracle.ovm.mgr.api.collectable.ManagedObjectDbImpl.executeCurrentJobOperationAction(ManagedObjectDbImpl.java:1009)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:597)
    at com.oracle.odof.core.AbstractVessel.invokeMethod(AbstractVessel.java:330)
    at com.oracle.odof.core.AbstractVessel.invokeMethod(AbstractVessel.java:290)
    at com.oracle.odof.core.storage.Transaction.invokeMethod(Transaction.java:822)
    at com.oracle.odof.core.Exchange.invokeMethod(Exchange.java:245)
    at com.oracle.ovm.mgr.api.virtual.VirtualMachineProxy.executeCurrentJobOperationAction(Unknown Source)
    at com.oracle.ovm.mgr.api.job.JobEngine.operationActioner(JobEngine.java:218)
    at com.oracle.ovm.mgr.api.job.JobEngine.objectActioner(JobEngine.java:309)
    at com.oracle.ovm.mgr.api.job.InternalJobDbImpl.objectCommitter(InternalJobDbImpl.java:1140)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:597)
    at com.oracle.odof.core.AbstractVessel.invokeMethod(AbstractVessel.java:330)
    at com.oracle.odof.core.AbstractVessel.invokeMethod(AbstractVessel.java:290)
    at com.oracle.odof.core.BasicWork.invokeMethod(BasicWork.java:136)
    at com.oracle.odof.command.InvokeMethodCommand.process(InvokeMethodCommand.java:100)
    at com.oracle.odof.core.BasicWork.processCommand(BasicWork.java:81)
    at com.oracle.odof.core.TransactionManager.processCommand(TransactionManager.java:773)
    at com.oracle.odof.core.WorkflowManager.processCommand(WorkflowManager.java:401)
    at com.oracle.odof.core.WorkflowManager.processWork(WorkflowManager.java:459)
    at com.oracle.odof.io.AbstractClient.run(AbstractClient.java:42)
    at java.lang.Thread.run(Thread.java:662)
    Caused by: com.oracle.ovm.mgr.api.exception.IllegalOperationException: OVMAPI_4004E Server Failed Command: start_vm 0004fb000003000091ebba8d298de87c 0004fb0000060000bd9fc1468258f53b, Status: org.apache.xmlrpc.XmlRpcException: exceptions.RuntimeError:Command: ['xm', 'create', '/OVS/Repositories/0004fb000003000091ebba8d298de87c/VirtualMachines/0004fb0000060000bd9fc1468258f53b/vm.cfg'] failed (1): stderr: Error: Boot loader didn't return any data!
    stdout: Using config file "/OVS/Repositories/0004fb000003000091ebba8d298de87c/VirtualMachines/0004fb0000060000bd9fc1468258f53b/vm.cfg".
    Fri Aug 10 02:37:21 HST 2012
    at com.oracle.ovm.mgr.action.ActionEngine.sendAction(ActionEngine.java:798)
    at com.oracle.ovm.mgr.action.ActionEngine.sendCommandToServer(ActionEngine.java:503)
    ... 43 more
    End of Job
    Thank you so much...

    I was advised to run PVM on VirtualBox. When running HVM, it complained about the CPU not supporting for Hardware Virtualization even though I'm sure that the CPU and MB support Hardware Virtualization.
    Any thoughts or comments?

  • Sort Loaded Groups in Portal According to Source Filename Property

    Hello,
    I am using a script to load 4 files in th Data portal and later graph some selected channels. The problem is that when I choose the files through a dialog box, the order gets mixed up in the data portal. I would like the files to be sorted according to the source filename. Here is the loading script:
    Dim i, intLoop, Group,b
    Call Data.Root.Clear()
    If FileDlgShow(DataReadPath,"TDMS Files,*.tdms","DataSelection",True) = "IDOk" Then
    For i = 0 to UBound(FileDlgNameList)
    Call DataFileLoad(FileDlgNameList(i),"TDMS","Load") DataFilename,FileImportFilter,ImportAction
    Next
    End If
     Is there any way I can do that?
    Thank you!
    Solved!
    Go to Solution.

    winner wrote:
    Hi Saloutios,
    You can sort the FileDlgNameList Array for example using the BubbleSort algorithm:
    Sub BubbleSort(arr)
    Dim value, numEls
    Dim index
    Dim firstItem
    Dim indexLimit, lastSwap
    ' account for optional arguments
    numEls = UBound(arr)
    firstItem = LBound(arr)
    lastSwap = numEls
    Do
    indexLimit = lastSwap - 1
    lastSwap = 0
    For index = firstItem To indexLimit
    value = arr(index)
    If (value > arr(index + 1)) Then
    ' if the items are not in order, swap them
    arr(index) = arr(index + 1)
    arr(index + 1) = value
    lastSwap = index
    End If
    Next
    Loop While lastSwap
    End Sub
    The input array is sorted after you called that procedure.
    Hope this helps
    Winfried
    Hi Winfried,
    Thank you very much for the reply. That worked just fine for me!
    Cheers!

  • How can I load pics from camera without spaces in the filename (PSE5)

    Hello,
    I want to load the pics from my Fuji Camera with my newly acquired Photoshop Elements 5 into its database as simple as possible. I get offered several ways of renaming the pics during the import. Unfortunately the date formats offered (for folder or filenames) do *all* include space characters " ", which I do not like, because this caused me earlier a lot of trouble when putting the pics online, for example (%20 in the path name). Another reason is my existing photo collection since 2001, which has no spaces in the filenames as well.
    Example for the filename:
    PSE offers: "jj mm dd 001.jpg"
    I want : "jjmmdd_001.jpg" or at least "jj_mm_dd_001.jpg" or anything similar.
    For folder names the same thing appears.
    Is there a way to do that without typing each date without spaces by hand?
    How?
    I would like to have the photo load process as simple as possible, without having to remove the spaces with a separate rename tool.
    Any ideas?
    I searched for quite a while and I am surprised that nobody else seems to have this problem. Am I just too picky?
    Thank for any help.
    Greetings from Germany,
    Ulrich

    Ken,<br />again thanks for your writing.<br /><br />IMHO, if PSE had space free filenames, this would lead to a very simple and fast workflow with PSE alone (!) like this:<br /><br />1. Just connect my camera (Fuji F31fd) with the USB cable (no fiddling with the memory card in and out each time)<br />2. Transferring all (or selected) pics into PSE, one folder per day, named yymmdd_optional_theme_description.<br />3. Delete all non-optimal pics after viewing in PSE. Then tagging, pic-improving where needed ....<br />4. As backup, burn/move to CD from time to time and copy/move to an external HDD for double security.<br /><br />Its just the spaces in the filenames which prevents me from using this. I want to have the workflow well defined and fixed before I start using PSE5. <br />But it seems there is no workaround (so far).<br /><br />Maybe I should just take the "trouble" and rename every folder manually within PSE. No problem with one or 2 days, and still not a very big problem after a 3 week holiday. But still all single photo files will have the spaces in them. If I want to avoid that, I really have to bring them to the PC without PSE, rename them as batch with Irfan or any other tool, and then import them to PSE, as you wrote. From my point of view, a lot of unnecessary hassle, especially if I have the simple workflow from above in mind.<br /><br />Many people seem not to be disturbed by the spaces in the filenames. I wonder if I overrate the disadvantage of it. Your opinion(s)?<br /><br />I am not sure what you mean with<br /><Perhaps Ulrich would be well served if he created a collection of newly acquired pictures with a common theme.><br /><br />In fact I want to come away from theme centered archiving the photos, which is what I did so far. I learned this from the article <br />http://forums.dpreview.com/forums/read.asp?forum=1018&message=26366116 <br />and the following one from Arrowman. I won't follow all what he wrote *in detail*, but most ideas seem to be good. The PSE tagging should do the theme-related searches.<br /><br />Greetings,<br />Ulrich

  • DECODE function to validate date value and sort the records

    Hi Friends,
    I am looking for some query which can give me the required output,
    I need to do this using SQL query only and I have tried using the MIN() and MAX() functions it was working fine with limited data, now after inserting the last record(in the below table) which has date for start_range and end_range in(mm/dd/yyyy hh24:mi:ss) format.
    Because the data type is VARCHAR2 if I am using the MIN() function it is sorting as a string value, hence the min date is incorrect. I tried using validating the value to date or non date and tried to using MIN() and MAX() functions using the DECODE function, I am getting this error "ORA-01840: input value not long enough for date format".
    select table_name,
    DECODE(substr(START_RANGE,3,1)||substr(START_RANGE,6,1)||substr(START_RANGE,11,1)||substr(START_RANGE,14,1)||substr(START_RANGE,17,1),'// ::',
    to_char(min(to_date(start_range,'mm/dd/yyyy hh24:mi:ss')),'MM/DD/YYYY HH24:MI:SS'),min(start_range)) MIN_RUNS_START_RANGE,
    DECODE(substr(END_RANGE,3,1)||substr(A.END_RANGE,6,1)||substr(END_RANGE,11,1)||substr(END_RANGE,14,1)||substr(END_RANGE,17,1),'// ::',
    to_char(max(to_date(END_RANGE,'mm/dd/yyyy hh24:mi:ss')),'MM/DD/YYYY HH24:MI:SS'),max(END_RANGE)) MAX_RUNS_END_RANGE
    from MY_TABLE
    GROUP BY table_name,
    (substr(START_RANGE,3,1)||substr(START_RANGE,6,1)||substr(START_RANGE,11,1)||substr(START_RANGE,14,1)||substr(START_RANGE,17,1)),
    (substr(END_RANGE,3,1)||substr(END_RANGE,6,1)||substr(END_RANGE,11,1)||substr(END_RANGE,14,1)||substr(END_RANGE,17,1))
    Can sombody please advise what is the best way I can query this data with the required output.
    The following are the source table and records and the out put records using the sql query.
    MY_TABLE
    TABLE_NAME(VARCHAR2),START_RANGE(VARCHAR2),END_RANGE(VARCHAR2)
    TABLE1,1000,10000
    TABLE2,ABCD,EEEE
    TABLE3,01/12/2010 00:00:00,12/31/2010 23:59:59
    TABLE1,10001,20000
    TABLE2,EEEF,GGGG
    TABLE3,01/01/2011 00:00:00,01/31/2011 23:59:59
    OUTPUT :
    TABLE_NAME,MIN(START_RANGE),MAX(END_RANGE)
    TABLE1,1000,20000
    TABLE2,ABCD,GGGG
    TABLE3,01/12/2010 00:00:00,01/31/2011 23:59:59
    Thanks
    Kalycs

    i also think this is a very bad table design ...
    but if you are not able to change it, you could split the select (date and non-date data) and combine the result with UNION like this:
    with t as
    SELECT 'TABLE1' table_name,'1000' start_range,'10000' end_range FROM dual UNION
    SELECT 'TABLE2','ABCD','EEEE' FROM dual UNION
    SELECT 'TABLE3','01/12/2010 00:00:00','12/31/2010 23:59:59' FROM dual UNION
    SELECT 'TABLE1','10001','20000' FROM dual UNION
    SELECT 'TABLE2','EEEF','GGGG' FROM dual UNION
    SELECT 'TABLE3','01/01/2011 00:00:00','01/31/2011 23:59:59' FROM dual
    SELECT table_name,
           TO_CHAR(MIN(TO_DATE(start_range, 'MM/DD/YYYY HH24:MI:SS')), 'MM/DD/YYYY HH24:MI:SS'),
           TO_CHAR(MAX(TO_DATE(end_range, 'MM/DD/YYYY HH24:MI:SS')), 'MM/DD/YYYY HH24:MI:SS')
    FROM t
    WHERE start_range LIKE '%/%/%:%:%'
    GROUP BY table_name
    UNION
    SELECT table_name,
           MIN(start_range),
           MAX(end_range)
    FROM t
    WHERE start_range NOT LIKE '%/%/%:%:%'
    GROUP BY
        table_name;
    TABLE_ MIN_VALUE           MAX_VALUE
    TABLE1 1000                20000
    TABLE2 ABCD                GGGG
    TABLE3 01/12/2010 00:00:00 01/31/2011 23:59:59

  • I would like to transfer all data from my iPod classic to my new computer with windows 8.1. My old computer's cpu died. Utilizing iTunes which only allows iTunes albums purchased at iTunes store. The cd's were loaded via iTunes originally.

    I would like to transfer all data from my iPod classic to my new computer with windows 8.1. My old computer's cpu died. Utilizing iTunes which only allows iTunes albums purchased at iTunes store. The cd's were loaded via iTunes originally.

    Install disk drive from old computer in an external enclosure.
    Then copy the complete iTunes library from the disk drive to the disk drive in the new computer.

  • I have downloaded and installed the latest version of numbers on my mac. Everytime I save and then try to reopen that document, I receive a message telling me that I need a new version of numbers. Also, when I try to sort the date column, it sorts out of

    I have downloaded and installed the latest version of numbers on my mac. Everytime I save and then try to reopen that document, I receive a message telling me that I need a new version of numbers. Also, when I try to sort the date column, it sorts out of order. The last version sorted fine.

    Welcome to Apple Support Communities
    When you install the new iWork version, the old iWork version is kept, so it looks like you are opening your old version.
    To fix this, open a Finder window, choose Applications in the sidebar and drag the new Numbers version to the Dock, so you can access to it quickly. Open all documents from this version. I don't recommend you to delete the old Numbers version in case you need it.
    Respecting to the second question, you will get better answers in the Numbers for OS X forum

  • I need to start and stop logging based on a digital input event(or analog if necessary), log data for several seconds prior to the event, and have the data file close at the end of event and increment the filename for the next logging event.

    I don't know if this can be done with VI Logger or need to use Labview V7.1.

    After browsing through the VI Logger User Manual, it looks like the triggering that you are hoping to accomplish is possible. However, incrementing the filename for the next logging event is not going to be possible. VI Logger does exactly what its name tells - logs data. I don't think the automation that you are hoping to accomplish is possible.
    For help with setting up your application, if you do choose to stay with VI Logger, make sure to chek out the Getting Started with VI Logger Manual.
    Best of luck.
    Jared A

  • Transaction data can be loaded into the Fact table without loading the

    Transaction data can be loaded into the Fact table without loading the corresponding master data (Example : Sales analysis transaction data can be loaded without populating any of its  dimension’s master data)
    a.     True
    b.     False

    Hi Kutti,
    True - You need to select the option in the infopackage - alwyas load even if no master data exists.
    Bye
    Dinesh

  • Sorting the data of control block in oracle form 10g

    I have two block....both are the control block..
    in first block i select the date and in second block the data of that date is populated.but the data is populated
    using cursor in when-button-pressed trigger of that first block button...
    in cursor the data is selected and placed in field of detail block using into clause.... each field..
    .and one item of detail block is srno which is create in post-query of detail block using
    :sysyem.trigger_record.
    Now i want after populated the detail block the data is sorted desc one of the field of the detail block...
    Can this possible using set_block_property() of block although the block is control block if yes where i should do
    this??????
    Please explian...????

    but with the cursor of repopulate ...how the block is in desc by one field..because if i use again the same cursor to poulate than whats this benefits???
    if i write a cursor in button when-button-trigger in first block like this code....
    go_block('');
    cursor emp_cur is
    select empno,date,sal
    from emp;
    begin
    for i in cur loop
    select i.empno,i.date,i.sal
    into :empno,:date,:sal
    from emp
    end loop
    end;
    this loop populate the block which is controll block..
    syntax error should be ignored ...i wana to explain what i want to do...
    this is not the actual query i have another query but the concept is that...
    how i can do this...

  • How to get date appended in the filename of the IR reports

    I have a requirement where in i need to generate the output for the IR reports with a date appended in the output name.
    The report is scheduled daily. The generated output should have a date appended to it.
    For example - if the report say 'abc' gets generated today then the name of the generated report should be abc_26/10/2009.
    I could find one option saying append date to the filename while adding a schedule to the report. I have checked that property but still while generating the report i am not able to see the date appended with the report name. It just takes the cycle name that i had mentioned.
    I am using IR 11.1.
    Any help is appreciated.

    Do to the complexity of the program we need to run it with sequences.  This is because we need to aquire data with DAQ until it reaches a certain point and then stop collecting so that it can do its process (only once for all times criteria is met), and then loop around till again collecting after DAQ drops back below certain point looking to once again reach that point.  Another flat sequence is going outside of this where I want to put the prompt and have a user input to affect how many times that that the inner loop is run (No a For Loop instead of the while loop will not work either for other reasons). 
    I just want to know if after the program starts you can have a user input that will change the effect of the rest of the programs action based on the number inputed.

  • How to use XmlModify to sort the XML Data?

    Hello,
    I saw some examples explain how to use XmlModify in BDB XML package. I want to sort the XML data by several elements but my Java program could not work correctly.
    <CustomerData>
    <Transaction>
    <DLSFIELDS>
    <ADR_PST_CD>12345</ADR_PST_CD>
    <CLT_IRD_NBR>002</CLT_IRD_NBR>
    </DLSFIELDS>
    </Transaction>
    <Transaction>
    <DLSFIELDS>
    <ADR_PST_CD>12345</ADR_PST_CD>
    <CLT_IRD_NBR>102</CLT_IRD_NBR>
    </DLSFIELDS>
    </Transaction>
    // many nodes like transaction ...
    </CustomerData>
    My XQuery script was executed successfully in the shell. The script looks as follows:
    "for $i in collection('sample.dbxml')/CustomerData/Transaction order by xs:decimal($i//ADR_PST_CD), xs:decimal($i//CLT_IRD_NBR) return $i".
    The Java code :
    // create XmlManager
    XmlManager manager = // ...;
    // open XmlContainer
    XmlContainer container = // ...;
    XmlQueryContext context = manager.createQueryContext(XmlQueryContext.LiveValues, XmlQueryContext.Eager);
    XmlQueryExpression expression = manager.prepare("for $i in collection('sample.dbxml')/CustomerData/Transaction order by xs:decimal($i//ADR_PST_CD),xs:decimal($i//CLT_IRD_NBR) return $i", context);
    XmlModify modify = manager.createModify();
    XmlUpdateContext uc = manager.createUpdateContext();
    XmlDocument xmldoc = container.getDocument("sample.xml");
    XmlValue value = new XmlValue(xmldoc);
    long numMod = modify.execute(value, context, uc);
    System.out.println("Peformed " + numMod     + " modification operations");
    Could you point out the errors above or offer some suggestion?
    Thanks.

    I have other question of the sorting issue. Here are a large XML need to sort so I have to split it to multiple small XML files. After importing these files, I will use the XmlModify and XQuery to sort them. I'm not clear on the multiple XML files processing.
    1. Can the BDB XML ensure that all these XML files were sorted or how to update all documents with same logic.
    2. If I want export all these sorted documents, how can I ensure these files processed in sequence? Which document needs process first?
    The export method:
    public void export(String outputfile)throws Exception{
    final int BLOCK_SIZE = 5 * 1024 * 1024; // 5Mb
    try{
    File theFile = new File(outputfile);
    FileOutputStream fos = new FileOutputStream(theFile);
    byte[] buff= new byte[BLOCK_SIZE];                         
    XmlResults rs = container.getAllDocuments(new XmlDocumentConfig());               
    while(rs.hasNext()){
         XmlDocument xmlDoc = rs.next().asDocument();
         XmlInputStream inputStream = xmlDoc.getContentAsXmlInputStream();                    
         long read=0;
         while(true){
         read = inputStream.readBytes(buff, BLOCK_SIZE);
    fos.write(buff,0,(int)read);                    
         if(read < BLOCK_SIZE) break;
    inputStream.delete();
    xmlDoc.delete();
    rs.delete();
    //MUST CLOSE!
    fos.close();               
    catch(Exception e){
    System.err.println("Error exporting file from container " + container);
    System.err.println(" Message: " + e.getMessage());
    Thanks.

  • How do I sort the data in the spreadsheet?

    This is a fairly basic question and something I do all the time.  I need to sort the data on a particular column or set of columns and am frustrated that it is this difficult to find.  In trying to figure this out I know also have a chart on my spreadsheet that I can't seem to delete. 

    If you don't see a gray bar above the table, then tap a cell to show the gray bar.
    Select a column by tapping the gray bar directly above the column. After the column is selected, tap the exact same spot again to show a menu.
    In the menu, tap on Sort... etc...
    Sort will sort the selected column, but will also update the entire table accordingly. If you don't want the rest of the table to update, then you have to copy that column (with the columns that you do want to update) and paste them onto the canvas so they appear in their own table. Sort the column then and paste it back into the original table.
    Delete the chart from a menu that appears similarly as Sort. Tap on the chart one time to select it. Tap it again to show the menu with Delete. If you are doing this and choosing Delete, but the chart is not disappearing, then there might be a problem with the file.

  • I created an album from photos taken off three different cameras. I am sorting the photos manually and when I close iPhoto, the photos move back either by date or by camera import time. How can I keep the photos from moving around?

    I created an album from photos taken off three different cameras. I am sorting the photos manually and when I close iPhoto, the photos move back either by date or by camera import time. How can I keep the photos from moving around?

    Don't tell us, tell them
    http://www.apple.com/feedback/macosx.html is the place for feature requests and feedback

Maybe you are looking for

  • Need urgent help on iOS 8 for iPhone 4S. I am unable to start my device after the update

    Friends, I wanted to upgrade to iOS8 on my iPhone 4S. I was not connected to iTunes. Clicked install while I was on a WiFi connection. Post that I tried restarting and it is showing a pictorial diagram asking me to connect to iTunes. I connected to i

  • Reg: passing wdEvent as a parameter .

    Hi All, I have a event handler method in my view. I am calling that method in some other method in the same view based on one condition by passing wdEvent as a parameter bcozz event handler methods have wdEvent as a parameter. for this I did com.sap.

  • Blurry Text On Dell UltraSharp U3014

    I recently bought a Dell UltraSharp U3014 (30" Display). I have it connected to my MacBook Pro (2011 non-retina) via Mini DP to DP.  I noticed that text seemed noticably blurry, and not as crisp/sharp as I would have expected them to be. I've checked

  • Evaluation Expired message on valid system

    HI, we installed Server 2012 Essentials in January, were happy with the system and purchased the relevant user licences.  We now get the messages about "Microsoft base grace period about to expire" for various components.  The server knows it has a v

  • Adobe support is terrible!

    Just a general question, does anyone else have issues with Adobe's support? It all has to be via the website, no phone support in my country. Raised the issue at the start of March, still waiting at the end of March. Loved everything about Flash when