Viewing 8 replies - 1 through 8 (of 8 total)
  • Plugin Author Michael Simpson

    (@msimpson)

    [cfdb-table] can show you all the submissions in a table. [cfdb-count] can show you the could of them. But I don’t understand how you can have a table of the count.

    Thread Starter lamomo

    (@lamomo)

    Thank you Michael!
    I don’t have a table of the count, I need a simple column with the number of each row…I don’t know if I explained it right even if it is a very simple request…

    Plugin Author Michael Simpson

    (@msimpson)

    I just pushed an update that can help. Version 2.10.10.
    https://cfdbplugin.com/?page_id=1167#AddRowNumberField

    bcghent

    (@bcghent)

    Hi,

    I tried your explanation on row numbers, but it shows the row number from the DB.
    However I have a multiple tables based on a filter and I want the numbering of each table starts with 1.
    Now the first row on table 1 shows row number 3, because it was the third entry, the first row on table 2 show row number 148, …

    Plugin Author Michael Simpson

    (@msimpson)

    The AddRowNumberField transform just numbers the rows. It doesn’t know about any order in the DB.

    bcghent

    (@bcghent)

    Michael,

    Hereby my shortcode :

    [cfdb-table form=”Inschrijving Internationaal Toernooi GBC-GDR” show=”#,Naam – Nom,Voornaam – Prénom,Federatienummer – Numéro de Fédération” filter=”Shift=Shift 1 – dinsdag/mardi 14/02/2017 – 20.00 uur” trans=”AddRowNumberField(#,1)”]

    And this is the result :
    https://bcghent.be/test-cfdb/

    The row number is the row number in the Contact form DB – it doesn’t renumber my table after filtering

    Plugin Author Michael Simpson

    (@msimpson)

    Try this: change “filter” to “tfilter” in your shortcode. That makes the filter happen before the transform that adds the numbers.

    bcghent

    (@bcghent)

    Hi Michael,

    Thanks, this was the solution.

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘Add column with number of submissions’ is closed to new replies.