2008年12月9日 星期二

Predefined XML Schema and Custom Attribute

They are different…

I thought the XML Schema I defined in Envision will auto bind to CustomAttribute, but I am wrong.

They are different thing, they just use same Name Value idea.

When you binding an control’s (ex: WFTextBox) value with XML Schema, don’t think it will write to Custom Attribute as well and vice versa.

I still trying to find a way to write certain Custom Attribute to XML Schema.

You can use XPATH as name of Custom Attribute, then you can access the XML Schema.

ex: api.SetCustomAttr(woid, “/pd:myField/pd:EmployeeName”, “Foo Bar”);

沒有留言: