I'm posting this on behalf of someone whose subscription was not approved when 
he posted it:

Hello 

I'm training with active4D and I enjoy it 

I HAve probleme with batch 
Here's what I wrote in the body of my index.a4d page 

<% 
        
c_longint($attributes) 
$attributes := merge collections(form variables; query params) 
$start := max of(num($attributes{"bst"}); 1)     
  
recnum1:=My_Search_Web  
($attributes{"search_quoiqui"};$attributes{"search_ou"};50)     
$count:=records in selection([Annuaire])                                        
       

c_text($prev; $batches; $next)                       
$map := """ 
 id:[Annuaire]Primary_Key; 
Entreprise:[Annuaire]Entreprise; 
Nom:  [Annuaire]nom; 
 Prenom: [Annuaire]prenom"""                     

 $rs:=RowSet.newFromSelection(->[Annuaire]; $map) 
$batch := Batch.NewFromRowSet($rs; 10; $start) 
// Setup the link info, make the links 
$prev := "<< Precedent|batch-previous" 
$batches := " " 
$next := "Suivant >>|batch-next" 
$needBatch := $batch->makeLinks($prev; $batches; $next; requested url)    %> 
                                                                                
                                
 <%if ($needBatch)%> 
                <div class="res_header">  
              
 Aller à page: <%=$prev +" "+ $batches+" " + $next%> 
             </div>
    <%end if    %>     

<% 
auto relate(false; true) 
        for($i;$batch{"start"};$batch{"end"}) 
          //  goto selected record([Annuaire];$i)     
                 $rs->gotoRow($i) 

So all records are show and the links are there with the right number 
but when I click on one the them a 
http://annuairepei.4irc.com:8080/Index.a4d?bst=11 is done and I don't know how 
to trap it and  show the right selection 

Thank you for your Help 

Lackder 

_______________________________________________
Active4D-dev mailing list
Active4D-dev@aparajitaworld.com
http://list.aparajitaworld.com/listinfo/active4d-dev
Archives: http://vasudev.aparajitaworld.com/archive/active4d-dev/

Reply via email to