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 / August 2006

Tip: Looking for answers? Try searching our database.

IP2007: Changed and Validating events in Browser Forms

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
MarkA - 24 Jul 2006 14:30 GMT
Hello,

Has anyone got the changed and validating events to execute the code
behind when deploying forms to MOSS 2007?

The forms seem to work fine when running them under the IP2007 smart
client, but when deployed to MOSS and run in the browser the events
never seem to get fired...

I'm wondering if I am missing something really simple here.  In order
to test - I created a small form based off an xml file

<test>
 <firstName />
 <lastName />
</test>

dropped these onto a new form, and added a changed event to the
firstName element, as such..

public void firstName_Changed(object sender, XmlEventArgs e)
{
   if (e.UndoRedo)
       return;

   XPathNavigator xpn =
this.MainDataSource.CreateNavigator().SelectSingleNode(
        "/test/lastName");
   xpn.SetValue(e.NewValue);
}

The functionality here is supposed to be - enter a first name, and the
changed event is fired, which copies the first name to the last name.

This works on IP2007 client as expected, but in the browser, nothing
happens (it doesnt even look like it tries to post back to the server
to execute the event).

I find this a bit strange. Has anyone got this to work at all - if so,
is there anything that you had to do special?
madhur - 24 Jul 2006 15:29 GMT
Hi MarkA

I have tired it and it works.

Madhur

> Hello,
>
[quoted text clipped - 36 lines]
> I find this a bit strange. Has anyone got this to work at all - if so,
> is there anything that you had to do special?
MarkA - 24 Jul 2006 17:40 GMT
Well thats bloody annoying isn't it :)

Wonder if there is something in my environment that is screwed up...
mind emailing me your xsn (or VSTO project folder) that you deployed to
your MOSS server so I can see if it is me doing something wrong?

mark _DOT_ allanson _AT_ accenture _DOT_ com

Thanks Madhur,

Mark

> Hi MarkA
>
[quoted text clipped - 42 lines]
> > I find this a bit strange. Has anyone got this to work at all - if so,
> > is there anything that you had to do special?
MarkA - 01 Aug 2006 09:20 GMT
Just for the record: I found a solution to my problem.

If you want a control to post back to the server, then ALL containers
underneath the control also have to be set to "Always" post back. In my
instance, my controls were in a Section, and the section was set to
post back only as needed. Once I set the section to always it started
working like a charm.

Cheers,

Mark

> Well thats bloody annoying isn't it :)
>
[quoted text clipped - 54 lines]
> > > I find this a bit strange. Has anyone got this to work at all - if so,
> > > is there anything that you had to do special?
 
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.