OnDrawingCell seems to be to delete all cell values

I paint a capable 2D on a report that I did successfully with the result I want. It may be important to note that all cell values are expressions, not channels. It looks like this:

My final step is to change the background color based on the value of the cell.

Following the example "to help for orders for trend displayed in user Tables", I saved a script separate with the new command and put in place a column to use. On the test of the script, all THE contents of header cell has not disappeared from the table! Now, it looks like this:

The new user control is in the HealthCellBackground.vbs file as follows. Note that currently all the contents of the command is commented on, which would theoretically result in any changes to the table and theoretically could not be hidden in bugs.

void TabHealthOnDrawingCell (context, cell)
Dim dCurrVal

' dCurrVal = val (Cell.Value)
' <= 9="">
' If dCurrVal > = 100 then
' Cell.BackgroundColor.SetRGBColor (RGB (50, 150, 50))
' ElseIf dCurrVal > = 25 then
' Cell.BackgroundColor.SetRGBColor (RGB (175, 230, 200))
' Else
' Cell.BackgroundColor.SetRGBColor (RGB (255, 50, 50))
' End If
' End If

EndSub ' TabHealthOnDrawingCell

The command is saved as:

' Saves a user REPORT function,.
ScriptCmdAdd("D:\LabVIEW\Project\DIAdem\HealthCellBackground.VBS")

The content of the script for this column is:

Set o2DTableColumnExpression = o2DTable.Columns.Item (2)
Set oColBG = o2DTableColumnExpression.Settings.BackgroundColor
oColBG.ColorIndex = eColorIndexFillEffects
oColBG.RGBFilling = RGB (147,225,225)
oColBG.RGB = vbGreen
oColBG.GradientDirection = eColorGradientHorizontal
oColBG.GradientMode = eColorGradientModeFromInside
o2DTableColumnExpression.settings.OnDrawingCell = "TabHealthOnDrawingCell"

Commenting simply on the last line of the final snippet above will restore the cell values. The above images were generated by enabling / disabling just that character of a comment.

Just for mental health, I tried to use the command in the example, TabTrendOnDrawingCell_Case1, and he gave the same results. Based on the evidence so far, something goes wrong with the record, either it is the contents of the cell as expressions that cause the problem.

Any ideas?

Hi gizmogal,

I have reproduced a table with the expression of group name in your message and also had problems until I changed the scale of the entire table to have the right fixed number of lines.  If all you have are expressions, there unfortunately no way around to a static number in the number of rows in the table.  The expression Root.ChannelGroups.Count works to the right of the expression in the configuration dialog box you posted, but it does not work in the global table scaling tab, and that has to be right.  By default, DIAdem paintings list of 10 lines - my guess is that you had less than 10 groups in the data portal when you got this error.

All 3 of your table configurations are expressions, if you need to list them as expressions, not variables.  A variable would be the name of a global variable that contains the information you want to display.  Unless you have created the global variable and filled with the value you want to display, you cannot use a configuration of variable type.

Brad Turpin

Tiara Product Support Engineer

National Instruments

Tags: NI Software

Similar Questions

  • Cannot open Firefox even after deleting all files and profiles of school boards.

    My computer auto-installé the new Firefox version 40.0.2 (and later 40.0.3) and the browser does not open. It worked and I have not received any error message. I tried every fix I can find here, and even manually, I deleted all of my profiles, folders, program files, uninstalled, reinstalled, restarted my computer, and it still not open. I click on the Firefox button in my bar tasks, the charging symbol goes for a few seconds, then more nothing. Firefox opens and runs without any problems on other computer on computer accounts. I even copied the files of Firefox to the another computer account on which it runs and replaced all files on the computer account that Firefox does not on, rebooted and still nothing. I've been dealing with this issue for over 2 weeks now and am very frustrated because I spent hours trying everything I can find.

    This fix does not work either... tried previously and tried again. However I FINALLY got my Firefox to work on mine. I ended up finding a virus free online (ESET online scanner) scanner and do a full scan on my computer in order to remove anything that could cause a problem. I also went through all my computer programs and documents and cookies and temporary internet files and deleted everything which is not necessary or if it is no longer used. I thought it must be something else because Firefox has no problems with other users of the computer, and my original profile worked very well under other computer users when transferred manually. I think something was interfering with Firefox, which is why none of the fixes here worked because they targeted Firefox itself when it seems that it wasn't the problem.

    Thank you all for your comments!

  • Cannot delete all bookmarks in order to import new to another pc

    I imported my favorites for my netbook to my other pc so that he had the same. Unfortunately he has added to the original ones, and as it seems not to have worked, I have re done repeatedly. I now have a very long list of bookmarks repeated!

    How can I delete all and re import?

    Thank you

    Hello

    Import bookmarks HTML I think adds bookmarks. A faster way would be to set up Firefox sync:

    If you want to remove quickly delete all your bookmarks, you can go to the library in Firefox:

  • Delete all photos on iPhone by mistake. Can I get back them?

    Save completely deleted photos on iPhone 5 s.

    < re-titled by host >

    Greetings mutyurke

    From your post, it seems you deleted all your photos and removed the recently deleted photos thinking that they would still be in the cloud.

    Looks like you could possibly use iCloud photo library. If you take a look at this article: iCloud Photo library FAQ - Apple Support

    If you have active iCloud photo library photos are synced to all your devices include in iCloud. If you delete a photo off of one device, it is deleted on all devices, including in iCloud.

    Take care.

  • AOL have diverted the search bar, deleted all the other engines and disabled the reset.

    I noticed that at some point today the search bar was reset to aol. I removed aol in the bar, but now there is NO option to search engine. All done malware also deleted all other options in search bar, disabled by default reset settings and seems to have deleted the folder of drive C search plugins. I tried an add-on to restore the default choice, but it didn't work. I tried to reset Firefox and a system restore. None worked. I copied the folder searchplugins from a backup, but that has not changed anything. I don't see a new Mozilla Firefox folder (34) as indicated in some other threads. I looked into: config and there are new things for aol it but I do not know how to remove them or what, if anything should replace them.

    Try to add a google search plugin to firefox.
    http://mycroftproject.com/Google-search-plugins.html

    Click on the a 1 and it should ask you to add google.

  • How to delete all the phone numbers in the blocked list?

    How can I delete all the phone numbers in the blocked list?

    I want to delete a large number of blocked number, but now I can't remove the numbers blocked by one, are there ways to eliminate several numbers or the complete list at the same time?

    Thank you!

    No sorry. The fastest method seems to be to go to settings > phone > blocked (or settings > Messages > blocked) and select the editing mode. You could make a suggestion to Apple that offer more options: http://www.apple.com/feedback/iphone.html

  • delete all comments on a worksheet

    I have more than 100 comments in my spreadsheet from 2015.  I want to use a copy of this worksheet for 2016 without any comments.  How can I delete all the comments?

    Thank you

    Hi Maggie,

    Advance planning is the key here. The best way to have a comment-free (and data) copy of the document is to save one as a model, before adding data or comments.

    At this point, you will be able to apply this method for the 2017 copies (and beyond) of this document, but for this end of the year, you may be stuck with manual removal.

    In addition to the comment, what is the content of these cells? Is - this content will also be deleted in preparation for next year? Selection of a cell (one click) and pressing Delete will remove the cell contents (text, numbers or other data entered or formula) and the comment. Copy an empty cell, and then paste them into a group of cells should also remove the comments (and content) of these cells, but also replaces the parameters of any format with the copied cell pasted now. With "more than 100 (but probably less than 200) comments, manual removal (click on a cell or group of cells, press DELETE) can be a usable solution."

    If there is a way to detect the presence of comments on a cell using AppleScript, it should also be possible to delete these comments using AppleScript, but it's a question for one of the participation of writers here.

    Not much help, I'm afraid, but you can find something worth the trip here. If so, please test on a COPY of your file.

    Kind regards

    Barry

  • AppleCare have deleted all my messages on the server hotmail.

    They casually asked me to remove my hotmail to my cell phone account, who then sent a message to Hotmail to delete all messages 'more then 1 week old' in my Inbox. Please can someone help me as soon as possible? Is there no emails on my cell phone or on the server of Microsoft Hotmail since earlier then April 29, 2011 despite the fact that my account was in 2006. I lost a lot of important emails that are of extreme importance that I run a small business

    Am very grateful of any advice...
    Thank you very much

    Hi Lisadawnrawson,

    For more specialist on this question help, post your query on the Windows Live Forum.

    Windows Live Forum - http://windowslivehelp.com/

    Also check out the article below

    Windows Live Hotmail Top issues and Support information

    http://support.Microsoft.com/kb/316659

  • I deleted all the games that come with Windows XP including Solitaire. How can I get that back?

    I deleted all the games that come with Windows XP including Solitaire.  How can I get that back?

    Hi andypily1,

    Welcome to the Microsoft Answers community.

    Try the steps one by one and check below.

    STEP 1:
    How do I add or remove games in Windows XP
    http://support.Microsoft.com/kb/307768
     

    STEP 2:

    In most cases if the games are deleted from the computer files will remain on the computer.

    I suggest that you are looking for game files in the system32 folder.

    Later, click on Start menu click on run and type c:\\windows\system32 in the following search of the window for the file of games like free cell. If you get the files in the system32 folder then copy the file to c:\\program files\start menu\ later in the game folder.

    STEP 3:
    If fails it above steps, try a system restore to the point when the game was available on the computer.
     
    See the link below to learn how to perform the system restore.

    How to restore Windows XP to a previous state
    http://support.Microsoft.com/kb/306084

    Hope this information is useful.
    Let me know if it worked.
     
    Thank you, and in what concerns:
    Umesh P - Microsoft Support

  • Is it safe to delete all files from "C:\Users\username\AppData\Local\Temp' __evry time I do and then try to use MS Office it asks me the install files. I'm reinstalling MS Office 2007 in its original DVD.

    I deleted all files in the TEMP folder. So when I try to open any MS Office 2007 program, it has me reinstall the suite complete from the original DVD, because the msi file is not the correct version. Is this normal?

    No problem as an administrator. Seems that the problem has nothing to do with the TEMP folder.

  • Cannot delete all messages of unknown error has occurred

    Today, I changed to Windows 7 from Windows 10. Everything seemed fine except that I can't delete all messages now. I get this message "an unknown error has occurred" can anyone help please

    Hello, Jillian

    Thanks for the reply.

    I appreciate your patience.

    I hope that the suggestions contained in the previous post may help.

    If this does not help, you can try to uninstall and reinstall Windows live mail and check the issue.
    Reference:
    http://Windows.Microsoft.com/en-us/Windows-Live/Mail-uninstall

    You can reinstall Windows live mail from this link:
    http://Windows.Microsoft.com/en-us/Windows/essentials

    See also:
    http://Windows.Microsoft.com/en-us/Windows-Live/Windows-essentials-help#V1H=TAB4

    Please keep us informed.

    Thank you

  • Delete all the contents of my project

    Somehow, I deleted all the content I had in order for my project. I think I hit the Hotkey Cmd + W (close), but I don't know and I don't know what Panel was selected. I was something other troubleshooting at the same time and just closed and reopened the first to try to recover everything. I saved prior to closing, and now when I open it, I have a completely empty sequence. The clips that I used are all still in the project Panel, but they are long and all editing and sequencing, I did seems to have disappeared. I seriously just delete by pressing a keyboard shortcut? I can not cancel because I closed and saved but can I do to get them back?

    Hi lorenshumaker,

    It seems that you have accidentally closed the timeline (CTRL + W) sequence. All you have to do is find the sequence in your project Panel and reopen it.

    Thank you

    Regalo

  • Is DELETE ALL really how you commit a snapshot?

    Greetings,

    I'm under ESXI 5.1. I want to take the current state of my VM and make permanent state, delete all the snapshots taken before. In my view, this is called "Commit" according to VMware. I thought it would be identical to "Consolidate", but I don't it is.

    Then, according to VMWare link below, to validate you just click "remove all" in the Snapshot Manager. This seems really shady and scary. Is this true?

    http://KB.VMware.com/selfservice/microsites/search.do?language=en_US & cmd = displayKC & externalId = 1026380

    That's right

    How to use snapshots of VMware using the GUI - YouTube

  • Delete all snapshots completely hosed my server

    I have a server ESXi 5, a 750 GB (698GB or so, is usable) local data store, quad Xeon, and 16 GB of RAM. There are two vm (s) - we're a firewall which takes about 10 GB (20 has been allocated) and the other is an Exchange Server that has 500 GB allocated was almost complete with the exception of about 10 GB. Both have been implemented using thin provisioned disks. There are also approximately 4 or 5 pictures taken of the Exchange virtual machine. Thinking that I had to delete the snapshots before you try to resize the virtual drive of 500 GB, I hit the button Delete button instant everything. All the snapshots have been removed from the list and then I could not start the virtual machine due to the lack of storage. He said that nearly 698 GB has been awarded! Then I deleted the tiny snapshots for virtual firewall machine and was able to boot the virtual machine Exchange. After doing a little housekeeping on the vm changes that I stopped him. Try to solve the delete all snapshots problem, I tried the "consolidate all snapshots' option. After several hours of waiting it failed due to lack of space. So, I thought I would reboot the physical machine to see if that helped. When he returned he showed that TB 1.4 or so, space has been allocated! And I could not start anything. Then I ran down to the server room, installed a 750 GB extra hd and started trying to move the virtual machine to empty disk. Well, who seems to have been an even worse mistake to delete all snapshots. Not only this process fails, but now the new hd (datastore2) is completely filled and the original datastore1 has about 132 GB free. The problem with this is that the virtual machine is now spread over these two data stores. Now, I've added another store of data via nfs (nfsdatastore) that has free 2.6 TB and I'm currently copy the entire contents of datastore2 via the cp command in a terminal (ssh remotely controlled).

    Any help would be greatly appreciated.

    OK, so let's try to clone the virtual disk in the NAS data store. Please follow the steps below and ask if there is something you don't understand or something does not work as expected.

    • Create a new folder on your NAS "UDT-MX09-EPSI" data store
    • from archive attached extracts "UDT MX09 (Exchange EPSI) .vmx" to this new folder
    • move 'UDT MX09 (Exchange EPSI)-000004.vmdk' to "datastore2/UDT-MX09-EPSI" on "datastore1/UDT-MX09-EPSI-2".
    • move 'UDT MX09 (Exchange EPSI)-000005.vmdk' to "datastore2/UDT-MX09-EPSI" on "datastore1/UDT-MX09-EPSI-2".
    • from archive attached extracts "UDT MX09 (Exchange EPSI)-000003.vmdk" "datastore1/UDT-MX09-EPSI-2"replaces the existing file.
    • from the command line run:
      "vmkfstools-i" / vmfs/volumes/datastore1/UDT-MX09-EPSI-2/UDT MX09 (Exchange EPSI)-000004.vmdk "" / vmfs/volumes/nfsdatastore/UDT-MX09-EPSI/UDT MX09 (Exchange EPSI) hard. "

    If cloning is successful, do a right-click the virtual machine in the inventory and select 'Remove inventory', then - using the browser from data store - click with the right button on the .vmx file in the folder of the virtual machine on the NAS data store and select "add to the inventory. When you start the virtual computer you may be asked if you have moved or copied the VM. Make sure you select that "I moved it.

    André

    Post edited by: a.p. - deleted '-delta "(error in copy & paste) vmkfstools command

  • To delete all tables in TT, how can I use cursor this way Timesten 11?

    Hello
    I want to delete all tables in Timesten, so I create a procedure like this, but it seems does not work correctly.

    It seems cursor in not accurate Timesten with which in ORACLE. So we are looking for alternatives to do. Could you please provide your expert voice on it.

    Thank you very much.

    Like the following:


    Command > create or replace procedure dropAllTables
    > as
    > CURSOR mycursor IS select table_name from user_tables;
    > table_name user_tables.table_name%type;
    > dropSql varchar2 (200);
    > start
    > Open mycursor;
    > fetch mycursor into table_name;
    > while mycursor found %
    > loop
    > dropSql: = 'drop table ' | table_name;
    > immediately execute dropSql;
    > fetch mycursor into table_name;
    > end of loop;
    > close mycursor;
    > end;
    > /.

    Created procedure.

    Command > exec dropAllTables;


    8507: ORA-01001: Invalid cursor
    8507: ORA-06512: at "TT. DROPALLTABLES', line 13
    8507: ORA-06512: at line 1
    The command failed.



    How can I use cursor this way Timesten 11?

    It is the implementation of cursor close commit on in Timesten is the cause.

    As the drop statements are internally auto-valider the transaction so it closes the cursor itself. So when the next time that you attempt to extract it is your "error cursor not valid."

    Can you try this instead

    create or replace procedure dropAllTables
    as
    CURSOR mycursor IS select table_name from user_tables;
    table-name user_tables.table_name%type;
    type t_row_collection is table of the directory index user_tables.table_name%type;
    t_rows t_row_collection;
    dropSql varchar2 (200);
    Start
    Open mycursor;
    Mycursor fetch bulk collect into t_rows;
    Close mycursor;
    j in t_rows.first... loop t_rows. Last
    dropSql: = 'drop table ' | t_rows (j);
    immediately run dropSql;
    end loop;
    end;

Maybe you are looking for