Subversion Repositories wimsdev

Rev

Rev 7680 | Go to most recent revision | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
20 reyssat 1
!nocache
2
 
3
!if $status=waiting
4
 !exit
5
!endif
6
 
7
df_data=!record 0 of Dataindex
8
df_names=!column 1 of $df_data
9
df_titles=!column 2 of $df_data
10894 obado 10
df_record_cnt=!column -1 of $df_data
20 reyssat 11
 
10894 obado 12
df_record_cnt_total=0
13
df_cnt=!itemcnt $df_names
14
!for i=1 to $df_cnt
15
  !! df_prompt = !append item $(df_titles[$i]) ($df_record_cnt) to $df_prompt
16
  tmp=$(df_titles[$i]) [$(df_record_cnt[$i])]
17
  df_prompt = !append item $tmp to $df_prompt
18
  df_record_cnt_total=!eval $df_record_cnt_total+$(df_record_cnt[$i])
19
!next i
20
 
20 reyssat 21
df_ask=!listintersect $(confparm$wims_read_parm) and $df_names
22
!default df_ask=$df_names
23
df_ask=!randitem $df_ask
24
oefenv_datafile=src/data/$df_ask.data
25
df_namecnt=!positionof item $df_ask in $df_names
26
df_title=!item $df_namecnt of $df_titles