IHubCopyAppAsyncT Method (AsyncHandle, FuncResponse, T, String, String, IEnumerableString) |
Copies an app that is in the Qlik Sense repository.
The engine copies the app into an app entity that was previously created by the repository. See the QRS API (REST API) help for more information.
This method applies only if running in server mode.
Namespace: Qlik.EngineAssembly: Qlik.Engine (in Qlik.Engine.dll) Version: 2.1.0.0+Build:7.origin/release/ms13
Syntax Task<T> CopyAppAsync<T>(
AsyncHandle asyncHandle,
Func<Response, T> onResult,
string targetAppId,
string srcAppId,
IEnumerable<string> ids
)
Function CopyAppAsync(Of T) (
asyncHandle As AsyncHandle,
onResult As Func(Of Response, T),
targetAppId As String,
srcAppId As String,
ids As IEnumerable(Of String)
) As Task(Of T)
Parameters
- asyncHandle
- Type: Qlik.EngineAsyncHandle
Handle to asynchronous method request - onResult
- Type: SystemFuncResponse, T
Continuation function - targetAppId
- Type: SystemString
Identifier (GUID) of the app entity in the Qlik Sense repository.
The app entity must have been previously created by the repository (via the REST API).
This parameter is mandatory. - srcAppId
- Type: SystemString
Identifier (GUID) of the source app in the Qlik Sense repository.
This parameter is mandatory. - ids
- Type: System.Collections.GenericIEnumerableString
Array of QRS identifiers.
The list of all the objects in the app to be copied must be given. This list must contain the GUIDs of all these objects.
If the list of the QRS identifiers is empty, the method CopyApp copies only the database and the objects necessary to open the app. The objects that were created inside the app are not copied.
To get the QRS identifiers of the objects in an app, you can use the QRS API. The GET method (from the QRS API) returns the identifiers of the objects in the app.
The following example returns the QRS identifiers of all the objects in a specified app:
GET /qrs/app/9c3f8634-6191-4a34-a114-a39102058d13
Where
9c3f8634-6191-4a34-a114-a39102058d13 is the identifier of the app.
Type Parameters
- T
Return Value
Type:
TaskTSee Also