• View Or Folder Entries links

    By Adam Chorley 1 decade ago

    Hi,

    How do I pass a value to the href property for this control?  I am using labelcolumn and this displays the list of documents in ViewName in the navigator.  My view has a second column which contains a computed URL to the document.

    What is the javascript so that each label in the view has a different href associated with it?

    Basically I want users to add documents into the Notes database and for them to display on an Xpage via navigators.

    Many thanks

    Adam

     

     

     

    • You could use such way

      By Andrejus Chaliapinas 1 decade ago

      For example if your view has 3 columns and 3rd column is UNID with a formula @Text(@DocumentUniqueID), then you could create such outline:

                                     
                                          
                                                                                           var="viewEntry" viewName="AllStatesUNID"
                                                  labelColumn="Name">
                                                                                   var v = viewEntry.getColumnValues();
                                      var docLink = "/Domino_ViewStateForm.xsp?documentId=" + v[2] + "&action=editDocument";
                                      return docLink;}]]>
                                                  

                                              
                                          

                                      

       

      where v[2] will retrieve value from 3rd column of your view. If you have calculated URL yourself as a second column for your view - then you could reference that by v[1] for this code snippet.

      • Thank you,that works great

        By Adam Chorley 1 decade ago

        Thank you for the response.