I just tried this with a textbox bound to my:field1 and it works. Can you
explain in more detail how you built your form?
- Scott
Scott,
Thank you for your reply. I am going crazy here :)
When I first started designing the form, I built it by modifying the Issue
Tracking (Simple) sample. Could this be the cause for the problem?
I created a blank form, and the code below works.... So why would it not
work in my actual form?
Thanks again,
JC
>I just tried this with a textbox bound to my:field1 and it works. Can you
>explain in more detail how you built your form?
[quoted text clipped - 34 lines]
>> Thanks in advance,
>> JC
Scott Roberts [MSFT] - 13 May 2005 00:52 GMT
The Issue Tracking form is pretty complex. It's possible that something
else in the form is causing this to fail. If I get a few minutes, I'll try
this in the Issue Tracking form.
- Scott
> Scott,
>
[quoted text clipped - 48 lines]
>>> Thanks in advance,
>>> JC
Scott L. Heim [MSFT] - 13 May 2005 21:36 GMT
Hi JC,
Well modifying one of the built-in samples could be the problem but without
knowing all the modifications you made, it's difficult to tell. However,
let me document the steps I just followed with the same template:
1) Chose to design the Issue Tracking (Simple) Sample
2) Displayed the Datasource Task Pane
3) Right-clicked on the root "issue" element and chose Add
4) Entered a name of: Field1 and clicked OK
5) Dragged Field1 onto the Issue Tracking View
6) Added a button to the Issue Tracking View
7) Edited the code for the button and entered the following (jscript):
var myFld = XDocument.DOM.selectSingleNode("//my:Field1");
XDocument.UI.Alert(myFld.text);
8) Previewed the solution, entered Scott in Field1 and clicked the button -
result: a message box was displayed with Scott.
Now I realize these are very basic changes but try these with a new copy of
the sample and let me know the results.
Best Regards,
Scott L. Heim
Microsoft
This posting is provided "AS IS" with no warranties, and confers no rights.