/[papo]/papo/forms/components/inlineSearch.nebc
ViewVC logotype

Diff of /papo/forms/components/inlineSearch.nebc

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.4 by apronotti, Thu Sep 18 21:23:38 2003 UTC revision 1.5 by apronotti, Tue Sep 23 20:28:05 2003 UTC
# Line 89  $target_table=> '' Line 89  $target_table=> ''
89  #si quiero que use un datasource específico  #si quiero que use un datasource específico
90  $search_data_source => ''  $search_data_source => ''
91    
92    #trigger a llamar antes de cada búsqueda
93    $pre_search_trigger => ''
94    $cond_field => ''
95  </neb:Vars>  </neb:Vars>
96    
97  <neb:Block>  <neb:Block>
# Line 194  $search_data_source => '' Line 197  $search_data_source => ''
197  <!-- the trigger called when <enter> is hit //-->  <!-- the trigger called when <enter> is hit //-->
198  <trigger name="neb:qq(idFor_${object}Trigger)" type="NAMED">  <trigger name="neb:qq(idFor_${object}Trigger)" type="NAMED">
199    callTrigger('startWaitingModeTrigger')    callTrigger('startWaitingModeTrigger')
     
200    def set_<neb:Inline>$object</neb:Inline> (recNo):    def set_<neb:Inline>$object</neb:Inline> (recNo):
201      if recNo>=0:      if recNo>=0:
202        <neb:Inline>$block_name</neb:Inline>.jumpRecord (recNo)        <neb:Inline>$block_name</neb:Inline>.jumpRecord (recNo)
# Line 210  $search_data_source => '' Line 212  $search_data_source => ''
212    # go fetch!...    # go fetch!...
213    <neb:Inline>$block_name</neb:Inline>.clear ()    <neb:Inline>$block_name</neb:Inline>.clear ()
214    <neb:Inline>$block_name</neb:Inline>.initQuery ()    <neb:Inline>$block_name</neb:Inline>.initQuery ()
215    
216    <neb:Block>if ($pre_search_trigger) {</neb:Block>
217      callTrigger('<neb:Inline>$pre_search_trigger</neb:Inline>')
218    <neb:Block>}</neb:Block>
219    
220    <neb:Block>if ($use_code) {</neb:Block>    <neb:Block>if ($use_code) {</neb:Block>
221    <!-- don't ident! -->    <!-- don't ident! -->
222    if str(<neb:Inline>"$target_block\.hid_$code_entry"</neb:Inline>)!=str(<neb:Inline>"$target_block\.$code_entry"</neb:Inline>):    if str(<neb:Inline>"$target_block\.hid_$code_entry"</neb:Inline>)!=str(<neb:Inline>"$target_block\.$code_entry"</neb:Inline>):
# Line 223  $search_data_source => '' Line 230  $search_data_source => ''
230      <neb:Inline>"$block_name\.nameEntry"</neb:Inline>= ''      <neb:Inline>"$block_name\.nameEntry"</neb:Inline>= ''
231    <neb:Inline>$block_name</neb:Inline>.processQuery ()    <neb:Inline>$block_name</neb:Inline>.processQuery ()
232    
233    
234    callTrigger('endWaitingModeTrigger')    callTrigger('endWaitingModeTrigger')
235    
236    # are there too much results?    # are there too much results?
# Line 313  $search_data_source => '' Line 321  $search_data_source => ''
321          <entry name="codeEntry" field="neb:qq($table.$code_field)" hidden="y"/>          <entry name="codeEntry" field="neb:qq($table.$code_field)" hidden="y"/>
322        <neb:Block>}</neb:Block>        <neb:Block>}</neb:Block>
323        <entry name="nameEntry" field="neb:qq($table.$name_field)" hidden="y"/>        <entry name="nameEntry" field="neb:qq($table.$name_field)" hidden="y"/>
324    <neb:Block>if ($cond_field) {</neb:Block>
325          <entry name="aditionalEntry" field="neb:qq($cond_field)" hidden="y"/>
326    <neb:Block>}</neb:Block>                            
327      </block>      </block>
328    </lam:box>    </lam:box>
329  </lam:box>  </lam:box>

Legend:
Removed from v.1.4  
changed lines
  Added in v.1.5

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26