pass form data

Support for all customers who have purchased a SAPIEN PowerShell Studio product license. This forum does not offer a response time guarantee.
Forum rules
DO NOT POST SUBSCRIPTION NUMBERS, LICENSE KEYS OR ANY OTHER LICENSING INFORMATION IN THIS FORUM.
Only the original author and our tech personnel can reply to a topic that is created in this forum. If you find a topic that relates to an issue you are having, please create a new topic and reference the other in your post.

Any code longer than three lines should be added as code using the 'Select Code' dropdown menu or attached as a file.
Filters
Posts: 1
Joined: Mon Nov 05, 2018 7:44 am

pass form data

Post by Filters » Thu Nov 08, 2018 2:48 am

Hi I'm new to powershell and stuck with a little problem with data sending from mainform to childform
No data is showed in child form :( and version is 2018
Main Form

Code: Select all

$MainForm_Load={
$textbox1.Text = 'bla bla bla'}

$buttonCallChildForm_Click={
	if((Show-ChildForm_psf) -eq 'OK'){$textbox1.Text = $ChildForm_textbox1}
}
ChildForm

Code: Select all

$formChildForm_Load={
	#TODO: Initialize Form Controls here
}

User avatar
davidc
Posts: 5475
Joined: Thu Aug 18, 2011 4:56 am

Re: pass form data

Post by davidc » Fri Nov 09, 2018 7:52 am

The following article demonstrates how to pass values to child forms:

https://info.sapien.com/index.php/guis/gui-scripting/powershell-studio-passing-and-returning-values-using-forms

Note: The Call verb has since been replaced with Show and Invoke verbs.

Please let us know if you have any further questions.
David
SAPIEN Technologies, Inc.