SELECT A.PORTAL_NAME , A.PORTAL_OBJNAME , A.PORTAL_SECTYPE FROM %Table(PSPRSM_SRCH_VW) A WHERE (A.PORTAL_SECTYPE <> '2' ) UNION SELECT C.PORTAL_NAME , C.PORTAL_OBJNAME , %TrimSubstr(C.PORTAL_PERMTYPE,1,30) %Concat ':' %Concat C.PORTAL_PERMNAME FROM (%Table(PSPRSM_SRCH_VW) B LEFT OUTER JOIN %Table(PSPRSMPERM) C ON B.PORTAL_NAME = C.PORTAL_NAME AND B.PORTAL_REFTYPE = C.PORTAL_REFTYPE AND B.PORTAL_OBJNAME = C.PORTAL_OBJNAME) UNION SELECT D.PORTAL_NAME , D.PORTAL_OBJNAME , 'S:Admin' FROM %Table(PSPRSM_SRCH_VW) D
|