David E Jones wrote:

On Dec 18, 2008, at 11:29 AM, Jacques Le Roux wrote:

From: "David E Jones" <[email protected]>
It would be nice if UEL could return a BigDecimal whenever an expression involves an arithmetic operation (as well as what we were discussing in the other thread about telling UEL whether to allow and arithmetic operation or not, or whatever we can do
with that to avoid  the syntax problems... but that's another issue).

For now I like the idea of specifying the type of BigDecimal the best, and we'll see if we can improve things later (ie make them behave in a more friendly default way... like at least returning a numeric object of some sort instead of a String when there is
an arithmetic operation  in the expression).

Yes but there is also this conflict when using name/id like GIZMO-3644, like you said just above

For now just do what I did for the StockMoveServices.xml file: use the [""] (square-brace, quote) syntax instead of the . (dot) syntax.

In fact, while this hasn't been fully explored (Adrian is working on it and others may be too), my prediction is that in order to take advantage of the new features of UEL we'll have to stop using ambiguous syntax like the dot syntax whenever there is a change of a special character, like a - (dash), in the expression. Otherwise the parser doesn't know the difference. It's progress but it has plusses and minuses.


I'm making progress. The square braces won't need quotes when I get it committed.

-Adrian

Reply via email to