How do I access a page parameter from a custom native widget?
0
How do I access a page parameter from a native widget? Maia suggests many different things, none of which have helped. It has suggested using MxContext imported from @mendix/runtime to access the MxObject page parameter. I have not been able to try this as I have not been able to import MxContext. I dont know how to get @mendix/runtime in the node_modules directory of the custom native widget, and dont know if MxContext is accessible from @mendix/runtime. Any suggestions?
asked
Nancy Nunes
2 answers
0
Hi Nancy,
Open your Custom widget xml code and write this code
<property key="myObject" type="entity" isPath="false" entityProperty="true"> <caption>My Object</caption> <description>Select an entity object to use in the widget</description>