by jhenry » Tue Apr 06, 2010 12:36 pm
I finally got it. It seems like when I used the category=record_action in the actions.ini it would link only to the Work_Orders table not the appropriate checklist table. What I finally used does what you said and pulls the workorder_id from the current record and uses that in a new checklist form. It also queries the record to get the appropriate checklist for the equipment. The link is there in the list function but just reloads the current page if selected. Thanks again for all your assistance.
- Code: Select all
[Work_Orders]
url="{$record->val('checklist_url')}&wo_id={$record->val('workorder_id')}"
url_condition="$query['-table'] == 'Work_Orders' and $record"
condition="$query['-table'] == 'Work_Orders' and $record"
category=table_actions
icon="http://192.168.0.11/infinity/images/checklisticon.png"
label="Checklist"
Jason
Do not mistake understanding for realization, and do not mistake realization for liberation....Tibetan Saying.