How to use cref links redirect to external content ?
来源:互联网 发布:oracle数据库设计工具 编辑:程序博客网 时间:2024/06/06 20:58
1 Creat Iscript function,you can take advantage the follow code.
Declare Function SpecifyPortalOpen PeopleCode FUNCLIB_PTPP.PTPP_PORTALR FieldFormula;Function IScript_ContentRedirect() Local ApiObject &portal; Local ApiObject &cref; Local string &url = ""; Local string &portalName = %Request.GetParameter("PORTAL"); Local string &crefName = %Request.GetParameter("CREF"); &portal = SpecifyPortalOpen(&portalName); &cref = &portal.FindCREFByName(&crefName); If (&cref <> Null) Then If (&cref.Authorized) Then &url = &cref.AbsoluteContentURL; End-If; End-If; %Response.RedirectURL(&url);End-Function;
2 Create a new CREF for the iScript. In the additional parameters section of the CREF, addPORTAL=EMPLOYEE&CREF=YOUR_CREF_NAME
3 Create a CREF for your external URL
4Update the new iScript CREF's security to match the external content CREF's security.
0 0
- How to use cref links redirect to external content ?
- How to use an external dll file in VisualStudio project
- PictureEdit - How to display external images by providing links for them
- How to redirect Sysout.out?
- How to Redirect a URL
- How To Use DataGird
- how to use typedef
- how to use gz
- How to use chkconfig
- How to use ,,,,
- how to use dialog
- How to use UIDs
- How to use dmalloc
- How to use abld
- How to use BSTR
- How to use Ant
- how to use mstsclib
- how to use gcc
- VM中不同ClassLoader权限的限制
- enum可以没有枚举名
- 对文章的整理
- scrapy 之一
- 【DP_背包专辑】【10.14最新更新】
- How to use cref links redirect to external content ?
- 如何从搭建有GIT服务的服务器上下载代码?
- scrapy 之二
- CC_SAFE_RELEASE_NULL 没有初始化的坑
- 黑马程序员--Map集合、集合框架工具类
- Decode Ways
- 新葡京娱乐场曝切尔西续约阿扎尔 周薪20万 -体育娱乐城
- Devpress Gridcontrol中动态绑定数据库后如何设置列名
- scrapy 之三