I have data table and would like to capture the user that added a record, and the user that last edited the record. My strategy is (1) to programmatically add the users ID (primary key in my user table), and (2) block that from being manually edited when the record is being added/edited. When it is being edited, the form should display the user's name associated with the ID - not simply the integer value of the ID.
Right now I'm interested primarily in part 2 - display the user's name associated with the ID, yet not allow it to be edited. Problem seems to be that to show the user's name, I need to set up a select box and a vocabulary with an sql statement... Thus 'widget:type = static' is no longer an option. I found this post:
http://xataface.com/forum/viewtopic.php?t=4446#21974 which looked like the perfect solution.
Unfortunately it doesn't work. I set up 'widget:type = select', the vocabulary with sql statement, then the fieldName__permissions() function returning READ_ONLY(). When I check the edit form, I am still able to pick whatever user I want and it is stored into the data record. I even added an echo statement to verify my functions syntax and that it is firing... in fact it fires multiple times.
What am I missing?
Thanks!