extract the date and the creation of a new channel

How can I take a date as 12/01/2013 format and create a new string with only the month and one with just the year?

I want to be able to look for months on the trend of the month on the data.

Hello Jcheese,

In addition to the suggestion of Dia791 you have other means in tiara 2012:

(A) using the VBS command YEAR and MONTH

Dim i

Dim oCh_source : Set oCh_source = Data.Root.ChannelGroups(1).Channels("Time")
Dim oCh_month  : Set oCh_month = Data.Root.ChannelGroups(1).Channels.Add("Month1",DataTypeFloat64)
Dim oCh_year   : Set oCh_year = Data.Root.ChannelGroups(1).Channels.Add("Year1",DataTypeFloat64)

For i = 1 To oCh_source.Size
  oCh_month(i) = month(oCh_source(i))
  oCh_year(i)  = year(oCh_source(i))
Next

(B) with the help of a tiara command:

Call Calculate ("Ch(""[1]/Month"")= RTP(Ch(""[1]/Time""), ""M"")")
Call Calculate ("Ch(""[1]/Year"")= RTP(Ch(""[1]/Time""), ""Y"")")

Greetings

Walter

Tags: NI Software

Similar Questions

  • I did an update yesterday and now my lightroom 6 and elements will not open. I get error messages / error 16 on lightroom and we have tried everything, including the creation of a new Director. Help!

    I did an update yesterday and now my lightroom 6 and elements will not open. I get error messages / error 16 on lightroom and we have tried everything, including the creation of a new Director. Help!

    In Adobe Creative Suite or Adobe Creative Cloud configuration error

  • [Explanation necessary] Clears the listview data and fill it again with new data

    Hello

    I correctly filled a listview in c ++, data analysed and does interesting things with it. However, I am drunk stumbling, unable to find a way delete and repopulate my display of the list...

    Question 1:

     

    1. How can after I insert data in the list view, I clear the list data and run again the same method (init) who populated the list view with the data in the first place?

    Here are the docs that I referenced and I don't understand how to implement the methods in my code.

    QList - clear() method

    https://developer.BlackBerry.com/Cascades/reference/QList.html#clear

    Using the data access Code, example
                              
    data_access/using_data_source

    GroupDataModel - Clear()

    https://developer.BlackBerry.com/Cascades/reference/bb__cascades__groupdatamodel.html#clear

    CODE

    Here is my code - filling of the display of the list of C++ and display of data in a ListView.

    MyApp.cpp

    MyApp::MyApp(bb::cascades::Application *app)
    : QObject(app){
        // create scene document from main.qml asset
            // set parent to created document to ensure it exists for the whole application lifetime
            QmlDocument *qml = QmlDocument::create("asset:///main.qml").parent(this);
    
                AbstractPane *root = qml->createRootObject();
                qml->setContextProperty("yoyo",this);
                //grab references
                list_view = root->findChild("listView");
    
                // set created root object as a scene
                app->setScene(root);
    
                mNetworkAccessManager = new QNetworkAccessManager(this);
                bool result = connect(mNetworkAccessManager, SIGNAL(finished(QNetworkReply*)), this, SLOT(requestFinished(QNetworkReply*)));
    
                 Q_ASSERT(result);
                 Q_UNUSED(result);                 json = new QFile("data/file.json");
    }
    
    void MyApp::init(){
        QNetworkRequest request = QNetworkRequest();
         // i call some service here
         mNetworkAccessManager->get(request);
    }
    
    void MyApp::requestFinished(QNetworkReply *reply){
        qDebug() << reply->error();
        qDebug() << reply->errorString();
        if (reply->error() == QNetworkReply::NoError) {
            qDebug() << "No error";
    
                    QByteArray data = reply->readAll();
    
                    if (!json->open(QIODevice::ReadWrite)) {
                        qDebug() << "Failed to open file";
                        return;
                    }
                    json->write(data);
    
            bb::data::JsonDataAccess jda;
            QVariantMap results = jda.loadFromBuffer(data).toMap();
                    QVariantList lst = jda.loadFromBuffer(data).toList();
                GroupDataModel *m = new GroupDataModel();
                       m->insertList(lst);
                       m->setGrouping(ItemGrouping::None);
                       if(list_view) list_view->setDataModel(m);
    
        }else{
            showDialog("Boo",reply->errorString());
        }
    }
    

    MyApp.hpp

    // Tabbed pane project template
    #ifndef MyApp_HPP_
    #define MyApp_HPP_
    
    #include 
    #include 
    #include 
    #include 
    #include 
    #include 
    
    namespace bb {
    namespace cascades {
    class Application;
    }
    }
    namespace bb {
    namespace data {
    class Application;
    }
    }
    
    /*!
     * @brief Application pane object
     *
     *Use this object to create and init app UI, to create context objects, to register the new meta types etc.
     */
    class MyApp: public QObject {
    Q_OBJECT
    public:
        MyApp(bb::cascades::Application *app);
        virtual ~MyApp() {
        }
        Q_INVOKABLE
        void init();
    private slots:
        void requestFinished(QNetworkReply *reply);
    private:
        QNetworkAccessManager *mNetworkAccessManager;
        QNetworkRequest *request;
        QFile *json;
        bb::cascades::ListView *list_view;
    };
    
    #endif /* MyApp_HPP_ */
    

    hand. QML

    import bb.cascades 1.0
    
    Page{
    Container {
                            background: Color.White
                            ListView {
                                id: listView
                                preferredHeight: maxHeight
                                objectName: "listView"
                                listItemComponents: [
                                    ListItemComponent {
                                        type: "item"
                                        Container {
                                            Container {
                                                Label {
                                                    text: ListItemData.id
                                                }
                                            }
    
                                        }
                                    }
                                ]
                                onTriggered: {
                                    console.log("selected_index: " + indexPath)
                                }
                                horizontalAlignment: HorizontalAlignment.Center
                                verticalAlignment: VerticalAlignment.Center
                            }
    
    }
    }
    

    Question 2:

    How reference to the ListView object with the name "listView" in different parts of the MyApp.cpp file? Is there anything else I should add to the header file to make the accessible listView?

    Question 3:

    What happens when you call the clear() method? How the data model is affected? How the user interface is affected? What happens in memory?

    Question 4:

    How do you verify that the data in the list has been deleted so that you can go ahead and fills again with new data? What is the cheque that I perform?

    I would also like to know how you manage multiple views of lists and data sources in your applications. Best practices or ideas?

    Thank you

    I was able to clear the listview with the following code, if anyone is interested.

    listView.dataModel = null
    

    The dataModel must be set to "null".

  • Support for the creation of a new document

    Hello

    I'll have to work on creating a new document from scratch, which will serve as a billing statement to a customer.

    I have to build it and I'm really confused on how to structure my forms and subforms.

    Can anyone of you please point me to a good place where I can get a good design guidelines? Or y at - it something like a good design for this.

    Form structuring performance impact. This document can work really long based on the number of transactions.

    I use Beaver and object XML mapping and use of the data file to dynamically load data to pdf.

    As I begin this charge, I want to get the structure and the correct design.

    Appreciate your time and your help.

    Thank you

    A document was produced for Designer 7.1 and the principles still apply.

    http://partners.Adobe.com/public/developer/en/PDF/lc_designer_perf_guidelines.PDF

    You can search here as well...

    http://help.Adobe.com/en_US/LiveCycle/9.0/designerHelp/index.htm

    Steve

  • Extraction of data and merger

    Hello

    Work on EBS version 11.5.10.2


    This query retrieves data from shipping for 2007, and there is no transaction delivery available in August, September & October 2007 now I need take data for August 2008, seven & Oct 2008 and replace date with 2007 and merge data.

    I need assistance to achieve this result.

    SELECTION of products. SEGMENT1 as elements, price. OPERAND as price, SUM (expeditions. PRIMARY_QUANTITY *-1) as a Volume
    TRUNC (LAST_DAY (expeditions. TRANSACTION_DATE)) in the month
    Inv.mtl_system_items_b products, shipments of inv.mtl_material_transactions qp_list_lines_v price
    WHERE
    expeditions. INVENTORY_ITEM_ID = products. INVENTORY_ITEM_ID
    AND the price. PRODUCT_ID = products. INVENTORY_ITEM_ID
    AND the price. LIST_HEADER_ID = 7042
    AND products.ORGANIZATION_ID = 103
    AND products. ITEM_TYPE = "FG".
    AND shipments. TRANSACTION_TYPE_ID = 33
    AND shipments. TRANSACTION_DATE between (SELECT ADD_MONTHS(SYSDATE,-36) FROM DUAL) and (SELECT SYSDATE FROM DUAL)
    GROUP OF products. SEGMENT1, price. OPERAND, TRUNC (LAST_DAY (expeditions. TRANSACTION_DATE))
    ORDER BY TRUNC (LAST_DAY (expeditions. TRANSACTION_DATE))


    Thanks and greetings

    Try
    SELECTION of products. SEGMENT1 as elements, price. OPERAND as price, SUM (expeditions. PRIMARY_QUANTITY *-1) as a Volume
    TRUNC (LAST_DAY (expeditions. TRANSACTION_DATE)) in the month
    Inv.mtl_system_items_b products, shipments of inv.mtl_material_transactions qp_list_lines_v price
    WHERE
    expeditions. INVENTORY_ITEM_ID = products. INVENTORY_ITEM_ID
    AND the price. PRODUCT_ID = products. INVENTORY_ITEM_ID
    AND the price. LIST_HEADER_ID = 7042
    AND products.ORGANIZATION_ID = 103
    AND products. ITEM_TYPE = "FG".
    AND shipments. TRANSACTION_TYPE_ID = 33
    AND shipments. TRANSACTION_DATE between (SELECT ADD_MONTHS(SYSDATE,-36) FROM DUAL) and (SELECT SYSDATE FROM DUAL)
    GROUP OF products. SEGMENT1, price. OPERAND, TRUNC (LAST_DAY (expeditions. TRANSACTION_DATE))
    Union
    SELECTION of products. SEGMENT1 as elements, price. OPERAND as price, SUM (expeditions. PRIMARY_QUANTITY *-1) as a Volume
    TRUNC (LAST_DAY ((add_months (expeditions. TRANSACTION_DATE,-24))) per month
    Inv.mtl_system_items_b products, shipments of inv.mtl_material_transactions qp_list_lines_v price
    WHERE
    expeditions. INVENTORY_ITEM_ID = products. INVENTORY_ITEM_ID
    AND the price. PRODUCT_ID = products. INVENTORY_ITEM_ID
    AND the price. LIST_HEADER_ID = 7042
    AND products.ORGANIZATION_ID = 103
    AND products. ITEM_TYPE = "FG".
    AND shipments. TRANSACTION_TYPE_ID = 33
    AND shipments. TRANSACTION_DATE between (SELECT ADD_MONTHS(SYSDATE,-24) FROM DUAL) and (SELECT SYSDATE FROM DUAL)
    GROUP OF products. SEGMENT1, price. OPERAND, TRUNC (LAST_DAY ((add_months (expeditions. TRANSACTION_DATE,-24)))
    ORDER BY 4

  • "Not responding" message at the beginning upward. SOLVED by the creation of a new identity &amp; import the messages from the old to the new.

    This only happens on one of my identities, the rest seems to agree...

    When I start this identity, it's really slow & as soon as I click on anything it says "not responding".

    After some time (about 10 min.), he will finally do something but, after a few clicks he strikes again.

    8.1 Windows, IE 11, new software Thunderbird

    While I appreciated the responses, I have completely abandoned after my last post that with the two security modes by running this identity still did not...

    I found myself fixing by find and save the messages of this identity, creating a new identity folder and import the messages from the old to the new.
    And then deleting the old identity in the list.

    users /(your username)/AppData/Local/Thunderbird/Profiles

  • "an attempt was made to use an object that is not or is no longer usable". " What does that mean? Occurs in the creation of a 'new' FF account for synchronization purposes.

    Attempts to set up synchronization. Several attempts last year, also failed many times because of password "like," "problems." I dropped. Now, my attempt to set up sync with my support mozilla (e-mail address and password) account was rejected by the words quoted above. The attempt to create a new account for synchronization only and with another e-mail address was also rejected by the words quoted above. The two addresses are valid and for a long time with the different email providers. Synchronization must be between laptops. What is the solution to this riddle? Thanks in advance for your time and help!

    In fact, so watch as an add-on can be affected. Can you please temporarily disable all your modules and try the sync again?

  • ATTENTION: the SDK update prevents the creation of a new project


    OK, after trying many other attempts to work out what is the cause I gave up and reinstalled from lastest gold then updated.

    Guess what works now, it's a real pain if I have to do every time the SDK software updates.

    I hope someone at RIM will study closer one day.

  • Lack of blackBerry Smartphones invite option during the creation of a new encounter

    My BB 8310 works very well... all of a sudden my participant "invited" to a meeting went away from my calendar.  I return my service books several times and deleted and added my as well email account and still I am unable to revisit the option "invite participants".  The same thing happened to me almost 1 year there when I changed to a new 8310 but I read a blog somwehre I need to delete something, and he'll give me the back option "invite participants".  For the life of me I can't find the instructions of thos... Can anyone help? I really need this option when you create the appointment on my calendar of BB.

    Thanks in advance for any help!

    Allaquo

    Hello and welcome to the Forums of Support BlackBerry.com.

    Look at option > advanced > default of services. You have your default calendar selected, associated with the correct e-mail profile?

  • Newspaper to repeat INVALID after the creation of a new group member

    Hi all

    I just followed the instructions to create a new redo log file member:

    alter database add logfile Member ' / oracle/mplex/redo/redo01b.log' group 1;

    When I query v$ logfile, the status is INVALID if.

    SQL > select * from v$ logfile where Group # = 1;

    GROUP # STATUS TYPE
    ---------- ------- -------
    MEMBERS
    --------------------------------------------------------------------------------
    IS_
    ---
    1 ONLINE
    /U01/app/Oracle/oradata/redo01.log
    NO.

    1 INVALID ONLINE
    /Oracle/MPlex/redo/redo01b.log
    NO.

    the oracle user has the mplex directory and authorization are fine

    [oracle@redo]$ ls - ltr
    Total 51260
    -rw - r - 1 oracle oinstall 52429312 11 Mar 11:55 redo01b.log

    Any ideas?

    Thank you

    Redo Log files have DISABILITY status, this is completely normal behavior.

    INVALID state is cleared when these of Redo Log files will be reset, which means that when the newspaper writer will write to them for the first time.

  • Errors on the creation of a new subject in RH9 (9.02 Patch)

    Have found that when you create a new topic in RH9 project on the mistakes of 3018 and 3111 of the construction project are presented.

    Seems that the error is caused by the introduction of Page break in the word document to the entry into force of the subject.  Earlier versions of HR would insert a new topic as well: - (Note correct placement of the Page Break and "Keep with next" a paragraph mark).

    Capture1.jpg

    When you add a new topic now, it appears as such: -.

    Capture2.jpg

    Note that the positioning of the "Keep with next" paragraph mark is now at the beginning of the subject line, rather than at the beginning of the page break.

    On the construction of project with a subject in this format causes 2 error messages additional that will be presented assistant error: -.

    1 HC3018: WARNING: in the project file, an #include statement is specified without a file name, and

    2 HC3111: warning: this topic contains keywords but Untitled

    The second warning (HC3111) is returned despite the properties of the topic containing a title, keyword sections and correctly filled.

    I found the work around to this problem is to correct the HC3018 error first of all in: -.

    • Place the cursor at the beginning of the subject line preceded of the symbol #.
    • BACKSPACE to delete the "Keep with next" [brand of ph to a point where the mark is removed, position properties are removed the title of the topic and the indication of Page break now extends across the page.
    • With the cursor at the beginning of the new subject line preceded by the symbol #, reapply the paragraph "Keep with next" command  This applies to the command on the "Page break" line.
    • Reapply the style of title to the subject line.  He's now looking at this line: -.

    Capture3.jpg

    • Re-build the project. 3018 and 3111 error messages now both disappeared.

    Yet another bug in this version doubt now.

    Here is the solution that I use:

    -Open Word Options for the document

    -Select "Advanced".

    -Scroll to the bottom of the list and select 'Layout Options.

    -Do scroll to the bottom of the list, and then search up to about 20 lines or so "Split apart page break and paragraph mark"

    -Select this check box and then click OK to exit.

    This solution came from a helpful Lady on the forum are a year back

    Would be nice if this could be defined as a default for new documents. I don't see how to do this.  Maybe somebody.

  • How can you transfer all data and software form old iPad new iPad?

    Hello: I have an iPad 9.7 "display of 2012 with 16 GB of storage. I'm about to storage now and are considering buying an iPad 2 Air. My question is, how can you transfer all the info from my old iPad to the new without starting from scratch?

    Thank you, Gilbert.

    < email published by host >

    Whence the content come of for example you have the music on the iPad, and if so is sometimes copied from CDs? You can copy purchases on iTunes from your computer via file > devices > transfer purchases, make a backup of the iPad, and restore this backup on the new iPad (music, videos, etc. is copied from the iTunes library, not the actual backup, so you will need these items in the iTunes library).

    Transfer to a new device: transfer the contents of an iPhone, iPad or iPod touch to a new device - Apple Support

    (Because these are user forums I asked guests to remove your e-mail address of your post, it is not a good idea to post it on any public forum.)

  • Why Lightroom does not change the creation date of the file? (Mac OS)

    I find that Lightroom changes the creation of files present during the incorporation of metadata. I noticed that this behavior is different from the bridge, which reaches to write metadata changes to the file without affecting the creation date, affecting only the modification date.

    I read in other threads that it doesn't matter when even because moving files between disks will write a new file and, therefore, a new date of creation, but if this can be true in some systems (I don't know) is certainly not the case with Mac OS. For example, I have files dating back at least 1998 which have been moved from disc to disc to disc but still retain their original creation date. Which is as it should be. For many of my older images, there seems to be no capture embedded recognizable don't date anyway, so the creation date of the file is the single timestamp.

    It seems quite logical that the modified date of a file must be updated to take into account that the file has been modified (for example if adding metadata), but it seems to make sense that the date of creation of the file should be kept as the date, this file has been created. Changing them both on the same date seems to be a needless loss of information.

    Some would say that the process of adding metadata to a file creates a new file, the creation date must be updated to reflect this. But I would say that the creation date should be which would include a normal user as the creation date. We do not expect the creation date to change everything simply because a file is rewritten to the disk (for example when the defragmentation), however technically accurate, it would be to say that it is a newly created file. And the difference in behavior between Bridge and Lightroom shows that there is some confusion on this subject.

    Photo software ignores generally the operating system created by file-modification dates, and when he is not ignoring them, treated generally in a non-standard way that varies from one program to a program.  Rather than rely on the dates of the files of the operating system, the photo industry has defined fields of metadata with all sorts of specific photos dates: capture date/time (when the shutter button is depressed), date/time of scanning (when a movie or a print image was scanned digitally), date/time software photo altered image or metadata date/time of GPS location.   While some photo software will attempt to maintain the dates of file-created and - updated, many programs and services Web will not (including, but not limited to, LR).  In addition, many utilities files not always to preserve created and set dates to day that you move, copy it, backup and restore files.

    Therefore, I highly recommend that if you care photo dates and times (as I do), so no matter which photo software you use, you store the dates of capture in pictures industry standard metadata by using the tools provided by LR and other photo software.   In this way, you migrate the program to the program over the years, are you more likely to preserve that important metadata.

    Old photos and scans without that metadata, when you first import into LR, LR will assume that the capture time is the hour of the modified file.  LR to rewrite the date of capture of metadata in the file by selecting and making the metadata you can do > edit Capture time, clicking OK and then by metadata > save metadata to file. You can do it in batch - choose all your old photos and make metadata > edit Capture time, click OK, to metadata > save metadata to file.  LR will affect its time updated each file capture time.   If you want to set the time captured in the file create time, select this option in the window change the Capture time before clicking OK.  But beware that many Windows and Mac file utilities cannot preserve create time, even if they retain changed time, in order to create your files time can be wrong.   And of course, make sure that your backups are up to date and valid before making any new procedure file with which you aren't familiar.

    But if you really want to use non-standard file dates to keep your metadata information, and you want Adobe to modify accordingly the LR, so please give your opinion and vote on it in the Adobe official feedback forum: Bug report: Lightroom modifies the image files creation date. This forum is a user forum in which is rarely involved Adobe, Adobe said they read every post in the forum comments (and sometimes they respond).

  • Problem with the creation of New and subfolders only appear is not in the list

    Thunderbird is allowing the creation of some New & subfolders, but they aren't always in the list each time.

    Photo shows the current list, but they tried to get money records IMarEST & Bank. (My apologies for Hypersnap stamps)
    Sorry, but the photo is not download!

    I use the Windows x 86 Version 8.1 - Thunderbird 31.6.0

    How to subscribe to see the imap folders:

    • Right click on your email account name, and then select 'subscribe '.
    • IMAP folders available on the server will be listed.
    • Select the ones you want to add to your e-mail client
    • Click the button to subscribe.
    • Press the OK button
  • Working with date and time of the request for help from acrobat JavaScript...

    This coming from

    Working with date and time in Acrobat JavaScript (part 1 of 3)

    The following code adds five days to the current date, and then prints the new date in the console window.

    Get the date and time

    var rightNow = new Date();

    Get the value of millisecond

    Article date

    var msRightNow = rightNow.getTime ();

    Calculate in milliseconds, of 5 days

    5 days x 24 hours/day x 60 min / h x 60 s / min x 1000 ms/s

    Challenge of var = 5 * 24 * 60 * 60 * 1000;

    Do the calculation of var CFAbsoluteTime = msRightNow + challenge;

    Create a new Date from the calculated value

    var theNewDate = new Date (finalTime);

    In the actual work on a form code, you'll want to place the

    the object of a field value. But since this is test code, we will

    Print the result to the Console window (great for debugging)

    Console.println ("5 days from now is:" + theNewDate.toString ());

    The foregoing is the exact code (cut and paste)

    The error I get here is;

    ReferenceError: theNewDate is not defined

    1:Console:exec

    undefined

    To get the "undefined" question a lot... it seems to me, learn to distinguish the undefined 'of type' undefined 'variable' and undefined 'value '.

    in this case 'theNewDate' seems to be defined as a variable equal to the current date plus 5 days... BUT I am now "educated" enough to 'see' Why am I getting the error...


    Any thoughts... Any who...

    You need to highlight all the text that you want to run.

    You have not set the rightNow variable before you can apply a method to the variable.

    You can just add a new variable as msRightNow name. Why not use rightNow.

    Executes the code that you provided with a new departure of Acrobat, I get the following error messages:

    rightNow.getTime is not a function

    1:Console:exec

    TypeError: rightNow.getTime is not a function

    1:Console:exec

    undefined

    What you are showing probably works because your previous attempts have left behind them a variable "rightNow" and as long as you do not have the object of time date change too much, you will not notice the error.

    Cleaning of your code:

    get the number of milliseconds of the date object.

    rightNow var = (new Date()) .getTime ();

    define 5 days in milliseconds;
    Challenge of var = 5 * 24 * 60 * 60 * 1000;

    Add 5 days to the value of this moment and assign the result to the last time;
    var CFAbsoluteTime = rightNow + challenge;

    convert finalTime value in a date object.
    var theNewDate = new Date (finalTime);

    display the result;
    Console.println ("5 days from now is:" + theNewDate.toString ());

    Have you tried the code that I provided, it is another way to add days to the date object.

Maybe you are looking for

  • HP Pavilion 15 t: only hear one ear with headphones - and its low general.

    After that the last updated Bios, I have lost my sound and had to follow another thread to uninstall and reinstall the drivers. Then I had audio but unacceptably low volumes. I just did a hard reset and I have more volume, but not as much as I think

  • HP Pavilion laptop computer 2276sa g6: HP support Assistant

    A message to HP Support Assistant updated to the latest version. Clicked to update. Now it does not open. Uninstalled - reinstalled several times according to the guidelines. It is installed but still do not open 'Help '. Thanks in advance for any he

  • Computer remained in "hibernation mode" for several hours, with a "twist"...

    My laptop HP three year with Vista & IE 8 will not come out of hibernation. It has been like that for more thanseven hours. The light turned on, even when I pressed the button down. I was afraid to push the button down and hold it for 5 to 10 seconds

  • Spybot Search And Destroy detects...

    Microsoft.Windows.Security.InternetExplorer: [SBI $A3433CBF] settings (registry change, nothing in fact)Explorer\Main\FeatureControl\FEATURE_LOCALMACHINE_LOCKDOWN\iexplore.exe HKEY_USERS\S-1-5-21-2601532278-13328703-3510537142-1007\Software\Microsoft

  • Background screen problem

    Good afternoon everyone. I used to be able to select any .jpeg, press "set as wallpaper", and the image would be re-size itself mode full screen of my laptop Fujitsu. He now seems to think that the A2 screen size or bigger and breath on a very small