[ic] ui_display_only option in [table-editor]

Zack Johnson interchange-users@interchange.redhat.com
Tue Oct 2 15:29:00 2001


Good point.  I was really looking for the 'widget.foo=label' trick.  Thanks!


----- Original Message -----
From: <mheins@redhat.com>
To: <interchange-users@interchange.redhat.com>
Sent: Tuesday, October 02, 2001 12:16 PM
Subject: 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
>