remove referece from Content Assist [message #1723520] |
Tue, 16 February 2016 11:17 |
pranay roy Messages: 196 Registered: January 2016 |
Senior Member |
|
|
Hi,
This is my grammar
Model:
greetings=Query;
Query:
(key=QTypekeyWord)? (aggregation=Aggregation)? (measure=MeasureList) ((by='by'groupBy=GroupBy)? &(condition=Condtition)? );
QTypekeyWord:
qKeyword='plot'|'chart'
;
Condtition:
con+='for' dimVal=DimensionValue 'as' dim=Dimension ('and' dimValue=DimensionValue 'as' dimen=Dimension)*
;
MeasureList : names+=Measure ("and" names+=Measure)*;
Measure:ID+;
Dimension:
dimension=ID+
;
DimensionValue:
value=ID+
;
GroupBy:
group+= Dimension ('and' group+=Dimension)* |
group+= TimeGroup ('and' group+=Dimension)*
;
When I use the content assist , I get the reference name "dimension" after the last word typed.
Here ,
For example
"plot sales by employee for abc" gives me "dimension" after abc as the content assist. I would like to understand whether it is the usual behaviour. Ideally , I would want to Dimension to be same as Measure:ID+;
ie
Dimension:ID+
;
but ,when I run this grammar without a reference for Dimension I get an error. Is this the usual behaviour.
I would like to understand how variable assignement is different from just using ID+ .
[Updated on: Tue, 16 February 2016 11:18] Report message to a moderator
|
|
|
|
|
|
|
Re: remove referece from Content Assist [message #1723551 is a reply to message #1723549] |
Tue, 16 February 2016 14:46 |
|
i dont get any problem with that nor with this one
Model:
greetings=Query;
Query:
(key=QTypekeyWord)? (measure=MeasureList) ((by='by'groupBy=GroupBy)? &(condition=Condtition)? );
QTypekeyWord:
qKeyword='plot'|'chart'
;
Condtition:
con+='for' dimVal=DimensionValue 'as' dim=Dimension ('and' dimValues+=DimensionValue 'as' dimen+=Dimension)*
;
MeasureList : names+=Measure ("and" names+=Measure)*;
Measure:ID+;
Dimension:
ID+
;
DimensionValue:
ID+
;
GroupBy:
group+= Dimension ('and' group+=Dimension)*
;
Twitter : @chrdietrich
Blog : https://www.dietrich-it.de
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.11367 seconds