• Anonymous
  • Login
  • Register
Tree XPage Control



Tree Xpage Control version 1.0.4 contains the following new features :
This project contains a reusable XPage control to display data from a Notes view graphically in a Dojo based tree control.
 
 
- display Tree leafs as styleable html hyperlinks 
- display multiple Trees on one Xpage.
- changed propertienames so it's easier to understand. 
 
 
Goto the Project tab of OpenNTF to see a live version! 
 
 
 
 The new control properties are :
 

Property name

Type

Default

Description

Sample value

TreeNr

String

“1”

Specify number of trees you use on one xpage

“1” or “2”

Server

String

“”

The server where the target view's db locates, empty(default) means the session's server.

“127.0.0.1”

DbFullpath

String

“”

The path of the target view's db on the server, empty(default) means current db.

“treeDemo.nsf”

ViewName

String

 

The target view's name.

“All Contacts”

view_CategoryFilter

String

“”

Filter on the first category in the view.

“Company Contacts”

doc_TitleFieldName

String

 

Field name of document  shown on the tree's leaf nodes.

“doc_Field1”

doc_TitleEnableHTML

Bool

True

If true, leaf nodes will be rendered as html

 True or False

doc_TitleHrefTitle_ColNr

String

 

“”

The view colum number that is used to link to. This column includes the full

 

“3”

doc_TitleHrefLink_ColNr

String

 

“”

The view colum number includes the actual link to the document, not including html. Specify when doc_TitleEnableHTML = true

“4”

doc_IconColumnNr

String

 

 

The view colum number includes the name of the icon.

 

“5”

doc_OnClickEvent

String

“”

The script(JavaScript) to be run when clicking the tree's leaf nodes. Specify when doc_TitleEnableHTML = false

var value = jsonStore.getValue(item, "title");

alert(value);

 
Zhi Lei Yang, Yong Hua Zhan, Shi Jia Zhang, Xin Rang Wang, Zhi Bo Zuo, Chao CD Dong and Lin Tang are the developers. Niklas Heidloff only the committer.