Table indicator formatting strangeness

I'm hoping someone here can shed a little light on this one for me.
I just started working on a project involving a MySQL database.  I'm new to MySQL, so I may be looking in the wrong place to solve this error.
For some reason my table in LabVIEW is appending today's date to my StartTime and EndTime columns.  But when I use the MySQL Query Browser or the command line interface, I do not see the date appended to those columns. 
The time format is also different in my LabVIEW table.  The time data was entered into the database in 24 hour format.  If I view that data through either the Query Browser or the command line, I see it in 24 hour format.  But my LabVIEW table shows the time in 8:00:00 AM format. 
Is there anything I can do to eliminate this behavior?
I've tried looking for something in the Properties, along with what is available through property nodes.  So far I haven't found anything.   
The time formating I could probably live with.  But I definitely don't want dates appended to my time columns.   
I've included a couple of screenshots to illustrate what is happening. 
Message Edited by pallen on 06-12-2009 10:44 AM
Patrick Allen
Solved!
Go to Solution.
Attachments:
Table format issue 01.jpg ‏63 KB
Table format issue 02.jpg ‏58 KB

I'm using some of the VIs from the Database Connectivity Toolkit.   In this case, it would be the DB Tools Select All Data.vi
I'm including my code here as well.  
One thing I just noticed was that my "Select All" VI I'm using isn't in the DCT pallet.  I'm not sure where it came from actually.  Probably from an online example or something.  
I tried using the DB Tools Select Data.vi from the pallet.  But the data output from that VI is a Variant.  
For some reason, the Database Variant to Data.vi on the pallet couldn't/wouldn't convert the variant data to the 2D array of strings that I'm using in my table.  It kept calling my sink type as "void".  I had to use the Variant to Data.vi from the Variant pallet.
This introduced a huge performance problem though.  The table I'm accessing has about 19000 rows in it.  My first VI pulled all this data out in just a couple of seconds.  The second one where I had to convert the data took so long that I thought the application had hung.  It would be unusable.  When it does finally spit out the data, it's in the exact same format as the first VI.  Maybe I'm doing something wrong with the way I'm converting it?
I'm including the second VI as well.   Hopefully I can get to the bottom of this.  
Patrick Allen
Attachments:
Read All SQL Data.vi ‏31 KB
Read All SQL Data 2.vi ‏33 KB

Similar Messages

  • How do I change the background color of a row in a table indicator?

    Hello,
      How do I change the background color of a row in a table indicator? I know how to change the background color in a active cell, but that is not what I want. My first intent is to make the background color of the first row a unique color, such as green, just to highlight the top row of the table.
    Regards,
    Kaspar
    Regards,
    Kaspar

    I have done this before by using a for loop to change the active cell of a row in order to give the appearance that the whole row is turning the color at once.
    CLA, CLED, CTD,CPI, LabVIEW Champion
    Platinum Alliance Partner
    Senior Engineer
    Using LV 2013, 2012
    Don't forget Kudos for Good Answers, and Mark a solution if your problem is solved.

  • Troubles with RH's transformation of FM figure titles' & table captions' formats... Same problem?

    Source agent:  FM 9.0p250, unstructured
    Transformative agent:  RH 8.0.2.208
    OS:  WinXP Pro V. 2002 SP3
    CPU:  Core2 Quad @ 2.4 GHz
    RAM:  3.25 GB
    Free Space:  12.6 GB
    File Sys.:  NTFS
    Swap: D & E (system-managed)
    Is anyone else experiencing problems with RH not correctly transforming FM figure and table titles? I can get most of my design to work, but I am having a problem with RH not following-through with some of my table title format and figure title format specifications.
    I am having problems with RH not correctly applying, or inconsistently applying, figure title and table caption attributes ("Paragraph" settings) that I specify through Project Settings | Import | Edit | Conversion Settings.
    For example (in FM Table Designer), I have a table title paragraph design, "TT.Table Title", in which I specify Title > Above Table, and specify a paragraph design (FM style) of Arial, 10pt, regular, bold, 0" indents, alignment left. It works fine direct to print or PDF; the same is true with figure titles.
    In RH (through Project Settings | Import > Edit | Conversion Settings [FrameMaker Settings] > Paragraph), I specify that the FM style is to transform through an RH style that I define (through Edit Style button > Styles > Format > Paragraph). I set the alignment, etc., as is required through RH, but when I look at the Design view and/or generate the output (say...Webhelp), RH has not correctly interpreted one or more of my specification's attributes.
    For example, in the case of my table titles, in Design view, RH has centered the title (or in RH terms, the ''Caption") above the table. Or sometimes the bold attribute is missing. In Project Manager, if I right-click and select View, the title/caption sometimes appears as specified; however, if I Generate the WebHelp (or HTML Help, or whatever), the bold formatting isn't there.
    I thought that maybe RH defaulted figure and table titles to a Caption, as that is what it calls that part in the Design view. But when I set Caption to my specs, it made no difference.
    Any thoughts?
    Thanks in advance!

    I may be off at a tangent here as this is a wild guess.
    HTML recognises Table Heading and Table Text, RH does not recognise the Table Heading selector. Maybe with your knowledge of FM's table caption and that tidbit of information, you can change something in your FM table to avoid the problem, if indeed there is a link.
    See www.grainge.org for RoboHelp and Authoring tips
    Follow me @petergrainge

  • Is it possible to wrap text in cells of a Table indicator?

    I have read the contents of an Excel file into a Table indicator and would like to wrap text within certain cells.
    Solved!
    Go to Solution.

    You can do this - sort of...
    LV will not auto wrap the contents of a cell automatically. However, if there are hard line breaks, you can make LV expand the cell vertically to show all the lines. It will not however, autoutomatically size the cell width.
    Sounds like this might be a good project for an XControl.
    Mike...
    Certified Professional Instructor
    Certified LabVIEW Architect
    LabVIEW Champion
    "... after all, He's not a tame lion..."
    Be thinking ahead and mark your dance card for NI Week 2015 now: TS 6139 - Object Oriented First Steps

  • Why does a digital indicator formatted for time & date add 16 hours to the input?

    I wire a digital indicator with a double precision value that is supposed to indicate an elapsed time. But the indicator (formatted for time and date, with the date inactive) always adds 16 hours to the wired input.
    This problem occurs even in a simple vi I wrote that only consists only of a constant wired to the indicator.
    Using LabView 6.0.2

    Labview interprets the number passed into an indicator formatted for date & time as seconds since Jan. 1st 1904. I'm assuming that since you're looking for elapsed time this is not what you're passing in. One thing that I've done is get the elapsed time in seconds and write a routine to convert that into whatever format you want.

  • Calculated Percentage Columns in Pivot Table loose formating in Excel

    I have a simple report built using pivot table ( OBIEE 11.1.1.5.0)
    1 Metric and 1 dimension using pivot table. and I duplicated the metric column and change it to % column.(Show data as % of column). SO far so good. Below is the snapshot
    http://tinypic.com/r/2s14xa9/7
    Now i download the report in excel and all the % values are messed up . Below is how it looks
    http://tinypic.com/r/bede90/7
    I tried messing with data formats etc..nothing works.. I cannot add a custom column format to the metric column since it will impact the derived % column.
    Is this a bug ?Any pointers ..
    Thanks

    Hi,
    Follow up this SR:
    SR 3-5060435331: Calculated Percentage Columns in Pivot Table loose formating in Excel
    Workaround: (not sure may be give a try)
    also give a try like below one then try to download it may work.
    In that % column -->add the below statement in the Custom CSS section of the column properties:
    mso-number-format:"\@"
    Refer snapshot here:
    http://i53.tinypic.com/a09kqv.jpg
    This will treat the data in the column as text while downloading to excel, hence retaining any leading or trailing spaces.
    Thanks
    Deva

  • Can you stop table indicator cell editing?

    Hello,
      Is there a way to disable the ability of a user to edit the cells of a table indicator? I have a table indicator on my front panel and just want it to be a indicator, nothing else. I have found that I can change the contents of a cell in the table indicator and type in any value I want. 
    Regards,
    Kaspar

    A technique I have used at times to quickly disable multiple controls at one time (provided they are located near each other) is to create a simple string indicator that is transparent. Size it so that it covers the controls (in your case the table) that you want to disable. In your code when you want to disable those controls use the property node to make the transparent string control visible. When you want to enable the controls use the property node to set the "visible" attribute to false. This is a simple trick that can be useful at times.
    Message Edited by Mark Yedinak on 02-17-2010 02:32 PM
    Mark Yedinak
    "Does anyone know where the love of God goes when the waves turn the minutes to hours?"
    Wreck of the Edmund Fitzgerald - Gordon Lightfoot

  • Analyzer - Table header formatting

    Hi @ll,
    I`ve formatted a BEx Analyzer workbook to our requirements. The only thing I can`t change is the table header.. Could anybody tell me how to change the table header formatting?
    Regards,
    Flo

    Hi,
    Open your workbook. Go to design mode, select the design item in the header and delete the design item.
    Again click on design mode to come back to original workbook and click on header and delete the header bar and give the table header as per your requirement.
    To format the table header, right click on header and use excel foramatting(Font size, font & font style).
    Hope it is helpful.
    Thanks,
    Ashok

  • How to map single input value to Two columns of Database table using format file of Bulk Copy Process

    Hi All,
    Am using OPENROWSET to load the file data into table, here the problem is i need to map same input value to two different columns of table, As format file doesn't allow the duplicate numbers am unable to insert same value to two columns, please help me to
    find a solution for this. 
    i can use only OPENROWSET because i need to insert some default values also which come based on file. only the problem is how to map same input value to two different columns of table. please give me the suggestions.
    Thanks,
    Sudhakar

    From what you say:
       INSERT tbl(col1, col2)
          SELECT col1, col1
          FROM   OPENROWSET(....)
    But I guess it is more difficult. You need to give more details. What sort of data source do you have? What does your query look like? The target table?
    Erland Sommarskog, SQL Server MVP, [email protected]
    Hi Erland,
    Thanks for your response
    my source file is text file with | symbol separate for ex:
    1002|eTab |V101|eTablet|V100|Logic|LT-7|Laptops|SCM
    Database table have columns like
    column1,column2,column3...etc, now i need to insert same value from input file into two columns for ex:
    the eTab value from text file has to be insert into column2 and column3 of
    table
    we cannot change format file like below one
    for the above situation how can we insert eTab into column2 and column3
    Thanks,
    Sudhakar.

  • RH 9.01 Table Captions Format Problem

    I created WebHelp in RH 8 / TCS 2.5. The table captions are fine, Arial, Blue, Italic
    I made a few minor updates to the table contents (not the caption) in FM 10 / TCS 3.0.
    I open the project in RH9 / TCS 3.0 and regenerate.
    The table caption is Times Roman black.
    I cannot modify the table caption format to be anything else besides Times Roman black.
    The RH files show the correct format.
    Here's what I tried:
    I tried manually inserting a table and formatting the caption.
    I tried creating a CHM file instead of a WebHelp file. Same problem.
    I tried with two different projects. Same problem.
    I did not try creating a new project.
    Am I missing something, or is this a bug?
    Thanks for any clues.
    I tried attaching screenshots here, but I must have some IE setting disabled because nothing happens when I click the camera.

    Welcome to our community
    I'll begin by saying openly that I'm a big ole Frame ignoramous. I'm a RoboHelp guy.
    I find that in order to specifically style my table captions I first need to edit the CSS file using Windows notepad. Pop the following code somewhere in the file:
    Once you do this your Styles dialog will have a caption entry in the Other category that you may format.
    Seems to work on my own setup. Hopefully it will work for you.
    Cheers... Rick
    Helpful and Handy Links
    RoboHelp Wish Form/Bug Reporting Form
    Begin learning RoboHelp HTML 7, 8 or 9 within the day!
    Adobe Certified RoboHelp HTML Training
    SorcerStone Blog
    RoboHelp eBooks

  • How to read data from cell of table indicator?

    In my application, I've filled the table indicator with data from  database. Now I want, when I click on any particular row, I should be able to read data from that row.
    Thanks & Regards,
    Shrinivas
    Solved!
    Go to Solution.

    Hi Shrinivas,
    you can use "Selection Start" property node in a click-event to fnd out the row index of selected cell and retrieve the appropriate row from it.
    Message Edited by My NI on 08-05-2009 09:04 AM
    Regards
    MY
    Attachments:
    Example.vi ‏10 KB

  • Table date format - How can I display Week 1, Week 2, instead of the date?

    I would like to creat a table for my Gantt, that displays the week number unit, as I have as the middle tier in my timescale on the Gantt side of the view.  I cannot find how to do this anywhere.  I know I can change the way the date is displayed,
    format wise, while in the table edit area, however one of the choices is NOT the week #.  The data must exsist as the timescale displays it! 
    My goal is to creat a table that instead of showing the start date for a task, displaces the start week: i.e. Week 1, Week 2, ...ect.
    Any help is appreciated,
    Craig.

    Craig --
    Bad news, my friend.  What you want to do with the date format in the table cannot be done.  The format you see in the Timescale bar is simply not an available date option in any table.  Sorry.
    Dale A. Howard [MVP]
    VP of Educational Services
    msProjectExperts
    http://www.msprojectexperts.com
    http://www.projectserverexperts.com
    "We write the books on Project Server"

  • How do you select an item from a table indicator with a mouse click and then use that selection in code?

    Hi,
    I am displaying a list of filesfrom a directory  in a table on the front panel of a VI as part of a program I am developing. I would like the user to be able to select from that table so that particular file can be processed. Is there a way to do this?
    Thanks,
    Aaron

    you'll find that most of the useful functionality of the labview user control interface is hidden within the property node and invoke node functions. just right click a control or indicator terminal on the block diagram and mouse over to create, then to property node or invoke node. lots of fun stuff in there. attached is an example. one file is saved for labview 8.0, the other is saved for labview 8.6.
    Message Edited by Root Canal on 10-16-2008 11:17 AM
    global variables make robots angry
    Attachments:
    file selection table.vi ‏26 KB
    file selection table lv 8.0.vi ‏42 KB
    file selection table.PNG ‏18 KB

  • HTML TABLE OUTPUT FORMAT

    Hello,
    I have a DB containing PROJECT NAME, DVDNAME (ex. C1345, F234, G4576) and the FILES on the DVD.
    In my page result, I want the list of the DVD from a project with the following formatting ( 7 columns table), using PL/SQL.
    1 DVD can contain from 5000 files
    Ex:
    select DVDNAME, FILENAME  fromTABLE where project = 2
    *DVD NAME: C1345*
    12.txt     13.txt     15.txt     16.txt     17.txt     18.txt     19.txt  
    22.txt     24.txt     26.txt     27.txt     28.txt     29.txt     31.txt        
    32.txt     33.txt     36.txt     37.txt     39.txt     42.txt     45.txt    
    44.txt     45.txt    47.txt      49.txt     55.txt     57.txt     59.txt    
    61.txt     63.txt     64.txt     66.txt     68.txt     69.txt     70.txt    
    71.txt     73.txt     75.txt     77.txt     78.txt     79.txt     80.txt    
    81.txt     82.txt     83.txt     85.txt     86.txt     88.txt     89.txt
    93.txt     95.txt     97.txt     99.txt   
    *DVD NAME: C2334*
    112.txt     113.txt     115.txt     116.txt     117.txt     118.txt     119.txt  
    122.txt     124.txt     126.txt     127.txt     218.txt     219.txt     311.txt        
    132.txt     133.txt     136.txt     137.txt     319.txt     412.txt     415.txt    
    144.txt     145.txt     147.txt     149.txt     155.txt     517.txt     519.txt    
    161.txt     163.txt     164.txt     166.txt     168.txt     619.txt     710.txt    
    171.txt     173.txt     175.txt     177.txt     178.txt     719.txt     810.txt    
    181.txt     182.txt     183.txt     185.txt     186.txt     818.txt     819.txt
    193.txt     195.txt     197.txt    1 99.txt   
    HOW can I modify my code to have the result needed? I have only a 1 row table with the DVDTITLE repeating...
    BEGIN
    htp.p('<HTML>');
    htp.p('<HEAD>');
    htp.p('<TITLE>DISQUES C</TITLE>');
    htp.p('</HEAD>');
    htp.p('<BODY>');
    for idx in (select DVDNAME, FILENAME  fromTABLE where project = 2 )loop
        htp.p('<TABLE>');
        htp.p('<TR>');
       htp.p('<TD>'||idx.DVDNAME||' </TD> ');
       htp.p('</TR>');
       htp.p('<TR>');
       htp.p('<TD>'||idx.FILENAME||' </TD>  <TD>'||idx.FILENAME||' </TD>  <TD>'||idx.FILENAME||' </TD> <TD>'||idx.FILENAME||' </TD> <TD>'||idx.FILENAME||' </TD> <TD>'||idx.FILENAME||' </TD> <TD>'||idx.FILENAME||' </TD> <TD>'||idx.FILENAME||' </TD>');
       htp.p('</TR>');
    htp.p('</TABLE>');
    end loop;
    htp.p('</BODY>');
    htp.p('</HTML>');
    end;thanks,
    Roseline

    Application Express 3.1.2.00.02
    Oracle 11g
    I want to list the DVD and his content who are related to a project X. Each DVD and content must be in a different table.
    This table must have 7 columns. The problem with the following code that I have show all the file in a single row for all the DVD content.
    How can I modify it?
    The query:
    SELECT Id, DVD_ID,NomFichier,PROJET_ID FROM elements where PROJET_ID =1Wanted output
    DVD 85
    2635080     2636608     2637084     2637091     2637092     2637093     2637147
    2637152     2637153     2637154     2637155     2637156     2637157     2637164
    2637169     2637170     2637172     2637173     2637202     2637203     2637213
    2637214     2637215     2637216     2637218     2637217     2637219     2637220
    DVD 86
    2639497     2639498     2639502     2639504     2639505     2639506     
    2639508     2639509     2639511     2639512     2639519     2639521     2639522
    2639523     2639525     2639527     2639530     2639542     2639543     2639552
    2639553     2639554     2639555     2639559     2639560     2639561     2639563
    2639564     2639565     2639567     2639574     2639575     2639578     2639579
    DVD 87
    2641806     2641807     2641808     2641809     2641810     2641819     
    2641821     2641824     2641827     2641828     2641830     2641831     
    2641834     2641838     2641839     2641846     2641847     2641849     
    2641851     2641852     2641853     2641854     2641855     2641863     
    etc...Current output
    87 
    2641806  2641807  2641808  2641809  2641810  2641819  2641820  2641821  2641824  2641827  2641828  2641830  2641831  2641832  2641834 
    88 
    2644294  2644297  2644299  2644300  2644303  2644304  2644308  2644309  2644311  2644316  2644318  2644319  2644320  2644322  2644323  What someone suggest it?URL http://www.developpez.net/forums/d865203/bases-donnees/oracle/pl-sql/html-affichage-tableaux-conditions/[URL]
    DECLARE
      vtemp  varchar2(4000) DEFAULT ' ';
    BEGIN
      htp.p('<HTML>');
      htp.p('<HEAD>');
      htp.p('<TITLE>DISQUES C</TITLE>');
      htp.p('</HEAD>');
      htp.p('<BODY>');
    FOR idx IN
        SELECT DVD_ID, NomFichier,
               row_number() over(partition BY DVD_ID ORDER BY NomFichier  ASC) AS rna,
               row_number() over(partition BY DVD_ID ORDER BY NomFichier DESC) AS rnd
          FROM elements
         WHERE PROJET_ID = 1
      ORDER BY DVD_ID ASC, rna ASC
          loop
            IF idx.rna = 1
            then
              htp.p('<TABLE>');
              htp.p('<TR>');
              htp.p('<TD>' || idx.DVD_ID ||' </TD> ');
              htp.p('</TR>');
              htp.p('<TR>');
            end IF;
            vtemp := vtemp || '<TD>' || idx.NomFichier || ' </TD>';
            IF mod(idx.rna, 7) = 0 OR idx.rnd = 1
            then
              htp.p(vtemp);
              vtemp := ' ';
            end IF;
            IF idx.rnd = 1
            then
              htp.p('</TR>');
              htp.p('</TABLE>');
            end IF;
          end loop;
    htp.p('</BODY>');
    htp.p('</HTML>');
    end;thanks
    Roseline
    Edited by: Roseline on 19 janv. 2010 10:25

  • Function to get Table indices

    Dear all,
    i'm looking for a function modul to get indices of individuell table.
    I could'nt dfinde any one!
    best regards

    you get the following tables in the FM.. right?
    DBINDEXES
    DBINDFLDS
    in this DBINDEXES you have 1 field for index another for unique.. for primary key it would be 'X'.
    or any ways the index <tab_name>~0 means primary key( ~0).
    after getting this...
    you delete the lines for <tab_name>~0 from DBINDFLDS and rest are your secondary keys

Maybe you are looking for