Re: Kein Betreff

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Kein Betreff

Ralf Hagenbuck-2
 I found out. It works. Simply take the number part (#-n )of the quantitiy property and all is fine.

like

{{#expr: 1.19*
{{#show:
MYPAGE
|?Betrag Angebot#-n
}}
round 2}}


Thanks Ralf


----- Original Nachricht ----
Von:     Ralf Hagenbuck <[hidden email]>
An:      [hidden email]
Datum:   30.01.2017 14:23
Betreff: Kein Betreff

> Is there a way to use Extension:ParserFunctions #expr on semantic results
> with type quantity.
>
> I try to do some math with property:Betrag Angebot wich contains some money
> values.
>
> Property:Betrag Angebot
>  [[has type::quantity]]
>
>  [[corresponds to::1,00 €]]
>
>  [[corresponds to::1,00]]
>
> sthn like
>
> {{#expr: 1.19*
> {{#show:
> MYPAGE
> |?Betrag Angebot=
> }}
> round 2}}
>
> or
>
> {{#expr: 1.19*
> {{formatnum:
> {{#show:
> RO:BV-01AP001-Enseidon GmbH-1
> |?Betrag Angebot=
> }}
> |R}}
> round 2}}
>
>
> results in error
>
> Expression-Fehler: Unerwarteter Operator <
>
> When doing this with properties of Type:Number this works.
>

------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, SlashDot.org! http://sdm.link/slashdot
_______________________________________________
Semediawiki-user mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/semediawiki-user
Loading...