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> |
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) |
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>): |
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? |
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> |