Shared Columns in XPages, an example
Frank 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
The Source tab of the custom control looks like a viewColumn ;-)
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.
and switch to the Source, so you will see the xml code.
Place your cursor were you want your shared column inside the ViewPanel.
After that drag your shared column custom control on your Xpage
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.
- Comments [0]
