RE: use of relevance

Hi Meghana,
 
There are a couple of examples in the spec, even though the spec is designed primarily to communicate what to build into an XForms processor rather than how to build XForms themselves.
 
The public xforms web page also has some resources, but to be honest I would recommend obtaining a book on XForms.  This isn't a shameless product plug, of course, since I didn't write any of the books available.  A good place to go to look up TV Raman's and Micah Dubinko's books would be amazon.com.
 
Best regards,
John Boyer

-----Original Message-----
From: Meghana [mailto:mmystore@hotmail.com]
Sent: Thursday, July 22, 2004 9:39 AM
To: John Boyer; www-forms@w3.org
Subject: RE: use of relevance



Hi John,

 

Thanks for the reply. I checked out the switch module from Xforms specification and the example they have given uses toggle action to switch among the cases. The switch tag supports single value binding but how it can be used to select a particular case? Can you give me some example?

 

Once again thanks for clarifying my doubts.

Meghana.


  _____  


From: John Boyer [mailto:JBoyer@PureEdge.com] 
Sent: Thursday, July 22, 2004 6:39 AM
To: Meghana; www-forms@w3.org
Subject: RE: use of relevance

 

Hi Meghana,

 

One option is to use a switch to control what is visible.

 

Another is to create a submission instance distinct from the processing instance.  The processing instance would have relevant MIPs, but the submission instance wouldn't.  Either using calculate binds or using setvalue actions in an xforms-submit handler, copy the data to the submission instance before submission takes place.  This will get easier in XForms 1.1 with a copy subtree action (which is as yet unnamed).

 

Cheers,

John Boyer

-----Original Message-----
From: Meghana [mailto:mmystore@hotmail.com]
Sent: Wednesday, July 21, 2004 5:06 PM
To: John Boyer; www-forms@w3.org
Subject: RE: use of relevance

I wonder how xforms handles a case when a control becomes irrelevant based on value of the instance data but the submission still needs to submit that value. Or in that case we are not supposed to use relevance and use something else? What is that other option?

 

Meghana.

 

 


  _____  


From: John Boyer [mailto:JBoyer@PureEdge.com] 
Sent: Tuesday, July 20, 2004 11:55 AM
To: Meghana; www-forms@w3.org
Subject: RE: use of relevance

 

Hi Meghana,

 

The first one.  Relevance applies to instance nodes.  The relevant MIP is then interpreted by both bound form controls and submission.

 

Cheers,

John Boyer

-----Original Message-----
From: Meghana [mailto:mmystore@hotmail.com]
Sent: Tuesday, July 20, 2004 10:39 AM
To: www-forms@w3.org
Subject: use of relevance

Hello,

 

When a <Bind> element has relevance attribute, is it supposed to make the bound element in the XForms model relevant or the bound control relevant? In the former case, the control will see that the model is not relevant right now and hide itself; also the submission will not include that value. In the later case, the control is hidden but model still holds that value as valid data. Which approach is correct?

 

Thanks,

Meghana.

 

 

 

Received on Thursday, 22 July 2004 17:19:23 UTC