telman@telman:~$ uname -a
Linux telman 3.8.0-26-generic #38-Ubuntu SMP Mon Jun 17 21:43:33 UTC 2013 x86_64 x86_64 x86_64 GNU/Linux
telman@telman:~$ locale
LANG=en_US.UTF-8
LANGUAGE=
LC_CTYPE="en_US.UTF-8"
LC_NUMERIC=tr_TR.UTF-8
LC_TIME=tr_TR.UTF-8
LC_COLLATE="en_US.UTF-8"
LC_MONETARY=tr_TR.UTF-8
LC_MESSAGES="en_US.UTF-8"
LC_PAPER=tr_TR.UTF-8
LC_NAME=tr_TR.UTF-8
LC_ADDRESS=tr_TR.UTF-8
LC_TELEPHONE=tr_TR.UTF-8
LC_MEASUREMENT=tr_TR.UTF-8
LC_IDENTIFICATION=tr_TR.UTF-8
LC_ALL=
telman@telman:~$ mongo uysdb
MongoDB shell version: 2.4.5
connecting to: uysdb
>
db.dataBankCalculateFormulas.update(
{"name" : "A.А=A.I+A.II"}
,
{$set:{
"active" : true,
"converter" : "MoneyConverter",
"droolsMeasureKey" : "solo",
"droolsRuleCoordinate" :
{"xCode" : "A.А","yCode" : "solo"}
,
"droolsVertical" : [
"+",
{"valueKey":"solo", "xCode":"A.I", "yCode":"solo"}
,
"+",
{"valueKey":"solo", "xCode":"A.II", "yCode":"solo"}
],
"forms" : "calculateFormulas",
"relations" : "H1",
"style" : "background-color : #98FB98 ; text-align : right;",
"validPeriods" : [200306]
}},
{upsert:true}
);
db.dataBankCalculateFormulas.findOne(
{"name" : "A.А=A.I+A.II"}
)
{
"_id" : ObjectId("51f219b9cfd52b4d2be30f1c"),
"active" : true,
"converter" : "MoneyConverter",
"droolsMeasureKey" : "solo",
"droolsRuleCoordinate" :
{
"xCode" : "A.А",
"yCode" : "solo"
}
,
"droolsVertical" : [
"+",
{
"valueKey" : "solo",
"xCode" : "A.I",
"yCode" : "solo"
}
,
"+",
{
"valueKey" : "solo",
"xCode" : "A.II",
"yCode" : "solo"
}
],
"forms" : "calculateFormulas",
"name" : "A.А=A.I+A.II",
"relations" : "H1",
"style" : "background-color : #98FB98 ; text-align : right;",
"validPeriods" : [
200306
]
}
//type A.A= by using keybord
db.dataBankCalculateFormulas.findOne(
{"name" : /A.A=/}
)
null
//copy/paste A.A= from above findOne search result
db.dataBankCalculateFormulas.findOne(
{"name" : /A.A=/}
)
it is o now
{
"_id" : ObjectId("51f219b9cfd52b4d2be30f1c"),
"active" : true,
"converter" : "MoneyConverter",
"droolsMeasureKey" : "solo",
"droolsRuleCoordinate" :
{
"xCode" : "A.А",
"yCode" : "solo"
}
,
...
...