unchangeable field

classic Classic list List threaded Threaded
8 messages Options
Reply | Threaded
Open this post in threaded view
|

unchangeable field

Łukasz Gendek
Field with properties readonly = 'false' and calculate = "some rule" cannot be modified in Orbeon. I think it is a bug. Chiba allows me to do it.
 
Regards
 
Lukasz Gendek


--
You receive this message as a subscriber of the [hidden email] mailing list.
To unsubscribe: mailto:[hidden email]
For general help: mailto:[hidden email]?subject=help
OW2 mailing lists service home page: http://www.ow2.org/wws
Reply | Threaded
Open this post in threaded view
|

Re: unchangeable field

Erik Bruchez
Administrator
Try readonly="false()". This definitely works for me. If it still  
doesn't work, please post some code.

-Erik

On Jun 22, 2008, at 11:27 PM, Łukasz Gendek wrote:

> Field with properties readonly = 'false' and calculate = "some rule"  
> cannot be modified in Orbeon. I think it is a bug. Chiba allows me  
> to do it.
>
> Regards
>
> Lukasz Gendek
>
> --
> You receive this message as a subscriber of the [hidden email]  
> mailing list.
> To unsubscribe: mailto:[hidden email]
> For general help: mailto:[hidden email]?subject=help
> OW2 mailing lists service home page: http://www.ow2.org/wws
--
Orbeon Forms - Web Forms for the Enterprise Done the Right Way
http://www.orbeon.com/



--
You receive this message as a subscriber of the [hidden email] mailing list.
To unsubscribe: mailto:[hidden email]
For general help: mailto:[hidden email]?subject=help
OW2 mailing lists service home page: http://www.ow2.org/wws
Reply | Threaded
Open this post in threaded view
|

Re: unchangeable field

Łukasz Gendek
In reply to this post by Łukasz Gendek
Assume, we have following code:
...
  <xforms:bind nodeset="/instance/users" calculate="2 + 2" readonly="false()"/>
...
<A class=b onfocus=h() onclick="return false" href="file:///H:/temp/load-calculator.xml#">- <xforms:output ref="users">
      <xforms:label>Users:</xforms:label>
  </xforms:output>
 
I would like to change users number on the form. But I am not able. It is always 4. I think it should be possible to change the value of auto-calculated fields. For example, in the government form - the real world example, the expression is not always perfect, man want to put value on his own.
 
Lukasz Gendek
----- Original Message -----
Sent: Monday, June 23, 2008 8:27 AM
Subject: [ops-users] unchangeable field

Field with properties readonly = 'false' and calculate = "some rule" cannot be modified in Orbeon. I think it is a bug. Chiba allows me to do it.
 
Regards
 
Lukasz Gendek



--
You receive this message as a subscriber of the [hidden email] mailing list.
To unsubscribe: [hidden email]
For general help: [hidden email]
OW2 mailing lists service home page: http://www.ow2.org/wws


--
You receive this message as a subscriber of the [hidden email] mailing list.
To unsubscribe: mailto:[hidden email]
For general help: mailto:[hidden email]?subject=help
OW2 mailing lists service home page: http://www.ow2.org/wws
Reply | Threaded
Open this post in threaded view
|

Re: Re: unchangeable field

Ryan Puddephatt-3
In reply to this post by Łukasz Gendek
Lukasz
    Change @calculate to calculate your value, 2 + 2 will always return 4

Ryan
------------------------
Ryan Puddephatt
FIX Developer
Fidessa LatentZero
1 Alfred Place
London WC1E 7EB
Office: +44 (0) 20 7462 4200
Direct: +44 (0) 20 7323 6112
Blackberry: +44 (0) 79 8539 2458
Fax: +44 (0) 20 7462 4242
Email: [hidden email]
Web: http://www.latentzero.com
Sent from my blackberry device

----- Original Message -----
From: Łukasz Gendek <[hidden email]>
To: [hidden email] <[hidden email]>
Sent: Tue Jun 24 11:49:44 2008
Subject: [ops-users] Re: unchangeable field

Assume, we have following code:
...
  <xforms:bind nodeset="/instance/users" calculate="2 + 2" readonly="false()"/>
...
- <file:///H:/temp/load-calculator.xml#>  <xforms:output ref="users">
      <xforms:label>Users:</xforms:label>
  </xforms:output>
 
I would like to change users number on the form. But I am not able. It is always 4. I think it should be possible to change the value of auto-calculated fields. For example, in the government form - the real world example, the expression is not always perfect, man want to put value on his own.
 
Lukasz Gendek

        ----- Original Message -----
        From: Łukasz Gendek <mailto:[hidden email]>  
        To: [hidden email]
        Sent: Monday, June 23, 2008 8:27 AM
        Subject: [ops-users] unchangeable field

        Field with properties readonly = 'false' and calculate = "some rule" cannot be modified in Orbeon. I think it is a bug. Chiba allows me to do it.
         
        Regards
         
        Lukasz Gendek

        ________________________________

       
        --
        You receive this message as a subscriber of the [hidden email] mailing list.
        To unsubscribe: mailto:[hidden email]
        For general help: mailto:[hidden email]?subject=help
        OW2 mailing lists service home page: http://www.ow2.org/wws
       


______________________________________________________________________
This email has been scanned by the MessageLabs Email Security System.
For more information please visit http://www.messagelabs.com/email 
______________________________________________________________________


_______________________________________________________________________
The information transmitted is intended only for the person or entity to which it is addressed and may contain confidential and/or privileged material. Any review, retransmission, dissemination or other use of, or taking of any action in reliance upon, this information by persons or entities other than the intended recipient is prohibited. If you received this in error, please contact the sender and delete the material from any computer.

_____________________________________________________________________
This e-mail has been scanned for viruses by Verizon Business Internet Managed Scanning Services - powered by MessageLabs. For further information visit http://www.mci.com


--
You receive this message as a subscriber of the [hidden email] mailing list.
To unsubscribe: mailto:[hidden email]
For general help: mailto:[hidden email]?subject=help
OW2 mailing lists service home page: http://www.ow2.org/wws
Reply | Threaded
Open this post in threaded view
|

Re: Re: Re: unchangeable field

Łukasz Gendek
I would like to fill '5' in the form. The system does not allow me to do it.
When I am writing 5 it is automatically changed to 4. I am aware that there
is a rule 2 + 2. But my filling should be more important than the rule.

Lukasz Gendek

----- Original Message -----
From: "Ryan Puddephatt" <[hidden email]>
To: <[hidden email]>
Sent: Tuesday, June 24, 2008 1:23 PM
Subject: [ops-users] Re: Re: unchangeable field


> Lukasz
>    Change @calculate to calculate your value, 2 + 2 will always return 4
>
> Ryan
> ------------------------
> Ryan Puddephatt
> FIX Developer
> Fidessa LatentZero
> 1 Alfred Place
> London WC1E 7EB
> Office: +44 (0) 20 7462 4200
> Direct: +44 (0) 20 7323 6112
> Blackberry: +44 (0) 79 8539 2458
> Fax: +44 (0) 20 7462 4242
> Email: [hidden email]
> Web: http://www.latentzero.com
> Sent from my blackberry device
>
> ----- Original Message -----
> From: Łukasz Gendek <[hidden email]>
> To: [hidden email] <[hidden email]>
> Sent: Tue Jun 24 11:49:44 2008
> Subject: [ops-users] Re: unchangeable field
>
> Assume, we have following code:
> ...
>  <xforms:bind nodeset="/instance/users" calculate="2 + 2"
> readonly="false()"/>
> ...
> - <file:///H:/temp/load-calculator.xml#>  <xforms:output ref="users">
>      <xforms:label>Users:</xforms:label>
>  </xforms:output>
>
> I would like to change users number on the form. But I am not able. It is
> always 4. I think it should be possible to change the value of
> auto-calculated fields. For example, in the government form - the real
> world example, the expression is not always perfect, man want to put value
> on his own.
>
> Lukasz Gendek
>
> ----- Original Message -----
> From: Łukasz Gendek <mailto:[hidden email]>
> To: [hidden email]
> Sent: Monday, June 23, 2008 8:27 AM
> Subject: [ops-users] unchangeable field
>
> Field with properties readonly = 'false' and calculate = "some rule"
> cannot be modified in Orbeon. I think it is a bug. Chiba allows me to do
> it.
>
> Regards
>
> Lukasz Gendek
>
> ________________________________
>
>
> --
> You receive this message as a subscriber of the [hidden email] mailing
> list.
> To unsubscribe: mailto:[hidden email]
> For general help: mailto:[hidden email]?subject=help
> OW2 mailing lists service home page: http://www.ow2.org/wws
>
>
>
> ______________________________________________________________________
> This email has been scanned by the MessageLabs Email Security System.
> For more information please visit http://www.messagelabs.com/email
> ______________________________________________________________________
>
>
> _______________________________________________________________________
> The information transmitted is intended only for the person or entity to
> which it is addressed and may contain confidential and/or privileged
> material. Any review, retransmission, dissemination or other use of, or
> taking of any action in reliance upon, this information by persons or
> entities other than the intended recipient is prohibited. If you received
> this in error, please contact the sender and delete the material from any
> computer.
>
> _____________________________________________________________________
> This e-mail has been scanned for viruses by Verizon Business Internet
> Managed Scanning Services - powered by MessageLabs. For further
> information visit http://www.mci.com
>

--------------------------------------------------------------------------------



--
You receive this message as a subscriber of the [hidden email] mailing
list.
To unsubscribe: mailto:[hidden email]
For general help: mailto:[hidden email]?subject=help
OW2 mailing lists service home page: http://www.ow2.org/wws



--
You receive this message as a subscriber of the [hidden email] mailing list.
To unsubscribe: mailto:[hidden email]
For general help: mailto:[hidden email]?subject=help
OW2 mailing lists service home page: http://www.ow2.org/wws
Reply | Threaded
Open this post in threaded view
|

Re: Re: Re: Re: unchangeable field

Ryan Puddephatt-3
In reply to this post by Łukasz Gendek
Lukasz,
     A binding will override your user input

Ryan
------------------------
Ryan Puddephatt
FIX Developer
Fidessa LatentZero
1 Alfred Place
London WC1E 7EB
Office: +44 (0) 20 7462 4200
Direct: +44 (0) 20 7323 6112
Blackberry: +44 (0) 79 8539 2458
Fax: +44 (0) 20 7462 4242
Email: [hidden email]
Web: http://www.latentzero.com
Sent from my blackberry device

----- Original Message -----
From: Łukasz Gendek <[hidden email]>
To: [hidden email] <[hidden email]>
Sent: Tue Jun 24 12:38:08 2008
Subject: [ops-users] Re: Re: Re: unchangeable field

I would like to fill '5' in the form. The system does not allow me to do it.
When I am writing 5 it is automatically changed to 4. I am aware that there
is a rule 2 + 2. But my filling should be more important than the rule.

Lukasz Gendek

----- Original Message -----
From: "Ryan Puddephatt" <[hidden email]>
To: <[hidden email]>
Sent: Tuesday, June 24, 2008 1:23 PM
Subject: [ops-users] Re: Re: unchangeable field


> Lukasz
>    Change @calculate to calculate your value, 2 + 2 will always return 4
>
> Ryan
> ------------------------
> Ryan Puddephatt
> FIX Developer
> Fidessa LatentZero
> 1 Alfred Place
> London WC1E 7EB
> Office: +44 (0) 20 7462 4200
> Direct: +44 (0) 20 7323 6112
> Blackberry: +44 (0) 79 8539 2458
> Fax: +44 (0) 20 7462 4242
> Email: [hidden email]
> Web: http://www.latentzero.com
> Sent from my blackberry device
>
> ----- Original Message -----
> From: Łukasz Gendek <[hidden email]>
> To: [hidden email] <[hidden email]>
> Sent: Tue Jun 24 11:49:44 2008
> Subject: [ops-users] Re: unchangeable field
>
> Assume, we have following code:
> ...
>  <xforms:bind nodeset="/instance/users" calculate="2 + 2"
> readonly="false()"/>
> ...
> - <file:///H:/temp/load-calculator.xml#>  <xforms:output ref="users">
>      <xforms:label>Users:</xforms:label>
>  </xforms:output>
>
> I would like to change users number on the form. But I am not able. It is
> always 4. I think it should be possible to change the value of
> auto-calculated fields. For example, in the government form - the real
> world example, the expression is not always perfect, man want to put value
> on his own.
>
> Lukasz Gendek
>
> ----- Original Message -----
> From: Łukasz Gendek <mailto:[hidden email]>
> To: [hidden email]
> Sent: Monday, June 23, 2008 8:27 AM
> Subject: [ops-users] unchangeable field
>
> Field with properties readonly = 'false' and calculate = "some rule"
> cannot be modified in Orbeon. I think it is a bug. Chiba allows me to do
> it.
>
> Regards
>
> Lukasz Gendek
>
> ________________________________
>
>
> --
> You receive this message as a subscriber of the [hidden email] mailing
> list.
> To unsubscribe: mailto:[hidden email]
> For general help: mailto:[hidden email]?subject=help
> OW2 mailing lists service home page: http://www.ow2.org/wws
>
>
>
> ______________________________________________________________________
> This email has been scanned by the MessageLabs Email Security System.
> For more information please visit http://www.messagelabs.com/email
> ______________________________________________________________________
>
>
> _______________________________________________________________________
> The information transmitted is intended only for the person or entity to
> which it is addressed and may contain confidential and/or privileged
> material. Any review, retransmission, dissemination or other use of, or
> taking of any action in reliance upon, this information by persons or
> entities other than the intended recipient is prohibited. If you received
> this in error, please contact the sender and delete the material from any
> computer.
>
> _____________________________________________________________________
> This e-mail has been scanned for viruses by Verizon Business Internet
> Managed Scanning Services - powered by MessageLabs. For further
> information visit http://www.mci.com
>

--------------------------------------------------------------------------------



--
You receive this message as a subscriber of the [hidden email] mailing
list.
To unsubscribe: mailto:[hidden email]
For general help: mailto:[hidden email]?subject=help
OW2 mailing lists service home page: http://www.ow2.org/wws



______________________________________________________________________
This email has been scanned by the MessageLabs Email Security System.
For more information please visit http://www.messagelabs.com/email 
______________________________________________________________________

_______________________________________________________________________
The information transmitted is intended only for the person or entity to which it is addressed and may contain confidential and/or privileged material. Any review, retransmission, dissemination or other use of, or taking of any action in reliance upon, this information by persons or entities other than the intended recipient is prohibited. If you received this in error, please contact the sender and delete the material from any computer.

_____________________________________________________________________
This e-mail has been scanned for viruses by Verizon Business Internet Managed Scanning Services - powered by MessageLabs. For further information visit http://www.mci.com


--
You receive this message as a subscriber of the [hidden email] mailing list.
To unsubscribe: mailto:[hidden email]
For general help: mailto:[hidden email]?subject=help
OW2 mailing lists service home page: http://www.ow2.org/wws
Reply | Threaded
Open this post in threaded view
|

Re: Re: unchangeable field

Hank Ratzesberger
In reply to this post by Łukasz Gendek
Lukasz,

I can't say if Chiba or OF implements the standard right (or better,  
etc.)
but indeed OF will recalculate the field according to the binding.

Is this an initial value? Is "2 + 2" a simplified example for a more
complex calculation -- that happens when other fields are changed?

My guess is that with OF, you will need to use other methods --  
<setvalue>
and <action> elements to achieve what the calculate attribute does.

For example, xforms-value-changed event on any inputs used in the  
calculate
will setvalue "users"  or xforms-ready if this is a one-time  
initialization.

I hope that is some help.

--Hank

On Jun 24, 2008, at 3:49 AM, Łukasz Gendek wrote:

> Assume, we have following code:
> ...
>   <xforms:bind nodeset="/instance/users" calculate="2 + 2"  
> readonly="false()"/>
> ...
> - <xforms:output ref="users">
>       <xforms:label>Users:</xforms:label>
>   </xforms:output>
>
> I would like to change users number on the form. But I am not able.  
> It is always 4. I think it should be possible to change the value  
> of auto-calculated fields. For example, in the government form -  
> the real world example, the expression is not always perfect, man  
> want to put value on his own.
>
> Lukasz Gendek
> ----- Original Message -----
> From: Łukasz Gendek
> To: [hidden email]
> Sent: Monday, June 23, 2008 8:27 AM
> Subject: [ops-users] unchangeable field
>
> Field with properties readonly = 'false' and calculate = "some  
> rule" cannot be modified in Orbeon. I think it is a bug. Chiba  
> allows me to do it.
>
> Regards
>
> Lukasz Gendek
>
>
>
> --
> You receive this message as a subscriber of the [hidden email]  
> mailing list.
> To unsubscribe: mailto:[hidden email]
> For general help: mailto:[hidden email]?subject=help
> OW2 mailing lists service home page: http://www.ow2.org/wws
>
> --
> You receive this message as a subscriber of the [hidden email]  
> mailing list.
> To unsubscribe: mailto:[hidden email]
> For general help: mailto:[hidden email]?subject=help
> OW2 mailing lists service home page: http://www.ow2.org/wws
Hank Ratzesberger
NEES@UCSB
Institute for Crustal Studies,
University of California, Santa Barbara
805-893-8042







--
You receive this message as a subscriber of the [hidden email] mailing list.
To unsubscribe: mailto:[hidden email]
For general help: mailto:[hidden email]?subject=help
OW2 mailing lists service home page: http://www.ow2.org/wws
Reply | Threaded
Open this post in threaded view
|

Re: Re: unchangeable field

Erik Bruchez
Administrator
In reply to this post by Łukasz Gendek
Lucasz,

Recalculation will occur everytime there is an XForms recalculate. I  
believe it is the proper behavior that you are observing.

But you could change this to:

   calculate="if (normalize-space() = '') then 2 + 2 else ."

-Erik

On Jun 24, 2008, at 3:49 AM, Łukasz Gendek wrote:

> Assume, we have following code:
> ...
>   <xforms:bind nodeset="/instance/users" calculate="2 + 2"  
> readonly="false()"/>
> ...
> - <xforms:output ref="users">
>       <xforms:label>Users:</xforms:label>
>   </xforms:output>
>
> I would like to change users number on the form. But I am not able.  
> It is always 4. I think it should be possible to change the value of  
> auto-calculated fields. For example, in the government form - the  
> real world example, the expression is not always perfect, man want  
> to put value on his own.
>
> Lukasz Gendek
> ----- Original Message -----
> From: Łukasz Gendek
> To: [hidden email]
> Sent: Monday, June 23, 2008 8:27 AM
> Subject: [ops-users] unchangeable field
>
> Field with properties readonly = 'false' and calculate = "some rule"  
> cannot be modified in Orbeon. I think it is a bug. Chiba allows me  
> to do it.
>
> Regards
>
> Lukasz Gendek
>
>
>
> --
> You receive this message as a subscriber of the [hidden email]  
> mailing list.
> To unsubscribe: mailto:[hidden email]
> For general help: mailto:[hidden email]?subject=help
> OW2 mailing lists service home page: http://www.ow2.org/wws
>
> --
> You receive this message as a subscriber of the [hidden email]  
> mailing list.
> To unsubscribe: mailto:[hidden email]
> For general help: mailto:[hidden email]?subject=help
> OW2 mailing lists service home page: http://www.ow2.org/wws
--
Orbeon Forms - Web Forms for the Enterprise Done the Right Way
http://www.orbeon.com/



--
You receive this message as a subscriber of the [hidden email] mailing list.
To unsubscribe: mailto:[hidden email]
For general help: mailto:[hidden email]?subject=help
OW2 mailing lists service home page: http://www.ow2.org/wws