Hi all,
I'm having a bit of an issue using the "Insert" command on qRules and having looked through the other posts on the subject haven't encountered anyone else who seems to be having the same problem.
I've managed to get the insert command to work, although I've found that it will only work if I include both the /posn= and /count= elements in the command; if I leave this off I get the "Failed to insert child node" error. Both /posn= and /count= also have to be numbers, I can't use the term "last" like in the sample qRules form. The problem I'm having is that the insert command is always inserting a row/section above the previous one and not below it. In some cases this hasn't really been an issue but in this particular case it's rather annoying and I'd like to sort it out!
Here is the command that is being fired on the button click (I've entered it in the value field, not in the fx section): Insert /parent=/my:ExpenseReport/my:MileageDetails /child=my:Mileage /posn=1 /count=1
Reading through the other posts I've seen a lot of discussion about /child and it always seems to be written as /child=/my:Mileage however this results is the same "Failed to insert" error...the above is the only way this command seems to work for me!
Below is the structure of my data souce, I'm trying to use the "insert" command to insert a new my:Mileage row. Should note that my:Mileage is currently set-up as a repeating section rather than a repeating table but I've tried changing to a repeating table and I still encounter the same issue
/my:ExpenseReport
/my:ExpenseReport/my:MileageDetails
/my:ExpenseReport/my:MileageDetails/my:Mileage
Any help is appreciated as always!
Oh yeah, IP 2010 & qRules 3.1