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 / May 2006

Tip: Looking for answers? Try searching our database.

changes on infopath template

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Rahman Hadi - 18 May 2006 10:09 GMT
Hi All,
When I have to add some nodes on data source template(deployment phase), I
always got problem after re-publish it on sharepoint server. The problem is
happened while user try to open the old version files which is created with
the old template. Event I add the node at the last position on the xml
tree(data source), it still can work. It's caused the control that's bind to
the new node is "DISABLED".
So to resolve this problem, I use "VS.net office development" and modify the
code while the "OnLoad" method is executing, then add node to
"thisXDocument.DOM" object and use "createXMLNode" method. It just can done
by the programmer hand right? ..:)
So, Is it the best thing to resolve the problem ?
If it's true, actually miscrosoft must think about that, cause infopath's
user is not always programmer? ..:)
and regarding the company always do some deployment and changes in bussiness
flow. Then infopath user can keep the old data and can modify the template
freely.

Please advice ...

Thanks,
Rahman H
Shailaja - 19 May 2006 12:41 GMT
Hello,
   One question that I have for you - Are you trying to upgrade the old xml
files with the newly added fields? If yes check this link
http://infopathdev.com/forums/topic.asp?TOPIC_ID=2342

Hope this helps!
Signature

Shailaja
http://www.autonomysystems.com

> Hi All,
> When I have to add some nodes on data source template(deployment phase), I
[quoted text clipped - 18 lines]
> Thanks,
> Rahman H
Rahman Hadi - 23 May 2006 02:31 GMT
Hi Shailaja,
yes i'm trying change the old data xml file which is synchronize with the
new form template schema. After I tried, it just upgrade the form template in
my local computer and it's not upgrade my old data .xml file with the new
node. the new field control data is still "DISABLED". and there was no change
in the old xml file.

any other suggestion?

thanks,

> Hello,
>     One question that I have for you - Are you trying to upgrade the old xml
> files with the newly added fields? If yes check this link
> http://infopathdev.com/forums/topic.asp?TOPIC_ID=2342
>
> Hope this helps!
Rahman Hadi - 23 May 2006 02:43 GMT
I work aroud with this. finally i've just add some lines code to add new node
manually while loading form.
try this one:

if(thisDOM.selectSingleNode"/my:From1/my:NewNode")==null){
IXMLDOMNode newNode = null;
string  csURI = thisDOM.documentElement.namespaceURI;
newNode = thisDOM.createNode(1,"my:NewNode",csURI);
newNode.nodeTypedValue = String.Empty;
thisDOM.selectSingleNode"/my:From1/my:NewNode").appendChild(newNode);
}

> Hi Shailaja,
> yes i'm trying change the old data xml file which is synchronize with the
[quoted text clipped - 13 lines]
> >
> > Hope this helps!
 
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.