What Would It Take To Sort By A Calculated Value In Bubble?

I am using a combination of these 2 plugins:

Quick summary (I can provide a more exhaustive explanation if there is interest and when I have bit more time available):
In addition to the main RG on the page, I have a second hidden RG.
The main RG has the primary data type for its source, while the hidden RG has the related type.

Within the first plugin is the “RG Extractor”. I use this to get the related data out of the hidden RG.
Within the second plugin is “Transform Lists”. I use this to stipulate the sort order.
Then in my main visible RG, there is a condition (actually multiple) to activate the related sorting based on user selection. Took a little while to get working, but thanks to some wonderful support from @gaurav it works perfectly and super quick too.

1 Like

This is great news.

But just to confirm before I dive into this, this setup will also work to sort calculated values (values not stored in the database) inside of the primary repeating group??

Those 2 methods you mentioned are the only ones I know of, and I’ve used both of them. Would be interested to know of any others.

Sorry, I really don’t know the answer to this. I’m not that optimistic, because the solution relies on the RG extractor which gets existing data already in the related type.

OK so it doesn’t seem to be possible as the values are calculated in the RG and displayed to the user… Damn.

I’d love any way to sort a calculated value on-screen from lowest to highest.

1 Like

@JustinC Actually, it might work…

Here is a screen shot of the RG Extractor element and I updated the last column to be a calculation.

Here is a screen shot of the RG data element which gets the data from the RG extractor. It looks like it will take the calculated field.

2 Likes

Awesome, thanks for the help on this @SerPounce!

Will start playing around!

1 Like

Just posted this that might be helpful :smiley: :

5 Likes

Thanks a lot @eric1.

I can now sort per the nearest physical addresses. :handshake:

This topic was automatically closed after 70 days. New replies are no longer allowed.