I'm not sure what you're trying to do, Paulo. I tried your first method and
it worked fine for me. I put a repeating table in a repeating section and
tried to programmatically write to a field (Whole Number) in the repeating
table (QuestionID) in your case, and it worked. The code that I added to the
OnAfterChange of the field was:
if (eventObj.Site != eventObj.Parent)
{
eventObj.Site.removeAttribute("xsi:nil");
eventObj.Site.text = 2;
}
How did you set up your form? It sounds like you are trying to do something
that is not allowed by the schema of the form.
You may want to read this article too:
http://msdn.microsoft.com/library/en-us/ipsdk/html/ipsdkHandleDoubleNotification
s_HV01083591.asp?frame=true.
---
S.Y.M. Wong-A-Ton
> Hello,
>
[quoted text clipped - 41 lines]
> I still am not able to do it :(
> Paulo
Paulo - 25 Apr 2006 16:49 GMT
Hello,
> I'm not sure what you're trying to do, Paulo. I tried your first method and
> it worked fine for me. I put a repeating table in a repeating section and
> tried to programmatically write to a field (Whole Number) in the repeating
> table (QuestionID) in your case, and it worked. The code that I added to the
> OnAfterChange of the field was:
And you attached this to the QuestionID field...right?
> if (eventObj.Site != eventObj.Parent)
> {
[quoted text clipped - 4 lines]
> How did you set up your form? It sounds like you are trying to do something
> that is not allowed by the schema of the form.
Euh, what do you mean?:).
I added the fields one after the other...
Hm how do I debug this Schema violation?
Paulo
Paulo - 25 Apr 2006 18:32 GMT
Hello again,
I think I got it!
Stupid!
For my tests I always perfomed a Preview Form.....
But when I close it and fill it out, then it works..... :)
I need additional tests but I think that's it!
Thanks for your help!!!
Paulo
> I'm not sure what you're trying to do, Paulo. I tried your first method and
> it worked fine for me. I put a repeating table in a repeating section and
[quoted text clipped - 61 lines]
> > I still am not able to do it :(
> > Paulo
S.Y.M. Wong-A-Ton - 25 Apr 2006 19:13 GMT
Glad you finally got it to work!
---
S.Y.M. Wong-A-Ton
> Hello again,
>
[quoted text clipped - 72 lines]
> > > I still am not able to do it :(
> > > Paulo