Button for opening page not working

0
I am following along the tutorial to integrate REST API from here: https://docs.mendix.com/refguide/integration/use-call-rest-action-in-microflow/ The objective is to connect to Wikipedia API by giving the wiki page title and show the received info in a page (in my case this page is called WikiPage) Now I am trying to add a navigation bar item for WikiPage but keep getting errors.   When the on click action of the navigation item is set to 'show a page' I am getting two errors: CE1568: The selected page 'WikiPage' expects an object of type 'RESTconsume.Input', which is not available here. CE1568: The selected page 'WikiPage' expects an object of type 'RESTconsume.Summary', which is not available here.   When the on click action is set to 'create object' I can select only one object out of input and summary. When I select input I get CE1620: The created object must be passed to exactly one parameter of the selected page.   How could this issue be resolved? Thanks.
asked
1 answers
0

I think it could be the following....:

 

You can only pass one object directly from navigation. Your page currently requires two parameters (“Input” and “Summary”), causing errors. To fix this, open the page from a microflow (or nanoflow) that returns both objects. For example:

  1. Change the navigation bar’s on-click action to call a microflow.

  2. In that microflow, create/retrieve both “Input” and “Summary” objects, then return them in one of these ways:

    • Pass “Input” directly as the page parameter and retrieve “Summary” in a nested data view (using a microflow data source).

    • Or structure the page to need only a single object, and then fetch or associate the other object within the page.

This ensures the page gets the required object(s) without the direct navigation call trying to supply two objects at once.

answered