Hi,
I'm having problems getting the query string in my macro to work ... hopefully somebody can tell me why it's not working :).
THIS WORKS ... it returns a "6": {%LocString="6;";return LocString.Split(";")[0]#%}
This DOES NOT WORK. The URL has a "location=6;" query string in it: {%LocString=QueryString["location"];return LocString.Split(";")[0]#%}
I tried adding a "ToString()" and it doesn't work either: {%LocString=QueryString["location"].ToString();return LocString.Split(";")[0]#%}
(I'm running this macro as part of a "smart search condition" in a "smart search result" webpart.)
Thank you.
EDIT: I also tried this and it didn't work: {%LocString=QueryString.GetValue("location");return LocString.Split(";")[0]#%}
Please ignore this question ... that QueryString is probably working fine. I'm just doing something wrong with the smart search filter and results webparts.
Please, sign in to be able to submit a new answer.