Community
cancel
Showing results for 
Search instead for 
Did you mean: 
Jess_T_
Beginner
72 Views

Trouble adding OData v4 endpoint web service to JQuery Mobile based project

Apologies if this seems a bit under-researched or if this has been asked before, however I am stuck in a bit of a tight spot here - working on a job deadline and have tried several different ways to do this.

I currently have just a basic form with 12 fields (textboxes and select lists).  The idea here is our users populate these controls with data, click submit, and it adds this set of data to our OData endpoint.

I have attempted (without avail) to specify our endpoint under web services, but much of the material doesn't really make sense to me (even after watching the videos and spending multiple days looking it up online).

I am still new to XDK so I am sure in time I'll have this figured out (hopefully without having to switch to another tool)  at some point.

Very simple - nothing fancy, just an entry form. User fills it out, clicks button, and this data is sent in a batch to our odata endpoint.

I have attached a zipped copy of my index.html - any help that anyone could lend would be far beyond appreciated.  This really is stressing me out!

 

Thank you!

Tags (2)
0 Kudos
2 Replies
PaulF_IntelCorp
Employee
72 Views

I've asked one of my colleagues to see if he can help you.

Jess_T_
Beginner
72 Views

Thank you so much - I sincerely appreciate your time!

Just to be as up-to-date as possible, I am currently attempting this with an ajax call via the below method. Please disregard the kendo dataSource in the index.html I sent before.. I was in the process of trying things.

        <script>
            $("#createBtn").click(function () {
                var ncr = new Object();
                ncr.qarNonConformanceID = $("#ncID").val();
                ncr.uqarEnteredBy = $("#enteredBySelect").val();
                ncr.uqarDateEntered = $("#dateEnteredTXT").val();
                ncr.qarPartID = $("#partIDTXT").val();
                ncr.qarPartRevisionID = $("#partRevTXT").val();
                ncr.qarQuantity = $("#quantityTXT").val();
                ncr.qarNonConformanceCategoryID = $("#ncCategorySelect").val();
                ncr.uqarWorkCenterID = $("#workCenterSelect").val();
                ncr.uqarJobID = $("#jobIDTXT").val();
                ncr.uqarPurchaseOrderID = $("#poTXT").val();
                ncr.uqarPurchaseOrderLineID = $("#poLineTXT").val();
                ncr.qarNonConformanceText = $("#nonConformanceTXTAREA").val();
                $.post('http://odata:10000/ncr', ncr, function (data) {
                    console.log(ncr);
                });
            });
        </script>

 

 

Reply