How to do data paging with LiveCycle Data Services:

sample.mxml:

<?xml version="1.0" encoding="utf-8"?>
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" xmlns="*"
    backgroundGradientColors="[0x000000,0x323232]"
    applicationComplete="ds.fill(items)" viewSourceURL="srcview/index.html">

    <mx:ChannelSet id="channelSet">
        <mx:RTMPChannel id="rtmpChannel" url="rtmp://tourdeflex.adobe.com:2037"/>
    </mx:ChannelSet>

    <mx:DataService id="ds" destination="paged-census" channelSet="{channelSet}" autoSyncEnabled="false"/>
    <mx:ArrayCollection id="items"/>
    <CensusEntry/>
        
    <mx:Text width="100%" color="#FFFFFF">
        <mx:text>The total size of the data set is 500 rows. The page size is set to 100 rows. If you scroll down, you may notice a very slight delay when
        a new page is being fetched.</mx:text>
    </mx:Text>    
    
    <mx:DataGrid dataProvider="{items}" width="100%" height="100%"/>  
    
</mx:Application>

 

data-management-config.xml

<?xml version="1.0" encoding="UTF-8"?>
<service id="data-service"
    class="flex.data.DataService">

    <adapters>
        <adapter-definition id="actionscript" class="flex.data.adapters.ASObjectAdapter"/>
        <adapter-definition id="java-dao" class="flex.data.adapters.JavaAdapter" default="true"/>
    </adapters>

    <default-channels>
        <channel ref="my-rtmp"/>
    </default-channels>

     <destination id="paged-census">
        <properties>
            <source>flex.samples.census.CensusAssembler</source>
            <scope>application</scope>
            <metadata>
                <identity property="id"/>
            </metadata>
            <network>
                <paging enabled="true" pageSize="100"/>
            </network>
        </properties>
    </destination>

	
</service>