cancel
Showing results for 
Search instead for 
Did you mean: 

How to validate RID ?

Former Member
0 Kudos

Hi,

Is it possible to check whether an RID is valid or nor, ie, the corresponding folder actually exists or not?

I am using th following code to get the RID:

String path = "/KM/"+"SAP IMPLEMENTATION PROJECTS/"+project+rs_prop.getString("folder");
RID rid=RID.getRID(path);

In the next line I want to check whether the RID path actually exists before proceeding further. How can this be done? I tried if(rid!=null). But it didnt work.

Please Help.

Thanks,

Das.

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi,,

chk wid this code:



//do init()
wdContext.currentContextElement().setPath("/");


//onaction

	RID pathRID =
							RID.getRID(wdContext.currentContextElement().getPath());

hpe it hlps

Regards

Khushboo

Former Member
0 Kudos

HI Khushboo,

I think you have not understood the requirement. Your reply is not useful in my scenario.

Thanks,

Das.