forked from joaool/MotherGithub
-
Notifications
You must be signed in to change notification settings - Fork 0
/
nico_testdb1.html
64 lines (59 loc) · 2.16 KB
/
nico_testdb1.html
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
51
52
53
54
55
56
57
58
59
60
61
62
63
64
<html>
<head>
<!--
<script type="text/javascript" src="Dojo Toolkit/dojo-release-1.7.1/dojo/dojo.js" djconfig="parseOnLoad: true, isDebug: true" >
</script>
<link href="Dojo Toolkit/dojo-release-1.7.1/dijit/themes/claro/claro.css" rel="stylesheet">
-->
<meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
<title>Test enginePair 1.0</title>
<script>
dojoConfig= {
has: {
"dojo-firebug": true
},
parseOnLoad: false,
debugAtAllCosts: true,
foo: "bar",
async: true
};
</script>
<!--<script type="text/javascript" src="../dojo1.9.2/dojo/dojo.js"></script> -->
<script src="jquery-1.8.2/jquery-1.8.2.js"></script>
<script src="lib/dataLayerClient.js"></script>
<!--<script src="Mother/bootstrap.js"></script>-->
<!--<link href="../dojo1.9.2/dijit/themes/claro/claro.css" rel="stylesheet">-->
<link rel="stylesheet" type="text/css" href="Mother/MotherBuilder.css" />
<!--- For Mother Forms A -BlueHills, B-Simple Green C- Tree D-Chess E-light blue F(A+C)=>(fz,f0)-->
<!--<link rel="stylesheet" type="text/css" href="Mother1/MotherF.css"/> -->
<link rel="stylesheet" type="text/css" href="Mother/Mother.css"/>
<script>
// Joao : this is your code, only entityGetAll coded for now
var flD = new flDico();
var dataGetAllCallBack= function(e, Custs){
if (e == null){
console.log("datagetAll callbacked got data " +JSON.stringify(Custs));
var oneCust = Custs[0];
oneCust.j['01']='updated!';
flD.dataUpdate({entityCN:"00"}, oneCust, function(e, d){
if (e == null)
console.log("dataUpdate callbacked got data " +JSON.stringify(d));
else
console.log("Error during dataUpdate: " + e);
});
}
else
console.log("Error during dataGetAll : " + e);
};
flD.dataGetAll( {entityCN:"00"}, dataGetAllCallBack);
flD.dataInsert( {entityCN:"00"}, {"01":"New customer","02":"new city","03":"123456"}, function (e, insBack){
if (e == null)
console.log('dataInsert returned ok and : ' + insBack);
else
console.log(e);
})
</script>
</head>
<body class="claro Mother">
</body>
</html>