Capturing query string in a Web view Column

Hi all.

I’m using a web view to write a value from a form into a field in an another one.

I create a very simple $$viewTemplate Javascript function to accomplish this:

function writeBackSingleValue(campo, valore) {

elem=opener.document.getElementById(campo).value=valore;

window.close();

}

I call that function from a view entry (onClick).

I need to catch the function parameters from the queryString.

The query string is like

…/wvi_Account?openView&targetField=fld_Name&searchField=fld_Value.

The parameters are:

campo:=@urlquerystring(“targetField”)

valore:=@getField(@urlquerystring(“searchField”))

These two formulas work fine on the $$viewtemplateform, but don’t on the view column.

I need to pass these parameters to the view column , anyone can suggest how can I make it?

Thanks in advance.

Stefano

Subject: Capturing query string in a Web view Column

you have the values on the form so they are the same whichever view entry is clicked. Use them directly in the function.

function writeBackSingleValue(doc) {

var campo = doc.getElementById(campo).value;

var valore =doc.getElementById(valore).value;

elem=opener.document.getElementById(campo).value=valore;

window.close();

}