I'm familiarizing myself with the list-builder (aka template::list::*) and have run into a snag that I'm hoping someone has worked around. Or, maybe I haven't assimilated enough information yet...
I have setup a bulk_action and bulk_action_export_vars in preparation of deleting several objects simultaneously. The problem is that I need to provide a constant query value which specifies the operation (delete), and the -bulk_actions switch will not allow me to do this.
The target (./client) page is multi-mode. That is, it perfoms all actions (add, edit, delete, list) related to the client object. This page changes its behavior depending on the value of the "op" query var value. For example: client?op=delete&id=nnnn, client?op=list, etc.
client/op=list displays a template::list of all these objects and part of the spec is:
-bulk_actions {
"Delete" "client?op=delete" "Delete checked entries"
} \
-bulk_action_export_vars {
id return_url
}
The resulting bulk delete url is:
client?return_url=abcde&id=nnnn&id=mmmm&...
Where the "
?op=delete" portion of the -bulk_actions url has been
stripped and replaced with the -bulk_action_export_vars.
I've tried various permutations and formats for the -bulk_actions url entry without success. It appears that this entry is treated as a simple string (not eval'd) so it will not accept a tcl command that builds the url.
Any suggestions on how to accomplish this?
Randy