
[Date Prev][Date Next][Thread Prev][Thread Next][Interchange by date
][Interchange by thread
]
Re: [ic] ui_display_only option in [table-editor]
Quoting Zack Johnson (zack@office.standardprinting.net):
> I'm guessing that the ui_display_only option in [table-editor] sets
> specified fields as "read only." This would be great for setting aside the
> primary key for the table so that users couldn't add arbitrary records to
> the db. I've tried:
>
> [table-editor
> href=process
> mv_nextpage=@@MV_PAGE@@
>
> table=foo
> key="value"
> ui_data_fields="bar1 bar2 bar3..."
>
> ui_display_only="bar1"
>
> ]
>
> However, because bar1 shows up in the table-editor, the user can type
> 'value2' for the key value. This then creates a new record. I would have
> expected [table-editor] to ignore any value in bar1. Is there something I'm
> missing?
That is what ui_hide_key is supposed to be for. The key can't be done
with ui_display_only, because it is required to be passed to set the
record.
You can also set:
widget.bar1=value
--
Red Hat, Inc., 3005 Nichols Rd., Hamilton, OH 45013
phone +1.513.523.7621 <mheins@redhat.com>
I am a great believer in luck, and I find that the harder I work
the more luck I have. -- Thomas Jefferson
_______________________________________________
interchange-users mailing list
interchange-users@interchange.redhat.com
http://interchange.redhat.com/mailman/listinfo/interchange-users