Get cluster element when changed

Hello all,
Iam interested in knowning (after the user changes the value of a cluster) which element inside a cluster (any type of cluster) was changed.
so in an event structure case (clustername value change) i can get ctl ref, old val, new val.
On the other side I would like to get the either the refnum or name
I know old and new val will need to be variant (on my function) so that i can accomodate for any cluster. I have open G installed on my machine and have looked into the Open G LV data pallet as well as a Vcluster subpanel and havent been able to do this.
Here is an example of a given cluster
Here is another cluster example:
I have been able to do this in two different ways (always knowing before hand the cluster.
Method one:
Method two:
 Here is the skeleton of the function iam trying to build(testing the different possibilities):
So far I havent been successfull in this.
any help will be apreaciated.
regards,
Solved!
Go to Solution.

Try this to get the old and new value along with the control name changed.
Unofficial Forum Rules and Guidelines - Hooovahh - LabVIEW Overlord
If 10 out of 10 experts in any field say something is bad, you should probably take their opinion seriously.
Attachments:
Get Cluster Changed.vi ‏11 KB

Similar Messages

  • I can't seem to get individual elements when comparing 2 arrays using Compare-Object

    My backup software keeps track of servers with issues using a 30 day rolling log, which it emails to me once a week in CSV format. What I want to do is create a master list of servers, then compare that master list against the new weekly lists to identify
    servers that are not in the master list, and vice versa. That way I know what servers are new problem and which ones are pre-existing and which ones dropped off the master list. At the bottom is the entire code for the project. I know it's a bit much
    but I want to provide all the information, hopefully making it easier for you to help me :)
    Right now the part I am working on is in the Compare-NewAgainstMaster function, beginning on line 93. After putting one more (fake) server in the master file, the output I get looks like this
    Total entries (arrMasterServers): 245
    Total entries (arrNewServers): 244
    Comparing new against master
    There are 1 differences.
    InputObject SideIndicator
    @{Agent= Virtual Server in vCenterServer; Backupse... <=
    What I am trying to get is just the name of the server, which should be $arrDifferent[0] or possibly $arrDifferent.Client. Once I have the name(s) of the servers that are different, then I can do stuff with that. So either I am not accessing the array
    right, building the array right, or using Compare-Object correctly.
    Thank you!
    Sample opening lines from the report
    " CommCells > myComCellServer (Reports) >"
    " myComCellServer -"
    " 30 day SLA"
    CommCell Details
    " Client"," Agent"," Instance"," Backupset"," Subclient"," Reason"," Last Job Id"," Last Job End"," Last Job Status"
    " myServerA"," vCenterServer"," VMware"," defaultBackupSet"," default"," No Job within SLA Period"," 496223"," Nov 17, 2014"," Killed"
    " myServerB"," Oracle Database"," myDataBase"," default"," default"," No Job within SLA Period"," 0"," N/A"," N/A"
    Entire script
    # things to add
    # what date was server entered in list
    # how many days has server been on list
    # add temp.status = pre-existing, new, removed from list
    # copy sla_master before making changes. Copy to archive folder, automate rolling 90 days?
    ## 20150114 Created script ##
    #declare global variables
    $global:arrNewServers = @()
    $global:arrMasterServers = @()
    $global:countNewServers = 1
    function Get-NewServers
    Param($path)
    Write-Host "Since we're skipping the 1st 6 lines, create test to check for opening lines of report from CommVault."
    write-host "If not original report, break out of script"
    Write-Host ""
    #skip 5 to include headers, 6 for no headers
    (Get-Content -path $path | Select-Object -Skip 6) | Set-Content $path
    $sourceNewServers = get-content -path $path
    $global:countNewServers = 1
    foreach ($line in $sourceNewServers)
    #declare array to hold object temporarily
    $temp = @{}
    $tempLine = $line.Split(",")
    #get and assign values
    $temp.Client = $tempLine[0].Substring(2, $tempLine[0].Length-3)
    $temp.Agent = $tempLine[1].Substring(2, $tempLine[1].Length-3)
    $temp.Backupset = $tempLine[3].Substring(2, $tempLine[3].Length-3)
    $temp.Reason = $tempLine[5].Substring(2, $tempLine[5].Length-3)
    #write temp object to array
    $global:arrNewServers += New-Object -TypeName psobject -Property $temp
    #increment counter
    $global:countNewServers ++
    Write-Host ""
    $exportYN = Read-Host "Do you want to export new servers to new master list?"
    $exportYN = $exportYN.ToUpper()
    if ($exportYN -eq "Y")
    $exportPath = Read-Host "Enter full path to export to"
    Write-Host "Exporting to $($exportPath)"
    foreach ($server in $arrNewServers)
    $newtext = $Server.Client + ", " + $Server.Agent + ", " + $Server.Backupset + ", " + $Server.Reason
    Add-Content -Path $exportPath -Value $newtext
    function Get-MasterServers
    Param($path)
    $sourceMaster = get-content -path $path
    $global:countMasterServers = 1
    foreach ($line in $sourceMaster)
    #declare array to hold object temporarily
    $temp = @{}
    $tempLine = $line.Split(",")
    #get and assign values
    $temp.Client = $tempLine[0]
    $temp.Agent = $tempLine[1]
    $temp.Backupset = $tempLine[2]
    $temp.Reason = $tempLine[3]
    #write temp object to array
    $global:arrMasterServers += New-Object -TypeName psobject -Property $temp
    #increment counter
    $global:countMasterServers ++
    function Compare-NewAgainstMaster
    Write-Host "Total entries (arrMasterServers): $($countMasterServers)"
    Write-Host "Total entries (arrNewServers): $($countNewServers)"
    Write-Host "Comparing new against master"
    #Compare-Object $arrMasterServers $arrNewServers
    $arrDifferent = @(Compare-Object $arrMasterServers $arrNewServers)
    Write-Host "There are $($arrDifferent.Count) differences."
    foreach ($item in $arrDifferent)
    $item
    ## BEGIN CODE ##
    cls
    $getMasterServersYN = Read-Host "Do you want to get master servers?"
    $getMasterServersYN = $getMasterServersYN.ToUpper()
    if ($getMasterServersYN -eq "Y")
    $filePathMaster = Read-Host "Enter full path and file name to master server list"
    $temp = Test-Path $filePathMaster
    if ($temp -eq $false)
    Read-Host "File not found ($($filePathMaster)), press any key to exit script"
    exit
    Get-MasterServers -path $filePathMaster
    $getNewServersYN = Read-Host "Do you want to get new servers?"
    $getNewServersYN = $getNewServersYN.ToUpper()
    if ($getNewServersYN -eq "Y")
    $filePathNewServers = Read-Host "Enter full path and file name to new server list"
    $temp = Test-Path $filePathNewServers
    if ($temp -eq $false)
    Read-Host "File not found ($($filePath)), press any key to exit script"
    exit
    Get-NewServers -path $filePathNewServers
    #$global:arrNewServers | format-table client, agent, backupset, reason -AutoSize
    #Write-Host ""
    #Write-Host "Total entries (arrNewServers): $($countNewServers)"
    #Write-Host ""
    #$global:arrMasterServers | format-table client, agent, backupset, reason -AutoSize
    #Write-Host ""
    #Write-Host "Total entries (arrMasterServers): $($countMasterServers)"
    #Write-Host ""
    Compare-NewAgainstMaster

    do not do this:
    $arrDifferent = @(Compare-Object $arrMasterServers $arrNewServers)
    Try this:
    $arrDifferent = Compare-Object $arrMasterServers $arrNewServers -PassThru
    ¯\_(ツ)_/¯
    This is what made the difference. I guess you don't have to declare arrDifferent as an array, it is automatically created as an array when Compare-Object runs and fills it with the results of the compare operation. I'll look at that "pass thru" option
    in a little more detail. Thank you very much!
    Yes - this is the way PowerShell works.  You do not need to write so much code once you understand what PS can and is doing.
    ¯\_(ツ)_/¯

  • Checking WBS elements when changing WBS element group

    Dear Gurus,
    Well I am a technical consultant, I use to dwell in the ABAP forum, so maybe I am going to say things without much sense, if so please tell me.
    I have a problem. One of our customers uses transaction KJH2 to change WBS elements groups and they have asked us to check the WBS elements that the users can put in the transaction.
    If a user adds a new WBS range both the WBS elements have to exist in the system, we have to check it somehow, probably using a user-exit or a BADI.
    The problem is that I have been looking for a BADI or a USER-EXIT for many hours and I have been unable to find one which allows us to check this, same when the user inputs the WBS element as when we save the changes.
    Somebody has some help? Any advice would be apreciated.
    In the while I will keep trying to find it and if I succeed I will post it here anyhow.
    So long I have put a break-point in the 'CL_EXITHANDLER' class and I have checked the BADIs that can be used when I make the process, none can be useful I think. I have tried to find a USER-EXIT and I have foud none.
    Thanks in advance to everyone.

    Hi Ayan,
    Maybe you are right and we can't use a BADI for this. But we have a customer which has requested us to code this data check so I have to try.
    I agree that this is master data but it is a simple data check without many consecuences (at least it seems so to me), maybe there is a way to do this.
    Right now I think I am going to stop this until Monday as the FI consultant is now on vacation.
    Thanks a lot for your reply.

  • Is it normal to get all fuzzy when changing the volume?

    almost whenever I change the volume on my ipod it crackles.. pretty inelegant, really. Is this normal, or is my unit defective?

    Yeah the seating is definitely fine.. it happens with 2 different pairs of headphones and 2 pairs of external speakers as well.
    It's actually been going on for a while.. can't remember when it started...
    Is there a way to clean theadphone jack maybe?
    Message was edited by: whatisdamon

  • HT204266 get time out when changing credit card

    Need to change credit card, but keep receiving that it timed out.

    Hello Sion,
    Welcome to the forums and posting your question with us!
    Placing a pre-order on something you truly want is very exciting and I can understand your concern about having you’re your credit card info change during this process. Fortunately, we should be able to update your payment information.
    I would suggest reaching us by phone to do this, our Consumer Relations contact is 1-888-237-8289. Please provide us with an update after reaching out regarding your credit card update.
    Additionally, let us know if you have any other questions.
    Regards,
    Arian|Social Media Specialist | Best Buy® Corporate
     Private Message

  • Update weight and volume when changing the quantity

    Hello ALL,
    For some configurable items, those whose weight and volume depends on configuration, when changing the quantity at set level, weights and volumes are not calculated again and order item is saved with wrong data about weights and volume.
    when ever changing the quantity we will get a message - " Changing date/quantity may result in different BOM Please configure"
    if we do explicitly by clicking "Item Details Configuration' then Weight and Volume will get update automatically.
    my requirement is Weight and volume should get update automatically when changing the quantity with clicking on "Item Details Configuration'.
    could you provide any OSS notes available for this or any help to achieve this functionality.

    Dear Prathap Naidu P,
    Did you solve this issue?
    Because I have the same problem, and I was looking for hints.
    Thank you so much for any help.
    Best regards,
    J.Flanders

  • Error Message when changing modules??? Help

    Having issues - new MBP computer - so reloading all my cloud apps - LR5.5 will NOT work and I've tried everything - I keep getting the Error when changing modules message.  I am beyond fried at this point.

    Hi hillclimbing,
    Can you please let me know the exact error message you see as that would be helpful.
    Does this occur with all the pdf files.
    What OS and Acrobat version are you using?
    Regards,
    Rave

  • Photoshop Elements 8-Change of file format when saving deletes filename

    I have been using Photoshop Elements 8 since last May and have always been irritated that when I add text to a photo it always defaults to PSD format for saving.  I have gone to the preference options to see if I can set jpg as the default and it does not offer that option.  This means that every time I save after adding text I have to manually select jpg to get the format to change.
    Although this has been a pain, I have done it thousands of times as I have edited photos.
    My problem is that suddenly from one day to the next when I change from PSD option to jpg the filename disappears and I have to go back and manually type in the whole filename.  The only changes to my computer settings that I can think of that might have affected this is that Microsoft Updates had 2 updates.  First was Definition for Windows Defender-KB915597 and the other was Unpdate for Windows 7 for x64 based systems-KB97690.
    I saw a similar problem posted by sandwitch2 on Feb. 13th about PSE6.  99jon suggested the change to permissions of adding "everyone".  I tried this and it did not correct the problem.
    Any other suggestions are welcome.
    I have found Adobe's insistance on saving as PSD irritating to say the least in the past.  The inability to change this in preferences has made me very unhappy, but the quality of their product has outweighed the hoops they make me jump through until this.  Their search feature in support is pretty much worthless.  It either brings up nothing if you keyword is to limiting or brings up 200 responses if it if too broad.
    I have been a user of Photoshop Elements for over 6 years updating as new editions have come out. I am to the point that if I can't get this current problem fixed I am uninstalling Elements 8 and going to another software.  Adobe's proprietary requirements and poor support page are just too much of a pain to deal with.

    I was told that if I save in PSD if I send the photos to share with others only those with Photoshop Elements can open the files.  That is why I try to use jpg.  Is that true?
    Thanks for all the help from both of you,
    Bettye

  • Change properties of a cluster element withing an array of clusters

    Hello all,
    I have an array of cluster that is shaped as a line with different display elements.
    A list or a tree wouldn't have made it, so I had to use a cluster and make a table.
    The problem is that I want to change not only the text but also the text color.
    Individually.
    I found this :
    http://www.ni.com/example/30904/en/
    But it change the property in all the clusters in the array, not just the one I need.
    Some people have the same problem :
    http://forums.ni.com/t5/LabVIEW/Reference-to-Array-of-Clusters-with-an-array-element/td-p/1006427
    http://forums.ni.com/t5/LabVIEW/Different-set-of-values-for-two-rings-in-an-array-of-clusters/m-p/10...
    http://forums.ni.com/t5/LabVIEW/array-of-clusters-get-references-to-all-the-clusters/td-p/1079456
    http://forums.ni.com/t5/LabVIEW/How-can-I-reference-the-properties-of-a-control-in-a-cluster-in/m-p/...
    http://forums.ni.com/t5/LabVIEW/Writing-only-to-certain-cluster-elements-in-an-array-by/m-p/2200728
    http://forums.ni.com/t5/LabVIEW/Update-Properties-Of-One-Control-In-An-Array/m-p/3015501
    http://forums.ni.com/t5/LabVIEW/Array-of-clusters-and-in-the-cluster-is-a-bar-meter-how-can-I/m-p/15...
    http://forums.ni.com/t5/LabVIEW/Property-node-of-a-control-inside-of-cluster-inside-an-array/m-p/946...
    Obviously, while in a list/table or tree you can change the property of an individual
    cell (font, color) you cannot do it within an array of cluster, by some sort of magic,
    the property of a cluster element (font, color) are all linked together, hence rendering
    the use of an array worthless.
    A possible hack is proprosed by using control masking, setting one visible and the
    other invisble, swapping their position, whatever. It's a hack you have to perform,
    hence add another code to maintain.
    Is that still the case or is there now a more official way to handle individual cluster
    properties, not just its data ? After all that's a common real-life example that should
    be handled by Labview. In my opinion.
    David Koch
    Solved!
    Go to Solution.

    altenbach wrote:
    One of the elements could be a 2D picture indicator of about the same size. You can write text in any color using picture functions.
    Here's what I had in mind. Seems to work just fine (I would fine-tune the font, picture border, etc. but this should get you started).
    LabVIEW Champion . Do more with less code and in less time .
    Attachments:
    ColorText.png ‏13 KB
    ColorText.vi ‏9 KB

  • From within Photoshop Elements, when I try to open Editor, a box opens that states I must activate the software.  I registered and activated the software last year.  When I click to activate, I get a message that I am not connected to the internet.  I am

    From within Photoshop Elements, when I try to open Editor, a box opens that states I must activate the software.  I registered and activated the software last year.  When I click to activate, I get a message that I am not connected to the internet.  I am connected.  How do I get Editor to work?

    You would get the redemption code, or perhaps even the serial number, from whomever you purchased the software from, apparently Amazon, so talk to them.  This wouldn’t be the first time they’ve sold something that didn’t have all the numbers needed to license it.
    A redemption code is something that is usually on the inner disc packaging if you purchase the media in a box, and there is a barcode on the outside of the packaging that must be scanned at the checkout register to activate the hidden inner code so you can redeem it at home on that website.  This is what happens if you buy PSE from a brick-and-mortar store like Best Buy.  I don’t’ know what happens if you purchase the downloaded version as I have never done that.
    A redemption code is 24-digits of letters and numbers that you enter into a website to get a serial number, once and only once.  The serial number of only 24-digits, no letters, is what you enter into the software during the install or when you run it and it asks if you want to register or run in a trial mode—whatever the exact phrasing is.
    In any case it sounds like you don’t have either a redemption code or serial number—although perhaps something is listed on the purchase confirmation or your account online at Amazon or even in an e-mail from Amazon.

  • I signed into my Apple ID on a new phone and I already had it on my iPod. When I signed into the new phone it won't let me buy anything unless I know my old security questions but I don't know the answers to them. How can I get past those or change them?

    I signed into my Apple ID on a new phone and I already had it on my iPod. When I signed into the new phone it won't let me buy anything unless I know my old security questions but I don't know the answers to them. How can I get past those or change them?

    See Kappy's great User Tips.
    See my User Tip for some help: Some Solutions for Resetting Forgotten Security Questions: Apple Support Communities https://discussions.apple.com/docs/DOC-4551
    Rescue email address and how to reset Apple ID security questions
    http://support.apple.com/kb/HT5312
    Send Apple an email request for help at: Apple - Support - iTunes Store - Contact Us http://www.apple.com/emea/support/itunes/contact.html
    Call Apple Support in your country: Customer Service: Contacting Apple for support and service http://support.apple.com/kb/HE57
     Cheers, Tom

  • How do i get my events to change colors when i add new ones in my calendar

    How do I get my events to change colors when I add a new event in my calendar?

    When you add an event and you see the heading "Calendar", do you see a name to the right of it such as "Work"?  If you tap on the heading "Calendar" does it show you a list of calendars?
    I'm basing this on my experience using iCal on a Mac to sync with my iPad.  I created a number of calendars on the Mac and assigned them different colors.  Those appear on my iPad.  I don't know how to create additional calendars on the iPad alone - I must create them in iCal or MobileMe then they show up on the iPad.  Are you using a Mac or MobileMe?

  • Had a windows computer with my element 7.  Now just bought a Mac OSX   version 10.9.2 what would be the best photoshop elements for this machine.  I did download elements 12 from Apple store but kept getting incompatible message when trying to open a phot

    I thought elements were simple but maybe it is just me.  Having problems moving photos from iphoto to elements

    Duplicate post; see:
    had a windows computer with my element 7.  Now just bought a Mac OSX   version 10.9.2 what would be the best photoshop elements for this machine.  I did download elements 12 from Apple store but kept getting incompatible message when trying to open a phot

  • I have PSE13 on my system.  It was functioning properly and now I get these messages when I go to print:  "The saved printer information is not compatible with this version of Photoshop Elements, or the saved printer is no longer available.  You need to c

    I have PSE13 on my system, Windows 8.1, 64-bit.  It was functioning properly after installation and now I get these messages when I go to print:  "The saved printer information is not compatible with this version of Photoshop Elements, or the saved printer is no longer available.  You need to check your printer settings before printing."  and then this statement:  "Default printer could not be opened."  I have reloaded drivers for both printers and made any upgrades possible.  It was working fine before and now all of a sudden, nothing.  Would prefer to have old PSE v.12 back, it worked with no problems.

    See this thread
    My Photoshop Elements 13 doesn't recognize my Canon PRO-10 printer. I've tried EVERYTHING. Reinstalled all my software, didn't fix anything. Can anyone help?

  • HT2513 How do you change the name of a reminder in the reminder list.  I right click and then choose "get information"  I can change the colour of the reminder but when I type in the name that I want and then press enter the name stays as "untitled".

    How do you change the name of a reminder in the reminder list.  I right click and then choose "get information"  I can change the colour of the reminder but when I type in the name that I want and then press enter the name stays as "untitled"

    Jerry,
    Thanks for replying again. I've got a little bit further thanks to you. I tried the US keyboard layout as you seemed pretty definte that it should work. This time I applied the setting and also started the language toolbar and selected it from there.
    Hey presto, I've got the @ where it should be. Excellent.
    However the single quote ' works in a weird way. When I press it, it doesn't show up on the screen. But when I press another key, I get the single quote plus the next key I press. When I press the single quote twice, I get 2 of them. This is also the same with the SHIFT ' key. i.e. for the double quotes.
    Very strange. I'll look at other keyboards and see where that gets me.
    Thanks,  Maz

Maybe you are looking for