Sent: Monday, May 14, 2012 6:33 AM
In ticket 1945377 it is complained that when creating a new product and maintain some data, and click cancel button, the data loss pop up window is displayed. According to CRM web UI guideline this is not allowed. Note 1517607 is created for correction.
Now the event for cancel button is “#Exit#_CANCEL” defined instead of “CANCEL”.
Question: What is the difference between “CANCEL” and “#Exit#_CANCEL”?
In the class there is no constant defined for string “CANCEL”. Is this event already obsolete and can be deleted?
In this method both event share with the same event handler. If the “CANCEL” event is really obsolete, can we delete the line between 30 and 32?
# answer The prefix ‘#EXIT#_’ is used to bypass any validation done on the fields of the overview page. In the note it mentioned that there would be a popup that comes up because of a BSP error, this essentially skips that framwork check.
More information can be found here:
https://wiki/display/WEBCUIF/Advanced+Search+Pages+FAQ+-+How+to+Guide#AdvancedSearchPagesFAQ-HowtoGuide-Question%3AThewhenacriterionrelatederrormessageisdisplayed.Why%3F
It would seem plausible to remove line 30-32 like you mentioned. By the way, there’s a constant for ‘#EXIT#_’, it is CL_BSP_WD_VIEW_CONTROLLER=>CO_CANCEL_EVENT_PREFIX.
要获取更多Jerry的原创文章,请关注公众号"汪子熙":