Both the dropdown and the textbox are in the Repeating Table. The form is
supposed to be an Expense form, and for every expense chosen (column A) there
is supposed to be a GL code (column B) that goes with it.
As I make the expense choice it will put the GL code in then I move on and
insert the next item that may have a separate GL code if a different expense
is chosen.
For some reason, it is storing the same GL code (column B) when I move on to
the next item to insert. And when I choose the expense (column A) it is not
erasing the GL code (column B) and replacing it with the new one.
I hope I have not over analysed the problem.
Thanks again for any help you can give me.
Hi socaprice,
The more information you can give me, the better I will be able to help you.
:) I think we can solve your problem... Try the following:
- Open the rule you added on the dropdown
- Click on the [Modify...] button in the Rule dialog box
- Select the action you added previously
- Click on the [Modify...] button
- Click on the "Insert Formula" button next to the "Value:" textbox
- At the bottom of the Insert Formula dialog box, you'll see a checkbox with
the label "Edit XPath (advanced)". Check this checkbox and the full XPath
expression for your formula will appear.
- Replace the text after the equal to sign (=) with the XPath current()
function. The text you would be replacing looks something like
"xdXDocument:get-DOM()/..."
- Uncheck the checkbox "Edit XPath (advanced)". Your formula should now look
something like the following:
textboxfield = @columnB[@columnA = current()]
- Close all dialog boxes by clicking on [OK]
Hope this helps. If you are still having problems getting it to work, let me
know. And if this answered your question, let me know too or better yet, vote
that it was helpful to you, so that others can also benefit from this
solution.
Regards,
S.Y.M. Wong-A-Ton
> Both the dropdown and the textbox are in the Repeating Table. The form is
> supposed to be an Expense form, and for every expense chosen (column A) there
[quoted text clipped - 105 lines]
> > > > >
> > > > > Socaprice
socaprice - 11 Nov 2005 14:13 GMT
This was great.
At first, it did not work cause you said to replace the text AFTER the equal
to sign (=) but it was great that you described what I was to replace cause
that text was BEFORE the equal to sign (=) so the textbox field should look
something like the following:
textboxfield = @coulmnB[current() = @ColumnA]
I got it working thanks to you, I really appreciate this. Like I said before
I am new to Infopath, but loving every minute of it.
You are the best! Keep up the good work of helping rookies like me...
Thanks,
Socaprice
> Hi socaprice,
>
[quoted text clipped - 136 lines]
> > > > > >
> > > > > > Socaprice
S.Y.M. Wong-A-Ton - 11 Nov 2005 20:06 GMT
You are very welcome. And it was a pleasure trying to help you. Keep up your
enthusiasm for InfoPath; it is a great MS product!
Regards,
S.Y.M. Wong-A-Ton
> This was great.
>
[quoted text clipped - 154 lines]
> > > > > > >
> > > > > > > Socaprice
socaprice - 11 Nov 2005 20:31 GMT
Thanks, one other thing, what, in your opinion is the best book I can get on
Infopath.
socaprice
> You are very welcome. And it was a pleasure trying to help you. Keep up your
> enthusiasm for InfoPath; it is a great MS product!
[quoted text clipped - 160 lines]
> > > > > > > >
> > > > > > > > Socaprice
S.Y.M. Wong-A-Ton - 11 Nov 2005 21:49 GMT
"Developing Solutions with Microsoft InfoPath" from Microsoft Press.
Since you are using IP with SharePoint, it could come in handy, because it
contains a chapter on SharePoint. But please be aware that it also contains
quite a lot of code and might not be very suitable if you are looking to do
things that do not require coding (rules, conditional formatting, filters,
etc.).
Also, check out the Office Developer Center for InfoPath
(http://msdn.microsoft.com/office/understanding/infopath/default.aspx) and
the InfoPath team blog (http://blogs.msdn.com/infopath/). Both contain
valuable information and resources you can learn from.
Good luck!
S.Y.M. Wong-A-Ton
> Thanks, one other thing, what, in your opinion is the best book I can get on
> Infopath.
[quoted text clipped - 165 lines]
> > > > > > > > >
> > > > > > > > > Socaprice
socaprice - 12 Nov 2005 01:23 GMT
Thanks. The more I understand. The more I will get into the coding, but for
now I will try and do most by rules and filters and leave the coding as a
last resort. :-)
Thanks for the book information.
Socaprice
> "Developing Solutions with Microsoft InfoPath" from Microsoft Press.
>
[quoted text clipped - 182 lines]
> > > > > > > > > >
> > > > > > > > > > Socaprice