in MIT App Inventor how can I do this?
I want to enter in a text-box a name and in another one an ID and use the same button to save data. The data entered must survive an app restart, and to be able call it somewhere else in app.
It is possible/difficult ? I mean the names and ID's can be many. After that how can I call a specific ID from the list?
Here is a screenshot! Thank you!
Create two empty lists, one for names and one for IDs. And data to them on button press.
Create a tinyDB element. and store those data to that with two different tags, one for name and another for ID.
For you to understand it better, here is the screenshot of the blocks.
For getting all new entries in new line, do this:
Front End of the app:
Hope it will help you
Related
Hi I am trying to use Power Automate to enter some menial data, however I am having problems with the Xpath.
The website is set up so that I must click a button in order to add an ingredient. The for loop I used keeps referring back to the original x-path in ingredient 1. I was wondering if there was someway to keep the xpath changing with the loop.
This is what I attempted:
I figured out a solution. Instead of using the x-path, I sent key strokes. So, if the field I wanted to enter was two tabs away, I would do {tab}{tab}, then again send the key strokes of the variable.
I use google appMaker for a short time.
I have a dropdown of several rooms and when a room is selected, I want it to no longer appear in this list.
Where do I need to set the code?
Thank you.
You may try using a calculated model containing the values used in the dropdown (by binding them as presented in the documentation), and as the user selects them, you can delete the selected from the datasource.
hey all..
i want the user to enter a set of data such as "name" and "age" and correspondingly send it to the person bean. But the user can choose to enter any number of person's data at 1 go.
What control at GUI would be suitable for achieving this (keeping in mind i am developing the application in stuts2).
Thanks;!
There isn't going to be anything definitive. Just hand roll the solution with your favorite JS library. Adding struts2-json-plugin will probably help.
I had created something very much like what you are looking for... It was a two column table where you typed in a user name into one field, hit tab, then typed in the second field. There was one button at the end of the table, so hitting tab once more and enter added the current fields to the DB and added a new row to the table and positioned the input into the first field. It allowed for smooth data entry.
I am managing to construct a form (with FuelCMS) that has a look-up table, and the look-up table has a field that must be inserted at the same time as the relation (Figure 1).
Using a model inside my module I have finished the form to insert the data, I have a control (Figure 2) to select the relation between the two tables, and here is where my question comes. I need to show a pop-up (like the one when you press the "ADD" or "EDIT" button that allow the user to insert the value of the "objetivo" field (Figure 1) at the time you assign "Hitos" to the "indicadores".
What is the best way to do this? Can I attach a JS file to the form from the module to be able to capture the button click and show the pop-up? There are another better way already to achieve that task?
I hope I made my point clear, if not, please tell me and I will try to explain myself better.
Thanks :)
Figure 1
Figure 2
Thanks to the kind of the FuelCMS team I was at the end able to solve the situation I explained before, to achive the aim you should follow the next steps:
Add a javascript file on the module config (fuel/modules/MODULE_NAME/config/MODULE_NAME_fuel_module.php)
Use the Javascript hooks 'selectionAdded' and 'selectionRemoved' to launch the popup (FuelCMS uses jqmodal as popup) the functions pass as a parameter an array "vals" that contains the ID of the selected items.
Add a AJAX request in the popup code to retrive the form
Process the form and keep the values for later saving on database or manipulatiĆ³n.
It could be a bit tricky if you need a complex logic but is an effective way of do it :)
Once again TAHNKS to the FuelCMS support people, i hope this help someone.
Best regards.
for example, we have a web form to let the user enter personal info such as address and phone number, then the user need to enter the spouse and dependents information. I usually use a gridview for this, but some users complain it is difficult to use. so what is the most user-friendly or conventional way to handle it?
thanks.
I usually use AJAX to do this. Usually a Button and/or programming triggered by an event to add form items.
For example:
Username:
Password:
(+) PHONE
.. then every time you add "+ PHONE" I would add a new set of text boxes for more phone numbers.
One option might be to have a more user-friendly form where the user fills in information for a single individual, and then an "add" button that takes the contents of the form and inserts it into the gridview where it can be reviewed while simultaneously clearing the rest of the form to allow another individual's info to be added.