Page 1 of 1

Disambiguation in Multiple-Element Rule Not Possible

Posted: Fri Feb 17, 2012 12:12 am
by image2x
Came accross this today when trying to use dimensional qualification (i.e. 'dim':'account'') inside a multiple-element group (i.e {'elmnt1,'elmnt2', 'etc'} ) on the left side of a rule.

This will error when saving with "Element Not Found":
[ { 'Account':'Sales' } ] = n: 1000;

This will error when saving with "Missing Right Brace":
[ { 'Units', 'Account':'Sales'} ] = n: 1000;

Either should work. 9.5.2 FP1 on AIX.

-- John

Re: Disambigation in Multiple-Element Rule Not Possible

Posted: Fri Feb 17, 2012 12:34 am
by rmackenzie
You are using the wrong syntax.

The correct syntax would be:

Code: Select all

[ 'Account':{'Sales' } ] = n: 1000;
Actually you don't need the { and } for a single element. The other statement should be:

Code: Select all

[ 'Units', 'Account':{'Sales'} ] = n: 1000;
Once again, you don't need the { or }.

This should work fine:

Code: Select all

['dim1':{'elem1','elem2'},'dim2':{'elemA','elemB'}]=N:100;
Etc etc.

Mods - this shouldn't be in the bug sub-forum.

Re: Disambigation in Multiple-Element Rule Not Possible

Posted: Fri Feb 17, 2012 12:37 am
by image2x
rmackenzie wrote:Your using the wrong syntax. The correct syntax would be:
Ahh-hah.... I don't recall that one being in the documentation (though I haven't read it since 9.4).
rmackenzie wrote:Mods - this shouldn't be in the bug sub-forum.
Yes, please move. Thanks.

Re: Disambiguation in Multiple-Element Rule Not Possible

Posted: Fri Feb 17, 2012 12:46 am
by rmackenzie
image2x wrote:I don't recall that one being in the documentation
Wouldn't be the first time :)