Filtering a dGrid tree issue

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

Filtering a dGrid tree issue

Harry Devine

I have a dGrid tree (version 1.1.0) that I am setting an initial filter to show all items as follows:


collection: logStore.filter( o=> o.parent == undefined)


That was suggested to me several months ago by another list user and it works well.  However, I am now trying to build my code using the Dojo build system, and I get an error on that line.  The error states:


ERROR - Parse error.  syntax error


My build is currently against 1.11.2. I'm going to try 1.12 next but wanted to get this posted ASAP and see if anyone could help me out with it.


Thanks,

Harry


--
Dojo Toolkit: http://dojotoolkit.org/
Tutorials: http://dojotoolkit.org/documentation/

[hidden email]
To unsubscribe, visit: http://mail.dojotoolkit.org/mailman/listinfo/dojo-interest
Reply | Threaded
Open this post in threaded view
|

Re: Filtering a dGrid tree issue

Harry Devine

I performed my build against 1.12.2 and now the error (on the same line of code in my javascript) says:


ERROR - this language feature is only supported for ECMASCRIPT6 mode or better: arrow function.  Use --language_in=ECMASCRIPT6 or ECMASCRIPT6_STRICT to enable ES6 features.


So where do I do that?  In my build profile (currently called admin.js)?


Thanks,

Harry

On August 14, 2017 at 2:51 PM Harry Devine <[hidden email]> wrote:

I have a dGrid tree (version 1.1.0) that I am setting an initial filter to show all items as follows:


collection: logStore.filter( o=> o.parent == undefined)


That was suggested to me several months ago by another list user and it works well.  However, I am now trying to build my code using the Dojo build system, and I get an error on that line.  The error states:


ERROR - Parse error.  syntax error


My build is currently against 1.11.2. I'm going to try 1.12 next but wanted to get this posted ASAP and see if anyone could help me out with it.


Thanks,

Harry


 

--
Dojo Toolkit: http://dojotoolkit.org/
Tutorials: http://dojotoolkit.org/documentation/

[hidden email]
To unsubscribe, visit: http://mail.dojotoolkit.org/mailman/listinfo/dojo-interest

--
Dojo Toolkit: http://dojotoolkit.org/
Tutorials: http://dojotoolkit.org/documentation/

[hidden email]
To unsubscribe, visit: http://mail.dojotoolkit.org/mailman/listinfo/dojo-interest
Reply | Threaded
Open this post in threaded view
|

Re: Filtering a dGrid tree issue

dylanks
Hi Harry,

There were a few fixes that landed in master to address ES6 features in
a Dojo 1.x build late last week. I expect we'll do a release by the end
of the month, but if you could try master instead of 1.12.2, it would be
good to know if that solves your issue.

Regards,
-Dylan

on 8/14/17, 11:59 (GMT-07:00) Harry Devine said the following:

> I performed my build against 1.12.2 and now the error (on the same line
> of code in my javascript) says:
>
>
> ERROR - this language feature is only supported for ECMASCRIPT6 mode or
> better: arrow function.  Use --language_in=ECMASCRIPT6 or
> ECMASCRIPT6_STRICT to enable ES6 features.
>
>
> So where do I do that?  In my build profile (currently called admin.js)?
>
>
> Thanks,
>
> Harry
>
>> On August 14, 2017 at 2:51 PM Harry Devine <[hidden email]> wrote:
>>
>> I have a dGrid tree (version 1.1.0) that I am setting an initial
>> filter to show all items as follows:
>>
>>
>> collection: logStore.filter( o=> o.parent == undefined)
>>
>>
>> That was suggested to me several months ago by another list user and
>> it works well.  However, I am now trying to build my code using the
>> Dojo build system, and I get an error on that line.  The error states:
>>
>>
>> ERROR - Parse error.  syntax error
>>
>>
>> My build is currently against 1.11.2. I'm going to try 1.12 next but
>> wanted to get this posted ASAP and see if anyone could help me out
>> with it.
>>
>>
>> Thanks,
>>
>> Harry
>>
>
>  
>
>> --
>> Dojo Toolkit: http://dojotoolkit.org/
>> Tutorials: http://dojotoolkit.org/documentation/
>>
>> [hidden email]
>> To unsubscribe, visit:
>> http://mail.dojotoolkit.org/mailman/listinfo/dojo-interest
--
Dojo Toolkit: http://dojotoolkit.org/
Tutorials: http://dojotoolkit.org/documentation/

[hidden email]
To unsubscribe, visit: http://mail.dojotoolkit.org/mailman/listinfo/dojo-interest
Co-Founder, Dojo Toolkit
CEO, SitePen, Inc.  http://www.sitepen.com/
Reply | Threaded
Open this post in threaded view
|

Re: Filtering a dGrid tree issue

Harry Devine
What I ended up doing, based on an article I found online, was to add the following to my build profile file:

optimizeOptions: {
  languageIn: 'ECMASCRIPT6',
  languageOut: 'ECMASCRIPT5'
}

Seemed to build and solve my issue at this time.

Thanks,
Harry

> On August 14, 2017 at 3:09 PM Dylan Schiemann <[hidden email]> wrote:
>
>
> Hi Harry,
>
> There were a few fixes that landed in master to address ES6 features in
> a Dojo 1.x build late last week. I expect we'll do a release by the end
> of the month, but if you could try master instead of 1.12.2, it would be
> good to know if that solves your issue.
>
> Regards,
> -Dylan
>
> on 8/14/17, 11:59 (GMT-07:00) Harry Devine said the following:
> > I performed my build against 1.12.2 and now the error (on the same line
> > of code in my javascript) says:
> >
> >
> > ERROR - this language feature is only supported for ECMASCRIPT6 mode or
> > better: arrow function.  Use --language_in=ECMASCRIPT6 or
> > ECMASCRIPT6_STRICT to enable ES6 features.
> >
> >
> > So where do I do that?  In my build profile (currently called admin.js)?
> >
> >
> > Thanks,
> >
> > Harry
> >
> >> On August 14, 2017 at 2:51 PM Harry Devine <[hidden email]> wrote:
> >>
> >> I have a dGrid tree (version 1.1.0) that I am setting an initial
> >> filter to show all items as follows:
> >>
> >>
> >> collection: logStore.filter( o=> o.parent == undefined)
> >>
> >>
> >> That was suggested to me several months ago by another list user and
> >> it works well.  However, I am now trying to build my code using the
> >> Dojo build system, and I get an error on that line.  The error states:
> >>
> >>
> >> ERROR - Parse error.  syntax error
> >>
> >>
> >> My build is currently against 1.11.2. I'm going to try 1.12 next but
> >> wanted to get this posted ASAP and see if anyone could help me out
> >> with it.
> >>
> >>
> >> Thanks,
> >>
> >> Harry
> >>
> >
> >  
> >
> >> --
> >> Dojo Toolkit: http://dojotoolkit.org/
> >> Tutorials: http://dojotoolkit.org/documentation/
> >>
> >> [hidden email]
> >> To unsubscribe, visit:
> >> http://mail.dojotoolkit.org/mailman/listinfo/dojo-interest
> --
> Dojo Toolkit: http://dojotoolkit.org/
> Tutorials: http://dojotoolkit.org/documentation/
>
> [hidden email]
> To unsubscribe, visit: http://mail.dojotoolkit.org/mailman/listinfo/dojo-interest
--
Dojo Toolkit: http://dojotoolkit.org/
Tutorials: http://dojotoolkit.org/documentation/

[hidden email]
To unsubscribe, visit: http://mail.dojotoolkit.org/mailman/listinfo/dojo-interest