Clarity

 View Only
  • 1.  External URL with inline attributes

    Posted Mar 09, 2015 05:14 PM

    I thought I'd seen a question similar to this awhile back but I can't find it. I'm trying to create a link to an external URL like http://sharepoint/PR######/SitePages/Home.aspx. I tried to make an Action but that only seems to allow for URLs that are passing attributes in the URL query "page.asp?attribute=value" and so on, whereas I need the attribute as part of the link.I tried creating a calculated attribute to build the URL to see if that magically turned it in to a link on the form pages but even that gave a parse error

    Concat("http://sharepoint/",project_code,"SitePages/Home.aspx")
    

    Outside of a process that would generate the right string and sticking it in to a URL field, which seems like overkill, is there a simpler way to do this?



  • 2.  Re: External URL with inline attributes

    Posted Mar 10, 2015 03:21 AM

    Are you looking for this ?

    Url or Icon link to external document.

    https://communities.ca.com/message/241699766#241699766

     

    NJ



  • 3.  Re: External URL with inline attributes

    Posted Mar 10, 2015 10:02 AM

    Sounds like TIP : How To Put Any Dynamically Generated Value On A Clarity Object is my best bet which I've definitely looked at before. This was just an idea that popped in my head so not super high on the list, but will report back if I do end up implementing.



  • 4.  Re: External URL with inline attributes

    Posted Mar 10, 2015 10:33 AM

    There is the "URL redirection" portlet as well - allowing us to hyperlink to "any" URL from within a Clarity (NSQL based) portlet

     

    (This is the original discussion around that Re: URL Redirect to a Clarity Page )



  • 5.  Re: External URL with inline attributes

    Posted Mar 30, 2015 09:33 AM

    Just circled back to this, found that you can place ":blank" in the Argument field to get it to only add the Value to the URL, so that part is working fine.

     

    Follow up question, is there any way to make the link open in a new tab instead of a new window?



  • 6.  Re: External URL with inline attributes

    Posted Mar 30, 2015 09:37 AM

    ^ thats usually a browser setting rather than in the application?



  • 7.  Re: External URL with inline attributes

    Posted Mar 30, 2015 09:44 AM

    Yeah, I thought there was some JS trick with the window() function to choose tab if available, but quick googling proves that doesn't seem to be the case.



  • 8.  Re: External URL with inline attributes

    Broadcom Employee
    Posted Mar 31, 2015 02:54 AM

    The JS window.open(test, '_blank') should open your URL in a new tab if you are using HTML portlet to redirect.

    Here test will be your attribute you define in the script containing the url to be redirected.