I know that this has probably been discussed elsewhere or is in the documentation, perhaps I am not using the right terms when I search, but I simply cannot find the answer to this.
So please can someone point me to either the right documentation or give me and answer here?
I have a listgrid that displays info from a datasource. However, one of the columns is an ID (integer value) that is actually a reference to a description table.
Here's what I want to do:
a) I don't want to display the ID, instead, I want to display the description off the other table.
b) However, it's perfectly valid for the ID to be null. I.e. there is no link to the other table. In this case, it should simply be blank.
c) The user can, if the wish, edit this field. In this case, I want to have a dropdown that they can choose values from. The dropdown should be the descriptions from the description table.
So it's a simple lookup that supports null values. If the null value part is a problem, then I can inject a 0 code ("N/A") into the data as it comes from that back end and allow users to select that "N/A" and then parse it correctly with CRUD calls handled by the back end.
But the main problem is that the IDs themselves are meaningless to users. The descriptions from the foreign key table are what matters.
Now i can't do a static valuemap, it has to be driven off the database because the mapping is different for every user. The source table isn't a simple code-description table, it's a table that's user-maintained (a list of information groups), so the ID isn't sequential from 1 ... X, for each user, the list of values and ID will be different.
How do I do this?
So please can someone point me to either the right documentation or give me and answer here?
I have a listgrid that displays info from a datasource. However, one of the columns is an ID (integer value) that is actually a reference to a description table.
Here's what I want to do:
a) I don't want to display the ID, instead, I want to display the description off the other table.
b) However, it's perfectly valid for the ID to be null. I.e. there is no link to the other table. In this case, it should simply be blank.
c) The user can, if the wish, edit this field. In this case, I want to have a dropdown that they can choose values from. The dropdown should be the descriptions from the description table.
So it's a simple lookup that supports null values. If the null value part is a problem, then I can inject a 0 code ("N/A") into the data as it comes from that back end and allow users to select that "N/A" and then parse it correctly with CRUD calls handled by the back end.
But the main problem is that the IDs themselves are meaningless to users. The descriptions from the foreign key table are what matters.
Now i can't do a static valuemap, it has to be driven off the database because the mapping is different for every user. The source table isn't a simple code-description table, it's a table that's user-maintained (a list of information groups), so the ID isn't sequential from 1 ... X, for each user, the list of values and ID will be different.
How do I do this?
Comment