Skip to main content link. Accesskey S
  • Anonymous
  • Log on
  • Help
  • IBM logo
  • Lotus Notes and Domino Application Development wiki
  • All Wikis
  • Home
  • Community Articles
  • Product Documentation
  • Learning Center


Search

Advanced Search
 What is new in Domino Designer 8.5.3 Upgrade Pack 1
 Domino Designer Tutorial
 Domino Designer XPages Extension Library
 Domino Data Service

Tag Cloud

  • 6.0
  • 6.5
  • 8.0
  • 8.5
  • 8.5.1
  • 8.5.2
  • 8.5.3
  • action bar
  • Agents
  • Ajax
  • app dev
  • Application
  • beginner
  • C&S
  • calendaring and scheduling
  • client
  • composite applications
  • Controls
  • converters
  • css
  • Custom controls
  • Data Binding
  • db2
  • design elements
  • dialog boxes
  • Documents
  • Dojo
  • Domino
  • Domino Designer
  • Domino Designer 8.5
  • DXL
  • Eclipse
  • error handling
  • errors
  • extensions
  • FAQ
  • Forms
  • formulas
  • getting started
  • globalization
  • Help
  • html
  • Installation
  • interface
  • internationalization
  • iPhone
  • Java
  • JavaScript
  • localization
  • Lotus Domino Designer
  • LotusScript
  • LotusSphere
  • LotusTechInfo
  • menu bar
  • Mobile
  • new user
  • Notes
  • Notes 8
  • notes.ini
  • NSD
  • OpenNTF
  • partial update
  • performance
  • Pickers
  • Portal
  • presentations
  • programming
  • Redbooks
  • Requested Articles
  • roadmap
  • rooms and resources
  • samples
  • Scripting
  • security
  • tabs
  • templates
  • themes
  • Tips
  • toolbar
  • troubleshooting
  • tutorials
  • validation
  • variables
  • video
  • VideoFest
  • View
  • view control
  • ViewPanel
  • Views
  • web
  • Web apps
  • Web services
  • webdev
  • XML
  • Xpage
  • XPages
  • XPages Extensibility API
  • xsp-config
  • データソース
  • 九州地区ノーツパートナー会
InformationInformation
You are currently viewing machine translated content. IBM translation might be available. Click IBM Translated Product Documentation to see what is available.X


Home > Domino Designer XPages Extension Library > Add Rows (Simple actions - JavaScript)
Rate this article 1 starRate this article 2 starsRate this article 3 starsRate this article 4 starsRate this article 5 stars
(Current editable edition)
Original noneditable edition
Current editable edition
(Original noneditable edition)

Add Rows (Simple actions - JavaScript) 

expanded Abstract
collapsed Abstract
Dynamically adds rows to a data iterator.



Dynamically adds rows to a data iterator.

Defined in

Extension Library

Type of simple action

Basic (Server)

Syntax

<xe:addRows rowCount="number" for="id" disableId="id" state="true|false" loaded="true|false"></xe:addRows>


Table 1. Attributes
AttributeDescription
disableId="id"Identifies a control that is hidden if the iterator has no more rows. Typically this is the control that activates this action.
for="id"Identifies the iterator control. If this simple action is nested in a repeating control, that control is the default.
loaded="true|false"Creates a tag instance when the control is loaded, or not. Defaults to true.
rowCount="number"Number of rows to add. Defaults to the number of rows displayed on each page of the iterator.
state="true|false"If the server state should be saved after getting the AJAX request.


Examples

Here a button at the bottom of a data table adds three rows per click.

<xp:dataTable id="dataTable1" rows="10" value="#{javascript:return database.getAllDocuments()}" var="rowdoc">
	<xp:column id="column1">
		<xp:this.facets>
			<xp:label value="subject" id="label1" xp:key="header" style="font-weight:bold"></xp:label>
		</xp:this.facets>
		<xp:text escape="true" id="computedField1">
			<xp:this.value>
				<! [CDATA [#{javascript:return rowdoc.getItemValueString("subject")}]]>
			</xp:this.value>
		</xp:text>
	</xp:column>
</xp:dataTable>
 
<xp:button value="Add 3 rows" id="button1">
	<xp:eventHandler event="onclick" submit="false">
		<xp:this.script>
			<xe:addRows rowCount="3" for="dataTable1" disableId="button1" state="true"></xe:addRows>
		</xp:this.script>
	</xp:eventHandler>
</xp:button>


Parent topic: Simple actions reference

expanded Article information
collapsed Article information
Category:
Domino Designer XPages Extension Library, Product Documentation,
Tags:
Add Rows

This Version: Version 1 March 16, 2012 3:36:52 PM by IBM  IBMer

expanded Attachments (0)
collapsed Attachments (0)

 


expanded Versions (1)
collapsed Versions (1)
Version Comparison     
Version Date Changed by               Summary of changes
This version (1) Mar 16, 2012 3:36:52 PM IBM  
expanded Comments (0)
collapsed Comments (0)
Copy and paste this wiki markup to link to this article from another article in this wiki.
Go ElsewhereStay ConnectedSubscribe to RSSHelpAbout
  • All Lotus and WebSphere Portal wikis
  • IBM developerWorks
  • IBM Software support
  • IBM Social Business User Experience Blog
  • IBMSocialBizUX on Twitter
  • IBMSocialBizUX on Facebook
  • Lotus product forums
  • IBM Social Business UX blog
  • IBM Collaboration Solutions
  • Recently added feedRecently added
  • Recently edited feedRecently edited
  • Recently added comments feedRecently Added Comments
  • Wiki Help
  • Forgot user name/password
  • Wiki design feedback
  • Content feedback
  • About the wiki
  • About IBM
  • Privacy
  • Contact IBM
  • IBM Terms of use
  • Wiki terms of use