Dot notation default messing up my formulas

A collection I connected to in Weweb I can’t seem to connect a collection list to because it defaults to dot notation.

For some reason it’s using dot notation on this array.

But for a similar collection in my previous formulas has a different notation.

image

Omg, additionally, it just removed all of my filters when I switched between javascript and formula.

Instead of [Blocks.data], you can try use the default [Blocks]. It might work that way I guess, worked for me once :smiley: Btw, doing object.data and object[‘data’], is the same thing :slight_smile:
Reference:

hmm the dot notation is starting to work…

Oh dude. Welcome to the dark side of learn by experience and not example.

And that glorious back button doesn’t fix it.

Hi @RCS :wave:

@Broberto is correct. Both notations should do the same thing and I’m not sure why two collections display this differently. I’ll ask the tech team on Monday and get back to you asap.

Re lost formulas after switching to “Javascript” and back to “Formulas”, the back button and command (or control) Z should work:
CleanShot 2023-06-17 at 23.39.10

If it doesn’t in your project, could you open a bug ticket here with a GIF or video and a link to your project so we can investigate further?

IMPORTANT: if you’re debugging formulas, make sure to NOT change pages otherwise you won’t be able to revert back to a previous version using the back button or command Z trick

2 Likes

yes but after fiddling I went to another page, which resets the ‘ctrl z’ and didn’t realize that switching removed all the filters. so it lost it all.

Also, the dot notation seems to work, but weweb was processing the data in an odd format and still seems to in some different ways.

Ah yes, I feel your pain :confused:

Just confirmed with the tech team, the dot notation is only a visual update. There should be no change to how the formulas behave. You may still see the old bracket notation on formulas you bound before the update but both should behave the same way.

If you have a formula that doesn’t behave as intended or, like you say, WeWeb seems to be processing the data in an odd format, don’t hesitate to let us know!