Event problem

D

DolceVita

Hi,

I have a repeating section that made me crazy !

I have an C# event on it! When an attribut has a value (160) an code is
make problem in this event if I try to make:

thisXDocument.View.ExecuteAction("xCollection::insert", "Bisher_32");

that insert me a my section in my form but not in the correct place
That insert my element in the next element of my repeating section!!!

Do you know why?

Little example:
 
D

DolceVita

Hi,

This don't help me but thanks for the links it's interesting!

No I don't use View.SelectNodes !

My problem is I have a repeating section (AVel) that contain a
repeating choice group ( Betrag and Bisher)!

When I try to make my ExecuteAction I press tabbing for go in the next
AVel that contain a Betrag my event is launch and when the line
ExecuteAction is process my Bisher node is insert in this one not in
the AVel where the event has been launch!

I hope that is clear now!

Thanks one more time!
 
S

S.Y.M. Wong-A-Ton

I think that's exactly the problem: You aren't using SelectNodes to set the
correct context before calling ExecuteAction. InfoPath does not know where to
insert, so it picks the first one in the group.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top