Search found 55 matches

by weiyen.tan@gmail.com
Sun Oct 04, 2015 12:36 am
Forum: PowerShell GUIs
Topic: Passing values from variables from one form to another....
Replies: 2
Views: 2130

Passing values from variables from one form to another....

Hi, I am trying to build a Job Progress bar to pass along a function in one form into the Job tracker control set as a job so the app will remain responsive. In order for me to do this I have to pass along the values from input boxes from the main form into the job progress bar form as the function ...
by weiyen.tan@gmail.com
Fri Oct 02, 2015 9:18 pm
Forum: PowerShell GUIs
Topic: Calling a form with a job progress control?
Replies: 37
Views: 6733

Calling a form with a job progress control?

Hi, I have been working a project now for a couple of months. I have realised that I need to create a Progress bar to show the progress of the task being carried out. I have read through the article: Powershell:Creating Responsive Forms: https://www.sapien.com/blog/2012/05/16/powershell-studio-creat...
by weiyen.tan@gmail.com
Mon Sep 21, 2015 9:27 pm
Forum: PowerShell GUIs
Topic: Run script closes app window after function ends
Replies: 3
Views: 916

Re: Run script closes app window after function ends

Scratch that. Found out on my own.

For posterity:


https://www.sapien.com/blog/2015/06/29/why-does-this-button-close-my-form/
by weiyen.tan@gmail.com
Mon Sep 21, 2015 9:14 pm
Forum: PowerShell GUIs
Topic: Run script closes app window after function ends
Replies: 3
Views: 916

Re: Run script closes app window after function ends

Thanks for the reply. What kind of information would you like? I have the script that i am using attached. So this is what i am doing. I right click on my script in the project. The preview GUI opens. I fill out the text inputs that I have defined. I click on OK (that performs the task, the function...
by weiyen.tan@gmail.com
Mon Sep 21, 2015 6:40 pm
Forum: PowerShell GUIs
Topic: Run script closes app window after function ends
Replies: 3
Views: 916

Run script closes app window after function ends

Thanks to Jrievera for putting me on the right path with Powershell. I am slowly building my knowledge of how powershell works and adding that to my project. I have hit a minor snag. I have created a function that disables users in a list and creates a log. Its in a GUI. When I preview the form (I r...
by weiyen.tan@gmail.com
Tue Aug 04, 2015 6:34 pm
Forum: Windows PowerShell
Topic: Getting a function to execute in script
Replies: 9
Views: 2648

Re: Getting a function to execute in script

Hi Jvierra, I just wanted to say thanks for your help and guidance. I got my questions answered and my forms is working the way I want to as it is. There is some extra functionality I want to add but I will follow your advice and look for extra education. I have already bought the sapien books and g...
by weiyen.tan@gmail.com
Thu Jul 30, 2015 5:00 pm
Forum: Windows PowerShell
Topic: Getting a function to execute in script
Replies: 9
Views: 2648

Re: Getting a function to execute in script

Ok....so is this correct if the textbox name is OUdetails $OUdetails.Text=.\Choose-ADOrganizationalUnit.ps1 I have this included in the $MainForm_Activated={} event and this produced a behaviour that i did not want. That was to say the popup the function created kept on popping up. I had to kill pow...
by weiyen.tan@gmail.com
Thu Jul 30, 2015 3:54 pm
Forum: Windows PowerShell
Topic: Getting a function to execute in script
Replies: 9
Views: 2648

Re: Getting a function to execute in script

Hi there Jvierra, Thanks for your reply and your insight. I have tried adding what you suggested into the script previously and got this error in the output: ERROR: .Choose-ADOrganizationalUnit.ps1 : The term '.Choose-ADOrganizationalUnit.ps1' is not recognized as the name of a cmdlet, function, scr...
by weiyen.tan@gmail.com
Thu Jul 30, 2015 9:46 am
Forum: Windows PowerShell
Topic: Getting a function to execute in script
Replies: 9
Views: 2648

Re: Getting a function to execute in script

Thank you Jvierra for the reply. I actually wrote a powershell script for this beforehand. So I had a text based thing of this working. In pure script form this is how it looks. The reason why I declared the variable in that manner is that I want tto use the contents of the function I have in the pr...
by weiyen.tan@gmail.com
Thu Jul 30, 2015 1:37 am
Forum: Windows PowerShell
Topic: Getting a function to execute in script
Replies: 9
Views: 2648

Getting a function to execute in script

Hi, I have a form that has a function inline with it. Basically I want to move a whole lot of people listed in a CSV to another OU. Anyway everything works perfectly, the variables get passed along in the two fields (many thanks to Jvierra for pointing the right path out to me) the preview of the CS...