Hi,
I have an API call that returns this data:
public class MMUIData
{
public DateTime? Date { get; set; }
public string ScriptNumber { get; set; }
public int Skns { get; set; }
public string ShowCode { get; set; }
public string ShowName { get; set; }
public List<string> ProductNumbers { get; set; }
}
I currently have a table on my low code app that nicely groups this data by date and shows the information, however I now want to add the list of product numbers to the table if possible. Basically every row (script number), also has a list of product numbers so I was hoping to include that so each row has a drop down arrow where I see all the product numbers nested underneath.
I'm struggling on how to construct the GQI query though so any pointers would be great.
At the moment I return this table:
public GQIColumn[] GetColumns()
{
return new GQIColumn[]
{
new GQIStringColumn("Date"),
new GQIStringColumn("Script Number"),
new GQIIntColumn("SKNs"),
new GQIStringColumn("Code"),
new GQIStringColumn("Title"),
};
}
But I'm unsure how to include the product numbers list.
Thanks, Carl
Hi Carl,
It is currently not possible to add a dropdown within a table cell.
Another solution which might help for your case is to use a popup. On click of the table cell you could open a popup. This popup shows a table that fetches the products for the selected MMUI.
- Create a new GQI query which fetches the ProductNumbers for a certain MMUI
- Create a panel, which shows the result of that query in a table
- Customize the ProductNumbers cell template to open the popup on click
Let me know if anything is unclear.
Hope this helps!
Best regards, Ward
Happy to hear I could help!
Feel free to take a look at the Kata to learn more about styling a table with the template editor: https://community.dataminer.services/courses/kata-14/
Hi Carl,
A possible option is to create another adhoc script that process the product numbers. They can shown in another table. Next, you can use a row from the initial table to filter down only the products related to the script number selected. Below an example for another data source:
In the example above, I select a device ID, and based on the selection, the table below is filtered.
Hope it helps!
Thank you, I can use this approach. I need to upgrade our web apps module as well so I have access to the template editor, so I’ll do that and have a play. Thanks!