OData Metadata Parser #578
Replies: 3 comments 2 replies
-
and 2 hours later... it works! Well not all of it but the concept is working. Dynamic grid creation with OData...ohhh this is starting to be really interesting :) A few things to note from demo below:
|
Beta Was this translation helpful? Give feedback.
-
I think this is a great idea @ghiscoding, especially to get a new project going fast. In my current project we have disabled the metadata endpoint for security (obscurity...) reasons and also we have a lot of customization in each grid, so I won't be using this. Auto-splitting If |
Beta Was this translation helpful? Give feedback.
-
@ghiscoding @jr01 sorry for the delay, happy new year! I've been busy with other stuff and couldn't really take care of the repos and github. Yes, the idea is to dynamically generate an editable SlickGrid based on the Metadata of an arbitrary OData service and provide the respective I/O-components (column titles, input fields etc.) for the different datatypes. I think the branch is wayyy behind my local developments, but then again even those have been neglected for a few months now. I'll see if I can clean up the code and push it so you can have a better overview. IIRC, I was fiddling around in many places to make my changes work consistently (sorting, pagination etc.) and to prevent unsaved changes from being discarded upon certain actions. So I may have to split the feature(s) into several branches to allow for a clean PR merge procedure. |
Beta Was this translation helpful? Give feedback.
-
Hello @der-david, hope you don't mind that I'm reaching out to you this way.
So I was looking at opened forks of my lib and came across yours by luck and I found some very very interesting code that you started working on for an OData Metadata Parser. It looks like you stopped working on it but I was wondering if you would be interested in advancing it and possibly making this as a contribution back into the lib? I think you had some problem to get it running but you were really so close (I changed less than 20 lines of code) and I kind of got it working (at least a portion of it) as can be seen in the print screen below (it reads the metadata and creates a grid with 2 columns), we don't see anything in the grid because CORS is blocking me from executing the final OData query since I was trying with an OData sample from Microsoft (which is not part of my domain hence why I'm getting the CORS issue, I even tried installing a CORS Chrome extension but that doesn't help for executing the last query)
https://services.odata.org/TripPinRESTierService/(S(dh01mgakplqunvumgf2rs2xn))/$metadata#Airlines
Do I understand correctly that this service that you started would basically just read the OData metadata and create a grid totally dynamically on the fly without having to create any grid column definitions at all? If I understood correctly then that is huge, it's a big game changer for many developers. So anyway, I don't have access to any OData server anymore but I find your work so very interesting which is why I'm attempting to reach out to you through GitHub (hopefully you can read this and you won't be mad at me for peaking at your code).
If you would be interested in pursuing this project, I'm sure there would be many developers, for example @jr01, interested into this potential awesome OData optional package.
Have nice day 🌞
@ghiscoding
Beta Was this translation helpful? Give feedback.
All reactions