I have created a form with serveral buttons, actions and dynamic menus. I would like to be able to write to a log file in the background so I know what options were presented to the end user and what they clicked etc.. for troubleshooting purposes.
I created a "MYLog" function (I use the same function with standard powershell scripts) but I can't get it to write anything to a log file. I thought that if I created a Function then I would be able to call it anywhere in the script. Can you give me some advice on how to write to a log file in PrimalForms?
Add Logging?
Add Logging?
For scripting questions I recommend posting in our scripting support forums: http://www.scriptinganswers.com The forum is monitored by several PowerShell experts who are better suited to answer your question. I recommend including your function definition when you post your question. David
David
SAPIEN Technologies, Inc.
SAPIEN Technologies, Inc.
- shardison5@gmail.com
- Posts: 7
- Last visit: Wed Nov 16, 2022 6:51 pm
Add Logging?
Maybe I should rephrase the question?? Can you write to a file from a .pff file or PrimalForms. I have a form and if someone clicks a certain button on the form I would like to write to a local file that they clicked that button.
Add Logging?
Yes, you should still be able to write to files (ie. use Get-Content and Set-Content cmdlets) in the forms. You might want to check permissions if the script can't write to a file but you should get an error message depending on the method used. David
David
SAPIEN Technologies, Inc.
SAPIEN Technologies, Inc.