Why does a select string list type in a Driving table include a blank and null option?

I have created a Driving Table that has a list of strings in one column-- and for each select list when adding a record, there is a space at the top, then a "null" option at the bottom of each list. Is this expected behaviour? Can it be configured so that there's only either a null or a blank?

image2016-4-26 12:26:29.png

 

2 answers

1 accepted

Thank you, it was answered in the support ticket.

I'll put that information here in case it helps anybody:


Andrey Kozinets (Rozdoum)

Today 3:21 PM

Hello Jon

The empty list item (the top one on the screenshot) is there by default. TGE always adds it automatically so that users have an option to select 'nothing' in the list column.
The item with the 'null' value is something your column query returns. It means that your query returns records where the selected column is null. The easiest thing to do is to update your query so that it does not return records with null values. For example, if your query now is

col.mylist.query=select name, id from airplanes

you can update it to be

col.mylist.query=select name, id from airplanes where name is not null

P.S. I am assuming you do not need the 'null' values in your list, do you?

I hope I got the problem well and suggested an appropriate solution for you. If not - feel free to ask for more

Kind regards,
Andrey K


So the answer is to basically form the query so that it's not returning null results. The queries are based on MySQL or Postgres, I think. I had to translate it to MS SQL, and ended up being:

colmylist.query= select column_name from table_name where column_name != 'null'


For my example, they were a list of strings stored in the sql table.

 

Thanks for the help!

Oops - glad that it helped and kudos to Andrey.

 

Hi Jon,

 

I'm not sure if you want to continue the discussion here or on our support site, but in any case - could you share your grid configuration ?

 

Thanks,

 

Francis

Suggest an answer

Log in or Sign up to answer
Atlassian Community Anniversary

Happy Anniversary, Atlassian Community!

This community is celebrating its one-year anniversary and Atlassian co-founder Mike Cannon-Brookes has all the feels.

Read more
Community showcase
Fadoua M. Boualem
Published Monday in Trello

Using Trello to manage events

As a Jira power user, I was at first doubtful that Trello could benefit my workflow. Jira already uses boards (ones you can customize!), so why would I even need to use Trello?! In this post you will...

510 views 8 9
Read article

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you