hello,
my app has dynamic button depends on dynamic list i get from google sheet and i need action based on whuch button was pressed but i can NOT find a way to get the app understand if that button from my dynamic list or a regular static button .. i have tried {for each item in the list and tried If is in list?} both are triggering all buttons regardless in my list or not . have tried Using "any component" if I don't want it to apply to all components of a type who claims if statement worked for him but it does not .. please see my aia and photo and help me to get action ONLY if button is in my list
dynamic.aia (3.0 KB)
Please share your relevant blocks and images.
Which dynamic compoent extension are you using ?
my apology, thought i did !
Are you hoping to create button components with those blocks ?
You are creating a list of button names (not button components), then attempting to see if a component is in that list. This will not work.
You need an extension such as CompCreator to create dynamic components
Hello ,
No, I have 150 buttons already created and ready for 150 different actions in the app, but I will use only those who I have in Google sheet and the others I will put them as visible false ..( that g sheet list keeps varying ) for ex. My Google sheet has 120 buttons today ( same name as my pre created in mit app ) so I wanna set from 121 till 150 as invisible .. instead of writing 150 visibility lines with if statement if that 1 till150 button within g.sheet retrieved list the invisible , instead I wanted any key dynamic to do it.. point is I cannot get the component to see my list as I named it. Instead it shows as Button.vsv64bd...etc not as Dyna_1 ...etc you can see in my aia file that button name in the app is the same as in the list Dyna_1,2,3 ..etc
- maybe tomorrow my Google sheet has 79 buttons till Dyna_79 not till 120 of my pre defined 150 in the app that are waiting to be enabled or visible .
One way:
and another using CompCreator
no need to have up to 150 buttons manually created, just make them as you need them.
(You can also just as easily remove them)
That is a great solution, thank you so much
What's in that Google sheet?
You cannot change the names of the button components, in any case this would be pointless because the button components names change everytime the app is started.
You can change the buttons text, as I showed you in my examples, and use this as the identifer for each button required.
You can also make a list of all the button components, and get their button texts using the any component blocks, but you may want to do that the other way around.
hello,
no that is not me... looks another user copied and past my text ! i do not know who is: vfmcn4uheup .. not me
150 kids shows their books with a unique QR each.. my app scan and send sms to parents that kid arrived with his book, stored time stamp at google sheet ... app retive kids names for those who attended today AND CREAT UP TO 150 BUTTONS that has each kid name, once teacher click on kid name he gets a positive point on googlesheet abd app shows year to date accumulated points...etc
ListPickers and ListViews make easy buttons.
Your data lives in the sheets (books, students, teachers(?), and book lending history.
Think of the queries you might need to ask of the sheets regarding specific books or lack of books, and how you might represent the answers to those queries.
Sample sheets app to study with a similar level of complexity:
Things you can do with the power of google sheets:
You don't need to show every book and student all at once.
Your app is not wallpaper.