Hi,
I want to use a embedded canvas app in model driven app, and created the canvas app according to the MS DOC , But the canvas app always shows "getting your data".
I googled a lot of solutions that says I should add a timer to get the recorder displayed in the model-driven app's Main Form, but the formula they used
First(ModelDrivenFormIntegration.Data).fieldname
does not work in my environment. It says can not recognize the identifier fieldname that in my datasource.
The formula
ModelDrivenFormIntegration.Item.fieldname
does not show error, but display nothing.
The canvas app's form is created automatically when I click the customize button in the Field Properties dialog of classic form editor, and the formula of ModelDrivenFormIntegration.datasource is automatically set to [@entityname]. Anything seams likely alright but it does not work...
I am going crazy, why I did everything in MS doc but it does not work... 😞
Any answer or web resources are appreciated !!
- sukie
All of your embedded canvas apps work fine ? 😭
Hi @sukie ,
The getting your data message is coming from an EditForm with no item to display.
On your end, if you would like to use an Edit form to display the same record as the selected item in model-driven apps, you will need to set Item of the edit form to:
LookUp(Table, 'GUID field of this table' = GUID(First(ModelDrivenFormIntegration.Data).ItemId))
then in this edit form you will be able to edit fields and select the field you want.
Hope this helps.
Best regards,
Community Support Team _ Jeffer Ni
If this post helps, then please consider Accept it as the solution to help the other members find it.
Community Support Team _ Jeffer Ni
If this post helps, then please consider Accept it as the solution to help the other members find it.
Hi @v-jefferni
Thank you very much for you reply.
I tried the formula you gave me, but it still says the ItemId does not exist.
Do you know how to print all of the fields of the record that the formula First(ModelDrivenFormIntegration.Data) returns?
I think the ModelDrivenFormIntegration is weird because I input [.] follow this variable and it shows nothing.
The edit form is automatically generated when I click customize button and the datasource of ModelDrivenFormIntegration is set to [@Father] which is the table name.
Is that possible because I am using developer environment?
Best Regards
- sukie
User | Count |
---|---|
258 | |
111 | |
95 | |
48 | |
41 |