i’m pretty new to Cuba.platform. I’ve created a combined Browser and Edit Web Module. Then i’ve written some logic under the internalOpenEditor method, to fill the Read-Only ID field with a given Number. For Example MPF000015.
I’m using UniqueNumbersService for ID generation, then i’m adding some leading zeros, and a fixed prefix.
This works completely fine. I just want to know from you guys, is this the correct location to implement such “String ID logic”?
I thought about implementing this small String logic in a seperate class, so i can use it in different parts of my application and it’s not only implemented in this exact web module.
can you please give me some advise, how i can solve this the best way.