on 08-02-2023 11:12 AM
Hi Experts,
We have created an Extension Control that contains a Link. We want to navigate to another SAP MDK Page by calling an SAP MDK Action or Rule but not able to do so. We were trying to get the ClientAPI reference in nativescript ts file but no luck so far. Please suggest?
jitendra.kansal bill.froelich Appreciate if experts like you people can help us sort it out this issue.
Hi Umer
Your extension class should be extending IView or IControl or BaseControl, and they have a function called executeActionOrRule that you can call. It accept path to an action or rule and return a promise that'll be resolved when the action or rule completed (or rejected when they failed).
e.g. (Here I am assuming 'this' object is your extension class which extend IView or IControl or BaseControl):
this.executeActionOrRule("/MyDemoApp/Actions/NavToVerCode.action").then(() => {
// Do something here for success, if needed.
}).catch((err) => {
// Do something for the error, if needed.
});
Regards
Ming
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
85 | |
11 | |
10 | |
8 | |
6 | |
6 | |
6 | |
6 | |
6 | |
5 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.