Welcome to the Birder's Diary Forum for Support And General Questions

Use the Support forum for all questions or issues.
Use the Wish List forum to leave your ideas for improving Birder’s Diary.

Default Value for U...
 
Notifications
Clear all

[Solved] Default Value for User Defined Field


Posts: 4
Topic starter
(@neoscona)
New Member
Joined: 2 months ago

Is there any way to specify default values for UDFs?

Reply
Topic Tags
3 Replies
Posts: 234
Admin
(@jeff)
Member
Joined: 10 months ago

Hi neoscona,

Posted by: @neoscona

Is there any way to specify default values for UDFs?

Sorry, currently no. Can you give me a scenario where you want that so that I can understand and perhaps I can get it into a future version?

Thanks,

Jeff

Reply
Posts: 4
Topic starter
(@neoscona)
New Member
Joined: 2 months ago

When I import from eBird, the UDFs are not part of the deal. I like to keep track of how well we saw a particular bird on a 1-5 scale. Now, the fields simply contain the NULL value. I would like to default it to 3, an average sighting. Then I could modify the sightings that need something else. I have an obvious workaround, but I thought I would ask. I can simply select all the sightings and default the field that way. The database provides a way to specify the default value when the field is defined, but that is not possible as it is currently defined.

Reply
Posts: 234
Admin
(@jeff)
Member
Joined: 10 months ago

Correct on everything. But I don't set a default value; other than Null. 

To do so would mean modifying the UI to allow for this and then changing the code to apply it. 

The workaround that you have already found, indeed works, but adds an extra step to Sightings Entry that would be nice to avoid. I just tried it on 52 sightings. It takes about 8-10 seconds, once the sightings are in the View grid, to a) Select All, b) Edit, c) select your UDF and set the value, and d) click the Update button. Of course, this would all vary based on computer/disk speed.

You could also edit the eBird CSV export file and add your UDF field with default values. Those UDF fields would be imported with the value specified. But that is longer than 8-10 seconds.

On my To Do list.

Jeff

Reply
Share: