I need it to check all of them which is why I have put the ‘view_details.data.training.where(modID, 3, ‘==’)’ in the button.
If there is a better way please let me know, but I need the buttons to have different text which does not come from a database. This is why I did not put the repeat region in there
Ok i checked the link your provided, your approach for this is a bit weird, but if you want to keep your page like that then you need to check if the where formatter actiually returns a value or not, so it should be:
You Sir are a legend.....
Could you please explain the logic behind the .lenght !=0 for me so and why this has made it work. So I understand for the future
so for the disabled attributes this is always a value. You just need to check if the lenght is 0, which means the returned value is [] and if it’s 0 don’t disable the button.