As I see, Alfresco has many languages for search. I need to find a documents with NOT NULL ecmcnddoc:doc_name_ru property, how can I do that (any method)?
Thank you!
Have you tried using the "IS NOT NULL" operator? Note, this query is not transactional, so you're effectively running this against the index.
https://docs.alfresco.com/4.2/concepts/intrans-metadata-query.html
Related
Null Exception Error
Designation Repository class
Judging based on limited information provided.
Simply put it means that you are trying to use something that doesn't exist.
Essentially this is returning a null value.
Without better question can't provide further help
I need to validate Python dicts that will have arbitrary names. When I attempt to validate them using Cerberus, I get unknown field. Is there a way of allowing for arbitrary dict names?
I was thinking that keysrules might work, but it appears to only work on items within the base dict.
{'account_created': {'category': 'Accounts',
'conversion_event': True,
'description': 'A new account is created'}
}
I would like to be able to use an arbitrary name where account_created is in this dict.
Assuming you don't need to validate that base key, I just attempted to answer a question similar to this on the Cerberus GitHub. My suggestion was to maybe use a dynamically formed schema. You could follow the GitHub issue thread and see if anyone there comes up with a better answer.
While using Revit API and browsing the "RevitAPI.chm" file (and browsing examples on the internet), I have noticed that some methods exist while not being listed neither in the "RevitAPI.chm" file nor suggested when using RevitPythonShell.
I explain. Let's say for instance that I have a "Space" Object, obtained with
s = FilteredElementCollector(doc).OfClass(SpatialElement).ToElements()
If I do, let's say (assuming s[0] is a valid Space object):
s[0].Geometry
I got an 'indexer object':
<indexer# object at 0x0000000000000049>
But if I do:
s[0].get_Geometry(Options())
Then I got my GeometryElement object. The same behavior goes with get_BoundingBox, for instance.
Now, that's fine, but the only way I could know about these get_something methods is by seeing examples (either on the "RevitAPI.chm", or on forums etc.). So that's kind of strange, isn't it? In the sense that these methods aren't actually listed.
So I guess my questions would be:
Is it the normal behavior? (or should I normally just get a GeometryElement object by using s[0].Geometry, for instance?)
If yes, ... why ? :D
What are these 'indexers' ?
Thanks!
Arnaud.
PS: Using Revit 2017, tests made with RevitPythonShell and pyRevit
The methods prefixed by a lowercase get_ are automatically generated getter methods. The official Revit API provides and documents the BoundingBox property on the Element class. Rather inelegantly, this so-called property takes an argument. Therefore, the C# .NET implementation generates a property getter function for it.
I have started working with Microsoft's NoSQL services on Azure. One thing that came up was the aspect of how to exclude null based values from updating/saving operations. I haven't found anything explicit to how a null based value can be excluded from the JSON serialization if it is null. So if anyone knows how to do this I'd like to know.
Peter
OK; digging the the API I found that the DocumentClient operations are using NetwonSoft. NewonSoft has attributes that can identify if a null value is to be included within the serialization, JsonProperty/NullValueHandling. The intersting thing I found was that in update operations - if a value is not in the JSON results -- the resultant document will have the value removed (if it is there). Not what I was expecting.
when i am trying toupdate data into database i found following error'XQuery update expressions can not be applied to in-memory nodes.'...how to resolve this anyone help me....
I believe the documentation on eXist clearly specifies that update doesn't work on in-memory nodes. It only works on XMLs that are persisted in the database. Here is the link:
http://exist.sourceforge.net/update_ext.html