Pooja | #3463 | Extracting form save to a method to be reused for warning dialog save in datawinners