Showing current record numbers in a list

Hello,

I found some interesting information in this thread:
http://forum.servoy.com/viewtopic.php?p … e0e7bfb752

In it, some advice was given to make a label, turn on the displaysTags checkbox, and type in:
%%recordIndex%% of %%maxRecordIndex%%

All I’m really interested in is the first part of that:
%%recordIndex%%

But, in the list I’m working in, the label simply returns “1” for every record.

In FileMaker, all I needed to do was create a label and type in the characters:
@@

Am I on the right track with %%recordIndex%% or is there a better way to accomplish a simple numbering of the records in a list?

Actually I think I may have uncovered a bug…

I have added the %%recordIndex%% tag to my list form and all records display “1” like I mentioned above. However, when I click on the fifth record, for instance, the first five records now ALL display “5” (the rest in the list still display “1”).

And after this, if I select the third record, the first five records who previously displayed “5” now ALL display “3” (and like before, the rest in the list still display “1”).

This is certainly unexpected behavior. I’m running Servoy Developer 3.5.3-build 516 and Java version 1.5.0_13-119 on Mac OS X Leopard. (maybe this is more Leopard Java buginess?)

Hi Chico

I get the same behaviour (in a list) on:

Servoy Developer
Version 3.5.3-build 516
Java version 1.5.0_13-121 (Mac OS X)

If you put the %%recordIndex%% label for example on the footer part of your list it works as expected. Seems to be a bug. Did you report it in the Servoy Support System?

Regards, Robert

chico:
Actually I think I may have uncovered a bug…

I have added the %%recordIndex%% tag to my list form and all records display “1” like I mentioned above. However, when I click on the fifth record, for instance, the first five records now ALL display “5” (the rest in the list still display “1”).

And after this, if I select the third record, the first five records who previously displayed “5” now ALL display “3” (and like before, the rest in the list still display “1”).

This is certainly unexpected behavior. I’m running Servoy Developer 3.5.3-build 516 and Java version 1.5.0_13-119 on Mac OS X Leopard. (maybe this is more Leopard Java buginess?)

HI Chico

May be %%currentRecordIndex%% is what you are looking for?

See Servoy tags in chapter 5.6.2 in Servoy351DevRefGuide.pdf.

Hope this helps, regards, Robert

chico:
Actually I think I may have uncovered a bug…

I have added the %%recordIndex%% tag to my list form and all records display “1” like I mentioned above. However, when I click on the fifth record, for instance, the first five records now ALL display “5” (the rest in the list still display “1”).

And after this, if I select the third record, the first five records who previously displayed “5” now ALL display “3” (and like before, the rest in the list still display “1”).

This is certainly unexpected behavior. I’m running Servoy Developer 3.5.3-build 516 and Java version 1.5.0_13-119 on Mac OS X Leopard. (maybe this is more Leopard Java buginess?)