Saturday, December 10, 2016

Visualforce - Beyond Basics Series 12 - Pass query string using param tag

What is Query String ?

In the URL format after '?', you can pass set of key-value pairs which is called Query Strings.


How to frame Query String in OutputLink ?

OutputLink tag is used to provide the hyper link for a element in the page. If you need to pass Query String, you can use param tag for that.

What is the use ?

By using param tag, we can provide dynamic value, rather than the hardcoded value for Query String parameters. Also, if you have more than one Query String parameters, the code looks very clean by using param tag.


Where is the code ?

I have illustrated through how to pass the parameters through param tag for OutputLink below,


No comments:

Post a Comment

Thanks for reading my blog !