Before row not fired for an empty DISPLAY ARRAY.

Started by David H., November 08, 2010, 01:36:05 PM

Previous topic - Next topic

David H.

Comparing v2.11.02 to v2.21.10 we have noticed a change in behaviour with DISPLAY ARRAY when there are no rows to display. i.e:-

Code (genero) Select

    #assuming desc_arr is empty...
    DISPLAY ARRAY desc_arr TO smenu_arr.*
        BEFORE DISPLAY
            DISPLAY "Before Display"
        BEFORE ROW
            DISPLAY "Before Row"
        AFTER ROW
            DISPLAY "After Row"
        ON KEY (F10)
            EXIT DISPLAY
    END DISPLAY


With v2.11.02

Before Display
Before Row

With v2.21.10

Before Display

I don't see this mentioned in the 2.2x migration guide, so again I'm wondering if its a bug or a change in behaviour?

TIA.

David


Reuben B.

Hi David,

That is 10466 https://4js.com/en/support/issue/?id=10466

Also I'm linking to our issue tracker, that has a search facilitity so plug in some keywords and you can normally find out fairly quickly if there are any public issues with particular syntax ...

https://4js.com/en/support/issue/?id=&product=FGL&stat=&fixed_in=&words=BEFORE+ROW&Search=Search

Reuben
Product Consultant (Asia Pacific)
Developer Relations Manager (Worldwide)
Author of https://4js.com/ask-reuben
Contributor to https://github.com/FourjsGenero

David H.

Thanks Reuben.

I did actually try a forum search before posting but completely forgot about your issue tracker. Next time hopefully!

Cheers,

David