ParamQuery grid support forum

General Category => Help for ParamQuery Pro => Topic started by: queensgambit9 on February 10, 2020, 03:48:31 pm

Title: loadstate from url
Post by: queensgambit9 on February 10, 2020, 03:48:31 pm
Trying to load state from query param...but it doesn't seem to work.
Also how can I set the loaded state as choosen in the states dropdown?

https://jsfiddle.net/queensgambit9/59n0bdLa/12/
Title: Re: loadstate from url
Post by: paramvir on February 11, 2020, 09:59:56 am
Sorry, it's not clear from the jsfiddle how you are trying to load state from a url.

Please share a sample url from which you are attempting to load state. Does url contain all the state data?
Title: Re: loadstate from url
Post by: queensgambit9 on February 11, 2020, 05:06:09 pm
No, Im trying to load an existing state from query param.
Ex, a state named 'test' exist in local storage.

I would then like to load it when query param is used: www.example.com?state=test
Title: Re: loadstate from url
Post by: queensgambit9 on February 11, 2020, 07:37:41 pm
Btw, is it possible to share states by query params or any other way?
So that you can create a state and then send a link so that users can have same layout etc?