I have a database that I have in a power table with editing on a column enabled. This specific column can accept NULL values in the database. I can’t seem to get this behavior during an edit. For example, if I clear the field out, it forces me to enter a value. I’ve set the number format to “#” for testing purposes - but I am still required to enter a value.
Does anyone know how I can permit my users to set values to database NULL in a power table column w/editable enabled?
We have a ticket for it, it's on the radar for "soonish", but I really don't know how soon that will be. If you want to be notified when it's been done, contact support and have them link you up with the ticket.
Tech genius Alejandro taught me a work around.
Using the Scripting Extension Function onPopupTrigger, type in the following script. #NULL Entry Popup - Right Click will display Null Popup, Click to Enter Null Value
def setToNull(evt, cellValue=value):
ndx = self.data.getValueAt(rowIndex,0)
query = “UPDATE vdk SET %s = NULL WHERE ndx = ?” % colName
system.db.runPrepUpdate(query, [ndx])
menu = system.gui.createPopupMenu({'Clear':setToNull})
menu.show(event)
Somewhere in the last six years we’ve lost the ticket Kathy mentioned, or at least I can’t find it.
In any event, we’re obviously not treating this as a high priority issue. I would encourage going with the scripting workaround(s) mentioned higher in this thread.