Show-Result
Shows a Sheer dialog with text results showing the output of the script or another control selected by the user based on either control name or Url to the control.

Syntax

Show-Result -Control <String> [-Parameters <String[]>] [-Title <String>] [-Width <Int32>] [-Height <Int32>]
Show-Result -Url <String> [-Title <String>] [-Width <Int32>] [-Height <Int32>]
Show-Result [-Text] [-Title <String>] [-Width <Int32>] [-Height <Int32>]

Detailed Description

Shows a Sheer dialog with text results showing the output of the script or another control selected by the user based on either control name or Url to the control.
© 2010-2019 Adam Najmanowicz, Michael West. All rights reserved. Sitecore PowerShell Extensions

Parameters

-Control <String>

Name of the Sheer control to execute.
Aliases
Text
Required?
true
Position?
named
Default Value
​
Accept Pipeline Input?
false
Accept Wildcard Characters?
false

-Url <String>

Url to the Sheer control to execute.
Aliases
Text
Required?
true
Position?
named
Default Value
​
Accept Pipeline Input?
false
Accept Wildcard Characters?
false

-Parameters <String[]>

Parameters to be passed to the executed control when executing with the -Control parameter specified.
Aliases
Text
Required?
false
Position?
named
Default Value
​
Accept Pipeline Input?
false
Accept Wildcard Characters?
false

-Text <SwitchParameter>

Shows the default text dialog.
Aliases
Text
Required?
false
Position?
named
Default Value
​
Accept Pipeline Input?
false
Accept Wildcard Characters?
false

-Title <String>

Title of the window containing the control.
Aliases
Text
Required?
false
Position?
named
Default Value
​
Accept Pipeline Input?
false
Accept Wildcard Characters?
false

-Width <Int32>

Width of the window containing the control.
Aliases
Text
Required?
false
Position?
named
Default Value
​
Accept Pipeline Input?
false
Accept Wildcard Characters?
false

-Height <Int32>

Height of the window containing the control.
Aliases
Text
Required?
false
Position?
named
Default Value
​
Accept Pipeline Input?
false
Accept Wildcard Characters?
false

Inputs

The input type is the type of the objects that you can pipe to the cmdlet.
  • Sitecore.Data.Items.Item

Outputs

The output type is the type of the objects that the cmdlet emits.
  • System.String

Notes

Help Author: Adam Najmanowicz, Michael West

Examples

EXAMPLE 1

Show results of script executio
1
PS master:\> Show-Result -Text
Copied!

EXAMPLE 2

Show the Control Panel control in a Window of specified size.
1
PS master:\> Show-Result -Control "ControlPanel" -Width 1024 -Height 640
Copied!

EXAMPLE 3

1
Shows a new instance of ISE
2
Show-Result -Url "/sitecore/shell/Applications/PowerShell/PowerShellIse"
Copied!

EXAMPLE 4

1
​
Copied!

Related Topics