Hi
Can I rebind controls to the schema at runtime?, and if yes, what commands or object module should I use.
Thanks
Matthew Blain \(Serriform\) - 13 Nov 2004 00:09 GMT
Controls are bound using XSL.
To rebind at runtime, you'll need to dynamicaly generate XSL and cause it to be applied.
You can do this by applying the XSL yourself and returning it though xdExtension.
But that's working against what the InfoPath does. Really really hard against it.
You're better off writing custom XSL which binds controls as appropriate.
Or use the 'lots of sections/controls with only one showing' as appropriate.
Or otherwise re-thinking the model.
--Matthew Blain
http://tips.serriform.com/
http://www.developingsolutionswithinfopath.com
Hi
Can I rebind controls to the schema at runtime?, and if yes, what commands or object module should I use.
Thanks