also what should I change in the 2nd screen for the content to appear as indexed in the table and not random?
I show you the code and the project and how to modify
And also showed you another code to set also back function
You have all the information to create your code
Variables do not always need to have an initial value. I often leave them blank. But you can connect an empty list variable if you like.
The way I set up the demo, the code is dynamic. That means that itâs the same number of blocks whether you have 3 languages or 30 languages. The way youâre coding it is static meaning that each time you add a new language, you have to add or change a bunch of blocks.
If my method doesnât make sense to you then I would recommend sticking to what you already have. I realize you wanted some features to work differently⌠I simply used what was faster and more efficient. You can, of course, use parts of the demo that are useful and ignore others.
Thanks guys and sorry for being a pain! I managed to make it work for random text to appear (from each type) but even though I tried many things for getting text according to how it ranks on the data table I couldnât make it work. Also, when the user closes the app, the app should remember which was the last content it showed and when it begins again start from the next text
I wonât have the time to help with each step of your project but I can pop in from time to time and answer questions. You might consider hiring someone to help if thereâs any rush to getting this done.
So you donât want it random?
you have to use stored variable, I recommend you to read the DOCS ,for the basic questions, or search in the community before ask. How can you work on your project if you donât even know the variables?
I am not sure yet so I need to know how can I make it ranked too
Show your block, itâs not possible you are not able to do this, you can find the solution in our chat too.
If you donât want to read Docs about basic questions then show me what you tried and I will set you on the way to
you can check here one of the things I tried and doesnât work Thunkable
Yes but as I said you Iâm not always at laptop so you have to wait . If you show a pic of your code I can help you everywhere I am.
I took a look at your code, why you didnât copy our project or studed them?
You have to change only the block under create poeme from random to select item
You donât need to download again the data from table if you set variables when screen starts.
The block I deleted has no sense, try to read it again.
You are getting and index in te first menu (lenguages) to take an item inside a column, it is PoemX
With poemX you want to get a row, but as you can see the get row needs an ID an not a casual element
In the second screen this is the block to get an element with index, now is one , you have to manage it as your goal.
Here the PROJECT but you have to study a lot my friend, the basic knowledge . I studed for months before play with code , I read a lot in the community , I saw a lot of video on youtube.
Thunkable Team made a lot of video for the community YOUTUBE
The stored variable able you to save the selection inside the app for the next opening
For the next step:
- You can change the code to open the second screen after selection ( and not after click button)
- If you want to open screen 2 after click button you need a control about the selection , if user click twice the menu he will come back to all the languages and if he clicks to screen 2 the variable CLIK USER will not be correct.
- You can create a code to not show the language selection after the second opening and ,perhaps, you can add a setting page where user can modify the language
Good luck for your project
Thank you, I tried the above but now when I click the button it shows only the first text, it doesnât change when I click it again. Thunkable
Additionally, I noticed another issue. When the text is too long and not all of it appears on the screen you cannot scroll to read the rest, I tried to set the label lines for longer but nothing works so what should I do in these cases?
Yes of course, is always one , If you want it to change you have to use a variable instead of number one and manage this variable as you want.
Every click set variable+1 to move on by one .
Try to add the label inside a Container , set the container scrollable and the label fill container both height and width
no I donât mean that. I mean that when I click it again it doesnât move to the 2nd one, then the 3rd etc. It stays at the first one no matter how many times I click it
Yes as I said , read again .
What kind of variable?
I tried that but it doesnât work. Here is a screenshot of how the label is inside a container. Let me know if you see something wrong
You set the container and the label as I said for dimensions?
A variable that save the index you want to show
I am not sure what you mean. Can you show me an example of how the container and the label should be?
I did that even though the âfill containerâ "or âfill contentsâ is an option in the container settings, not in the labels settings