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

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

Open
steveboucher opened this issue Oct 3, 2017 · 4 comments
Open

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

steveboucher opened this issue Oct 3, 2017 · 4 comments
Assignees

Comments

@steveboucher
Copy link

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 maurar3 self-assigned this Oct 9, 2017
@maurar3
Copy link

maurar3 commented Oct 9, 2017

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
Copy link

maurar3 commented Oct 10, 2017

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
Copy link

maurar3 commented Oct 10, 2017

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
Copy link

maurar3 commented Oct 10, 2017

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

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