Where's the beef? Or, actually, where are the buttons?

Hi. I'm new to CodeOnTime, and have generated my first single-table data page, which works properly, EXCEPT the actions list does not display any actions that would alter an record, like DELETE, NEW, EDIT. I've tried to find the answer on the forum and in the docs, but I can't find why these would not be active.

The docs suggest that they can't be viewed because the actions are not available for the table, but my table is read/write, and I've used other tools to modify the data.

So, although this is a real newbee question, I would sure appreciate an answer. Thanks. JS
1 person has
this question
+1
Reply
  • Santana,

    The most likely reason is that the primary key is not set for your table. I would recommend setting a primary key and refreshing the project - the buttons will be displayed. 

    If your controller is based on a view, you must mark a field as a primary key from the Project Designer and define the base table - see here: http://codeontime.com/learn/data-controllers/database-views

    The other reason may be that your screen is very small. On iPhone size screens, the form buttons are hidden and only the buttons on the toolbar are displayed to maximize screen space. You should be able to access actions via the three dot context menu.

    If none of the above helps, please attach a screenshot of your form.
  • (some HTML allowed)
    How does this make you feel?
    Add Image
    I'm

    e.g. kidding, amused, unsure, silly indifferent, undecided, unconcerned happy, confident, thankful, excited sad, anxious, confused, frustrated

  • I’m happy
    1
    Thank you for taking the time to respond--especially in such a clear way. You were right about the missing unique key. I thought I had defined one, but I hadn't, and I keep forgetting that these type of apps don't allow changes without it. I've used a couple of development tools that keep track of the selected record in a different way.

    So that fixed it, and I thank you again.
    John
  • (some HTML allowed)
    How does this make you feel?
    Add Image
    I'm

    e.g. kidding, amused, unsure, silly indifferent, undecided, unconcerned happy, confident, thankful, excited sad, anxious, confused, frustrated