Following the tutorials I found here (specifically https://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/d037d7a8-d99c-2910-d1a2-8a624b1731a4) I have created a forced URL iView with the Parameter Name = articleURL.
If I set my code to point to an external link it is working fine:
http://http://my_portal:50000/irj/portal?NavigationTarget=ROLES://portal_content/com.myl.mynet_admin/com.myl.sapep.roles/sapep_everyone_role/com.myl.sapep.news/com.myl.sapep.articles&articleURL=http://search.yahoo.com/search?p=SAP
But I'm actually trying to open an xml news form so I am trying to use this:
http://my_portal:50000/irj/portal?NavigationTarget=ROLES://portal_content/com.myl.mynet_admin/com.myl.sapep.roles/sapep_everyone_role/com.myl.sapep.news/com.myl.sapep.articles&articleURL=/irj/servlet/prt/portal/prtroot/com.sap.km.cm.xmlformpreview?XMLFormID=MyNet_News_Archives&show/test=/documents/MyNet%20Broadcasts/MyNews/Archived/003870c0-d61b-2c10-569e-aaa64ee1a233.xml
But I am receiving an error stating
Cannot read item .xml com.sapportals.wcm.repository.InvalidUriException: Invalid RID: .xml at com.sapportals.wcm.repository.InvalidUriException.<init>(InvalidUriException.java:48)
I have also tried adding the http://my_portal:50000 to the articleURL= but have the same issue.
Also If I type http://my_portal:50000/irj/servlet/prt/portal/prtroot/com.sap.km.cm.xmlformpreview?XMLFormID=MyNet_News_Archives&show/test=/documents/MyNet%20Broadcasts/MyNews/Archived/003870c0-d61b-2c10-569e-aaa64ee1a233.xml directly into the browser it displays the news article so I have no idea why this doesn't work.
I will be greatful to ANY ideas and/or suggestons.