Hello,
in the controller extension the following code is not working:
Request clarification before answering.
better use async await, try this to see the return of loadFragment:
openDialog: async function (text, formVisible, fnAction) {
const extensionApi = this.base.getExtensionAPI();
const fragment = await extensionApi.loadFragment({
name: "com.zsd.paymterms.zsdpaymterms.ext.fragment.DialogUploadFile",
controller: this
});
console.log(fragment)
}
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Marian,
it worked, thanks so much.
Now I have another problem.
I need to call an unbound action from the list page, to upload a File.
I defined it in the behavior definition:
static action uploadFile parameter ZB_SD_UPLOAD_FILE
then I exposed It in the behavior projection:
use action uploadFile
the javascript code in the controller:
I got the error: Unknown action import
In debug I found the problem is here:
the ActionImport array is empty ( because no action imports tag is present in the metadata file ).
Any suggestions ?
@Mepspajust open another question for that as this is another problem, thanks!
Also did my suggested code worked exactly? Can you post that?
| User | Count |
|---|---|
| 5 | |
| 4 | |
| 4 | |
| 3 | |
| 2 | |
| 2 | |
| 2 | |
| 2 | |
| 2 | |
| 2 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.