Group:  Other Microsoft Office Products ยป microsoft.public.infopath
Thread: Defaulting from a previous row

DotNetBag
.NET Development Newsgroups

HTVi
TV Discussion Newsgroups

Our Hot Pick: Rising Antivirus 2006 - Certified by TUV & Checkmark! Get 10% discount by entering this coupon code: ONDISCOUNT10
Rising Antivirus 2006

Defaulting from a previous row
Erin 29.09.2006 22:36:02
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
RE: Defaulting from a previous row
S.Y.M. Wong-A-Ton 30.09.2006 08:42:01
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


"Erin" wrote:

[Quoted Text]
> 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

Home | Search | Terms | Imprint | Contact
Newsgroups Reader - provided by WiredBox.Net