Custom HTML form view url parameter passing

Custom HTML form view url parameter passing

I have a Form with View "Tests".

It contains a "Project" lookup field.
The "Project" lookup field is set for dropdown as import from ID (I want to use ID's for unique values).
The display type is set as the Project name in "advanced display".

Now, when I want to display form view like this:

  1. <div elName='zc-component' viewLinkName='Tests' params='zc_Header=false&zc_Summary=false&zc_EditRec=false&zc_SecHeader=false&zc_RecSelect=false&zc_Footer=false&zc_ColMenu=false&Project=<%=Project_ID%>'>
  2.                 Load View
  3. </div>


For parameter Project=<%=Project_ID%>'> when I want to filter the view "Tests" by Project, it doesn't do it.

But when I do the following and want to Add a New "Test" like this:

  1. <a href="#Form:New_Test?Project=<%=Project_ID%>"><span class="zc-formbutton">
  2.         Add a New Test
  3. </span></a>

It opens the form, and pre-sets the correct "Project" in the drop down "lookup" field. So this does the job correctly.


But for the custom Views it doesn't make any sense, when I set the parameter to the display value it then filters the view correctly.

So which value in the lookup is it using for views in that case? Isn't it supposed to use the ID and not the display type set in advanced


This would mean that for every single lookup (whether its single or multiple), I would need to declare additional fields that reflect those selected on Add and On Edit. I can go this route, but that would seem a bit too redundant.


My question is, why aren't the Parameters passed in Views to display custom filtered view for a particular lookup field not using the underlying ID but the display name?


Thanks for any response.