List View to Data Grid 2

0
Hello, is there a way where I can transfer the details on my List View to Data Grid 2 which can then be exported into an Excel file. Otherwise, is there other workaround?
asked
3 answers
2

Hi Nur,

     List view and datagrid 2 are both data widgets, If you need the data in datagrid 2 instead of listview just add the datagrid 2 in place of list view and choose datasource as same as list view.

answered
0

Hi,

 1.Excel Exporter, download it into your project.

2.Create a new Excel template:

  • Define the Excel structure: Configure the rows and columns to match your List View data.
  • Map data attributes: Map the Mendix attributes (from the List View’s data source) to the corresponding Excel columns.

3.Create a Microflow

    • Retrieve the List View data.
    • Call the GenerateExcelDocument Java action:
      • Input Parameters: Template and data list.
    • Use the FileDocument entity to store the generated file.
    • Use the Download File action to let the user download the file.
  • Add a Button to Trigger the Microflow:

    • In the page containing your List View, add a button labeled "Export to Excel".
    • Link the button to the microflow you created.

 

 

answered
0

Hi,

A template grid is also an option, you could try to use template grid instead of listview. 

On a template grid you can place a button just like on a datagrid and pass the list of objects to your microflow.

answered