-
Notifications
You must be signed in to change notification settings - Fork 9
/
browse-ajax-pag.prg
50 lines (29 loc) · 961 Bytes
/
browse-ajax-pag.prg
1
2
3
4
5
6
7
8
9
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
41
42
43
44
45
46
47
48
49
50
// {% LoadHrb( 'lib/tweb/tweb.hrb' ) %}
#include {% TWebInclude() %}
function main()
LOCAL o, oWeb, oCol, oBrw
LOCAL cHtml := ''
DEFINE WEB oWeb TITLE 'Test Browse' TABLES INIT
DEFINE FORM o ID 'demo'
HTML o INLINE '<h3>Test Browse - Pagination</h3><hr>'
INIT FORM o
ROWGROUP o
DEFINE BROWSE oBrw ID 'ringo' HEIGHT 400 ;
PAGINATION URL 'srv_brw_pag.prg' ;
OF o
oBrw:cLocale := 'es-ES'
ADD oCol TO oBrw ID 'keyno' HEADER 'Keyno' ALIGN 'center'
ADD oCol TO oBrw ID '_recno' HEADER 'Recno' ALIGN 'center'
ADD oCol TO oBrw ID 'first' HEADER 'First' ALIGN 'right'
ADD oCol TO oBrw ID 'last' HEADER 'Last'
ADD oCol TO oBrw ID 'street' HEADER 'Street'
INIT BROWSE oBrw
ENDROW o
HTML o
<script>
var oBrw = new TWebBrowse( 'ringo' )
oBrw.SetQuery()
</script>
ENDTEXT
END FORM o
retu nil