
[Date Prev][Date Next][Thread Prev][Thread Next][Interchange by date
][Interchange by thread
]
Re: [ic] TIPS: Use [table-editor] + mv_metadata to take inches offyour waist while you sleep!
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.
> before a specified field. And, using ui_break_before_label, you can insert
> a nice section
>
> heading. In this example I will insert a break before each field:
>
> [table-editor
> href=process
> mv_nextpage=@@MV_PAGE@@
>
> table=airport_codes
> key="JAX"
> ui_data_fields="airport_code name"
>
> check.name = "required Please enter a location name"
>
> ui_break_before = "airport_code name"
> ui_break_before_label = "airport_code=Airport Code,name=Airport Name"
>
> ]
Once again, an excellent place for a variable. :)
Another useful trick is to restrict access to certain functions. If you
are doing something out of the ordinary, you can use the if-mm tag.
[if-mm !regen]
[set ui_error]Not authorized to regenerate.[/set]
[bounce page="__UI_BASE__/error"]
[/if-mm]
Unfortunately, I am not sure which table the regen field is checked in,
probably access. Mike?
Thanks for the tutorial :)
.cfg
_______________________________________________
interchange-users mailing list
interchange-users@interchange.redhat.com
http://interchange.redhat.com/mailman/listinfo/interchange-users