How to add wildcard in aaname category of a click function

@karan_kapoor1
for using variables in selectors have a look here:

for adding the wildcard give a try on aaname=‘{{YourVarName}}*’ e.g. for being flexible on the end of string