XML Schema & rules

O

olivier

I built a form from an XML Schema. But in this case, rules and data
validation are shaded. I can understand that but then I can't call
javascript actions, which is quite a problem in my case. Am I right ?
 
V

virgul

hi,

I know only one solution for do that!
create the same schema as your schema in infopath and you can have
rules and data validation. I think it's probably the best way.
But if anybody has another solution?


++

Thierry
 
O

olivier

Thanks for the answer, I saw the other answer (the question was mine). But my
question is about rules; I understand that if I use an XML schema it's better
not to modify structure (but Infopath could then propose to disconnect from
the XML schema, I think that this should be an improvment).
But : Why does this forbid to add a rule ? It could be possible to compute a
field from the result of others. I wonder if this is not also an explanation
of a problem I got, that's to say I can't set a field from javascript,
getting the message "read-only" from the code although I can fill fields with
the keyboard.
 
O

olivier

In fact, it concerns the main data source but with a closer look, it applies
only to controls (drop-list, text box) that are inside a repeating and
recursive section. In this case, binding, validation and rules sections are
shaded. Perhaps a reason due to recursivity.
 
B

Bob C.

Is recursion usage limits documented by MS anywhere? What features won't work?

Greg Collins said:
Yes - good catch. I'm not sure the exact reasoning (perhaps Microsoft will wish to give an explanation here), but items within a recursive section have certain features disabled.

--
Greg Collins [InfoPath MVP]
Please visit: http://www.InfoPathDev.com



In fact, it concerns the main data source but with a closer look, it applies
only to controls (drop-list, text box) that are inside a repeating and
recursive section. In this case, binding, validation and rules sections are
shaded. Perhaps a reason due to recursivity.

Greg Collins said:
It sounds like you are using the schema for a secondary data source? If so, then this is the expected behavior -- not for the schema, but for the secondary data source. Secondary data sources do not have all of the UI features available to them.

If you are using it as your main data source, then something else is wrong.

--
Greg Collins [InfoPath MVP]
Please visit: http://www.InfoPathDev.com



I built a form from an XML Schema. But in this case, rules and data
validation are shaded. I can understand that but then I can't call
javascript actions, which is quite a problem in my case. Am I right ?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top