D
Damian Fawkner
Hi,
I have a repeating section where I want to allow the user to move sections
around (e.g. move up, down, move to first, move to last). It's based on the
example found here
http://www.infopathdev.com/howto/examples/default.aspx?i=ff568efdccf74b688133dac1b6bb7a40
The big difference being that I'm using IP 2007.
Now I thought that seeing as there were some methods on the XPathNavigator
class that exposed things like 'MoveToPrevious', MoveToNext, I didn't think
this would be too much of a problem.
However my code is just not working - Here's sample for my 'Move Up' button:
public void btnUp_Clicked(object sender, ClickedEventArgs e)
{
XPathNavigator node = e.Source;
bool ret = node.MoveToPrevious(); // always returns true
}
I tried things like getting the previous node and then inserting before that
node. But all that did was added a new node above the current one rather
than move the cufrent one.
Can anyone point me in the right direction?
Regards
Damian
I have a repeating section where I want to allow the user to move sections
around (e.g. move up, down, move to first, move to last). It's based on the
example found here
http://www.infopathdev.com/howto/examples/default.aspx?i=ff568efdccf74b688133dac1b6bb7a40
The big difference being that I'm using IP 2007.
Now I thought that seeing as there were some methods on the XPathNavigator
class that exposed things like 'MoveToPrevious', MoveToNext, I didn't think
this would be too much of a problem.
However my code is just not working - Here's sample for my 'Move Up' button:
public void btnUp_Clicked(object sender, ClickedEventArgs e)
{
XPathNavigator node = e.Source;
bool ret = node.MoveToPrevious(); // always returns true
}
I tried things like getting the previous node and then inserting before that
node. But all that did was added a new node above the current one rather
than move the cufrent one.
Can anyone point me in the right direction?
Regards
Damian