Yes.
When I run the packaged version:
1. Launch the package
2. Click Connect button (script in question)
3. Read-Host Prompt
4. uploads/31630/param.jpg
5. Powershell Credential Request
6. Script process and shows isConnected = false
VI-Toolkit and Forms 2009
- Alexander Riedel
- Posts: 8479
- Last visit: Thu Mar 28, 2024 9:29 am
- Been upvoted: 37 times
VI-Toolkit and Forms 2009
Let's find out if that is the problem.
Can you create the credentials without prompting and pass them? Just to see if that is the culprit?
Can you create the credentials without prompting and pass them? Just to see if that is the culprit?
Alexander Riedel
SAPIEN Technologies, Inc.
SAPIEN Technologies, Inc.
VI-Toolkit and Forms 2009
I passed credentials, and I'm seeing where a connection is made. I get notices about the Security Certificate, but that is normal.
- Alexander Riedel
- Posts: 8479
- Last visit: Thu Mar 28, 2024 9:29 am
- Been upvoted: 37 times
VI-Toolkit and Forms 2009
So that works then I take it?
It appears PowerShell calls the wrong Host override (Prompt instead of PromptCredentials) in that case. We will see if we can fix this form our end.
Alex
It appears PowerShell calls the wrong Host override (Prompt instead of PromptCredentials) in that case. We will see if we can fix this form our end.
Alex
Alexander Riedel
SAPIEN Technologies, Inc.
SAPIEN Technologies, Inc.
VI-Toolkit and Forms 2009
No, does not work with credentials either.
It is still returning a false to my script, so my script thinks it is not connected. It doesn't make sense that I can take the exact same lines of code, and put them in an exported CE form and run via command line or in PowerGUI debugger and the script executes as expected.
It is still returning a false to my script, so my script thinks it is not connected. It doesn't make sense that I can take the exact same lines of code, and put them in an exported CE form and run via command line or in PowerGUI debugger and the script executes as expected.
- Alexander Riedel
- Posts: 8479
- Last visit: Thu Mar 28, 2024 9:29 am
- Been upvoted: 37 times
VI-Toolkit and Forms 2009
Hmm, ok. Is there any way to get an error message as to why it is not connecting?
If you export the script from PrimalForms 2009 rather than the CE version, does that run?
If you export the script from PrimalForms 2009 rather than the CE version, does that run?
Alexander Riedel
SAPIEN Technologies, Inc.
SAPIEN Technologies, Inc.
VI-Toolkit and Forms 2009
This isn't making sense to me now. Now that I've installed 2009 I cannot seem to get the scripts to work at all now. This stuff was working before I installed 2009.
- Alexander Riedel
- Posts: 8479
- Last visit: Thu Mar 28, 2024 9:29 am
- Been upvoted: 37 times
VI-Toolkit and Forms 2009
PrimalForms 2009 doesn't change your PowerShell installation. Did you update anything else?
What exact OS (32/64 bit?) are you running and what PowerShell version?
What exact OS (32/64 bit?) are you running and what PowerShell version?
Alexander Riedel
SAPIEN Technologies, Inc.
SAPIEN Technologies, Inc.
VI-Toolkit and Forms 2009
I'm running Windows 7 Enterprise Edition RTM 32bit. I'm running the stock Powershell that comes with the OS (I belive 2.0). No new updates. My laptop was sitting powered off in my bag all weekend.
- Alexander Riedel
- Posts: 8479
- Last visit: Thu Mar 28, 2024 9:29 am
- Been upvoted: 37 times
VI-Toolkit and Forms 2009
Ok, so let's take a step back and evaluate.
Your script was running previously when you exported it from the CE version.
Now it doesn't work wether exported from the CE version or PrimalForms 2009 and regardless of how you run it, correct?
Actually it seems the script runs but cannot successfully connect to whatever it is you are connecting to? Is that correct?
Your script was running previously when you exported it from the CE version.
Now it doesn't work wether exported from the CE version or PrimalForms 2009 and regardless of how you run it, correct?
Actually it seems the script runs but cannot successfully connect to whatever it is you are connecting to? Is that correct?
Alexander Riedel
SAPIEN Technologies, Inc.
SAPIEN Technologies, Inc.