Position() returns what?

V

Vikram Shinde

position() function returns 1 always?
may be i dont know how to use it?
Please help
 
S

Scott Roberts [MSFT]

The position function returns the position of the current XML node in the
current context. If you are using the postion function on a node that
doesn't repeat, it will always return 1. The position function is most
useful for repeating items.

Try this. Create a repeating table. Replace the Text Box in the first cell
with an Expression box. Then, set the value of the Expression Box to
position() using the formula dialog. Preview the form and insert some rows.
You'll see that the number increments each time you insert a row.

If you need more information. Let me know.

- Scott
 

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