Lizmap-web-client: How to format the data viewed with the relations

Created on 8 Nov 2019  路  7Comments  路  Source: 3liz/lizmap-web-client

When I see the data linked to an object I can choose which fields to see and how to view them with a code to be inserted in the Lizmap plugin in Layers > Activate popup > source Lizmap.

My problem is when I want to see related data by selecting "Display related children under each object (use relations)". I see all data field by field without formatting.

I would like to know how to format also this data viewed with relations in order to select how and which fields to view.

Thanks in advance

question stale

All 7 comments

Hiya!
This issue has gone quiet. 馃懟
We get a few questions in the bug tracker, so we currently slowly closing issues.
If we missed this issue or if you want to keep it open, please reply here.
As a friendly reminder: the best way to see this issue, or any other, fixed is to open a Pull Request.
Thanks for being a part of the Lizmap community! 馃

@news24lor Did you solve your question? I'm indeed not sure about the behavior.

@news24lor Did you try to create those popups with QGIS HTML Map Tip ? Those are more powerful than Lizmap ones.

Hi @nboisteault
I tried to use HTML QGIS but couldn't get an interesting result. I made the page in HTML with the codes of the fields but since the related data are a lot I can't show them in a LOOP. I tried to insert the HTML in the table of the related data but it doesn't work. Maybe with javascript but I don't know. Do you have some tips to use this internal QGIS function in a complete way?

I said that QGIS HTML Map Tip are powerful because you can use QGIS Expressions (the little epsilon at bottom). I'm sure you'll find what you need in documentation. relation_aggregate function might help you for example.

I made the page in HTML with the codes of the fields but since the related data are a lot I can't show them in a LOOP

Do you mean you where using the auto popup before because you got too many fields to build the HTML manually?

Hi @Gustry
Yes I have many fields but with the advice of @nboisteault I will use relation_aggregate.

It鈥檚 closed for me.
Thanks

Was this page helpful?
0 / 5 - 0 ratings

Related issues

danzig666 picture danzig666  路  10Comments

Nokram picture Nokram  路  5Comments

21Damien picture 21Damien  路  4Comments

pcav picture pcav  路  5Comments

josemvm picture josemvm  路  13Comments