progress / kendo-ui-builder-samples

Collection of sample projects using Kendo UI Builder for OpenEdge.
Apache License 2.0
1 stars 2 forks source link

Pug-2017 Sample App - Data binding issues? #2

Open steveboucher opened 6 years ago

steveboucher commented 6 years ago

Pug-2017 Sample App has issues with data display and CUD operations.

Note: the problems prevented me from negative testing where I would try to create a valid error condition and look for the proper response. Ex: Create a new customer and assign existing custnum should error on save.

Goto:

  1. Main -> Dashboard. Displays sales by month. Jan shows sales data, all other months are blank.

  2. Management -> SalesRep. There is no delete SalesRep option. You can create and edit, just no delete.

  3. Management -> Locations. Create a new warehouse fails with "Error while saving changes. Error HTTP Status 504 Gateway Time-out"

  4. Management -> Locations. There is no delete Warehouse option.

  5. Sales -> Customer Orders. Bottom grid: Orders is CUD enabled. The error is: "Can't create a new order. Error while saving changes. Error HTTP Status 504 Gateway Timeout". Same error happens when editing/deleting an existing order. Error message is: "Unable to get property 'assign'/'remove' of undefined or null reference. Error HTTP Status 504 Gateway Time-out". Delete has a slight variation. When you delete, the record reference is removed from the UI grid. If you then click the grid refresh, you get a pop-up window (in a different style than the app) with the message: "There are unsaved changes. Do you want to complete the changes before continuing?" Press OK returns to the grid with no obvious action to take. Cancel retrieves the deleted record and adds it back into the grid.

  6. Sales -> Inventory. The jpeg for Knee Guards is missing - displays the missing jpeg name instead.

7, Sales -> Customers. Select edit. The state name and the SalesRep name are displayed as "ttStateFK1" and "ttSalesRepFK1" respectively. Should be "State" and "SalesRep".

  1. Sales -> Customers. Add a new record and it is added (to the local JSDO memory) the customer grid. However, the save does not appear to actually commit the record. Use the grid refresh button and you will see the new record removed from the customer grid leaving you with the original data set.

  2. Sales -> Customers. Delete existing customer and you get this message: "Error while saving changes".

maurar3 commented 6 years ago

Comments below to issues I've looked into so far:

1.) Main -> Dashboard. Displays sales by month. Jan shows sales data, all other months are blank.

Will be fixing this issue

2.) Management -> SalesRep. There is no delete SalesRep option. You can create and edit, just no delete.

Not fixing. Works as designed,

3.) Management -> Locations. Create a new warehouse fails with "Error while saving changes. Error HTTP Status 504 Gateway Time-out"

This is an issue where the oemobiledemo machine has older abstract BusinessEntity version (11.7.1). I am not able to reproduce issue using latest abstract BusinessEntity. OEMobileDemo machine will be updated 10/09/2017 with latest BusinessEntity version

4.) Management -> Locations. There is no delete Warehouse option.

Not fixing. Works as designed,

maurar3 commented 6 years ago

5.) Sales -> Customer Orders. CUD Issues....

Recompile of BE triggers resolved these issue

6.) Sales -> Inventory. The jpeg for Knee Guards is missing - displays the missing jpeg name instead.

Cannot reproduce..

7.) Sales -> Customers. Select edit. The state name and the SalesRep name are displayed as "ttStateFK1" and "ttSalesRepFK1" respectively. Should be "State" and "SalesRep".

Fixing this issue

maurar3 commented 6 years ago

8.) Sales -> Customers. Add a new record and it is added (to the local JSDO memory) the customer grid. However, the save does not appear to actually commit the record. Use the grid refresh button and you will see the new record removed from the customer grid leaving you with the original data set.

This is working. I think you may have missed seeing the new row because the backend is auto-generating the custnum for the record, but someone added a bunch of customer records with really large custnums, so you have to look for the newly added record, once its added and you refresh. To verify: Create a new record. Then scroll to last page, and you'll new record at bottom. Click on the record to see the custnum. Now refresh, and scroll to page where that record is. Also, I updated app and made CustNum read-only in form field, to accurately reflect backend

9.) Sales -> Customers. Delete existing customer and you get this message: "Error while saving changes".

I updated the Delete trigger to return appropriate error message

maurar3 commented 6 years ago

Steve, I just pushed all my changes to the develop branch. You can retest now. Maura