Align WPF elements with the plot area

Is there a recommended way to align WPF elements outside the graph with the plot area? I like my UI align the left edge of area of land. Another use case is lining up outside elements with a RangeCursor.

The way we do now is to add a canvas as a child of the graph. The canvas contains a hidden Visual position ourselves with Canvas.SetLeft using values calculated from the graph margin and padding. Then, we call PointToScreen (new Point (0,0)) on the display. It works most of the time, but the position of the Visual sort of trolling the real edge graphic when the y-axis range changes (and a few other changes axis, that I've not completely nailed down). By calling UpdateLayout on the display when the range changes, I can make it work most of the time, but when I do that, I find that I spend a lot of time CPU in the user interface thread to this appeal.

Currently, the graph does not directly expose the offset of the plot area in the border of the control. Your method of using a nested Visual to calculate the offset appears as a reasonable approach with the current API. I created a quick mock-up using this approach for certain forms of referring to the plot area and a range slider:

XAML
    
        
            
            
            
        
        
            
            
            
        

LayoutUpdated="OnGraphLayoutUpdated">
            
                
                
            
            
                
                
            
        


        
        
        
    

Code
    public partial class MainWindow : Window {
        private static readonly Range RelativeRange = new Range( 0.0, 1.0 );

public MainWindow( ) {
            InitializeComponent( );

rangeCursor.HorizontalAxis = xAxis;
            rangeCursor.VerticalAxis = yAxis;
        }

private void OnGraphLayoutUpdated( object sender, EventArgs e ) {
            UpdateAlignment( );
        }

private void UpdateAlignment( ) {
            Size size = graph.RenderSize;
            if( size.Width <= 0.0 || size.Height <= 0.0 )
                return;

// Get reference point to canvas in bottom-left corner of graph.
            var referenceTransform = referenceVisual.TransformToVisual( graph );
            Point graphBottomLeft = referenceTransform.Transform( new Point( ) );

// Apply margin to size and bottom-left reference point.
            Thickness margin = graph.Margin;
            size.Width += margin.Left + margin.Right;
            size.Height += margin.Top + margin.Bottom;
            graphBottomLeft.X += margin.Left;
            graphBottomLeft.Y += margin.Top;

// Calculate top-right reference point.
            Size plotAreaSize = graph.GetPlotAreaSize( );
            Point graphTopRight = new Point(
                graphBottomLeft.X + plotAreaSize.Width,
                graphBottomLeft.Y - plotAreaSize.Height );

// Get reference points for range cursor within plot area.
            var horizontalRange = rangeCursor.GetRelativeHorizontalRange( ) ?? RelativeRange;
            var verticalRange = rangeCursor.GetRelativeVerticalRange( ) ?? RelativeRange;
            Point cursorBottomLeft = graph.RelativeToScreen( new Point( horizontalRange.Minimum, verticalRange.Minimum ) );
            Point cursorTopRight = graph.RelativeToScreen( new Point( horizontalRange.Maximum, verticalRange.Maximum ) );
            cursorBottomLeft.X += graphBottomLeft.X;
            cursorBottomLeft.Y += graphTopRight.Y;
            cursorTopRight.X += graphBottomLeft.X;
            cursorTopRight.Y += graphTopRight.Y;

// Set margin to align graph and cursor visuals.
            graphTopRectangle.Margin = new Thickness { Left = graphBottomLeft.X, Right = size.Width - graphTopRight.X };
            graphLeftRectangle.Margin = new Thickness { Top = graphTopRight.Y, Bottom = size.Height - graphBottomLeft.Y };
            cursorBottomRectangle.Margin = new Thickness { Left = cursorBottomLeft.X, Right = size.Width - cursorTopRight.X };
            cursorRightRectangle.Margin = new Thickness { Top = cursorTopRight.Y, Bottom = size.Height - cursorBottomLeft.Y };
        }
    }

Tags: NI Software

Similar Questions

  • How can we do a single element with the content of two clips

    How can we do a single element with the content of two clips

    You try to get a picture of image? In other words, that contained two visible clips at the same time? If you are, change the substantive item to you main plot and another tie on top using an edit connect to the battery. Select the top item. Activate the transform tool and resize and reposition the clamp if necessary.

    Russ

  • iMac hangs after update of recent software - "an element of the liberated area has been modified in the area of pipe.

    I have an iMac 21.5 "2009 end which I never had no problem with. It is Yosemite 10.10.5 running and after a recent software update has become very unstable. After I restarted recently he crashed 5 times a day. It seems to be the internet causing the problem (I use Google and Safari and had adbloc on Google).

    This is a copy of the last problem report. Any help would be appreciated.

    Anonymous UUID: 7DBCDA8C-8FD9-63FE-7843-971A36805010

    Mar 22 19:13:35 dec 2015

    Panic report *.

    panic (cpu 0 0xffffff800c76bf7d appellant): "an element of the liberated area has changed in the area of pipe: expected 0xc0ffeeb11389b206 but found 0xc0ffeef11389b206, wicks 0 4000000000 changed x, offset 168 of 176 in the element 0xffffff801a243a70, cookies 0x3f00113109ad8bc6 0x53521947e0c1049"@/SourceCache/xnu/xnu-2782.50.1/osfmk/kern/zalloc.c:496.

    Backtrace (CPU 0), frame: return address

    0xffffff809f79bc70: 0xffffff800c72ad21

    0xffffff809f79bcf0: 0xffffff800c76bf7d

    0xffffff809f79bd60: 0xffffff800c76b9f1

    0xffffff809f79bda0: 0xffffff800c76a837

    0xffffff809f79bed0: 0xffffff800cbefd61

    0xffffff809f79bf50: 0xffffff800cc4b376

    0xffffff809f79bfb0: 0xffffff800c8344a6

    The process corresponding to the current thread BSD name: firmwaresyncd

    Mac OS version:

    14F1509

    Kernel version:

    14.5.0 Darwin kernel version: kills Sep 1 21:23:09 PDT 2015; root:XNU-2782.50.1~1/RELEASE_X86_64

    Kernel UUID: 06D286E3-A8A1-3BE7-A7EB-EAC6E0C69758

    Slide kernel: 0x000000000c400000

    Text of core base: 0xffffff800c600000

    Text __HIB base: 0xffffff800c500000

    Name of system model: iMac10, 1 (Mac-F2268CC8)

    Availability of the system in nanoseconds: 350747261770

    last load kext to 295918008027: com.apple.filesystems.msdosfs 1.10 (addr 0xffffff7f8ef37000 size 69632)

    Finally unloaded kext to 148510260291: com.apple.iokit.IOAHCIPassThrough 1.0.3 (addr 0xffffff7f8e061000 size 36864)

    kexts responsible:

    com.rim.driver.BlackBerryUSBDriverInt 0.0.68

    com Apple.filesystems.msdosfs 1.10

    com.apple.driver.AudioAUUC 1.70

    com.apple.driver.AppleHWSensor 1.9.5d0

    com.apple.driver.AGPM 110.19.6

    com Apple.filesystems.autofs 3.0

    com.apple.iokit.IOBluetoothSerialManager 4.3.6f3

    com.apple.driver.AppleOSXWatchdog 1

    com.apple.driver.AppleMikeyHIDDriver 124

    com.apple.driver.AppleHDA 272.18.3

    com.apple.driver.AppleMikeyDriver 272.18.3

    com.apple.iokit.BroadcomBluetoothHostControllerUSBTransport 4.3.6f3

    com.apple.driver.ACPI_SMC_PlatformPlugin 1.0.0

    com.apple.driver.AppleLPC 1.7.3

    com.apple.iokit.IOUserEthernet 1.0.1

    com.apple.Dont_Steal_Mac_OS_X 7.0.0

    com.apple.driver.AppleHWAccess 1

    com.apple.driver.AppleHV 1

    com.apple.driver.AppleIntelSlowAdaptiveClocking 4.0.0

    com.apple.driver.AppleBacklight 170.7.4

    com.apple.GeForceTesla 10.0.0

    com.apple.driver.AppleUpstreamUserClient 3.6.1

    com.apple.driver.AppleMCCSControl 1.2.12

    com.apple.driver.AppleIRController 327,5

    com.apple.driver.AppleUSBCardReader 3.5.5

    com.apple.AppleFSCompression.AppleFSCompressionTypeDataless 1.0.0d1

    com.apple.AppleFSCompression.AppleFSCompressionTypeZlib 1.0.0

    com.apple.BootCache 36

    com.apple.iokit.SCSITaskUserClient 3.7.5

    com.apple.driver.XsanFilter 404

    com.apple.iokit.IOAHCIBlockStorage 2.7.1

    com.apple.driver.AppleFWOHCI 5.5.2

    com.apple.driver.AirPort.Atheros40 700.74.5

    com.apple.driver.AppleUSBHub 705.4.2

    com.apple.driver.AppleHPET 1.8

    com Apple.nvenet 2.0.22

    com.apple.driver.AppleAHCIPort 3.1.2

    com.apple.driver.AppleUSBOHCI 656.4.1

    com.apple.driver.AppleUSBEHCI 705.4.14

    com.apple.driver.AppleRTC 2.0

    com.apple.driver.AppleACPIButtons 3.1

    com.apple.driver.AppleSMBIOS 2.1

    com.apple.driver.AppleACPIEC 3.1

    com.apple.driver.AppleAPIC 1.7

    com.apple.driver.AppleIntelCPUPowerManagementClient 218.0.0

    com Apple.NKE.applicationfirewall 161

    com Apple.Security.Quarantine 3

    com.apple.security.TMSafetyNet 8

    com.apple.driver.AppleIntelCPUPowerManagement 218.0.0

    3.10.25 com.apple.AppleGraphicsDeviceControl

    com Apple.kext.Triggers 1.0

    com.apple.iokit.IOSerialFamily 11

    com.apple.driver.DspFuncLib 272.18.3

    com.apple.kext.OSvKernDSPLib 1.15

    com.apple.iokit.IOFireWireIP 2.2.6

    com.apple.iokit.IOBluetoothHostControllerUSBTransport 4.3.6f3

    com.apple.driver.IOPlatformPluginLegacy 1.0.0

    com.apple.driver.AppleSMBusPCI 1.0.12d1

    com.apple.driver.IOPlatformPluginFamily 5.9.1d7

    com.apple.iokit.IOUSBUserClient 705.4.0

    com.apple.driver.AppleHDAController 272.18.3

    com.apple.iokit.IOHDAFamily 272.18.3

    com.apple.iokit.IOAudioFamily 203.3

    com.apple.vecLib.kext 1.2.0

    com.apple.iokit.IOSurface 97.4

    com.apple.iokit.IOBluetoothFamily 4.3.6f3

    com.apple.iokit.IOSlowAdaptiveClockingFamily 1.0.0

    com.apple.driver.AppleBacklightExpert 1.1.0

    com.apple.driver.AppleSMC 3.1.9

    com.apple.nvidia.classic.NVDANV50HalTesla 10.0.0

    com.apple.driver.AppleSMBusController 1.0.13d1

    com.apple.nvidia.classic.NVDAResmanTesla 10.0.0

    com.apple.iokit.IONDRVSupport 2.4.1

    com.apple.iokit.IOGraphicsFamily 2.4.1

    com.apple.driver.AppleUSBHIDKeyboard 176,2

    com.apple.driver.AppleHIDKeyboard 176,2

    com.apple.iokit.IOUSBHIDDriver 705.4.0

    com.apple.driver.AppleUSBMergeNub 705.4.0

    com.apple.iokit.IOSCSIMultimediaCommandsDevice 3.7.5

    com.apple.iokit.IOBDStorageFamily 1.7

    com.apple.iokit.IODVDStorageFamily 1.7.1

    com.apple.iokit.IOCDStorageFamily 1.7.1

    com.apple.iokit.IOAHCISerialATAPI 2.6.1

    4.5.8 com.apple.iokit.IOFireWireFamily

    com.apple.driver.AppleEFINVRAM 2.0

    com.apple.iokit.IO80211Family 730.60

    com.apple.driver.AppleEFIRuntime 2.0

    com.apple.iokit.IONetworkingFamily 3.2

    com.apple.iokit.IOAHCIFamily 2.7.5

    2.2.9 com.apple.driver.NVSMU

    com.apple.iokit.IOHIDFamily 2.0.0

    com.apple.iokit.IOSMBusFamily 1.1

    com Apple.Security.sandbox 300.0

    com.apple.kext.AppleMatch 1.0.0d1

    com.apple.driver.AppleKeyStore 2

    com.apple.driver.AppleMobileFileIntegrity 1.0.5

    com.apple.driver.AppleCredentialManager 1.0

    com.apple.driver.DiskImages 398

    com.apple.iokit.IOReportFamily 31

    com.apple.driver.AppleFDEKeyStore 28.30

    com.apple.iokit.IOUSBMassStorageClass 3.7.2

    com.apple.driver.AppleUSBComposite 705.4.9

    com.apple.iokit.IOSCSIBlockCommandsDevice 3.7.5

    com.apple.iokit.IOStorageFamily 2.0

    com.apple.iokit.IOSCSIArchitectureModelFamily 3.7.5

    com.apple.iokit.IOUSBFamily 720.4.4

    com.apple.driver.AppleACPIPlatform 3.1

    com.apple.iokit.IOPCIFamily 2.9

    com.apple.iokit.IOACPIFamily 1.4

    com.apple.kec.Libm 1

    com Apple.KEC.pthread 1

    com Apple.KEC.corecrypto 1.0

    System profile:

    Airport: spairport_wireless_card_type_airport_extreme (0x168C, 0x8F), Atheros 9280: 4.0.74.0 - P2P

    Bluetooth: Version 4.3.6f3 16238, 3 services, 27 aircraft, 1 incoming serial ports

    Crush Bus:

    Memory module: BANK 0/DIMM1, 2 GB, DDR3, 1067 MHz, 0x80CE, 0x4D34373142353637334648302D4346382020

    Memory module: BANK 1/DIMM1, 2 GB, DDR3, 1067 MHz, 0x80CE, 0x4D34373142353637334648302D4346382020

    USB device: Keyboard Hub

    USB Device: Apple keyboard

    USB device: ISight built-in

    USB device: Memory card reader internal

    USB Device: IR receiver

    USB device: USB optical mouse

    USB device: Hub BRCM2046

    USB Device: USB Bluetooth host controller

    Serial ATA Device: WDC WD5000AAKS-40V2B0, 500,11 GB

    Serial ATA Device: OPTIARC DVD RW AD - 5680H

    Model: iMac10, 1, IM101.00CC.B00 of BootROM, 2 processors, Intel Core 2 Duo 3.06 GHz, 4 GB, MSC 1.52f9

    Network service: Airport, AirPort, en1

    Graphics card: NVIDIA GeForce 9400, NVIDIA GeForce 9400, PCI, 256 MB

    Model: iMac10, 1, IM101.00CC.B00 of BootROM, 2 processors, Intel Core 2 Duo 3.06 GHz, 4 GB, MSC 1.52f9

    Graphics card: NVIDIA GeForce 9400, NVIDIA GeForce 9400, PCI, 256 MB

    Memory module: BANK 0/DIMM1, 2 GB, DDR3, 1067 MHz, 0x80CE, 0x4D34373142353637334648302D4346382020

    Memory module: BANK 1/DIMM1, 2 GB, DDR3, 1067 MHz, 0x80CE, 0x4D34373142353637334648302D4346382020

    Airport: spairport_wireless_card_type_airport_extreme (0x168C, 0x8F), Atheros 9280: 4.0.74.0 - P2P

    Bluetooth: Version 4.3.6f3 16238, 3 services, 27 aircraft, 1 incoming serial ports

    Network service: Airport, AirPort, en1

    Serial ATA Device: WDC WD5000AAKS-40V2B0, 500,11 GB

    Serial ATA Device: OPTIARC DVD RW AD - 5680H

    USB device: Keyboard Hub

    USB Device: Apple keyboard

    USB device: ISight built-in

    USB device: Memory card reader internal

    USB Device: IR receiver

    USB device: USB optical mouse

    USB device: Hub BRCM2046

    USB Device: USB Bluetooth host controller

    Crush Bus:

    com.rim.driver.BlackBerryUSBDriverInt 0.0.68

    Try to uninstall RIM.

    Uninstallation of RIM

  • Add-PSSnapin: an element with the same key has already been added

    When you run Add-PSSnapin, I get the above error. This seems to happen if I try to add the snap a second time, but when this happens, none of the power CLI commands are then available up to what the server is restarted.

    Add-PSSnapin: an element with the same key has already been added.

    At C:\Windows\system32\WindowsPowerShell\v1.0\Modules\

    + Add-PSSnapin $SnapinName;

    +     ~~~~~~~~~~~~~~~~~~~~~~~~

    + CategoryInfo: NotSpecified: (:)) [Add-PSSnapin], ArgumentExcept)

    ion

    + FullyQualifiedErrorId: System.ArgumentException, Microsoft.PowerShell.Co

    mmands. AddPSSnapinCommand

    Failure of the attempts to remove the snap-in at this point with:

    Remove-PSSnapin: no Windows PowerShell snap-ins for the model

    "VmWare.VimAutomation.Core" were found. Check the pattern and then try the

    command again.

    At C:\Windows\system32\WindowsPowerShell\v1.0\Modules\

    + Remove-PSSnapin $SnapinName;

    +     ~~~~~~~~~~~~~~~~~~~~~~~~~~~

    + CategoryInfo: InvalidArgument: (VmWare.VimAutomation.Core:Stri

    NG) [Remove-PSSnapin], PSArgumentException

    + FullyQualifiedErrorId: NoPSSnapInsFound, Microsoft.PowerShell.Commands.R

    emovePSSnapinCommand

    I already tried to uninstall the dll and put it back, that makes no difference

    $dllpath = "C:\Program Files (x 86) \Vmware\Infrastructure\vSphere PowerCLI\VMWare.VimAutomation.VICore.Cmdlets.dll.

    $SnapinName = "VmWare.VimAutomation.Core".

    #get the path to instalutil

    $path = [System.Runtime.InteropServices.RuntimeEnvironment]::GetRuntimeDirectory();

    #create an alise for installtuil

    set-alias installutil (resolve-path (join-path $path 'installutil.exe'));

    #uninstall snap

    InstallUtil /u $dllpath;

    InstallUtil $dllpath;

    I tried appdomain unloading, then adding the snap-in with the same result:

    $appdomain = [AppDomain]: CurrentDomain

    $appdomain. # Of unloading | Out-Null

    Add-PSSnapin "VMware.VimAutomation.Core".

    $appdomain. Load

    Everything simply jump beyond the error is not good because it is impossible to find the following commands:

    Add-PSSnapin "VMware.VimAutomation.Core" - ErrorAction SilentlyContinue

    Get - VM $VirtualMachine

    The term 'Get - VM' is not recognized as the name of a cmdlet, function, script file, or an executable program. Check the spelling of the name, or if a path has been included, make sure the path is correct, and then try again.

    Any help to fix this would be greatly appreciated.

    Thank you

    OK, I was kind of what went wrong here.

    The snap has been loaded from a powershell module. When the module is removed and added again, the snap ceases to function, but also can not be added again.

    If the snap is loaded first outside the module everything works fine until you try never to remove or add snap-in module.

  • PowerCLI - an element with the same key has already been added ERROR

    Hello

    I opened a case with VMware on a problem using PowerCLI. And pretty well, they said that they do not support scripts... But the error is not related to any script. It is related to the first command I run against one of our Vcenter and we have 6 of them.

    Everything worked well until we went from 4.1 to 5.1

    I can connect to our VCenter fine, but the first command always give an error and fail to the powercli but the task still occur in vCenter.

    When it gets ugly, is we have several powershell script to maintain and automate our environment but now these script fail.

    Example, we have a script to deploy the VM model and then configure the appropriate hardware configuration and add Notes and custom attributes. But the script fails after that deployment so the rest will not run. It will be possible that deploy us to the first virtual machine.

    So for 'Band-aid' question, I added a line to my script to start a virtual dummy machine, to make sure that what is in the script will work fine.

    Error:

    PowerCLI C:\Program Files\VMware\Infrastructure\vSphere PowerCLI > start-vm vm - Server-m46

    Start-VM: 2013/06/26 11:57:05 Start-VM an element with the same key has already been added.

    Online: 1 character: 9 + start-vm < < < <-vm server-m46 + CategoryInfo: NotSpecified: (:)) [start-VM], ViError + FullyQualifiedErrorId: Client20_VMServiceImpl_StartVM_ViError, VMware.VimAutomation.ViCore.Cmdlets.Commands.StartVM)

    As far as I know, done to the PowerCLI VMware supports.

    I don't think they support the client script debugging, but the product PowerCLI itself is supported.

    I created a few calls myself in the past.

    What you see is a known problem, there are a few discussions in this community who has something similar.

  • First New - VM: an element with the same key has already been added.


    I get a strange error that I have seen a few other posts, but with no resolution (or at least one that I can find).  When you try to create a new virtual machine using the cmdlet New - VM, I get the error "an item with the same key has already been added."

    Now, here's the key that I've not seen many others to mention.  This ONLY happens on the first attempt for each new connection with Connect-VIServer.  I can create as many of the same machines that I want after that first mistake with the same settings (new name of course).  If I disconnect and reconnect again, the error appears for the first time.

    Normally with PowerShell, I have just to catch the error and be on my way.  However, in this case I use the parameter - RunAsync, so that I can capture the task that is returned in a variable.  From there, I use Wait-task until the virtual machine is complete before moving on with the script.  Everything works fine when the error occurs, but when it happens that the object of the task is not returned and the rest of her vomit script errors.

    I am running the latest version of PowerCLI and I tried this on PowerShell v2.0 and v3.0 and get the same results.  I tried different models and guests without success.  I also tried this with and without assistance - AllLinked on Connect-VIServer-bound mode.  I should mention that I am cloning model, by specifying a spec customization and host cluster data store.  Again, the only common denominator repeatable here is that this ONLY happens on the first attempt to use New - VM session to vCenter.

    Any ideas or suggestions?

    If this is useful at all, here are the details of the output on the exception:

    PS C:\ > $Error [0]
    New - VM: 05/06/2013-09:49:22 new-VM an element with the same key has already been added.
    On line: 1 char: 11
    + $VMTask = new-VM-name "NEWTEST20" - model 'Template' - OS...
    + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo: NotSpecified: (:)) [new-VM], VimException)
    + FullyQualifiedErrorId: Core_BaseCmdlet_UnknownError, VMware.VimAutomation.ViCore.Cmdlets.Commands.NewVM

    PS C:\ > $Error [0]. Exception | Select *.


    ErrorId: Core_BaseCmdlet_UnknownError
    ErrorCategory: NotSpecified
    TargetObject:
    RecommendedAction:
    SessionId:
    Login ID: /VIServer=USERNAME@SERVER:443/
    Severity: error
    Message: 05/06/2013-09:49:22 new-VM an element with the same key has already been added.
    Data: {ParameterValues}
    InnerException: System.ArgumentException: an item with the same key has already been added.
    to System.Collections.Generic.Dictionary'2.Insert (TKey key, TValue value, Boolean add)
    at VMware.VimAutomation.ViCore.Impl.V1.Service.StaticDataServiceImpl.PopulateTaskDescriptionDict
    ionary()
    at VMware.VimAutomation.ViCore.Impl.V1.Service.StaticDataServiceImpl.GetTaskDescription (String
    taskDescriptionId)
    at VMware.VimAutomation.ViCore.Impl.V1.Task.TaskImpl.Create (ManagedObjectReference moRef,
    Customer VimClient, accessories 2 dictionary, extensionData object)
    to VMware.VimAutomation.ViCore.Impl.V1.Task.ViCoreTaskCoreServiceProviderImpl. < GetTaskListForCli
    ENT > d__7.MoveNext)
    System.Collections.Generic.List to ' 1.InsertRange (Int32 index, 1 IEnumerable collection)
    at VMware.VimAutomation.ViCore.Impl.V1.Task.ViCoreTaskCoreServiceProviderImpl.GetTaskList (IEnume
    uidList Maple 1, IEnumerable 1 connectionUidList)
    to VMware.VimAutomation.Sdk.Impl.V1.Task.CoreTaskServiceImpl.GetTaskList (IEnumerable 1 uidList,
    IEnumerable 1 connectionUidList)
    to VMware.VimAutomation.ViCore.Impl.V1.Service.TaskServiceImpl.GetTaskCore (Nullable State 1,)
    IList 1 connectionUidList)
    to VMware.VimAutomation.ViCore.Impl.V1.Service.TaskServiceImpl.GetTask (Nullable State 1,)
    CmdletTaskInfoProvider cmdletTaskInfoProvider)
    at VMware.VimAutomation.ViCore.Impl.V1.Service.TaskServiceImpl.GetTaskById (String uid,
    CmdletTaskInfoProvider cmdletTaskInfoProvider)
    VMware.VimAutomation.ViCore.Impl.V1.Service.VmServiceImpl.NewVM (model TemplateInterop,
    VMHostInterop vmHost, string name, resourceContainer, FolderInterop location VIContainerInterop,.
    StorageResourceInterop data store, Nullable 1 diskStorageFormat, OSCustomizationSpecInterop
    customization, Boolean, Boolean, string 1 Nullable description isRequestedAsync allowNested
    Nullable, 1 haIsolationResponse, Nullable 1 drsAutomationLevel, haRestartPriority, [AdvancedOption]
    options)
    to VMware.VimAutomation.ViCore.Cmdlets.Commands.NewVM.DoWork (customer VIAutomation, moList list 1)
    at VMware.VimAutomation.ViCore.Util10Ps.BaseCmdlet.BaseCmdlet.DoWork (VIConnection connection,
    MoList list 1)
    at VMware.VimAutomation.Sdk.Util10Ps.BaseCmdlet.BaseCmdlet.DoWorkEx (VIConnection connection,
    MoList list 1)
    to
    VMware.VimAutomation.Sdk.Util10Ps.BaseCmdlet.ConnectionDispatchHelper.ExecuteRunlist (dictionary 2
    runlist, DoWorkDelegate doWorkDelegate, UidDispatchHelper uidDispatchHelper, result of list 1)
    TargetSite:
    StackTrace:
    HelpLink:
    Source:

    PS C:\ > $Error [0]. Exception.InnerException | Select *.


    Message: An element with the same key has already been added.
    ParamName:
    Data: {ConnectionId}
    InnerException:
    TargetSite: Void Insert (TKey, TValue, Boolean)
    StackTrace: At System.Collections.Generic.Dictionary'2.Insert (TKey key, TValue value, Boolean add)
    to
    VMware.VimAutomation.ViCore.Impl.V1.Service.StaticDataServiceImpl.PopulateTaskDescriptionDictionary)
    at VMware.VimAutomation.ViCore.Impl.V1.Service.StaticDataServiceImpl.GetTaskDescription (String
    taskDescriptionId)
    at VMware.VimAutomation.ViCore.Impl.V1.Task.TaskImpl.Create (ManagedObjectReference moRef,
    Customer VimClient, accessories 2 dictionary, extensionData object)
    to VMware.VimAutomation.ViCore.Impl.V1.Task.ViCoreTaskCoreServiceProviderImpl. < GetTaskListForClient
    > d__7.MoveNext)
    System.Collections.Generic.List to ' 1.InsertRange (Int32 index, 1 IEnumerable collection)
    to
    VMware.VimAutomation.ViCore.Impl.V1.Task.ViCoreTaskCoreServiceProviderImpl.GetTaskList (IEnumerable 1)
    uidList, IEnumerable 1 connectionUidList)
    to VMware.VimAutomation.Sdk.Impl.V1.Task.CoreTaskServiceImpl.GetTaskList (IEnumerable 1 uidList,
    IEnumerable 1 connectionUidList)
    to VMware.VimAutomation.ViCore.Impl.V1.Service.TaskServiceImpl.GetTaskCore (Nullable State 1,)
    IList 1 connectionUidList)
    to VMware.VimAutomation.ViCore.Impl.V1.Service.TaskServiceImpl.GetTask (Nullable State 1,)
    CmdletTaskInfoProvider cmdletTaskInfoProvider)
    at VMware.VimAutomation.ViCore.Impl.V1.Service.TaskServiceImpl.GetTaskById (String uid,
    CmdletTaskInfoProvider cmdletTaskInfoProvider)
    VMware.VimAutomation.ViCore.Impl.V1.Service.VmServiceImpl.NewVM (model TemplateInterop,
    VMHostInterop vmHost, string name, resourceContainer, FolderInterop location VIContainerInterop,.
    StorageResourceInterop data store, Nullable 1 diskStorageFormat, OSCustomizationSpecInterop
    customization, Boolean, Boolean, string 1 Nullable description isRequestedAsync allowNested
    Nullable, 1 haIsolationResponse, Nullable 1 drsAutomationLevel, haRestartPriority, [AdvancedOption]
    options)
    to VMware.VimAutomation.ViCore.Cmdlets.Commands.NewVM.DoWork (customer VIAutomation, moList list 1)
    at VMware.VimAutomation.ViCore.Util10Ps.BaseCmdlet.BaseCmdlet.DoWork (VIConnection connection,
    MoList list 1)
    at VMware.VimAutomation.Sdk.Util10Ps.BaseCmdlet.BaseCmdlet.DoWorkEx (VIConnection connection,
    MoList list 1)
    to
    VMware.VimAutomation.Sdk.Util10Ps.BaseCmdlet.ConnectionDispatchHelper.ExecuteRunlist (dictionary 2
    runlist, DoWorkDelegate doWorkDelegate, UidDispatchHelper uidDispatchHelper, result of list 1)
    HelpLink:
    Source: mscorlib


    I was informed that this is actually a "known" bug and a fix has already been planned for the release of the future code.  After getting the access to a beta version, it does not seem to be fixed in the next release.

  • Creating an element indicates the element with the name already exists

    Hello dear,

    I'm on R12

    We are to modernize a few standard Link elements that weren't before. So I end of all the links in the element and then end the element as 31-dec-2012.
    I am trying to use the same element of 1 January 2013 and set it as a standard binding element, but it is throwing an error indicating that the element with the name already exists
    who is reasonably.

    My requirement is that I wanted to use the same element name and set it as a standard link. I can do this.

    Your entries are highly appreciated.

    Thank you

    You can go the previous day, press Delete again, and select Remove next or all future changes

  • Why some elements of the taskbar are grayed out?

    original title: Vista 64 bit Home Premium got updated yesterday. Why some elements of the taskbar are grayed out?

    Hello.

    Yesterday, I downloaded the updates from Microsoft Update. I use Vista 64 bit Home Premium on a Toshiba laptop.

    I don't see the network icon in the taskbar.

    When I right click on the taskbar, go to properties, Notification area tab: I see that Volume, network and power are grayed out. I can't select them. The only I can change is the clock to turn on or off.

    Is there something I can do? No one else has used the laptop. Thank you.

    It works again. Sometimes this happens and I don't know why.

    I used my computer. I turned it off and now the missing things are back.

    Thanks for the info, I didn't have to do it well.

  • An element with the same key has already been added

    Hi all

    I see a strange problem when you try to add a new disk to a virtual computer via powershell

    I use the following commands:

    Add-PSSnapin VMware.VimAutomation.Core

    to connect-viserver-Server $MyVC

    $server = "MyServer".

    $vm = get - vm $server

    $NewDisk = new-disk-hard - VM CapacityGB - $DiskSize - StorageFormat $StorageFormat $VM

    When I run it, the drive is added, but what follows is cast in the output:

    New hard drive: 24/06/2013-11:04:22New-harddiskAn element with the same key has already been added.

    On line: 1 char: 11

    + $NewDisk = new-disk-hard - VM $VM CapacityGB - $DiskSize - StorageFormat $StorageForm...

    +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo: NotSpecified: (:)) [new-harddisk], ViError)
    + FullyQualifiedErrorId: Client20_VirtualDeviceServiceImpl_NewVirtualHardDisk_ReconfigError, VMware.VimAutomation.

    ViCore.Cmdlets.Commands.VirtualDevice.NewHardDisk

    When I restarted the command in the same pssession and then it is executed without error.

    Has anyone seen this behavior before?

    This could be a bug?

    I searched for this error, but this seems like something very generic...

    Thanks in advance!

    Filip

    Hi Filip,

    This looks like the same problem as already reported in first New - VM: an element with the same key has already been added.

  • Table report - property of the plot area - more options of 5 series

    Version - SQL Developer 4.0 EA1

    It is possible to specify options of series more than 5 to the title of the "plot area' of a line chart report? I tried editing the file 'Report.xml user' to specify the option of more than 5 series, but he has made report not being is not practicable or editable.

    Kind regards

    Vishal Gupta

    http://blog.vishalgupta.com

    Hi Vishal,

    It is not currently possible to change the number of series options, but it is a very good suggestion which is taken to include in a future version.

    Phil Richens

    SQLDev development team.

  • How can I configure the element with the script names?

    Could Hello someone give me a hand?

    I created symbols on the stage of this script below.

    ------------------------------------------------------

    for (k = 0; k < 5; k ++) {}

    sym.createChildSymbol ("mySymB", "Stage");

    }

    ------------------------------------------------------

    How can I configure the element with the script names?

    Because, when I try to control a symbol by using the getSymbol("---") command.

    I need to know the name of the item given to each symbol.

    Concerning

    Yes, you're right.

    Using 'Code-Example' If you write sym.getSymbol ("mySymB") that edge returns the undefined value.

    With "Drag-and-drop-Example", you can use sym.getChildSymbols ().

  • How can I get the value of the element with the namespace?

    I tried to get an element of value in xml a namespace, but I can't.
    I removed the namespace, I get a value of the element.

    How can I get a value of the element with the namespace?

    -1. Error ----------- xml ------------------------------
    <? XML version = "1.0" encoding = "UTF-8"? >

    * < TaxInvoice xmlns = "" urn: kr: or: kec:standard:Tax:ReusableAggregateBusinessInformation:1:0 "xmlns: xsi ="http://www.w3.org/2001/XMLSchema-instance"xsi: schemaLocation =" urn: kr: or: kec:standard:Tax:ReusableAggregateBusinessInformation:1:0 http://www.kec.or.kr/standard/Tax/TaxInvoiceSchemaModule_1.0.xsd "> *"
    < ExchangedDocument >
    < IssueDateTime > 20110810133213 < / IssueDateTime >
    < ReferencedDocument >
    < ID > 318701 - 0002 / < ID >
    < / ReferencedDocument >
    < / ExchangedDocument >
    < TaxInvoiceDocument >
    < IssueID > 201106294100 < / IssueID >
    < > 0101 TypeCode < / TypeCode >
    < IssueDateTime > 20110810 < / IssueDateTime >
    < PurposeCode > 02 < / PurposeCode >
    < / TaxInvoiceDocument >
    < TaxInvoiceTradeLineItem >
    < SequenceNumeric > 1 < / SequenceNumeric >
    < > 200000000 InvoiceAmount < / InvoiceAmount >
    < TotalTax >
    < CalculatedAmount > 20000000 < / CalculatedAmount >
    < / TotalTax >
    < / TaxInvoiceTradeLineItem >
    < / TaxInvoice >


    -2. success - xml - remove namespace.
    <? XML version = "1.0" encoding = "UTF-8"? >
    < TaxInvoice >
    < ExchangedDocument >
    < IssueDateTime > 20110810133213 < / IssueDateTime >
    < ReferencedDocument >
    < ID > 318701 - 0002 / < ID >
    < / ReferencedDocument >
    < / ExchangedDocument >
    < TaxInvoiceDocument >
    < IssueID > 201106294100 < / IssueID >
    < > 0101 TypeCode < / TypeCode >
    < IssueDateTime > 20110810 < / IssueDateTime >
    < PurposeCode > 02 < / PurposeCode >
    < / TaxInvoiceDocument >
    < TaxInvoiceTradeLineItem >
    < SequenceNumeric > 1 < / SequenceNumeric >
    < > 200000000 InvoiceAmount < / InvoiceAmount >
    < TotalTax >
    < CalculatedAmount > 20000000 < / CalculatedAmount >
    < / TotalTax >
    < / TaxInvoiceTradeLineItem >
    < / TaxInvoice >




    -program-
    procedure insert_table
    (
    l_clob clob,
    OK, Boolean.
    Error out varchar2
    )
    is
    l_parser dbms_xmlparser. Analyzer;
    xmlDoc xmldom.domdocument;

    l_doc dbms_xmldom. DOMDocument;
    l_nl dbms_xmldom. DOMNodeList;
    l_n dbms_xmldom. DOMNode;
    l_root DBMS_XMLDOM.domelement;
    l_node DBMS_XMLDOM.domnode;
    l_node2 DBMS_XMLDOM.domnode;
    l_text DBMS_XMLDOM. DOMTEXT;

    buf VARCHAR2 (30000);

    XMLParseError exception;

    TYPE tab_type is Table of xml_upload % ROWTYPE;
    t_tab tab_type: = tab_type();
    pragma exception_init (xmlparseerror,-20100);
    l_node_name varchar2 (300);

    Start
    l_parser: = dbms_xmlparser.newParser;
    l_doc: = DBMS_XMLDOM.newdomdocument;
    dbms_xmlparser.parseClob (l_parser, l_clob);
    l_doc: = dbms_xmlparser.getDocument (l_parser);
    l_n: = dbms_xmldom.makeNode (l_doc);

    l_nl: = dbms_xslprocessor.selectNodes (l_n, ' / TaxInvoice/TaxInvoiceDocument ');

    FOR cur_tax in 0.dbms_xmldom.getLength (l_nl) - 1 LOOP
    l_n: = dbms_xmldom.item (l_nl, cur_tax);

    t_tab.extend;

    t_tab (t_tab.last) .ed_id: = '5000000';

    dbms_xslprocessor.valueOf (l_n, ' IssueID / text () ', t_tab (t_tab.last) .tid_issue_id);
    dbms_xslprocessor.valueOf (l_n, ' TypeCode / text () ', t_tab (t_tab.last) .tid_type_code);

    END LOOP;

    FORALL i IN t_tab.first... t_tab. Last
    INSERT INTO xml_upload VALUES t_tab (i);

    COMMIT;

    dbms_xmldom.freeDocument (l_doc);
    correct: = true;

    exception
    When xmlparseerror then
    -xmlparser.freeparser (l_parser);
    correct: = false;
    error: = sqlerrm;

    end insert_table;
    l_nl := dbms_xslprocessor.selectNodes(l_n, '/TaxInvoice/TaxInvoiceDocument');
    

    try to change as follows

    l_nl := dbms_xslprocessor.selectnodes(l_n,'/TaxInvoice/TaxInvoiceDocument','xmlns="urn:kr:or:kec:standard:Tax:ReusableAggregateBusinessInformation:1:0"');
    

    Published by: Alexandr on August 17, 2011 12:36 AM

  • Link to the plot area slider

    Hello

    I'm having a problem with the cursor in a plot of intensity. I use two slider in the plot of the intensity and using these cursor position in my program. The input file is a 2D array and size of the file (table) differ from one experiment to another. Sometimes, when I load my file the cursor moves to a value of previous file and is so not visible in the plot (because the previous file can have larger size). Is there a way related to cursor to tell certain position (as in the center of the plot or half the value of size X and y axis). So in summary, I want that when I load my 2D cursor file in the plot of the intensity must be at a certain position depending on the size of the axes X and Y - but he should be able to freely slide so I can move and use the cursor position using node property to calculate other values.

    BTW, I'm using Labview 8.2

    Thank you

    Yogesh

    Just write the position of the cursor to move the cursor to the desired coordinates. For example if your new 2D matrix is 50 x 50, move to 25.25.

    Later, you can intereactively move elsewhere as before.

    You must also disable scrolling cursor (Right-Click Advanced...... Graphics Scroll cursors). This way you will not be able to move the curor outside the limits of the current area of the field.

  • How to transfer the text value of the element with the character of new line between pages?

    Hello

    I use the Application Express 4.2.2.00.11 on the 11g XE database. In my application, I use the transfer of certain values deposited between pages on a lot of places in my application. But now I have a specific problem with a textarea element.

    I have the page with the textarea element and I transfer element value to another page using the link button. I use "Set these elements" "with these values" mechanism.

    Everything works fine until I try to add the new line character in the area of the text box to be transferred to another page. I get this error message when I try

    Contact your administrator for the application. The checksum calculated on the basis of the application, clear the cache, names of arguments and argument values (711P711_TEXTabc CRC [A55D4D4B325E23CB83EF28FB7671E8F0]) does not match the checksum passed to the procedure of show (23CC724ADDA630B6F3BDFD2FEE1498E0). Note: users receive a different error message.

    Transfer of value to another implementation of page when I 'abc cde' in the text box.

    Transfer of value to another page do not work when I 'abc [line break] cde' in the text box.

    Value of transfer with the new line character point works when I change "Arguments must have checksum" "Unrestricted" on the landing page. But I want to use the shared services provider and do not want to disable checksum calculation.

    It seems that there is a bug in the function of calculation of sum of internal control...

    You have some tips?

    Cardel wrote:

    I use the Application Express 4.2.2.00.11 on the 11g XE database. In my application, I use the transfer of certain values deposited between pages on a lot of places in my application. But now I have a specific problem with a textarea element.

    I have the page with the textarea element and I transfer element value to another page using the link button. I use "Set these elements" "with these values" mechanism.

    Everything works fine until I try to add the new line character in the area of the text box to be transferred to another page. I get this error message when I try

    Contact your administrator for the application. The checksum calculated on the basis of the application, clear the cache, names of arguments and argument values (711P711_TEXTabc CRC [A55D4D4B325E23CB83EF28FB7671E8F0]) does not match the checksum passed to the procedure of show (23CC724ADDA630B6F3BDFD2FEE1498E0). Note: users receive a different error message.

    Transfer of value to another implementation of page when I 'abc cde' in the text box.

    Transfer of value to another page do not work when I 'abc [line break] cde' in the text box.

    Value of transfer with the new line character point works when I change "Arguments must have checksum" "Unrestricted" on the landing page. But I want to use the shared services provider and do not want to disable checksum calculation.

    It seems that there is a bug in the function of calculation of sum of internal control...

    You have some tips?

    This is one of the many reasons why it is inappropriate pass strings of characters between the pages through the URL. Instead of using a redirect button, change the button to send the page, then use the conditional calculations to set the values on the landing page and finally access the page using a conditional on submit: before Validation: (after calculation and before Validation and treatment) branch. When you press button terms of use on the calculations and the direction.

  • Free disc of Premiere Elements with the new camera. Installed on the pc and have shortcuts for items and items first. The serial No. work with Premiere Elements, but not Photoshop Elements. Why is this?

    Hi, I'm new to this bear so please with me. I have a free disc of Premiere Elements with a new canon camera and install it on my pc windows 8.1. After installation I have a shortcut for first elements and a shortcut for the elements, I guess that first for the video and photo elements. The drive came with a serial No. who worked with first, but when I opened elements, he asked for a serial No. but when I tried the same series only.  It says this serial No. is not valid for Adobe photoshop elements. I'm something wrong, I am missing a serial number, do I have to pay to use the side elements (photo editor), and if so I don't understand why he loaded the two programs on a disk I thought it was a big split in video and photo program.

    Help, please.

    Photoshop elements and first elements are two different programs (as you know).  they have different serial numbers used to activate them.

    If you were supposed to get both with your camera, you should have two serial numbers: quickly find your serial number

    However, is it possible that you had only to get a serial number of elements first and photoshop elements was provided as a trial (to see if you want to buy a serial number)?

Maybe you are looking for