cancel
Showing results for 
Search instead for 
Did you mean: 

Path query issue

santosh
Champ in-the-making
Champ in-the-making
Hi,

I am using path query to get the nodes.
I am creatinf nested folders like
/folder1/folder2/document1

i.e folder1 conatins folder2 and folder2 constains document1

The query I am using is
PATH:"/cm:folder1/cm:folder2/cm:document1"

This query works fine and I get the content node for document1

I change the name of folder1 to changedfolder using following code
namedValues = new NamedValue[] {new NamedValue(Constants.PROP_NAME, newName)};
CMLUpdate update = new CMLUpdate(namedValues, getPredicate(new String[] {folderId}), null);
CML cml = new CML();
cml.setUpdate(new CMLUpdate[]{update});



Now the name of the node is changed properly.
If I try to acces the nodes using their node id it works fine.
But if I use the same query with the modified name it fails

PATH:"/cm:changedfolder/cm:folder2/cm:document1"


Is there some other way to change the name of the node?
If this is the proper way to change the node name then querying the node doesn't work properly.

Thanks,

Santosh Prabhu
1 REPLY 1

andy
Champ on-the-rise
Champ on-the-rise
Hi

The path uses the association QNAME to the node, not the name property.

The FileFolderService keeps these in sync.
The web service version of this is not available yet.

You could keep the two in sync yourself.

Regards

Andy
Getting started

Tags


Find what you came for

We want to make your experience in Hyland Connect as valuable as possible, so we put together some helpful links.