You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The attached code code_with_linebreak.txt is rendered correctly in QGIS in a QML widget as a bar chart. In QField all bars remain empty.
After some (much) trial and error I realized that QField has problems with line breaks within an expression.evaluate().
The - in my eyes a bit more difficult to read - code code_without_linebreak.txt is now also rendered correctly in QField
Is this already a bug? Would I have had a chance to find out somewhere about the syntax QField needs to get the same result as QGIS?
With many thanks and best regards
By the way: Is there actually a way to use the "array_foreach" function in a nested manner in order to significantly reduce the code (e.g. like here: array_foreach_nested.txt )? If so, how do I refer specifically to the @element of the different levels?
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
The attached code code_with_linebreak.txt is rendered correctly in QGIS in a QML widget as a bar chart. In QField all bars remain empty.
After some (much) trial and error I realized that QField has problems with line breaks within an expression.evaluate().
The - in my eyes a bit more difficult to read - code code_without_linebreak.txt is now also rendered correctly in QField
Is this already a bug? Would I have had a chance to find out somewhere about the syntax QField needs to get the same result as QGIS?
With many thanks and best regards
By the way: Is there actually a way to use the "array_foreach" function in a nested manner in order to significantly reduce the code (e.g. like here: array_foreach_nested.txt )? If so, how do I refer specifically to the
@element
of the different levels?Beta Was this translation helpful? Give feedback.
All reactions