Work with Bubble database data in Plugin editor

Search for a command to run...

No comments yet. Be the first to comment.
I have included all the information related to how you can build the Bubble plugin in this series. Check my course on how to build plugin from scratch- https://nocodetalks.co/bubbleplugin
If you are developing a plugin using an API, you may have noticed that there are three types of parameters - private, hidden, and secret, which differ from the private and public parameters found in an API connector. What's the difference between th...
Most websites use CSS :hover for hover effects. You can see them in the stylesheet, copy them, move on. Framer doesn't do that. Framer uses a React animation library (Framer Motion) with a whileHove

https://www.youtube.com/watch?v=63Lkpw8fGAw Introduction to Xano: A No-Code Backend Solution When it comes to choosing the right backend service for your project, Xano emerges as a noteworthy contender. This video explores the various facets of Xan...
Hi Everyone, This newsletter will be a little different from the ones before. In this edition, I'm excited to launch the Xano Cohort program, which I will be running. The program will start on May 6th for 6 weeks. Why I am starting this: Whenever I...

Learn what workload units are in Bubble, how they are calculated, and discover actionable strategies to optimize and reduce your app's workload units for better performance and cost efficiency. One think before moving forward- If you are reading thi...

There are instances when you may need to access an element created within the Bubble editor. For example, in a plugin, you might want to return the number of characters a user types into an input element. Follow these steps: Step 1: Enable the "Expos...

If you want your user to pass the Bubble database data type to the Bubble plugin editor, how would you accomplish this?
Follow these steps:
Step 1:
Define the first field input as the "App Type" and the second as a dynamic value with the type of "first input type."

Drag the element to the editor, you will see two inputs:
- In the first input, provide the Input type.
- In the second input, supply the data.

Step 2:
Now, experiment with the input data in the plugin editor.
//compute the length of the list
let list_length = properties.input_data.length()
console.log("Length is ", list_length);
//get the input data list
var list_data = properties.input_data.get(0, list_length);
console.log("List data" , list_data);
//loop over input list
for (let idx=0; idx < list_length; idx++){
//get the one item at time
let list_item = list_data[idx];
//this will list all the column of the given data type as the json array
console.log("list properties", list_item.listProperties());
for(let prop=0; prop<list_item.listProperties().length; prop++){
//column name along with type , for ex- coulumn_name_type
console.log("key:", list_item.listProperties()[prop]); //event_name_text - event_name is the column name and text is the type
//its value
console.log("value:", list_item.get(list_item.listProperties()[prop]));
}
}
That's all for this blog. Subscribe for more future updates. Thank you!
Follow me on Twitter.
Checkout My Bubble Plugin Course - Use coupon code "THEBUBBLEGROUP" at checkout for 10% discount.