[ic] mv_metadata & derived (calculated) data

Mike Heins interchange-users@icdevgroup.org
Thu Jun 13 10:32:00 2002


Quoting David Kelly (david@zeald.com):
> On Thu, 13 Jun 2002 3:55 pm, Mike Heins wrote:
> -- [snip]
> > Actually it will honor that already, I discover. If you can
> > get extended.ui_display_only set to "na", you can use the field
> > name "na" without having a column of that name.
> >
> > I think this patch to lib/UI/pages/admin/db_metaconfig_edit.html
> > will get it (only for 4.9, mind you):
> >
> > --- /DP/db_metaconfig_edit.html	Tue Oct  9 16:40:37 2001
> > +++ /dp/db_metaconfig_edit.html	Wed Jun 12 23:52:33 2002
> > @@ -70,6 +70,7 @@
> >  		code							=> 'View::Table',
> >  		name							=> 'Description',
> >  		'extended.ui_data_fields'		=> 'Fields to edit',
> > +		'extended.ui_display_only'		=> 'Fields for display only',
> >  		'extended.left_width' => 'Width specification for label column',
> >  		'extended.table_width' => 'Width specification for editor table',
> >  	}`
> > @@ -78,6 +79,7 @@
> >  		code							=> 'hidden_text',
> >  		name							=> 'value',
> >  		'extended.ui_data_fields'		=> 'move_combo_8',
> > +		'extended.ui_display_only'		=> 'text_40',
> >  		'extended.table_width'		    => 'text_8',
> >  		'extended.left_width'			=> 'text_8',
> >  	}`
> 
> Ok I seem to have got it honoring alright using IC 4.8.3 by specifing na:na.   
> It is now referencing the mv_metadata entry fine.  Next step is the custom 
> widget.

There is no point in doing this with IC 4.8.x, really. You would have to
hack in a custom widget in UI::Primitive.

> 
> > It sounds like a custom widget, which is easy to do in 4.9. Instead
> > of using the value widget, you would make a custom one which would
> > expect the "options" field to be set to the expression, or you could
> > make the expression in a lookup_query. With this:
> 
> Is it possible to write a custom widget in 4.8.3 without having to jump 
> through too many hoops and do any nasty hacks?  If it is, how would I go 
> about it, where would I put the code?

I won't spend any time on it myself. You would just hack it in UI::Primitive
the same way date is done. If you are doing any UI changes they will
run the risk of being invalidated for 4.9.

-- 
Mike Heins
Perusion -- Expert Interchange Consulting
phone +1.513.523.7621      <mike@perusion.com>

Unix version of an Outlook-style virus:
It works on the honor system. Please forward this message to everyone
you know, and delete a bunch of your files at random.