So I can't format the function in Futon?

> Date: Thu, 11 Dec 2014 18:45:06 +0400
> Subject: Re: Enter multiline filter function in source editor?
> From: [email protected]
> To: [email protected]
> 
> Futon isn't suitable for design function edition (except views). Try
> erica: it has nice web editor and is made specially to simplify work
> on design documents.
> --
> ,,,^..^,,,
> 
> 
> On Thu, Dec 11, 2014 at 5:42 PM, TAE JIN KIM <[email protected]> wrote:
> > Hello,
> >
> > In Fulton admin interface, you click source editor to edit directly...
> > I was trying to add one filter function like this..
> >
> >        "filters": {
> >              "by_country": "function(doc ,req) { blahblah...... }  "
> >        }
> >
> > The thing is that when I tried to enter the function with new line for more 
> > readable format,
> > (ex, function (doc,req) {
> >           blah1
> >           blah2
> >          })
> >  I saw validation error like saying..
> > "JSON.parse: bad control character in string literal at line 6 column 23 of 
> > the JSON data"...
> >
> > 1. I don't think I have to enter the function in one line...is there any 
> > escaped character I need to enter to format the function?
> >
> > 2. I know I can query the filter over http rest api, but is there any way I 
> > can run the filter function in fulton web interface?
> >
> > Thanks,
> >
> >
                                          

Reply via email to