Child pages
  • Foundset property type

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Section
bordertrue
Column
width15%

Let's say you had in your viewPort (before the incomming changes got applied to it):

No Format
row1
row2
row3
row4
row5
Column
width55%

Then you got these "updates" from the listener (before Servoy 8.4):

Code Block
languagejs
updates: [
  // "newRow1" inserted
  { type: $foundsetTypeConstants.ROWS_INSERTED,
    start: 2, end: 2, removedFromVPEnd: 1 },

  // update row to "newRow2" contents
  { type: $foundsetTypeConstants.ROWS_CHANGED,
    start: 4, end: 4 }
]

that would be equivalent to the following (starting with Servoy 8.4):

Code Block
languagejs
updates: [
  // "newRow1" inserted
  { type: $foundsetTypeConstants.ROWS_INSERTED,
    start: 2, end: 2 },

  // update row to "newRow2" contents
  { type: $foundsetTypeConstants.ROWS_CHANGED,
    start: 4, end: 4 }

  // "row5" slides out of viewport due to
  // the initial insert
  { type: $foundsetTypeConstants.ROWS_DELETED,
    start: 5, end: 5 },
]
Column
width15%

that means that the viewport has changed like this after the first update got applied (< 8.4):

No Format
row1
row2
newRow1
row3
row4
[row5] // ver. 

and for (>=

8.4)

No Format
row1
row2
newRow1
row3
row4
row5
Column
width15%

and like this after the second (and third for >= 8.4) update got applied:

No Format
row1
row2
newRow1
row3
newRow2

...