Click here to Skip to main content
15,892,298 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi,

I
SQL
currently open infopath files save in a sharepoint library through a webpart. The user can enter the the file name in a textbox and click a button and the file will open. The URL is like: http://servername/_layouts/FormServer.aspx?XmlLocation=/InstrumentsLib/" + fileName + "&Source=http://b1544:8080/InstrumentsLib/Forms/AllItems.aspx&DefaultItemOpen=1";

Right now the web part works fine, but i want the infopath file to open in a specific view, the infopath template has 2 views. I want the file to open in the 2nd view. how can i do this?? the form is web basied
Posted

1 solution

Found a way:

http://servername/_layouts/FormServer.aspx?XmlLocation=/InstrumentsLib/" + fileName + "&Source=http://b1544:8080/InstrumentsLib/Forms/AllItems.aspx&DefaultView=viewname&DefaultItemOpen=1";
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900