angular-query-builder icon indicating copy to clipboard operation
angular-query-builder copied to clipboard

Reverse Query building

Open Lefortov opened this issue 9 years ago • 7 comments

Hello, i am working with your library, it's really good, thank you! But, maybe, you already have a solution to build ui based on query string(in purpose to edit already existing query)? For example we have query string (User = 'username' AND (User <> 'username1' OR User = 'username2')), and ui build groups and conditionals based on this string?

Lefortov avatar Mar 15 '16 10:03 Lefortov

@Lefortov have you found anything that can help on this? :D

mautematico avatar Jul 26 '16 17:07 mautematico

I've been working on a way to reverse this. It's still lacking some functionalities I don't need on my own development, but I think I can point those interested on this on the right direction.

mautematico avatar Jul 28 '16 23:07 mautematico

That would be a great help, if you could please post a fiddle or so....basically I am trying to 'Edit' a saved query built, so kind of need reverse conversation.

Thank you very much

On Thu, Jul 28, 2016 at 7:25 PM, Mauricio Navarro Miranda < [email protected]> wrote:

I've been working on a way to reverse this. It's still lacking some functionalities I don't need on my own development, but I think I can point those interested on this on the right direction.

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/mfauveau/angular-query-builder/issues/8#issuecomment-236054373, or mute the thread https://github.com/notifications/unsubscribe-auth/AIyt7BuyttqBYHkDRpYtLeurStMGr1Ynks5qaTpegaJpZM4Hw3jR .

garima287 avatar Jul 31 '16 16:07 garima287

Sure I'll do! I think monday or thursday I'll commit what I am working on. I think I am one step away to successful reverse query edit. At this point, I'm solving corner cases.

I'll post back soon. :)

mautematico avatar Jul 31 '16 20:07 mautematico

@garima287, @Lefortov good news! Here is what I am working on: https://github.com/mautematico/angular-query-builder/tree/two-way-angular-query-builder

Here you can see a live demo of it: https://mautematico.github.io/angular-query-builder/

As I said before, its still lacking somethings (like exception handling), as this is still a work in progress. PRs welcome!

¡Saludos!

mautematico avatar Aug 02 '16 18:08 mautematico

Thanks !!

On Aug 2, 2016 2:31 PM, "Mauricio Navarro Miranda" [email protected] wrote:

@garima287 https://github.com/garima287, @Lefortov https://github.com/Lefortov good news! Here is what I am working on:

https://github.com/mautematico/angular-query-builder/tree/two-way-angular-query-builder

Here you can see a live demo of it: https://mautematico.github.io/angular-query-builder/

As I said before, its still lacking somethings (like exception handle), as this is still a work in progress. PRs welcome!

¡Saludos!

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/mfauveau/angular-query-builder/issues/8#issuecomment-236998202, or mute the thread https://github.com/notifications/unsubscribe-auth/AIyt7McWP1eHPk6LzaaS6FzEYZqfzcVMks5qb40UgaJpZM4Hw3jR .

garima287 avatar Aug 05 '16 00:08 garima287

@Lefortov @garima287 @mfauveau .. Were you guys able to make the complete parser? The above solution flattens the nested group

vertikapandey-zz avatar Nov 24 '20 09:11 vertikapandey-zz