How to select documents in a view with a @prompt

In the QueryOpen event, I put this:(sorry for the french text)

listeutilisateur_ := @Prompt([OkCancelEditCombo]:[NoSort];“Changer le nom”;“Choisir le nouveau nom pour l’équipement sélectionné”;“choix default”;@DbColumn(“”;“domfppq1”:“names.nsf”;“Principale”;1));

This prompt the user to select an element from a list. I would like to use this selected element for my “SELECT” in the View Selection event. But it’s not working.

thanks for your help

Subject: how to select documents in a view with a @prompt

The difficulty is that the view selection formula is not as dynamic as you want it. It is pretty much hard coded and the view index is maintain on the server.

What you can do though would be to use view categories and then have a embedded view in a form. The result would be a view based on the category the user selected in your @Prompt.

HTH – Cheers – Feel free to email if you need more help.