Dear all,
I tries to add a modal form to my intraweb app and I don't understand what is my mistake.
The structure of my app is :
- a home page to display my records
- a card template to design my records. Each card has a button to call the modal I need
- optional, an additionnal form to manage the modal. I would like to use an external form to avoid having an instance of the modal in each card I have to create.
For my modal, I tried to use a region inside my card or the optionnal additionnal modal form, and in each case the modal is created but it's empty.
![[Image: empty_modal_za86nw.png]](https://res.cloudinary.com/teka/image/upload/v1688566217/empty_modal_za86nw.png)
I tried to set the ContentElement programmatically or using the Object Inspector, same result.
In the Object Inspector, I can select a component from my external form.
![[Image: content_modal_ylnq58.png]](https://res.cloudinary.com/teka/image/upload/v1688566683/content_modal_ylnq58.png)
But I can use the same syntax when I want to assigned it at runtime, I have to create an object first. Is it the correct way to do that ?
This is the expected result :
![[Image: expected_modal_ptgijh.png]](https://res.cloudinary.com/teka/image/upload/v1688565338/expected_modal_ptgijh.png)
I attached a test case, hope somebody can have a look on it and help me to understand how i have to design this.
Regards,
Stéphane
I tries to add a modal form to my intraweb app and I don't understand what is my mistake.
The structure of my app is :
- a home page to display my records
- a card template to design my records. Each card has a button to call the modal I need
- optional, an additionnal form to manage the modal. I would like to use an external form to avoid having an instance of the modal in each card I have to create.
For my modal, I tried to use a region inside my card or the optionnal additionnal modal form, and in each case the modal is created but it's empty.
![[Image: empty_modal_za86nw.png]](https://res.cloudinary.com/teka/image/upload/v1688566217/empty_modal_za86nw.png)
I tried to set the ContentElement programmatically or using the Object Inspector, same result.
In the Object Inspector, I can select a component from my external form.
![[Image: content_modal_ylnq58.png]](https://res.cloudinary.com/teka/image/upload/v1688566683/content_modal_ylnq58.png)
But I can use the same syntax when I want to assigned it at runtime, I have to create an object first. Is it the correct way to do that ?
This is the expected result :
![[Image: expected_modal_ptgijh.png]](https://res.cloudinary.com/teka/image/upload/v1688565338/expected_modal_ptgijh.png)
I attached a test case, hope somebody can have a look on it and help me to understand how i have to design this.
Regards,
Stéphane