Hello World!
I seem to have encountered a very peculiar bug while developing in Servoy. First things first:
Version: 2024.3.5.3948_LTS
Now let me describe the thing.
My context:
I have Form_0 → holds a datagrid, a custom div and a component of my own (a text component, which probably has zero interaction with the other elements, or interest for the rest of the story)
Form_1 extends Form_0 → it also holds a few more things like some more divs and buttons…
Form_2 extends Form_1 → and is actually the one I use.
Story/Steps to reproduce:
My coworker and I, the other day, wanted to verify the differences between labels and datalabels, so we added one from its palette in a random form, which happened to be Form_1. We then cleaned it up. Nothing was really modified: we took the label, placed it, tested it for 30 seconds, and removed it. Yet later, during synchronization, Form_1 appeared in the list of updates. I thought it was normal—a false modification poorly registered—but there was actually a difference.
It seems that—and I was able to recreate the bug under the exact same conditions—when dropping a datalabel and selecting a dataprovider in the designer, it adds a Layout property to my datagrid (with anchors, location, etc.).
Remarks:
I was not getting the same result when performing the task on Form_0…
The Layout properties are then inherited correctly by Form_2.
Project clean, whatever this thing may do, does not remove the property once the dataLabel is removed from the form. You have to remove it manually in the form file opened in a text editor (and have the datalabel gone).
Final word:
So if someone understands what happens, I’d be happy to hear it. It does seem like it could be a source of bugs if untreated…
Also, note that I have not tested it with any other component.
Have a nice day!