Suppose I have a NotesDocument with a property named "someJSONObject" with the following value:
"{
"someObject":
{
"objId": "someId"
"Object_Name": "objName",
"Alternative_Name" : "altName",
"Alias_Name" : "alias"
}
}"
My question is how I can get "objId" property to use it in Notes View in such a way, so I would be able to use this as a seach criteria. There are only "Simple Function", "Field", "Formula" available. How can I write it there, instead of writing duplicate field just for sorting purposes?
Here are some lines to do it with formula: First split the values into an array with @Explode, then find the line / lines with "objID" and get the values from them. This code even works, if there are multiple objID- Tags in JSON.
Just one remark: After saving the curly brackets will be replaced by " and all " inside them will be masked with "\".
This code:
@Right( _objIDString ; {"} )will then look like this@Right( _objIDString ; "\"" )This is done for downwards compatibility as older versions of notes don't understand the curly brackets.