Hi,
I have a URL param "d" on a page. It's numeric. I would like to have a link on the page which get the next record which would be the url param value plus 1. But when I try to do this by place +1 it simply put it next to the url param value, so if the param is say d=1, it makes the link have a param of d=11
Is this what you are looking for?
https://docs.wappler.io/t/loop-through-database-records-with-the-data-iterator-component/11479
1 Like
Thanks Ben...I think so. I guess it is a looper... I will give it a go. Of the top of your head would it let be defined the default record. I want to display the record with today's date first as default?
Also do you know a solution to carrying out operations on URL Param... like in my question above?
query.d is a string, "1" instead of 1
So it's doing "1" + 1 which becomes "1" + "1" which becomes "11"
Use the formatter to convert to a Number on query.d, so it becomes 1 + 1
1 Like