The fun continues as I walk though the change log for qgis 3.30. I’m running a bit behind – So lets talk widgets. QGIS introduces new widgets to help in data entry.
Lets talk about the Text Widget. The TN911 project is starting to get some complicated menus and one thing I’ve wondered about is “checking the data” before it goes in. I have checks in the database but what if I wanted some human eyes on the data. The new text widget allows for expressions to display data from fields. As you can see from the pic below the text widget has a place to place expressions.
Lets make a completely ridiculous test menu for data entry with 4 tabs – so I can’t see “everything at once”.
I’m going to use the new expression “current_value (‘field’)” to display my data under the text widget that I’ve named “Current Value”. I’m also using the new spacer widget which makes a space. The spacer widget is nice – but that’s as much “space” on the blog as I’m giving it.
My final formula will be for the “Current Value” text widget: [% concat(current_value( ‘col1’), ‘ ‘, current_value (‘col2’), ‘ ‘, current_value (‘col3’), ‘ ‘, current_value (‘col4’)) %]
…and I know that’s a bit of a silly example BUT I can see me incorporating this into the data collection portion of the 911 project just to see “how” the address looks. Maybe I need to run some calculations to give the user a hint on data input.