Yes, I used the Insert Formula dialog box to enter the formula (with "Edit
XPath (advanced)" checked). I'm at my wits end on this - I know it should be
very simple and appreciate any assistance you can give. One thing I didn't
mention previously is that my main data source is a SQL Server connection. I
don't know if that makes any difference.
I've also searched various other sites and posts and continue to try
variations, but nothing has worked.
Thanks,
Erin
:
Did you first click on the Formula button behind the Default Value field
before entering the expression? If not, try it that way. The "Insert Formula"
dialog box will open up. You must check "Edit XPath (advanced)" button at the
bottom of the dialog box and then paste in the expression.
If this does not work, look and see whether you've got the correct nodes and
paths to the nodes in the expression. Since I do not know what your main data
source looks like, I'm unable to give you more pointers at this time.
---
S.Y.M. Wong-A-Ton
:
Thanks - I tried a number of variations but was unable to get it to work.
I'm not an XPath expert, so I easily may be missing something obvious. This
is literally what I put in as the default value:
current()/../preceding-sibling::my:EmployeeExpense[1]/my

escription
I also tried variations but nothing worked. I also checked the "Only to the
data rows a user inserts".
:
Try the following as the default value for "my:field1":
current()/../preceding-sibling::my:row[1]/my:field1
Here "my:row" is the repeating group and "my:field1" one of the fields in a
repeating row. Note: The expression looks like this when the "Edit XPath
(advanced) checkbox is checked.
---
S.Y.M. Wong-A-Ton
:
Forgive me if this has been asked before, but I couldn't find that it was. I
have a simple form with a single repeating table. When the user clicks to
add another row, I'd like to default several values from the previous row to
save possible re-entry. I have tried several things but couldn't get it to
work.
Please help -
Erin