Hi,
I'm still trying to wrap my head around groupware and its files. My goal is to predefine the basic groupware security for my client and distribute those files with the exe. Additionally, on my development computer I would like to use the same data files for both testing via Go and running the exe.
I'm using WD21 and all my files are HFSQL Classic. I've setup groupware as:
- Automatic User Groupware
- Runtime: manual start
- Files: Directory of Data
This code is in the project's Initializing area:
gsDataDir is string = fCurrentDrive() + "\ProgramData\Blasting"
IF fMakeDir(gsDataDir) = False THEN
Error(ErrorInfo())
EndProgram()
END
HSubstDir(".",gsDataDir)
LPWRes is int = 0
LPWRes = gpwOpen(gsDataDir)
SWITCH LPWRes
CASE gpwOk:
// CASE gpwCancel: Info("The Cancel button was clicked.")
CASE gpwError: Error("Error while initializing the groupware." + ErrorInfo())
CASE gpwUnknownUser: Error("Unknown user.")
CASE gpwInvalidPassword: Error("Invalid password")
OTHER CASE: Info("other " + LPWRes)
END
IF LPWRes <> gpwOk THEN EndProgram
My problem is if I delete all the data files and test my project (via Go), I get prompted to enter the supervisor user, set a password and everything works. If I close the app and run the exe, I don't get prompted to enter a user name. I only get this message.
The description of the logical file <GPU_Configuration> stored in the analysis is not compatible with the one stored in the physical file <C:\ProgramData\Blasting\GPU_Configuration>. Unable to access the file.
The <IDUtilisateurOuGroupeEstUnGroupeIDCible> item of <GPU_Configuration> file is unique key in the file but it is not found in the analysis.
The descriptions are not compatible, duplicate errors may occur during the additions.
If I delete the files and run the exe first, I do get the login screen but it does not create the supervisor user. I only get "User does not exist." Then, if I try to run in test mode, I get the same error as above.
FYI - originally I did not have the GPU files in my analysis. After importing those files, the above issues still remain. I did not import the GPU windows, code, etc.
Any help would be greatly appreciated.
Thanks, Bill
I'm still trying to wrap my head around groupware and its files. My goal is to predefine the basic groupware security for my client and distribute those files with the exe. Additionally, on my development computer I would like to use the same data files for both testing via Go and running the exe.
I'm using WD21 and all my files are HFSQL Classic. I've setup groupware as:
- Automatic User Groupware
- Runtime: manual start
- Files: Directory of Data
This code is in the project's Initializing area:
gsDataDir is string = fCurrentDrive() + "\ProgramData\Blasting"
IF fMakeDir(gsDataDir) = False THEN
Error(ErrorInfo())
EndProgram()
END
HSubstDir(".",gsDataDir)
LPWRes is int = 0
LPWRes = gpwOpen(gsDataDir)
SWITCH LPWRes
CASE gpwOk:
// CASE gpwCancel: Info("The Cancel button was clicked.")
CASE gpwError: Error("Error while initializing the groupware." + ErrorInfo())
CASE gpwUnknownUser: Error("Unknown user.")
CASE gpwInvalidPassword: Error("Invalid password")
OTHER CASE: Info("other " + LPWRes)
END
IF LPWRes <> gpwOk THEN EndProgram
My problem is if I delete all the data files and test my project (via Go), I get prompted to enter the supervisor user, set a password and everything works. If I close the app and run the exe, I don't get prompted to enter a user name. I only get this message.
The description of the logical file <GPU_Configuration> stored in the analysis is not compatible with the one stored in the physical file <C:\ProgramData\Blasting\GPU_Configuration>. Unable to access the file.
The <IDUtilisateurOuGroupeEstUnGroupeIDCible> item of <GPU_Configuration> file is unique key in the file but it is not found in the analysis.
The descriptions are not compatible, duplicate errors may occur during the additions.
If I delete the files and run the exe first, I do get the login screen but it does not create the supervisor user. I only get "User does not exist." Then, if I try to run in test mode, I get the same error as above.
FYI - originally I did not have the GPU files in my analysis. After importing those files, the above issues still remain. I did not import the GPU windows, code, etc.
Any help would be greatly appreciated.
Thanks, Bill