Particular object data i want to show in my dashboard
There are 10 objects in the database, but I want particular object details and how to fetch from the database. Example – In the bank there are lots of accounts when we give account no of a particular its show that account, How to do in Mendix dynamically ? can anyone give any suggestions? I am using Mendix 9.3.0
Shaikh Sujat ali
You will need to be more specific. As such, what you are asking is easily achievable by generating the overview pages of your entity by right clicking on the entity in the domain model. You mentioned you have a dashboard so, may be if you share more, we can understand your problem better.
Depends on the scenario.
At first some basics;
If you want to display a single object use a Dataview
A Dataview requires an object at ALL times (as opposed to a list, which can be empty)
Datasource of a dataview
Context; the item opening the page MUST pass an object. i.e. a selection of a list or microflow which opens the page.
Microflow/nanoflow, will run when page is opend, logic in the microflow will determine the object
Listen to; show the selected object of a list in the SAME page
Your requirement; Not sure what your source of the single object is. I do have 2 ideas
Show a single object after selection in a list
=> Datasource = Context connect page to onclick action of list or button inside context of the list object.
Showing one particular object according to a specific definition; i.e. show your own account details
=> Datasouce = Microflow, which retrieves the required object from the database and returns it on the microflow end point as object (tick FIRST as range!!)