Hi,

Yes, tooltips that show the comments would also be great. It would be
nice to show

 * the database comments (if supported by the backend) as default
 * allow to override it in the configuration

Default values from expressions would also be a great addition. I think
it would be better to define it directly on the field (and not on its
widget). This way you can later turn the widget into something else
(e.g. from text to range) without reconfiguring the default value. And
it should have defaults for the defaults :) being read from the database
where possible.

Cheers,
Matthias

On 06/26/2015 01:05 PM, Blumentrath, Stefan wrote:
>
> Hi,
>
>  
>
> I am about to file a ticket for this. Another thought in this context:
>
> When defining “default values” it would be splendid if one could use
> variables (e.g. %USER% or expressions like in the field calculator or
> Relation Reference widget). What do you think?
>
> The latter could probably go into a new widget type "Calculated"?
>
>  
>
> Another thing in this context could be adding the possibility do
> define “Mouse-over effects” in order to help understanding attribute
> content better (e.g. Units, backgrounds, how to measure in the
> field…)?! Lables are not allways sufficient, but maybe the GUI gets
> too fidgety?
>
>  
>
> Should a request for this go into separate tickets?
>
>  
>
> Cheers
>
> Stefan
>
>  
>
>  
>
> *From:*qgis-user-boun...@lists.osgeo.org
> [mailto:qgis-user-boun...@lists.osgeo.org] *On Behalf Of *didier peeters
> *Sent:* 26. juni 2015 12:36
> *To:* qgis-user
> *Subject:* Re: [Qgis-user] Default values in form
>
>  
>
> Hello Mathias,
>
>  
>
> this would be great ! 
>
> Additionally, this makes me think of another possible enhancement:
> when displaying a picture in a form tab, it could be nice to hide the
> label and path/url to the file, which is most of the time useless.  Do
> I need to do anything more to make these suggestions ?
>
>  
>
> Didier
>
>  
>
>
>
>  
>
>  
>
>     Le 26 juin 2015 à 12:07, Matthias Kuhn <matthias.k...@gmx.ch
>     <mailto:matthias.k...@gmx.ch>> a écrit :
>
>      
>
>     I think this would fit into the area of this QEP:
>
>     
> https://github.com/m-kuhn/QGIS-Enhancement-Proposals/blob/fields-and-forms-redesign/QEP-Fields-and-forms-redesign.rst#31-fields
>
>     It could be added to the list "Information about fields" next to
>     "constraints".
>
>     Any feedback on it is welcome.
>
>     Matthias
>
>     On 06/26/2015 11:35 AM, Paolo Cavallini wrote:
>
>         Agreed, an important improvement. Please open a ticket if not
>         already there.
>         All the best.
>
>         Il 26 giugno 2015 08:16:32 GMT+00:00, "Blumentrath, Stefan"
>         <stefan.blumentr...@nina.no>
>         <mailto:stefan.blumentr...@nina.no> ha scritto:
>
>             Hei Didier,
>
>              
>
>             I guess you could use a python init function for the form in 
> order to define "default values" (see: 
> http://nathanw.net/2011/09/05/qgis-tips-custom-feature-forms-with-python-logic/).
>
>             However, sounds like a useful enhancement of the Custom form 
> functionality (at least I would be interested too)...
>
>              
>
>             Cheers
>
>             Stefan
>
>              
>
>             -----Original Message-----
>
>             From: qgis-user-boun...@lists.osgeo.org 
> <mailto:qgis-user-boun...@lists.osgeo.org> 
> [mailto:qgis-user-boun...@lists.osgeo.org] On Behalf Of didier peeters
>
>             Sent: 26. juni 2015 10:08
>
>             To: qgis-user
>
>             Subject: [Qgis-user] Default values in form
>
>              
>
>             Hello,
>
>              
>
>             Simple question : is there a way to set a default value for an 
> attribute in QGis ?  
>
>              
>
>             I have Postgis layers in QGis in which I’m inserting or updating 
> data, and I would like that some fields would be filled automatically unless 
> I fill
>
>             them myself.  Well that’s the definition of a default value, and 
> I don’t think that using layers stored in Postgis would make any difference.
>
>              
>
>             Thanks
>
>             Didier
>
>             
> ------------------------------------------------------------------------
>
>              
>
>             Qgis-user mailing list
>
>             Qgis-user@lists.osgeo.org <mailto:Qgis-user@lists.osgeo.org>
>
>             http://lists.osgeo.org/mailman/listinfo/qgis-user
>
>             
> ------------------------------------------------------------------------
>
>              
>
>             Qgis-user mailing list
>
>             Qgis-user@lists.osgeo.org <mailto:Qgis-user@lists.osgeo.org>
>
>             http://lists.osgeo.org/mailman/listinfo/qgis-user
>
>
>         -- 
>         http://faunalia.eu <http://faunalia.eu/>/
>         Sent from mobile, sorry for being short
>
>
>         _______________________________________________
>
>         Qgis-user mailing list
>
>         Qgis-user@lists.osgeo.org <mailto:Qgis-user@lists.osgeo.org>
>
>         http://lists.osgeo.org/mailman/listinfo/qgis-user
>
>      
>
>     _______________________________________________
>     Qgis-user mailing list
>     Qgis-user@lists.osgeo.org <mailto:Qgis-user@lists.osgeo.org>
>     http://lists.osgeo.org/mailman/listinfo/qgis-user
>
>  
>
>
>
> _______________________________________________
> Qgis-user mailing list
> Qgis-user@lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/qgis-user

_______________________________________________
Qgis-user mailing list
Qgis-user@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/qgis-user

Reply via email to