Changeset 273 for ZMS/trunk/dtml/ZMSSqlDb/input_details.dtml
- Timestamp:
- 05.11.2008 14:07:36 (4 years ago)
- File:
-
- 1 edited
-
ZMS/trunk/dtml/ZMSSqlDb/input_details.dtml (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
ZMS/trunk/dtml/ZMSSqlDb/input_details.dtml
r267 r273 129 129 ><dtml-call "sqlStatement.append( 'ORDER BY sort_id')" 130 130 ></dtml-if 131 ><dtml-try 132 ><dtml-call "REQUEST.set('res',query(' '.join(sqlStatement))['records'])" 133 ><dtml-except 131 ><!-- input_details.dtml.SQL: <dtml-var sqlStatement> --> 132 <dtml-try 133 ><dtml-call "REQUEST.set('res',query(' '.join(sqlStatement))['records'])"> 134 <dtml-except 134 135 ><div class="form-fixed" style="border: 1px solid black; background-color:white;color: red; margin:2px; padding:2px;">SQLException - Can't select records: <dtml-var error_type html_quote>: <dtml-var error_value html_quote><br/><dtml-var error_tb newline_to_br html_quote></div 135 136 ></dtml-try> … … 137 138 <dtml-call "REQUEST.set('rindex',-1)" 138 139 ><dtml-if "REQUEST.get('details_action')=='update'" 139 ><dtml-in resmapping140 ><dtml-in "REQUEST['res']" mapping 140 141 ><dtml-if "_.str(_[primary_key])==_.str(details_rowid)" 141 142 ><dtml-call "REQUEST.set('rindex',_['sequence-index'])" … … 158 159 </dtml-if> 159 160 <dtml-var "f_recordset_grid(_,_ 161 ,res=REQUEST['res'] 160 162 ,grid_url=URL 161 163 ,grid_cols=grid_cols … … 170 172 ><dtml-call "REQUEST.set('details_submit',getZMILangStr('BTN_INSERT'))" 171 173 ><dtml-if "REQUEST.get('details_action')=='update'" 172 ><dtml-in resmapping174 ><dtml-in "REQUEST['res']" mapping 173 175 ><dtml-call "REQUEST.set('row',_['sequence-item'])" 174 176 ><dtml-call f_recordset_init
Note: See TracChangeset
for help on using the changeset viewer.
