Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / General MS InfoPath Questions / June 2005

Tip: Looking for answers? Try searching our database.

cannot update the data because the form is currently read-only

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Richard - 30 Jun 2005 01:55 GMT
I am trying to call a web service with a text argument from code.
I need to set this text dyanmically at runtime. like this:

Dim queryValue1 As IXMLDOMNode
queryValue1 =
wsDOM.selectSingleNode("//dfs:myFields/dfs:queryFields/tns:MarkLogicQuery/tns:txtXquery")

Dim qst as string
qst = "<result>this is a test</result>"
queryValue1.text = qst

this is where I get the error:
Infopath cannot update the data because the form is currently read-only

Is this because the fields on the form are all read only ?? ? what is going
on ???
Alex [MSFT] - 30 Jun 2005 19:51 GMT
You must be doing this in the event handler where the DOM is read-only. Try
putting this code onto a button click handler, for example. To do so, add a
button to your form, double-click on it to edit properties, then click "Edit
Code" to view and modify the onClick handler.

Good luck,
Alex @ Microsoft
>I am trying to call a web service with a text argument from code.
> I need to set this text dyanmically at runtime. like this:
[quoted text clipped - 13 lines]
> going
> on ???
Richard - 30 Jun 2005 20:36 GMT
Infopath is nice, but I am finding for simplest things , I have to go around
and around.
Here is what I am doing:

I have a drop down box that is bound to an xml file, and it populates in
load time.
I want the user to click on the drop down and select an option, and
onchange, make a call to the webservice with the argument set based on the
selection. i.e.
I will set the queryvalue.
Can I not have rule instead, without getting to this error.

> You must be doing this in the event handler where the DOM is read-only. Try
> putting this code onto a button click handler, for example. To do so, add a
[quoted text clipped - 20 lines]
> > going
> > on ???

Rate this thread:






 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.