Hi all,
I've posted a new video on getting started with the User Security Manager for Web Connection, which is a basic, plug-in user management solution for Web Connection 7.x applications.
Getting Started with the West Wind User Security Manager
Best watched in full screen at HD resolution (1920x1080) using full screen or theater mode on YouTube
The video goes over features and walks through adding the User Security Manager to a new Web Connection project.
Check it out if you're interested in quickly adding user management to an existing application.
+++ Rick ---
Excellent video.. I noticed in the video you clicked the Edit button on the Server Form and it launched Visual Studios .. How do I get mine to launch it.. It does nothing when i click it..
Jim
By default Web Connection uses Visual Studio Code for the path so if you don't have that installed it won't pop up the editor.
This can be customized in the yourApp.ini
file though. To use Visual Studio for example you could use:
[Main]
CodeEditorCommandLine="C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise\Common7\IDE\devenv.exe" "\WebConnectionProjects\wwThreads\wwThreads.sln"
Unfotunately I'm just realizing that this doesn't work currently due to the FoxPro Run command choking on the long paths with spaces in it.
I've fixed this here with a new helper function and some updated code. If you want to fix you can do that with the following small changes:
Add this function to wwUtils.prg
:
************************************************************************
* ExecuteCommandLine
****************************************
*** Function: Executes a raw command line with executable and
*** and command line parameters.
*** Assume: EXE path with spaces should have double quotes around
*** the exe. Any parametres with spaces also should be quoted
*** Ideally parameters should be quoted.
*** Runs through ShellExecute()
*** Pass: lcFullCommandLine - EXE and Parameters
*** lcFolder - Folder to run out or current
*** Return:
************************************************************************
FUNCTION ExecuteCommandLine(lcCommandLine, lcFolder)
LOCAL lcExe, lcParms, lnAt
IF EMPTY(lcFolder)
lcFolder = SYS(5) + CURDIR()
ENDIF
lcExe = lcCommandLine
lcParms = ""
lnAt = AT(["],lcCommandLine)
IF (lnAt > 0)
lnAt = AT([" ],lcCommandLine)
IF lnAt > 0
lcExe = SUBSTR(lcCommandLine,1,lnAt-1)
lcParms = ALLTRIM(SUBSTR(lcCommandLine,lnAt+1))
ELSE
lcExe = STRTRAN(lcCommandLine,["],"")
ENDIF
ELSE
lcExe = STRTRAN(lcCommandLine,["],"")
lnAt = AT(" ",lcCommandLine)
IF(lnAt > 1)
lcExe = SUBSTR(lcCommandLine,1,lnAt-1)
lcParms = ALLTRIM(SUBSTR(lcCommandLine,lnAt))
ENDIF
ENDIF
lcExe = STRTRAN(lcExe,["],"")
Gourl(lcExe,"OPEN",lcFolder,lcParms)
ENDFUNC
* ExecuteCommandLine
Then edit the class library for wwServerForm::btnEditor.Click()
handler and replace the RUN
command with this:
IF !EMPTY(lcExecute)
ExecuteCommandLine(lcExecute)
ENDIF
+++ Rick ---
Thanks.. I'll give it a try.. I see that you released an updated usersecurity.zip.. going to download it..
Good stuff, Rick. I'm just about to try to get back into this in my new app so this is very timely. 😃
Very good and timely as someone said.
Related, if you show how to send a message to a person's phone that would be terrific. That will probably require acquiring a separate service but in many cases it's worth it.
Alex