Feature #1830
Cases - Delete case
0%
Description
Cases - Delete case
History
#1
Updated by Maurício Dos Santos almost 9 years ago
- Status changed from New to In Progress
#2
Updated by Maurício Dos Santos almost 9 years ago
- Status changed from In Progress to New
#3
Updated by Maurício Dos Santos almost 9 years ago
- Status changed from New to In Progress
#4
Updated by Maurício Dos Santos almost 9 years ago
- Status changed from In Progress to Feedback
- Assignee set to Ricardo Memoria
I had some doubts when coding.
1- When trying to delete a case using EntityServiceImpl an error is thrown because the CommandType is not a CRUD. I have modified CASES_CASE to be add as CRUD. Check CommandTypes:98. Is that ok?
2- The DetailWriter could not convert the Address type to String. So I added the code bellow at DetailWriter.convertToString the code bellow. Is that ok? Or should I implement the Address.toString to return the whole information?
if (value instanceof Address) { return CommandLogDetail.TYPE_STRING + ((Address) value).getAddress(); }
3- After deleting the case, how I should redirect the user to another page? Using app.goto()?
4- For which page I should redirect the User? Considering that the User can come to case details page from more than one page, how can I check what was the previous page? Is there any function like "app.gotopreviouspage()"?
5- The confirm button of MessageDlg is not a AssyncButton as FormDialog and do not go to 'fetching state' while the system is waiting a server response. Should I modify it? If not, the user may click more than once at the "yes" button of delete confirm message dialog.
6- After deleting the case and redirecting the user how should I show a success message to the user? May I create a prop "messageNode" on the pages that the user can be redirected? Or is there any "global" message that I can use for this purpose.
#5
Updated by Ricardo Memoria almost 9 years ago
- Status changed from Feedback to In Progress
- Assignee changed from Ricardo Memoria to Maurício Dos Santos
Maurício Dos Santos wrote:
I had some doubts when coding.
1- When trying to delete a case using EntityServiceImpl an error is thrown because the CommandType is not a CRUD. I have modified CASES_CASE to be add as CRUD. Check CommandTypes:98. Is that ok?
Yes... The Command Type must be registered as a CRUD
2- The DetailWriter could not convert the Address type to String. So I added the code bellow at DetailWriter.convertToString the code bellow. Is that ok? Or should I implement the Address.toString to return the whole information?
[...]
Yes... That is ok
3- After deleting the case, how I should redirect the user to another page? Using app.goto()?
Yes... Go to the cases tab of the unit page
4- For which page I should redirect the User? Considering that the User can come to case details page from more than one page, how can I check what was the previous page? Is there any function like "app.gotopreviouspage()"?
Check answer of #3.
5- The confirm button of MessageDlg is not a AssyncButton as FormDialog and do not go to 'fetching state' while the system is waiting a server response. Should I modify it? If not, the user may click more than once at the "yes" button of delete confirm message dialog.
No... MessageDlg should continue this way... The best is to show a waiting message while case is closing... But it will require some effort, so it is better to simply delete the case and that is all.
6- After deleting the case and redirecting the user how should I show a success message to the user? May I create a prop "messageNode" on the pages that the user can be redirected? Or is there any "global" message that I can use for this purpose.
I plan to include some kind of notification are similar to this https://notifyjs.com/
But right now, probably the easiest way is to display a message after the case is deleted using MessageDlg.
#6
Updated by Maurício Dos Santos almost 9 years ago
- Status changed from In Progress to Resolved
#7
Updated by Ricardo Memoria almost 9 years ago
- Status changed from Resolved to Closed