[ic] TIPS: Use [table-editor] + mv_metadata to take inches off your waist while you sleep!

interchange-users@interchange.redhat.com interchange-users@interchange.redhat.com
Fri Sep 28 22:44:01 2001


Quoting Corey Gilmore (cfg@dln.uvm.edu):
> On Fri, 28 Sep 2001, Zack Johnson wrote:
> > 4. Add the [table-editor] tag.
> > ------------------------------
> >
> > This tag makes your life easy by building the form, and updating the table
> > as needed.
> >
> >  [table-editor
> >   href=process
> >   mv_nextpage=@@MV_PAGE@@
> >
> >   table=foo
> >   key="bar"
> >   ui_data_fields="bar1 bar2 bar3..."
> >
> >  ]
> >
> 
> Excellent!  One hint, similar to how IC does it.
> ui_data_fields="__UI_YOURTABLENAME_FIELDS__"
> 
> That way, you just need to edit a variable to add columns to edit, change
> the order they appear in etc.

There is also another, perhaps better way that is used in 4.8 by
default. Try clicking the table name entry in the edit list
(admin/flex_select?mv_data_table=foo) and you can set the default list
of fields to edit.

You will also note that this presents a different "view" into
mv_metadata -- all tables can have different views for different
forms. Once you set it up (with a record viewname::foo in mv_metadata)
you can do:

	[table-editor view=viewname]

and it will pick up all the proper fields, field labels, widgets,
break_before, etc. In other words, you just prefix "viewname::" in
front of all the records you created in the HOWTO.

-- 
Red Hat, Inc., 3005 Nichols Rd., Hamilton, OH  45013
phone +1.513.523.7621      <mheins@redhat.com>

Nature, to be commanded, must be obeyed. -- Francis Bacon