Retrieving the value in &RestrictToCategory

Hi,

I have a view which contains a set documents. This view is categorized by year. The view is displayed on the web via a $$“ViewTemplate for”-form.

I use &RestrictToCategory to display all documents of a specific year.

Now here is my problem : I want to modify the title of my $$Viewtemplate to display the selected year. So when I use &RestrictToCategory=2000, The title of my page should display “Archive 2000”.

How can I achieve this ?

Thanks in advance,

Jeroen Jacobs

Subject: retrieving the value in &RestrictToCategory

i think you can show embeded view in a form.and in form u can take a computed field above the view in which you can show ur title …

i am not sure about it.

but u can try it.

Subject: RE: retrieving the value in &RestrictToCategory

Hi,

I’m already using an embedded view on the $$viewtemplate form.

The problem is : I need to get the parameter that’s passed to RestrictToCategory (since it will be part of the title).

Another option would be to retrieve the category of the first document in the embedded view. Anyone tried this approach ?

Subject: RE: retrieving the value in &RestrictToCategory

Have you tried using @URLQueryString(“RestrictToCategory”)?

Subject: RE: retrieving the value in &RestrictToCategory

I regularly use the Query_String and another field to parse it. BTW: @ReplaceSubstring(the title); “%20”;" ") replaces the %20 (valid in a URL, wheras " " isn’t).

Subject: RE: retrieving the value in &RestrictToCategory

Have you ever tried @URLQueryString? It returns the single parameter you are looking for, URL-decoded (unescaped, if you will) – AND it avoids adding an unnecessary field to the database field list (you know, the fields that show up in the field list when you want to use SImple Actions or design a view, and so on). Query_String is SO R5, dude…

Subject: RE: retrieving the value in &RestrictToCategory

You are right, of course, but I am so very old and it is difficult to learn new things. :slight_smile: