FMR: Adding on-after-change to the section "properties" dialog box.

G

G. Tarazi

Hi



I had a look at the dialog box, and I am not that sure if I missed that option, but I was not able to find this option in the properties box, so here is the idea:



Each control inside Microsoft InfoPath 2003 has events, and the "Properties" dialog box for the control can create an event handler for that control automatically.



I was looking in the "Properties" dialog box for the "section", and I was not able to find any button that can do that.



Can you add it please



Thanks
 
B

Brian Teutsch [MSFT]

Why do you want this? Sections cannot be edited by the end user, so under
what conditions would an XML node bound to a section be changed?

Brian

(Cavet: I know of some corner cases, but they're corner.)

"G. Tarazi" <Tarazi (at) LiveTechnologies.ca> wrote in message
Hi

I had a look at the dialog box, and I am not that sure if I missed that
option, but I was not able to find this option in the properties box, so
here is the idea:

Each control inside Microsoft InfoPath 2003 has events, and the "Properties"
dialog box for the control can create an event handler for that control
automatically.

I was looking in the "Properties" dialog box for the "section", and I was
not able to find any button that can do that.

Can you add it please

Thanks
 
G

G. Tarazi

I don't know if I explain my self correctly, lets start from point 0:



I have an InfoPath form that is combined of 28 sections.

Each section has between 10 to 50 controls.

The entire InfoPath form is submitted to a web service in 2 servers (load
balancing).

The web service will split the form in 50+ database tables.

There will be 300+ users using 3 of these forms in multiple remote
locations.



In order to reduce the load on the servers, there is a hidden attribute in
each section, if any part of the section is changed, the attribute will
become "true" and the server will process the section and save it.



Now, I am able to connect an event handler to a node (section), and it works
fine, and that helps me having 28 event handlers instead of 1000 event
handlers for each control!



What I asked for is instead of doing that using a workaround and manual
coding, just add a button to create that event handler automatic for the
section, as it happens with the controls.
 
G

G. Tarazi

I found it, thank you :)



I am designing the schema using VS.NET (externally), so I never paid
attention to that option :)



Thanks again

Adding an OnAfterChange event handler to a section (i.e. group) can be
useful if you want to handle all change events for nodes within the group in
a single function. It can be very useful in the right scenarios.

To get an OnAfterChange event handler added to a section -- go to the Data
Source task pane and double-click the group to which the Section control is
bound. You'll find what you are looking for on the Validation And Event
Handlers tab.

--
Greg Collins [InfoPath MVP]
Please visit: http://www.InfoPathDev.com



Why do you want this? Sections cannot be edited by the end user, so under
what conditions would an XML node bound to a section be changed?

Brian

(Cavet: I know of some corner cases, but they're corner.)

"G. Tarazi" <Tarazi (at) LiveTechnologies.ca> wrote in message
Hi

I had a look at the dialog box, and I am not that sure if I missed that
option, but I was not able to find this option in the properties box, so
here is the idea:

Each control inside Microsoft InfoPath 2003 has events, and the "Properties"
dialog box for the control can create an event handler for that control
automatically.

I was looking in the "Properties" dialog box for the "section", and I was
not able to find any button that can do that.

Can you add it please

Thanks
 
Top