Current XPath

D

Dave Lind

I'm using a task pane in my solution from which I would like to insert some
pre-defined text in to the form (i.e from a combobox so that the user would
not have to type some static text every time and he/she would have the
possibility to determine which text he would like to insert).

I was hopeing that the user could select the field from the form by clicking
it and then select the appropriate static text from the task panes combobox.
Is there any way I could get the XPath of the selected textbox in the form
and then insert the value into it by using
docNode = domDoc.selectSingleNode(XPathIneed) and
docNode.text = cbo.Text.

Thank you in advance!
 
D

Dave Lind

Thank you Shiva for your reply.

I'm not using a html file for my task pane. The task pane is created with
Visual Studio as an Office Add-in. And I'm already able to insert the text
from the combobox in to a "static" field in the form. Meaning that I can only
insert the text into a pre-defined field in the form.

My problem was though that the form user could click a random field in the
IP form and after that select some random text from the task pane combobox.
So I need to have the appropriate "Field XPath" on the fly. Do you think that
this is even possible? I don't :)
 

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