• Missing something ....

    By Lars Koenig 1 decade ago

    Hi,



    sorry but i can't get the tree view to work in my application.

    I know that i am missing something, but i simply can't find out what. :-(



    1) I am testing on a Domino 8.5.1 server. The provided demo-database works fine !

    2) Into my custom db i have copied the following design elements:

    • Custom Control "ccTree"
    • Library "Tree"
    • (and even the form "Contacts, view "Contacts" and xPage "Tree" for testing purposes)



      3) If i open the xPage "Tree" then the follwing error is displayed: Error while executing JavaScript computed expression

      Script interpreter error, line=24, col=76: Reference error: 'com' not found



      4) I know that i am missing something, because i see that the java-script library references somehow the java-code provided in the external files. But where should i place these ???



      The documentation says:

      Switch to “Package Explorer” View and copy the content in 'src' folder into your

      application's project source folder(e.g. 'Local' folder as default), then rebuild the project.



      What "Package Explorer" View ?

      Isn't this in Ecplipse ?

      I have looked at all design elememtns in the demo database and could not find any mention of the java-files. And yes it does work ?



      Sorry but i am a Notes-Developer. No experience with Java or Eclipse.



      Thanks for any help.



      __



      Added later:



      Never mind. Found the solution. In case that somebody needs it then in the documentation it says:



      "2, Switch to “Package Explorer” View and copy the content in 'src' folder into your

      application's project source folder(e.g. 'Local' folder as default), then rebuild the project."


    • To do this open the database in the designer.
    • Click "Window\Open Perspective\Other" and then select "Java"
    • Now look in the tree-view under your db for the entry "Local"
    • Right click it and select "Import\General\File System"
    • select the "src" directory containg the java-files and import them



      … and then it works :-)
    • Get value from Tree View

      By Kjell T Dirdal 1 decade ago

      I, how do I get the value from jsonStore into a textfield in Xpage?