HubReplaceAppFromPathAsyncT Method (String, String, IEnumerableString, FuncResponse, T, AsyncHandle) |
Replaces an app with the objects from a source app.
The list of objects in the app to be replaced must be defined in qIds.
The data model of the app cannot be updated. This method applies only if running in server mode.
Namespace: Qlik.EngineAssembly: Qlik.Engine (in Qlik.Engine.dll) Version: 1.1.0.0 (1.1.0.0)
Syntax public Task<T> ReplaceAppFromPathAsync<T>(
string targetAppId,
string srcPath,
IEnumerable<string> ids,
Func<Response, T> onResult,
AsyncHandle asyncHandle = null
)
Public Function ReplaceAppFromPathAsync(Of T) (
targetAppId As String,
srcPath As String,
ids As IEnumerable(Of String),
onResult As Func(Of Response, T),
Optional asyncHandle As AsyncHandle = Nothing
) As Task(Of T)
Parameters
- targetAppId
- Type: SystemString
Identifier (GUID) of the target app.
The target app is the app to be replaced.
This parameter is mandatory. - srcPath
- Type: SystemString
Path and name of the source app.
The objects in the source app will replace the objects in the target app.
This parameter is mandatory. - ids
- Type: System.Collections.GenericIEnumerableString
QRS identifiers (GUID) of the objects in the target app to be replaced.
If an object is private, it should not be included in this list.
If the array of identifiers contains objects that are not present in the source app, the objects related to these identifiers are removed from the target app. - onResult
- Type: SystemFuncResponse, T
Continuation function - asyncHandle (Optional)
- Type: Qlik.EngineAsyncHandle
Handle to asyncronous method request
Type Parameters
- T
Return Value
Type:
TaskTImplements
IHubReplaceAppFromPathAsyncT(String, String, IEnumerableString, FuncResponse, T, AsyncHandle)See Also