go to  ForumEasy.com   
LdapPro
Home » Archive » Message


[Email To Friend][View in Live Context][prev topic « prev post | next post » next topic]
  VLV Control Code Example
 
Subject: VLV Control Code Example
Author: SteveHB
In response to: Client-Server Interaction
Posted on: 04/14/2009 06:39:58 PM

A code example to demonstrate how VLV Control works against SunOne and AD is given in the following link:


http://www.forumeasy.com/forums/thread.jsp?tid=123930528133&fid=ldapprof2&highlight=Virtual+List+View+(VLV)+Control+Code+Example


 

> On 04/07/2009 09:33:52 PM SteveHB wrote:


Server Side: 78564 entries

Client Side: a view screen of 20 entries


[Action #1: client wants to show the beginning of the list


Client:                            Server:            

          _offset: 1
    _contentCount: 0      --> 
     _beforeCount: 0
      _afterCount: 19
                                      
                          <==         _contentCount: 78564
                                    _targetPosition: 1
                                 (with 20 entries returned)



Action #2: client drags the scroll bar down to the bottom of the list


Client:                            Server:            

          _offset: 78564
    _contentCount: 78564  --> 
     _beforeCount: 19
      _afterCount: 0
                                      
                          <==         _contentCount: 78564
                                    _targetPosition: 78564
                                 (with 20 entries returned)



Action #3: client presses a page up key


Client:                            Server:            

          _offset: 78564-19-20
    _contentCount: 78564  --> 
     _beforeCount: 0
      _afterCount: 19
                                      
                          <==         _contentCount: 78564
                                    _targetPosition: 78525
                                 (with 20 entries returned)



[Action #4: client drags the scroll bar slider 68% of list


Client:                            Server:            

          _offset: 53424
    _contentCount: 78564  --> 
     _beforeCount: 9
      _afterCount: 10
                                      
                          <==         _contentCount: 78564
                                    _targetPosition: 53424
                                 (with 20 entries returned)



Action #5: client types XYZ to browse the list starting from XYZ


Client:                            Server:            

greaterThanOrEqual: XYZ  
      _beforeCount: 0     -->
       _afterCount: 19
                                      
                          <==         _contentCount: 78564
                                    _targetPosition: 77777
                                 (with 20 entries returned)





References:

 


 
Powered by ForumEasy © 2002-2022, All Rights Reserved. | Privacy Policy | Terms of Use
 
Get your own forum today. It's easy and free.