- From: Micah Dubinko <MDubinko@cardiff.com>
- Date: Wed, 18 Apr 2001 12:33:08 -0700
- To: "'Belov, Alexey'" <Alexey.Belov@scala.ru>
- Cc: "'www-forms@w3.org'" <www-forms@w3.org>
Hi Alexey, Let's say your desired instance data looked like this: <Envelope> <name>...</name> <salary>...</salary> ... <access>manager</access> </Envelope> For this example, I added an extra tag, <access>. This might be considered a "hidden" field--it exists in the instance data, but will never show up in a form control. This would be generated by the buisiness logic on the server prior to XForms processing the instance data. SECURITY NOTE: For some pieces of sensitive data, like <salary>, it might not be sufficient to just instruct the form not to show it. It would be advisable to only send this data on a 'need-to-know' basis, over a secure connection. Now, take for instance an XForms form control to be used to edit the <salary>. Use... A binding expression of ref="Envelope/salary" to refer to the correct location in the instance data. A model item property of relevant="Envelope/access is 'manager'" to make sure only those with "manager" access can change this field. A similar logic applies to the roles of "assistant" or "junior" or any others. Please don't take the exact syntax here literally -- our upcoming drafts will revise and improve this aspect. Thanks! Micah J. Dubinko, CDIA Senior Engineer Chief XML Architect http://www.Cardiff.com/ -----Original Message----- From: Belov, Alexey [mailto:Alexey.Belov@scala.ru] Sent: Wednesday, April 18, 2001 5:47 AM To: 'www-forms@w3.org' Subject: Binding Dear All ! I liked the working draft for XForms very much: a lot of brilliant ideas are in there. But some things important for me are not clear, especially the binding between XForms Model and XML instance data. Let's look at the following example: 1) I receive an XML from my business logic object with ALL the data for Employee: Code, Name, Address, Salary, Bonus Percent, etc; 2) I have three users working with my system: HR Manager can enter new Employees and adjust all the information for existing ones; HR Manager Assistant can select existing Employees, see their Codes and Names and adjust Address only; Junior Accountant can adjust only Bonus Percent for existing Employees; 3) So, I want to have three XForms Models for these guys with different values of ReadOnly, Relevant, Required and Validate properties for the same Model Elements bound to the same XML data. 4) PROBLEM: There is no binding possibility between XForms Model and XML data !!! Could somebody of You propose some solution or inform me about the latest W3C decisions on this problem. Thank You in advance ! Best regards, Alexey
Received on Wednesday, 18 April 2001 15:37:48 UTC