• Navigator opening link in new window using dominoViewEntriestreeNode

    By L Buitenhuis 1 decade ago

    Hi All,

    I am using the Navigator control with a dominoViewEntriesTreeNode to retrieve the href value from a view entry

    this is the code I use for the URL reference:

    var val = vwNavEntry.getColumnValues();
    return val[2];

    I would like to open the url in a new window which requires me to have the URL Reference (href) to be empty and add a window.open(URL, windowname) to the onClick event for the node.

    How can I retrieve the URL for the entries??

    thanks,
    Lucien

    • Re: Will have to explore JSON-RPC...

      By L Buitenhuis 1 decade ago

      I finally had some time to search more on the internet and found it will have to be something using JSON-RPC in the extlib.

      What? I have no clue yet but I will start experimenting.

      Any help is still welcome!

    • Calculate on click

      By Philippe Riand 1 decade ago

      This is pure XPages. You can evaluate server side script when the onclick property is generated, like in:

          window.open('#{javascript:<>}');

      the #{...} code will be computed and its result will be inserted instead of the formula

      • thanx!

        By L Buitenhuis 1 decade ago

        Thank you Philippe!

      • How about SSJS?

        By Steve Cochrane 1 decade ago

        Hello!



        I tried using SSJS within CSJS, using your "#{javascript}" trick, but I'm wondering if I would be able to

        do @DbLookups or other SSJS type functions within CSJS. I tried and couldn't get it to work.



        All I am doing is getting a handle on a URL in a profile document, and want to show it in a

        BasicLeafNode in the BannerUtilityLinks to open in it's own window. In traditional Notes/Domino, this

        was ridiculously easy, but I've spent the better part of two days (and lots of research) to try to get this to

        work!



        Thanks!



        Steve in NYC