Resolve following issues for Legal Entity master screen.

1) On clear the screen should reload.
2) Code length to be decided.
3) inactive on select.
4) issue with Add new.( update successful ).
5) Legal Entity can not be deleted if referred once.