i doing form users can input data added database. reset form upon successful submission of data user continue adding different sets of data.
i have reference number field values inputted automatically, not want clear field. also, reference number increases 1 automatically.
i clear text fields except reference number's text field, , @ same time, increment reference number 1. currently, can returning main page, clicking on add data again.
is there code without need return main page?
because user should wait successful submission, initiate transaction in context of modal dialog. because transaction may take time, or fail altogether, submit transaction using swingworker
, shown here. if successful, can reset relevant fields in implementation of done()
; if not, can offer cancel or retry transaction.
Comments
Post a Comment