B
blain
I'm not sure where else to post this, but it is office scripting so maybe
someone here could help. I apologize for tainting a vba group with js.![Wink ;) ;)](data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7)
I'm having some issues in the scripting with infopath that seem like they
should be quite simple. ANy help would be appreciated.
On my first form I only had one data source (Main)
and used the following code to set my file name prior to a save
meetingName = XDocument.DOM.selectSingleNode( "//my:field1" ).text;
meetingDate = XDocument.DOM.selectSingleNode( "//my:field2" ).text;
XDocument.UI.SetSaveAsDialogFileName(meetingDate + " - " +
meetingName);
Very simple...
Now on a new form I've got two data sources, again the field I'm trying
to use is simply a text box on the main form, but I just cannot get the
syntax correct. Name of the field is "UseCaseName"
I've tried:
docName = XDocument.DOM.selectSingleNode( "//my:UseCaseName" ).text;
I've tried it many different ways but simply cannot reference it, if I
navigate to it using the expression control that field is shown as
"my:UseCaseName"
But everytime I run this I get that the object cannot be found.
Please help, I know it is something ridiculously simple...
someone here could help. I apologize for tainting a vba group with js.
I'm having some issues in the scripting with infopath that seem like they
should be quite simple. ANy help would be appreciated.
On my first form I only had one data source (Main)
and used the following code to set my file name prior to a save
meetingName = XDocument.DOM.selectSingleNode( "//my:field1" ).text;
meetingDate = XDocument.DOM.selectSingleNode( "//my:field2" ).text;
XDocument.UI.SetSaveAsDialogFileName(meetingDate + " - " +
meetingName);
Very simple...
Now on a new form I've got two data sources, again the field I'm trying
to use is simply a text box on the main form, but I just cannot get the
syntax correct. Name of the field is "UseCaseName"
I've tried:
docName = XDocument.DOM.selectSingleNode( "//my:UseCaseName" ).text;
I've tried it many different ways but simply cannot reference it, if I
navigate to it using the expression control that field is shown as
"my:UseCaseName"
But everytime I run this I get that the object cannot be found.
Please help, I know it is something ridiculously simple...