How to access a global relation when only knowing its name

Hello,

I have the name of a global relation and want to get access to its records. How can I write this? With a “normal” relation I could do

forms.aForm[relationName].getRecord(1)

but how to do that with a global relation?

I have tried globals[relationName].getRecord(1), but that doesn’t work. Somehow I can’t get the scope…

Thanks for a hint
Patrick

just like you would do with a normal foundset so you can take any form and get it.

Maybe through globals would also be logical but relations are pretty much accessible from everywhere. They are not in the global scope currently.

hmm. Somehow I must have had a temporary blackout. I am using global relations all over the place. But thanks for your help :oops: