Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / General MS InfoPath Questions / September 2007

Tip: Looking for answers? Try searching our database.

passing parameters from an aspx page to infopath

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
daska - 15 Sep 2007 10:14 GMT
I created an aspx page that has a xmlformview control and this page is hosted
in SharePoint (main site on port 80). I send some parameters in querystring
to this aspx page from an InfoPath form hosted in SharePoint. I do some
business processing and now I want to send the data back from this aspx page
to the InfoPath form opened from SharePoint. How will we do this? Is it
possible at all? Please help!

Thanks,

daska
S.Y.M. Wong-A-Ton - 16 Sep 2007 02:16 GMT
The part about the XMLFormView control on an ASPX page I understand. But I'd
love to know how you passed those querystring parameters from an InfoPath
form hosted in SharePoint to that ASPX page. Can you elaborate a bit? Because
if the "InfoPath form hosted in SharePoint" is also hosted in an XMLFormView
control on an ASPX page, you can easily use the interface of the XMLFormView
control to pass information back to the InfoPath form it contains.
---
S.Y.M. Wong-A-Ton

> I created an aspx page that has a xmlformview control and this page is hosted
> in SharePoint (main site on port 80). I send some parameters in querystring
[quoted text clipped - 6 lines]
>
> daska
daska - 17 Sep 2007 15:56 GMT
Hi

Thanks for replying. Here are the answers:

1. The querystring was created dynamically and then I used the hyperlink
control to open the aspx page from InfoPath.

2. Yes, I think you are right but I can not put the InfoPath form (hosted in
SharePoint) in a xmlformview control because the InfoPath xsn is a template
published in a forms library. Every time a user clicks the new button in the
forms library, a new form opens, user enters data and a xml is saved in the
forms library. If I use xmlformview to host this infopath template then i
will have to manage the "New" button functionality.

I hope I was able to clarify things in an efficient manner. I know these
technical questions are sometimes difficult to understand, especially, for
the developers who are not working on that issue. In simpler words, I am
looking to create a pop up form, just like the ones we use in our asp.net
applications where we open a popup form, do some processing and send the data
back to the original aspx page. In asp.net we have sessions. we can simply
store the data in a session and later retrieve it from the session again but
in this case, there is no way to manage the session. the session is managed
between the aspx page (host) and the infopath (xmlformview control) but there
is no management of session between the aspx page and the infpath form hosted
in sharePoint. that's where there is a problem. Any ideas on how we can
manage session between an infopath form hosted in sharepoint and an external
aspx page hosted on the same sharepoint server??

Thanks

Daska

> The part about the XMLFormView control on an ASPX page I understand. But I'd
> love to know how you passed those querystring parameters from an InfoPath
[quoted text clipped - 15 lines]
> >
> > daska
S.Y.M. Wong-A-Ton - 18 Sep 2007 01:54 GMT
Thanks for the extra info; I get the idea now. I do not have an immediate
answer for you, but will look into it and get back to you. In the meantime,
there is something called FormState (see
http://msdn2.microsoft.com/en-us/library/microsoft.office.infopath.xmlform.forms
tate(VS.80).aspx
)
which can be used to persist state across sessions, so you may want to look
into that. The code to use FormState is usually commented out at the top of
the FormCode file.
---
S.Y.M. Wong-A-Ton

> Hi
>
[quoted text clipped - 47 lines]
> > >
> > > daska
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.