10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
|
;;======================================================================
;; a function <pagename>-action is called on POST
(define (home-action action)
(case (string->symbol action)
((filter)
(let ((target-type (s:get-input 'target-type))
(target-filter (s:get-input 'tfilter))
(target (s:get-input 'target))
(row-or-col (s:get-input 'row-or-col)))
;;
;; s:set! is a page local var. Better than s:session-var-set! but still not a good idea.
;;
(s:set! "row-or-col" (if (list? row-or-col)
(string-intersperse row-or-col ",")
row-or-col))
(s:set! "target-type" target-type)
(s:set! "tfilter" target-filter)
(s:set! "target" target)
(s:set! "target-filter" target-filter)))
((filter2)
(let ((tslice-select (s:get-input 'tslice-select))
(t-slice-filter (s:get-input 't-slice-filter)))
;;
;; s:set! is a page local var. Better than s:session-var-set! but still not a good idea.
;;
(s:set! "tslice" tslice-select)
(s:set! "t-slice-patt" t-slice-filter)))
))
|
|
|
|
|
|
<
<
|
|
|
|
<
<
<
<
<
<
|
<
<
|
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
|
;;======================================================================
;; a function <pagename>-action is called on POST
(define (home-action action)
(case (string->symbol action)
((filter)
(let ((dot (s:get-input 'dot))
(type (s:get-input 'kit-type))
(rel (s:get-input 'rel-num))
(bp (s:get-input 'bp)))
;;
;; s:set! is a page local var. Better than s:session-var-set! but still not a good idea.
;;
(s:set! "dot" dot)
(s:set! "type" type)
(s:set! "bp" bp)
(s:set! "rel" rel)))))
|