PC SOFT

ONLINE HELP
FOR WINDEV, WEBDEV AND WINDEV MOBILE

Home | Sign in | English US

  • When is the modification of rights performed?
WINDEV
WindowsLinuxUniversal Windows 10 AppJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadApple WatchUniversal Windows 10 AppWindows Mobile
Others
Stored procedures
HModifyDatabaseRights (Function)
In French: HModifieDroitBaseDeDonnées
HFSQL Client/ServerAvailable only with this kind of connection
Modifies the rights granted to a user or to a group for a HFSQL Client/Server database.
Note: to find out the rights granted to a group or to a user on a HFSQL Client/Server database, use HInfoDatabaseRights.
Versions 17 and later
iPhone/iPad This function is now available for the iPhone/iPad applications.
New in version 17
iPhone/iPad This function is now available for the iPhone/iPad applications.
iPhone/iPad This function is now available for the iPhone/iPad applications.
Versions 18 and later
Universal Windows 10 App This function is now available in Windows Store apps mode.
New in version 18
Universal Windows 10 App This function is now available in Windows Store apps mode.
Universal Windows 10 App This function is now available in Windows Store apps mode.
Note: From version 19, HFSQL is the new name of HyperFileSQL.
Versions 21 and later
Universal Windows 10 App This function is now available in Universal Windows 10 App mode.
New in version 21
Universal Windows 10 App This function is now available in Universal Windows 10 App mode.
Universal Windows 10 App This function is now available in Universal Windows 10 App mode.
Versions 22 and later
Android Widget This function is now available in Android Widget mode.
Android This function is now available for the Android applications.
WINDEVJava This function is now available for the Java applications.
New in version 22
Android Widget This function is now available in Android Widget mode.
Android This function is now available for the Android applications.
WINDEVJava This function is now available for the Java applications.
Android Widget This function is now available in Android Widget mode.
Android This function is now available for the Android applications.
WINDEVJava This function is now available for the Java applications.
Example
// Copy the rights from a user to another one
sRights is string
sRights = HInfoDatabaseRights(MyConnection, "Moore", hRightsRead + hRightsInsert, "MyDatabase")
HModifyDatabaseRights(MyConnection, "Moore", hRightsRead + hRightsInsert, sRights, "MyDatabase")
Syntax
<Result> = HModifyDatabaseRights(<Connection Name> , <Name of User/Group> , <Rights to Modify> , <New Values> , <Database>)
<Result>: Boolean
  • True if the rights have been modified,
  • False otherwise. HErrorInfo is used to identify the error.
No modification is performed if the new value is already assigned to the specified rights.
Note: An error ("Unknown user" or "Unknown group") will be returned by HErrorInfo if the current user has no rights to see the users (hRightsSeeUser constant) and if he wants to get information about another user or another group.
<Connection Name>: Character string (with or without quotes)
Name of the connection for which the rights granted to a user or to a group of users must be modified. This connection was defined in the data model editor, or by HDescribeConnection or HOpenConnection.
<Name of User/Group>: Character string (with or without quotes)
Name of the user or group whose rights must be modified.
<Rights to Modify>: Integer constant (or combination of constants)
List of rights to modify:
hRightsInsertRights to add new records into a data file.
hRightsLockRights to lock the data files or the records of a data file.
hRightsChangeRightsRights to change the rights.
hRightsChangeLinkRights to modify the integrity rules on a data file.
hRightsChangeOwnerRights to modify the owner of an element.
hRightsConnectionRights to connect to a server (encrypted or unencrypted connection).
hRightsEncryptedConnectionRights to connect to a server (encrypted connection only).
hRightsCreateFileRights to create a data file (with HCreation).
Versions 20 and later
hRightsCreateView
New in version 20
hRightsCreateView
hRightsCreateView
Rights to create a SQL view or a materialized view.
hRightsDebugRights to debug the stored procedures.
hRightsRunProcedureRights to run a stored procedure.
hRightsManageDuplicateRights to enable and disable the management of duplicates.
hRightsManageIntegrityRights to enable and disable the management of integrity.
hRightsManageProcedureRights to add, modify and delete the sets of procedures.
hRightsManageTriggerRights to add, modify and delete the server triggers.
hRightsNoDatabaseAccessRights to forbid (or not) the access to a database (HNoDatabaseAccess and HEndNoDatabaseAccess.
hRightsReadRights to read the records of a data file.
hRightsMaintenanceRights to start a re-index operation or to perform statistical calculations on a data file.
hRightsAutoModifRights to perform the automatic modification of data files on a data file.
hRightsUpdateRights to modify the records of a data file.
hRightsBackupRights to perform a backup.
hRightsDeleteRights to delete the records from a data file.
hRightsDeleteDBRights to delete a database.
hRightsDeleteFileRights to delete a data file (HDeleteFile).
Versions 20 and later
hRightsDeleteView
New in version 20
hRightsDeleteView
hRightsDeleteView
Rights to delete a view.
<New Values>: Integer constants
Lists the new values for the modified rights. New values must be assigned to all the rights specified in <Rights to Modify> (in the same order).
If a single value is indicated in this parameter, it will be assigned to all the rights specified in <Rights to Modify>.
The possible values are as follows:
hAllowedThe relevant rights are granted to the user or to the group.
hForbiddenThe relevant rights are not granted to the user or to the group.
hInheritThe user will inherit from the value of the rights granted to the user group to which he belongs.
<Database>: Character string (with or without quotes)
Name of the database for which the rights must be modified.
Remarks

When is the modification of rights performed?

The modification of rights is effective as soon as HModifyDatabaseRights is run for the users who are connected and affected by the modification. There is no need to restart the server to take the new rights into account.
Managing the duplicates and the integrity: The error does not occur when the management mode is modified but when an attempt is made not to comply with the integrity constraint (or with the duplicate constraint).
Components
WINDEVWEBDEV - Server code wd230hf.dll
Windows Mobile wp230hf.dll
Java wd230java.jar
Linux wd230hf.so
Android wd230android.jar
Minimum required version
  • Version 9
This page is also available for…
Comments
Click [Add] to post a comment