From eb356cc2b9e4fd049b612313232fce883c13220d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micha=C3=ABl=20Van=20Canneyt?= Date: Sat, 18 Jun 2022 11:44:20 +0200 Subject: [PATCH] * ResourceID and AutoApplyUpdates properties --- components/pas2js/components/stubs/stub.restdataset.pas | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/components/pas2js/components/stubs/stub.restdataset.pas b/components/pas2js/components/stubs/stub.restdataset.pas index c9db0349d0..5279d2d129 100644 --- a/components/pas2js/components/stubs/stub.restdataset.pas +++ b/components/pas2js/components/stubs/stub.restdataset.pas @@ -116,8 +116,10 @@ Type FDatabaseConnection: String; FOnGetQueryParams: TGetQueryParamsEvent; FParams: TQueryParams; + FResourceID: String; FResourceName: String; FSQL: TStrings; + FAutoApplyUpdates : Boolean; function CreateQueryParams: TQueryParams; procedure SetConnection(AValue: TSQLDBRestConnection); procedure SetParams(AValue: TQueryParams); @@ -138,6 +140,10 @@ Type Property Params : TQueryParams Read FParams Write SetParams; // Event to adapt parameters when issuing a request Property OnGetQueryParams : TGetQueryParamsEvent Read FOnGetQueryParams Write FOnGetQueryParams; + // If set, it will be appended to the URL in a GET operation. + Property ResourceID : String Read FResourceID Write FResourceID; + // Automatically call ApplyUpdates when a Post/Delete happens. + Property AutoApplyUpdates : Boolean Read FAutoApplyUpdates Write FAutoApplyUpdates; end;