Our use case was to dynamically show any page in the application with a corresponding context object so that users could share a page they were working on with e.g. a support engineer. We combined this with a custom widget which fetched this data, send an email link to the support engineer and a deeplink to open the form.
I created a Java action (ShowForm) for Mendix 6.6.0 with the following inputs: String formName, String objectType, String objectGUID. The objectType is used for easier verification of the objectGUID: as this was called from a deeplink, it required a bit of validation before opening the form. I retrieved the object with objectGUID using XPath. The form names are a bit tricky: I don't recall if you need the fully qualified name (ModuleName.FormName.page.xml) or just a part of it.
The method you need is FeedbackHelper.addOpenFormFeedback(), documented here.
I either called
This method then opens the form with the object with objectGUID as context object.
Dear Rom,
I have used (FeedbackHelper.addOpenFormFeedback(getContext(), formName, FormTarget.CONTENT, object.getId(), null);) code to open page with context, when i applied it into the java action, parameter (object.getId()) not recognized into the code, could you please elaborate more about this.
could you please share the JAVA code you used into Mendix java action ?