Ignore:
Timestamp:
05.11.2008 14:07:36 (4 years ago)
Author:
chris
Message:

zms-2.11.1-13

File:
1 edited

Legend:

Unmodified
Added
Removed
  • ZMS/trunk/dtml/ZMSSqlDb/input_details.dtml

    r267 r273  
    129129   ><dtml-call "sqlStatement.append( 'ORDER BY sort_id')" 
    130130  ></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 
    134135   ><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 
    135136  ></dtml-try> 
     
    137138  <dtml-call "REQUEST.set('rindex',-1)" 
    138139  ><dtml-if "REQUEST.get('details_action')=='update'" 
    139    ><dtml-in res mapping 
     140   ><dtml-in "REQUEST['res']" mapping 
    140141    ><dtml-if "_.str(_[primary_key])==_.str(details_rowid)" 
    141142     ><dtml-call "REQUEST.set('rindex',_['sequence-index'])" 
     
    158159   </dtml-if> 
    159160   <dtml-var "f_recordset_grid(_,_ 
     161     ,res=REQUEST['res'] 
    160162     ,grid_url=URL 
    161163     ,grid_cols=grid_cols 
     
    170172><dtml-call "REQUEST.set('details_submit',getZMILangStr('BTN_INSERT'))" 
    171173><dtml-if "REQUEST.get('details_action')=='update'" 
    172  ><dtml-in res mapping 
     174 ><dtml-in "REQUEST['res']" mapping 
    173175  ><dtml-call "REQUEST.set('row',_['sequence-item'])" 
    174176  ><dtml-call f_recordset_init 
Note: See TracChangeset for help on using the changeset viewer.