Create label stickers with bubble

Hi everyone,

I’m building a tool to help me manage my customer orders efficiently. One feature allows me to print the ordered products on a sheet of stickers. I’ve set up a Repeating Group (RG) with the exact measurements of the sticker labels, and that part works well.

Since sticker sheets are quite expensive, I want to reuse partially used sheets. For example, if the first three stickers have already been used, I want to select “Start Position: 4” from a dropdown, so the first three positions are just placeholders and the printing starts at position 4. Can I assemble a custom state list with placeholders and real list items, or should I create a new data type, or …

Does anyone have ideas on how to implement this efficiently? Looking forward to your suggestions!

Cheers!

Hey @meinnameisthase :waving_hand:

That sounds interesting. Not sure how you have your setup, but you might be able to do something with states. Maybe click on the value in the repeating group and save it to a state list. If it is in the state list, hide the label. I wouldn’t create a new dataType for it. Probably using states would be enough. Does that help guide you in the right direction? If not, maybe show some screenshots so we know what you are trying to do. :blush:

Also not sure how you have it set up if it will work on mobile or not. :man_shrugging:

You can put an input box set to Integer. Then inside the RG cell put a condition so the group within the cell is hidden when the Current cell’s index is less than the input box’s value

I guess that does not help as I want the first item of the product list to be shown at eg position 4. If I understood correctly, your solution would just hide the First three list items.

Oh okay add some filler items in your database (a yes/no field that it is a filler item) Then your RG source will be Search for Labels (filler = yes) until item # Input’s value - 1 :merged with [your original datasource].

So the filler items come first then your actual labels

You can try something like this. There might be a better way but I don’t have time to optimize it at the moment. Check it out:

Editor: Forum Test App | Bubble Editor

Preview: https://testapp42wcleandb.bubbleapps.io/version-test/create_label_stickers_with_bubble?debug_mode=true

Hope that helps. :blush:

Hey, thanks for this! I do understand the logic and I assume it will work. Now, looking at your example, I am stuck at one point and I really don’t know how to proceed with something that simple: I just cannot replicate the expression:

I cannot enter the bracket, how is that even possible in bubble…?!

Go to Settings > Versions > Beta Features

Turn on Expression parentheses.

Still not sure why this isn’t on by default. Probably will throw a lot of people off. But this is vital for a lot of things. :blush:

1 Like

Thank you so much! It works now perfectly :-).

1 Like

Glad that worked. :blush: