[ic] What Does it Take to Create Wizards

Zack Johnson interchange-users@interchange.redhat.com
Tue Sep 25 19:16:00 2001


> The main part of the wizard is the [table-editor ...] tag with
> the wizard option selected. I have never gotten to documenting
> the table-editor UserTag, but it is what the UI uses for editing
> DB stuff.

I would say [table-editor] is perhaps the best IC's best feature, from a
customization POV. I can't tell you enough how much of a boon the it is.
While I have little idea what I'm doing with it, it's speeding my catalogue
development significantly.  I hate to keep pestering, but the tool is
unbelievably powerful.

I've created a new table in mysql.  Call it 'foo'.  I have already created a
page to input records to foo.  I'm now trying to use mv_metadata to control
the display of the [table-editor].

For example, I have a table containing all airport codes called (ahem!):
airport_codes.  There are two fields, airport_code and name.  I would like
to setup mv_metadata::foo::airport_code to create a select box with
value=label pairs from 'airport_codes'.  That way, when I use table-editor
on foo, I get a nice display with filters, etc.

However, I'm stuck on the mv_metadata.  I've seen some documentation on
doing this, but to no avail so far
(http://ic.redhat.com/cgi-bin/ic/docfly.html?id=J96tMHdq&mv_arg=icbackoffice
04%2e15 and
http://ic.redhat.com/cgi-bin/ic/docfly.html?mv_arg=icdatabase10%2e19).
Either the field shows up as a text input box, or not at all.  Even after
bashing my head on it for a few hours, I'm still excited.  Using
[table-editor] + mv_metadata lets you tweak cat's with roaring speed.

Thanks for the wonderful software, BTW.

And if anyone wants the CSV of airport codes, I'll be glad to make it
available.

Zack