Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Inline editting/Add/Remove for w2ui url based grid #1492

Closed
r7iba opened this issue Jan 31, 2017 · 2 comments
Closed

Inline editting/Add/Remove for w2ui url based grid #1492

r7iba opened this issue Jan 31, 2017 · 2 comments

Comments

@r7iba
Copy link

r7iba commented Jan 31, 2017

Hi Vitmalina,
First of all, I wanted to thank for this wonderfull library and congratulate you for this huge work and effort !
I'm Rihab, a python dev and I'm now working on a project in which I wated to use the w2ui library.
I started by showing and sorting grids using url method but now I'm facing a problem becuse I can't find a way to add/remove/inline edit records when using url method to load the grid?
I wish you could help me to find the right way to do so.
Looking forward to seeing your answer.
Best regard,
Rihab.

@mpf82
Copy link
Collaborator

mpf82 commented Jan 31, 2017

There are 2 python server implementations right here: https://github.com/vitmalina/w2ui/tree/master/server/python

They both handle get / save / delete requests.

Note: they are not yet updated to work with w2ui 1.5 - See this issue for hints on how 1.4 and 1.5 differ.

About inline editing: you need to keep in mind that you don't get a single record, but an array of records.

If your url is pointing to a JSON file you still need to write the backend to handle saving/updating the records.

If you are stuck and have a specific programming question, you should visit stackoverflow instead.

@r7iba
Copy link
Author

r7iba commented Feb 1, 2017

Hi mpf82 !
Thank's a lot for your answer.
I'll see the python server ssolutions you suggested to me.
For my url returns an ' application/json' content-type which is the result of an SQL request for a data base using flask API RESTful.
I'm really new in this field and if I got a stack I will go to stackoverflow as I always did.
Thank a lot again for your answer.
Best reagrds.
Rihab.

@r7iba r7iba closed this as completed Feb 10, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants