datafinder read properties of type 'DataTypeDate' from the script

Hi all

What do I need read "Modify date" value of the property of my Datafinder resultlist?

result of:

Dim oMyDataFinder, oMyQuery, MyDate, MyMin, oMyResults
Set oMyDataFinder = Navigator.ConnectDataFinder ("My DataFinder")
If oMyDataFinder.Name = "My DataFinder" Then
Dim AdvancedQuery
Set AdvancedQuery = Navigator.CreateQuery (eAdvancedQuery)
AdvancedQuery.ReturnType = eSearchFile
Call AdvancedQuery.Conditions.Add (eSearchFile, "yyyy", "is", "*")
oMyDataFinder.Search (AdvancedQuery)
Set oMyResults = oMyDataFinder.Results

MsgBox (oMyDataFinder.Results (1).) Properties("modifyTime").value)

is an error. number 438. "Proprietà o Método supportati no dall.oggetto.

oMyResults.count return 1

My property value is "15/11/2010 11:08:30.

Thank you

Yustas

Hello Yustas,

for the date/time properties, an object called "UsiTimeDisp" is returned.

To print the date by using msgbox please try

MsgBox (oMyDataFinder.Results (1).) Properties ("modifyTime"). Value,variantdate)

Hope that helps,

Eva

Tags: NI Software

Similar Questions

  • How to use refcursor type returned from the remote database in the local database

    Can anyone say is how they use the refcursor use type returned from remote database in the local database using dblinks.

    See MOS ID 750126.1 doc ORA-24338 when trying to return a Refcursor over a database link.

  • Sending mail from the script.

    Hello

    I am writing the script that will send the mail & check the ORA error in the alert log. Below is the script, but I didn't receive the e-mail, please correct.

    # File: alert_monitor.sh


    key = 'date + % Y.%m.%d ".

    ALERT_LOG_PATH = $1



    #Check to find any ORA errors

    Cat $ALERT_LOG_PATH/alert_$ 2.log | grep "ORA" - | grep - v ' ORA-12570'. "



    #If there is error ORA post them

    If [$?-eq 0]

    then

    CNT ='cat $ALERT_LOG_PATH/alert_$ 2.log | grep - v ' ORA-12570' | grep n 'ORA' - | cut - f1 d «:» | head - 1 '

    SED-n '$cnt', '$p' $ALERT_LOG_PATH/alert_$ 2.log | mail-s 'Mistakes in the $2 alerts log' [email protected] [email protected] - c

    FI

    #Archive this alert drop by a date key

    Cat $ALERT_LOG_PATH/alert_$ 2.log > > $ALERT_LOG_PATH/alert_$2.log.$key

    CP/dev/null $ALERT_LOG_PATH/alert_$ 2.log


    Thank you.

    Published by: user8854256 on November 18, 2010 23:54

    Maybe your mail order doesn't like that you first specify the address and follow that by - c. cc-address? This help if you change that?

     ... | mail -s "Errors in alert log of $2 " -c [email protected] [email protected]
    

    Apart from that, I think you run the risk of ruining your line number for sed with the running grep.

  • Scripts have disappeared from the Scripts window

    At work, I have 3 CS. This morning, I opened the window of the script to run a script & there is here, not even the samples. I opened the appropriate files, and Yes, the scripts were here.

    Reset did not help.

    Could the actual registration of the scripts window must be in an XML file that has been corrupted or deleted?

    Thank you.

    Change your preferences

  • don't read full of binary data from the db

    I have a strange problem. I read the binary data (png images) of database through cold fusion. everything worked, but now it has stopped working. the exact same script works on another server and the images appear correctly. but on the other server, it works more (from one hour to the next..). data base is the same. other data in the database are correctly read. but binary data may not be read or not completely. images remain blank, because only a header is created.
    I managed to convert the binary data, which are read for string and display it on both servers. Result, on one server, its site more of one and a half on the non working server, it's just more or less an information line.
    any ideas what could be the problem? kind of time-out due to the length of the data?

    do not know how and why, but after 5 days of research, and now, writing this post, I looked in cold fusion administrator and I saw, that the ' enable binary large object (BLOB) retrieval ' has been disabled... it wasn't me...
    so the problem is solved

  • Set the following fields in 'read only' to take data from the first occurrence?

    Hoping that this can be easily done without the need for scripting.

    I'm working on creating a form of proposal. There are a few areas where I would like the first instance of an editable field, but the rest would be locked so that they are even taken out of the tab order.

    Example: On the first page, I have a field for the name of the company. This field is reproduced in the pages of the proposal. Each field has the same name. So all data have concluded one of them are dealt to each of them.

    Ideal solution: Front page field is editable, and is where data is entered. "All the following fields are defined as 'read only' and take their 'master' field data" so someone can't make a change to this form, for example, the third page and have this error repeated throughout the document.

    Is this possible?

    I use Acrobat Pro DC on Windows 7 pro.

    Thank you.

    You use a script to do it, but it's very simple.

    If the 'master' field is called "Text1", then enter this code in the calculation script customized for all other areas that need to have its value:

    Event.Value = this.getField("Text1").value;

  • How to read the two columns of data from the Port series

    Hello

    I'm reading two columns of data from the serial port.

    Example:

    52439 52430

    52440 52437

    52209 52214

    51065 51070

    52206 52390

    I use the serial of Visa service and I can read the first column of data from the serial port, but I can't understand how to read the second column.

    I want to both sets of chart data.

    I enclose my VI.

    Thank you for your help.

    The analysis of string function takes a "Format string" on top (with the right button of the function and choose Help, which explains all the entries).  In particular, you can say 'Give me two numbers separated by a tab' and the output will be two numbers (whole or floating, depending on the chosen format).  In particular, %d\t%d specifies a decimal integer, , whole decimal.

  • Spend the MATLAB data types 'cell' between MATLAB script nodes in LabView?

    Hi all

    I need to pass a variable of data type of cell of a MATLAB script node in LabView to another, but the cell is not listed as a data type 'exit' in the script node.

    Is it possible to do without converting them into a 2D array?  Each column of my cell has a different number of lines...

    Thank you!

    Mike

    Too bad...

    Rather than use a typical LabView, I just say

    assignin ('basic', ' varname', varvalue ");

    in the first script and varname called from the second node to get my cell.

    Easy... duh leaving here if anyone has the same issue in the future.

  • How to read bar codes using qith and the mink of Gige camera software

    Hello

    I have a Gige vision camera, I need to use it to read bar code and save it in a file. Is there a way to read a code bar directly from the camera with LabVIEW to mink. Please let me know if there is a way.

    Thank you

    Ankit G

    Hello AnkitG,

    If you open the finder example in Labview, there are examples of code bars.  They are under the Modules and Toolkits > Vision > Applications.  You should find two examples of how read bar codes.

    David,.

  • Upgrade Express on 7, that an error has occurred in the script on this page. Line 0. Char from 0. Script error. code 0. "with a URL

    Hello

    After looking on any 3rd party retailers appear Anytime Upgrade key for 7 to professional.

    When I try Anytime Upgrade system that is integrated and use 'go online to choose Windows7 edition which is best', an error box comes in reading "an error has occurred in the script on this page. Line 0. Char from 0. Script error. code 0. "with a URL.

    When I try the store I find nothing either. Can I deduce that Microsoft no longer sell upgrades between versions of windows 7?

    Whenever upgrades have long past gone

    Finally unless you are interested in win-10 which is.

    Many win-7 pro autour on Newegg and Amazon, but they are not at level only oem / system integrator.

    You could buy one and a new ssd / HDD to install on and use the original win-7 to move to 10 - win

    Then passed to win-10 pro for 99.us.

  • Run the code from the jar java fixed pitch

    Hello

    based on article

    https://supportforums.Cisco.com/document/98986/UCCX-quick-Java-recipes

    I copied the code of 1). and they changed a bit for my daysx24hours. The only type is, give the script a parameter (here the number of credit card and return the result of UCCX (perhaps the last type is missing).)

    The following code:

    ###############################################################################

    public class ClassCheckCC {}

    Public Shared Sub main (String [] args) {}
    TODO self-generating method stub
    String ccnumber = args [0];
    String ccnumber = "66666666666666666";
    int isValid = 99;
    isValid = verifyCC (ccnumber);
    System.out.println (IsValid);
    }
            
            
            
            
    private static int verifyCC (String ccnumber) {}
    int sum = 0;
    Boolean alternate = false;
    Boolean isValid = false;
    try {}
    int i = 0;
    for (I = ccnumber.length () - 1; i > = 0; i--) {}
    int n = Integer.parseInt (ccnumber.substring (i, i + 1));
    If {(acting)
    n = n * 2;
    If (n > 9) {}
    n = (% n 10) + 1;
    }
    }
    sum += n;
    Alternate =! alternate;
    }
    isValid = (sum %10 == 0);

    } catch (Exception e) {}

    Returns - 1;

    }

    return (isValid == true? 1: 0);
    }
    }

    ###############################################################################

    In Eclipse, I create a new java project named "CheckCreditCardNumber" and insert this code into the new project. The name of the new class is 'ClassCheckCC '. I created a "CheckCCNumber1.jar" executable jar file This will work as expected in a DOS window.
    I call it this way: java-jar CheckCCNumber1.jar 1234567890123456

    The number represents a credit card number.

    In my opinion, always ready to implement in UCCX.

    JAR file downloaded on UCCX (you can find it in an attachment here), moved to the right side (to the Classpath entries. selected :) Some service restarted. Do some tests to access the file and can be seen in UCCX Editor.

    Then, I created a new script file and inserted a defined step

    takes it place the following errors:

    But the result expected from the byte type (-1.0 or 1) java code. Shit, I declared the variable isValid as string occurs:

    We try to call java code:

    Next, the error message is different:

    Yes, here are my questions. What wrong? Where can I call this java code little success.

    I know, it s possible to run code without additional jar files. I am interested to implement more than java classes in a jar file for future needs, and this is a first step.

    Greetings Naatz Maic

    Hello

    UH... Let's get a few things right if you don't mind.

    Your class is valid, as you say, you tested with Eclipse, which is a fair way to go. You have two methods, 'main' and a private static "verifyCC" returning an int value. Good. Now, if I take a quick glance at your UCCX script I see some interesting things there. First, you create a new variable of type ClassCheckCC, with the name CheckCC and with null as default. Cool, that's like saying JRE of UCCX for "Hey, let's use a new variable of type ClassCheckCC", or more precisely:

    ClassCheckCC CheckCC = null;

    Alrighty. Then, you kind of try to value of isValid saying CheckCC (ccnumber). Why it's wrong: in Java, it does:

    isValid = CheckCC (ccnumber);

    You see already? The above code actually means:

    isValid = null (ccnumber); Not valid!

    CheckCC is null.

    Let's try a slightly different approach:

    public class CheckCC {}
    Public Shared Sub main (String [] args) {}
    System.out.println ("Move along, nothing to see here, call verifyCC (String s) instead. ');
    }
    public static int verifyCC (String ccnumber) {}
    int sum = 0;
    Boolean alternate = false;
    Boolean isValid = false;
    try {}
    int i = 0;
    for (I = ccnumber.length () - 1; i > = 0; i--) {}
    int n = Integer.parseInt (ccnumber.substring (i, i + 1));
    If {(acting)
    n = n * 2;
    If (n > 9) {}
    n = (% n 10) + 1;
    }
    }
    sum += n;
    Alternate =! alternate;
    }
    isValid = (sum %10 == 0);
    } catch (Exception e) {}
    Returns - 1;
    }
    return (isValid == true? 1: 0);
    }
    }

    You may have noticed that I made a few adjustments. I renamed ClassCheckCC to the simpler CheckCC, I changed the method of verifyCC to the public modifier. It's actually a great example of a utility class where you have not all instances, so we should let JDK code optimization.

    Using this approach, we don't need to create instances of the object - that they are unnecessary in this case. Simply call CheckCC.verifyCC (String aString) is quite sufficient. We can, as I will demonstrate, but then again, why should create us instances of the class each time a script is run.

    The following three constructs are valid (assuming that I have created the necessary variables: val, validCCNumber, and invalidCCNumber):

    Valid value = CheckCC.verifyCC (validCCNumber)

    Pure and simple. I simply call the static verifyCC method on the CheckCC class with a parameter.

    The valid value = {return CheckCC.verifyCC (invalidCCNumber) ;}

    I just padded the single line above with braces, creating a block of code, point comma and the return keyword became necessary.

    The valid value = {CheckCC instance = new CheckCC(); return instance.verifyCC (validCCNumber) ;}

    Now, it's quite redundant but functional example. I created an instance of the CheckCC class, named instance and then ran the method verifyCC on the newly created class instance. Once again, it is a situation when a developer is boring and has nothing better to do than to create instances of the class and sending them to the eternal bytefields.

    G.

    Here is a screenshot:

  • Remove scripts from the 'Window' menu

    How can I remove these "scripts" or whatever they are.

    It is so annoying, I removed them from the script folder and now they stop working and will not disappear. I tried to remove all scripts, reinstall AE, reset back to factory settings. Nothing works and I can't find anything online. Help please!

    Untitled.png

    Those look like some old Digital Anarchy 3D Assistants, who are a combination of plug-ins and scripts. Turn and that sort of thing. They can be in the Adobe's ' Common' folder.

    Mylenium

  • I'm looking for the Scripts directory from a script.

    Hi all! After playing with Photoshop scripts, I'm now playing with AE also, and in my first test I stuck to find the path of scripts from the script itself.

    In Photoshop, there was this piece of code that someone in the forum scripts Photoshop kindly shared:

    var scriptsPath = new folder (app.path + ' / ' + locate ("' $$$ / ScriptingSupport/InstalledScripts = settings presets/Scripts" "));

    But this line does not work in After Effects because there is no variable app.path (very funny, I thought that Photoshop and After Effects share the same basic app variables) and the required path "find" does not go in AE (I think that "$$$" means nothing to her).

    Can someone give me a clue on how to fix this? Thank you very much in advance :-)

    This script shows some examples that you can try. The first part shows a way to get the record in that of the running script is located. The second gets the main AE app folder but I do not know if appFolder runs on Windows (you still need to add \Scripts on/SupportFiles/Scripts on Win or Mac).

    var thisScript = new File($.fileName);

    var containingFolder = new Folder (thisScript.parent.absoluteURI);

    Alert ("this script is in" + containingFolder.absoluteURI);

    var appFolder = new Folder (Folder.appPackage.parent.absoluteURI);

    Alert ("the app folder is at" + Folder.decode (appFolder.absoluteURI));

  • Script runs differently from the ESTK and Scripts panel

    Recently I talked to a problem with one of my scripts, which packets of identity papers: a guy wrote to me that when it run ESTK, the script works fine, but when it is run from the Scripts panel - creating empty folders, does nothing more but an error (there is an error handler in the script that records the errors in a text file) :

    Error: Invalid value for parameter "versionComments' event 'packageForPrint '. Expected String but received TRUE.

    It's strange, because I do not use this optional parameter in the script.

    BTW, on my computers, it works well, both ID and ESTK.

    Someone has experienced this problem? Any ideas on why this is happening?

    Kasyan

    It probably has its version scriptPreferences value 5. To make your script foolproof, you probably set the scriptPreferences (and restore them when we have the gift of being nice...)

    BTW, kAppVersion = parseFloat (app.version) is a more readable form to get the version number...

    Substances

  • Workflow started by the script fails to get the parameter passed securestring

    Hello

    I use a script (linux) to start a workflow ( defined by software for the script ;-) thank This mechanism works very well.

    However, yesterday we removed an input parameter in a workflow of some (and also deleted from the script) and now it fails.

    Before the change, the input parameters were: vmName (String), vmUser (String), vmPassword (SecureString)

    After the change, the input parameters are: vmName (String), vmPassword (SecureString)

    In the script, I can add statements to prove that the password has a value and that it is past.

    In the workflow, I've added a task containing a script that is executed first and shows that the value of the vmPassword input parameter is empty.

    The output xml from script of appeal shows also that the value parameter is 'lost '...

    See the definition of setting correct for vmName on lines 11 and 12.

    See a definition of parameter incorrect for vmPassword on line 13 - the part missing "secret < SecureString > < \SecureString >...

    <?xml version="1.0" encoding="UTF-8" standalone="yes"?>
    <workflow-execution  href="https://ehc3-vco2.ehc.ssev.local:8281/vco/api/workflows/fe59b484-ec21-4028-8a32-5e434b4139c2/executions/ff8080814e0272b6014eadc7c37424fb/">
    <relations>
    <link href="https://ehc3-vco2.ehc.ssev.local:8281/vco/api/workflows/fe59b484-ec21-4028-8a32-5e434b4139c2/executions/" rel="up"/>
    <link href="https://ehc3-vco2.ehc.ssev.local:8281/vco/api/workflows/fe59b484-ec21-4028-8a32-5e434b4139c2/executions/ff8080814e0272b6014eadc7c37424fb/" rel="remove"/>
    <link href="https://ehc3-vco2.ehc.ssev.local:8281/vco/api/workflows/fe59b484-ec21-4028-8a32-5e434b4139c2/executions/ff8080814e0272b6014eadc7c37424fb/logs/" rel="logs"/>
    <link href="https://ehc3-vco2.ehc.ssev.local:8281/vco/api/workflows/fe59b484-ec21-4028-8a32-5e434b4139c2/executions/ff8080814e0272b6014eadc7c37424fb/state/" rel="state"/></relations>
    <id>ff8080814e0272b6014eadc7c37424fb</id>
    <state>failed</state>
    <input-parameters>
    <parameter type="string" name="vmName" scope="local">
    <string>vm093</string></parameter>
    <parameter type="SecureString" name="vmPassword" scope="local"/></input-parameters>
    <output-parameters/>
    <start-date>2015-07-20T19:23:46.932-04:00</start-date>
    <end-date>2015-07-20T19:23:48.070-04:00</end-date>
    <started-by>[email protected]</started-by>
    <name>Add Agent</name>
    <content-exception>; nested exception is:
            java.io.IOException: java.io.IOException: Non nillable element 'password' is null. (Dynamic Script Module name : addAgent#32)</content-exception>
    <current-item-display-name>Add Agent</current-item-display-name></workflow-execution>
    
    

    Anyone seen elsewhere and - especially - able to fix it? :-)

    Thank you

    Ed

    It turns out that, in the XML input, which is passed to the server vCO, the password parameter type spec can be , but the definition of its value must be specified using ....

    For example:

                    
                            secret
                    
    

    Lesson learned...

    Ed

Maybe you are looking for

  • Beetwin difference Satellite M70-160 and M70-192?

    What is the difference beetwin subj Principial models (except 20 GB HARD drive)?Why the public price differ over $ 200?

  • Could not import the song to itunes in windows movie maker

    codec of WMM? My work incredible WMM but when try to take a song on itunes and put it on there he said, "cannot be imported because the codec required to play the file is not installed on your computer.» If you have already tried to download and inst

  • T430 with older port replicator

    Hello.  New to the forum.  About to get my first ThinkPad, a Monday T430 I come from an older office.  I'm interested in continuing to use the keyboard, mouse, speakers and monitor of this configuration (USB and VGA, nothing complicated) with a sort

  • SystemListener powerOff()

    JDE: 4.3.0 I'm developing a MIDlet and I implemented the SystemListener in order for me to use the powerOff method that is called when the powers of the user out of the unit. When I run the Simulator and run the MIDlet and then hold the red button, t

  • do not email print but prints the text.

    My 5510 B111a has recently stopped printing of emails. It allows to print text documents.   I turned it off computer (Win 7 Thinkcentre, also off printer, downloaded the latest driver - still no solution.)  I noticed in my gmail browser link it seems