service portal widget how to read query string value and pass it to filter?

nthumma
Giga Guru

Can you let me how read query string value and pass it to filter on a widget?

for example instead of hard coding state value i want to read it from query string, any thoughts ?

SPWidget.JPG

4 REPLIES 4

nthumma
Giga Guru

abhi_r any thoughts on this?


To be honest I am not that familiar with all the nuances of service portal. Brad will be your best bet.



+b-rad


Thanks Abhi, will wait for b-rad inputs


chiragbagdai
Mega Expert

Hi,



Have you tried to clone the 'Data Table from Instance Definition' (or which you want to use) and in server side script find "data.filter = $sp.getValue("filter");", also assigned data.filter = as $sp.getParameter("QUERY_STRING_VARIABLE_NAME") ?



Try the above method and see if it works.



Regards,


Chirag