close

Authors


Shared Columns in XPages, an example

chatFrank van der Linden   15 August 2012 09:37:05
On StackOverflow there is a question about 'Shared Columns in XPages' by Bruce Stemplewski.
I tried to explain that is possible and in this post I will show how to do this.

Step 1: Create a Custom Control
Image:Shared Columns in XPages, an example
The Source tab of the custom control looks like a viewColumn ;-)
Image:Shared Columns in XPages, an example

Modify and style your viewcolumn to your needs
As you can see I add some language specific column headers and date format to this column. Is not necessary.


Step 2: Create an XPage and insert a Viewpanel.
Image:Shared Columns in XPages, an example

Image:Shared Columns in XPages, an example
and switch to the Source, so you will see the xml code.
Place your cursor were you want your shared column inside the ViewPanel.
Image:Shared Columns in XPages, an example

After that drag your shared column custom control on your Xpage
Image:Shared Columns in XPages, an example

Save the Xpage and preview in a webbrowser or Lotus Notes Client.

Important: the columnname of the ViewColumn should be present in the binded view of the ViewPanel as columns Programmatic Use name, otherwise you will be get an error.
Image:Shared Columns in XPages, an example--> Image:Shared Columns in XPages, an example


Comments
No Comments Found