cancel
Showing results for 
Search instead for 
Did you mean: 

Spaces in Path

anshul
Champ in-the-making
Champ in-the-making
Hi
I have created a folder in "Company Home" with a name "SampleFolder".
I Can access this folder with the following command.

ParentReference companyHomeParent = new ParentReference(storeRef, null, "/app:company_home/cmSmiley FrustratedampleFolder", Constants.ASSOC_CONTAINS, null);

But when I rename the folder "SampleFolder" to "Sample Folder" and put a space in between, I cannot access this folder,

ParentReference companyHomeParent = new ParentReference(storeRef, null, "/app:company_home/cmSmiley Frustratedample Folder", Constants.ASSOC_CONTAINS, null);

Is there any special way to access folder which contains spaces.

Thanks
Anshul
3 REPLIES 3

_sax
Champ in-the-making
Champ in-the-making
Does an underlined Sample_folder work? Or how about an %20 instead of the space?

anshul
Champ in-the-making
Champ in-the-making
I got the solution. Have to use ISO9075 utility Class

anshul
Champ in-the-making
Champ in-the-making
hi
one can also do in this way
let folder be "sample folder"
to include spaces in path u can do this
/app:company_home/cm:sample_x0020_folder

where _x0020_ is for space