Hello,
After pressing Insert a new row is added with the number 0 and the country of the address in the case of the Fax.
Going out of the view without pressing the Save or Save and Back will save the 0 fax number or 0 telephone number after pressing End !!!
In
CL_CRMCMP_B_BUPAFAX_IMPL->EH_ONADDFAX there is a line
lv_fax->set_property( iv_attr_name = 'FAX' iv_value = '0' ). "#EC NOTEXT
It does not seem a big deal as the user will have to overwrite the 0 with the proper number or not forget to press Cancel if after pressing Insert he changes his mind.
As I had to enhance the component for something else I tried to solve this as well
And I changed the line to
lv_fax->set_property( iv_attr_name = 'FAX' iv_value = ''
The result is that a record with the same number as the existing one is added
I commented out the line
* lv_fax->set_property( iv_attr_name = 'FAX' iv_value = '0' ). "#EC NOTEXT
And the same behaviour as above
This seems worse than having 0 in the new line.
Is there any way to solve this as the users for sure will say that in 4.0 the newly added line did not have a 0 for number but it was blank as it - in my opinion - should be when one inserts a new phone/fax ?
Thanks,
Mihai