Issue in 2018.1 with custom property

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

Issue in 2018.1 with custom property

ricetrac
Hi,

Finally I start the test of 2018.1.

I have an error js on browser when trying to display my first page:

SyntaxError: expected property name, got ','[En savoir plus]
11d44ea6e7d38196da7cc74cb4491e5946c058cd.js:1:27

ReferenceError: opsXFormsProperties is not defined
xforms.js:774:14
        this.ORBEON.util.Property</Property.prototype.get
http://localhost:8090/Extranet/ops/javascript/xforms.js:774:14
        document/< http://localhost:8090/Extranet/ops/javascript/xforms.js:3523:99
        forEach self-hosted:268:13
        _.forEach
http://localhost:8090/Extranet/ops/javascript/underscore/underscore.js:79:7
        document http://localhost:8090/Extranet/ops/javascript/xforms.js:3516:13
        notify http://localhost:8090/Extranet/ops/yui/event/event.js:324:23
        fire http://localhost:8090/Extranet/ops/yui/event/event.js:285:23
        _ready http://localhost:8090/Extranet/ops/yui/event/event.js:1600:21

These errors disappear when I remove the customization of properties:
<property as="xs:string"  name="oxf.xforms.format.output.date">
                if (. castable as xs:date) then format-date(xs:date(.),
'[D01]/[M01]/[Y0001]', 'fr', (), ()) else .
</property>
and
<property as="xs:string"  name="oxf.xforms.format.input.date"
value="[D01]/[M01]/[Y]"/>

I tested by removing the "01" and it also works.
<property as="xs:string"  name="oxf.xforms.format.output.date">
                if (. castable as xs:date) then format-date(xs:date(.), '[D]/[M]/[Y]',
'fr', (), ()) else .
                </property>
<property as="xs:string"  name="oxf.xforms.format.input.date"
value="[D]/[M]/[Y]"/>



I did not find where the problem came from.
I test in "dev" mode, so without the minimal resources.

Thank You.


--
Sent from: http://discuss.orbeon.com/

--
You received this message because you are subscribed to the Google Groups "Orbeon Forms" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].
Reply | Threaded
Open this post in threaded view
|

Re: Issue in 2018.1 with custom property

Alessandro  Vernet
Administrator
Hi Julien,

Indeed, good catch. I created issue #3736, and it is now fixed. The fix will
be in 2018.1.1. Sorry for the trouble, and thank you for letting us know
about this one!

https://github.com/orbeon/orbeon-forms/issues/3736

-Alex

-----
--
Follow Orbeon on Twitter: @orbeon
Follow me on Twitter: @avernet
--
Sent from: http://discuss.orbeon.com/

--
You received this message because you are subscribed to the Google Groups "Orbeon Forms" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].
--
Follow Orbeon on Twitter: @orbeon
Follow me on Twitter: @avernet
Reply | Threaded
Open this post in threaded view
|

RE:[orbeon] Re: Issue in 2018.1 with custom property

ricetrac
Hi Alex,

thank you for this correction.


Julien

________________________________________
De : [hidden email] [[hidden email]] de la part de Alessandro Vernet [[hidden email]]
Envoyé : jeudi 13 septembre 2018 05:44
À : [hidden email]
Objet : [orbeon] Re: Issue in 2018.1 with custom property

Hi Julien,

Indeed, good catch. I created issue #3736, and it is now fixed. The fix will
be in 2018.1.1. Sorry for the trouble, and thank you for letting us know
about this one!

https://github.com/orbeon/orbeon-forms/issues/3736

-Alex

-----
--
Follow Orbeon on Twitter: @orbeon
Follow me on Twitter: @avernet
--
Sent from: http://discuss.orbeon.com/

--
You received this message because you are subscribed to the Google Groups "Orbeon Forms" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].

--
You received this message because you are subscribed to the Google Groups "Orbeon Forms" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].