Skip to Content
avatar image
Former Member

How to read resource having slash("/").

Hi,

I am reading all the collections inside <b>/documents</b>..

One of my collection structure is like <b>AA/BB</b>.. mean this folder contain slash("/")..

While reading this resource I am getting error.. since RID of this look like <b>/documents/AA/BB</b>..thats why its looking AA and BB seperately but actually its one resource only.

Any anybody help me to overcome this problem and suggest how can I read AA/BB.

Regards,

Vikas

Add comment
10|10000 characters needed characters exceeded

  • Follow
  • Get RSS Feed

2 Answers

  • Best Answer
    avatar image
    Former Member
    Oct 09, 2007 at 04:26 PM

    If you see the id of the collection AA/BB would be AA_BB. So when you are trying to read content from KM with special reserved characters, you should note that it would be converted to something else.

    Try reading the collection as AA_BB and it will work.

    Pradeep.

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member Former Member

      Hi Julian,

      Thanks for the suggestion!!!

      Could you please let me know .. how would I use this encode/decode.

      I hv imported com.sapportals.wcm.util.uri.URICodec and calling Encode or Decode method with URICodec class.

      but while calling these am getting

      com.sap.engine.frame.core.load.SAPClassNotFoundException

      exception.

      Actually I have to encode this URL http://server:50100/irj/servlet/prt/portal/prtroot/pcd!3aportal_content!2fevery_user!2fgeneral!2feu_role!2fcom.sap.km.home_ws!2fcom.sap.km.hidden!2fcom.sap.km.urlaccess!2fcom.sap.km.basicsearch?SearchType=quick&SelectedSearchIn=FROM_HERE&SelectedSearchFolder=/documents/de/2&%_1été&SelectedSearchFromHere=/documents/de/2&%_1été&StartUri=/documents/de/2&^%_1été&rndLayoutSet=nv_ndemand_faq_SearchResultLayoutSet&EnableFurtherSearch=False&QueryString=*

      but cause of special char

      2&^%_1été

      in it, am not able to set in IFRAME.

      Thanks,

      Vikas

  • avatar image
    Former Member
    Oct 09, 2007 at 01:55 PM

    That's an invalid name in KM. You simply can't do that.

    Where does it come from?

    Best regards, Julian

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member Former Member

      You shouldn't be able to create names like this.

      Maybe you are mixing up the resource identifier (RID) and the displayname property (as displayed in the UI)?