73
Views
7
Comments
Solved
Resetting a table form 
Question

Hi community,

I am using a traditional web page now. 

I have a ticket table and would like the following action to take place:

1) After clicking the submit button and successfully submitted my form, I would like the clear the form to its default state.  

2) Clicking the reset button will clear my field and return it to its default state. 

How should I go about doing it? 

Rank: #593
Solution

Hi Alvin,

You can reset the form fields by following anyone step from below in Reset button

1)You can reset your form fields by assigning, NullIdentifier() if the form field is ID, ""(i.e. empty) if the form field is Text and Ajax refresh to your form.

2)If you are getting the form data from an Aggregate/SQL by data ID (suppose you are showing student data in the form and getting from student entity with student.id = StudentId), so you can just assign nullidentifier() to that Data id and refresh the aggregate, assign its output to your form  and Ajax refresh to your form

Hope it will help you

Cheers,

Krushna

Rank: #91

Hi Alvin,

Set default value after data insertion or before end node of submit button and use Ajax Refresh for form.

same this use on Reset button.

It will reset all inputs value.


Regards

Rahul Sahu

Rank: #593
Solution

Hi Alvin,

You can reset the form fields by following anyone step from below in Reset button

1)You can reset your form fields by assigning, NullIdentifier() if the form field is ID, ""(i.e. empty) if the form field is Text and Ajax refresh to your form.

2)If you are getting the form data from an Aggregate/SQL by data ID (suppose you are showing student data in the form and getting from student entity with student.id = StudentId), so you can just assign nullidentifier() to that Data id and refresh the aggregate, assign its output to your form  and Ajax refresh to your form

Hope it will help you

Cheers,

Krushna

Rank: #593

Hi Alvin,


Please assign NullDate() to the DateTime form field

Cheers,

Krushna

Rank: #144

Hi Alvin, 

Refer the attached .oml .


Vijay M-

Resettingtableform.oml

Rank: #5201

Thanks, Community :) The problem is solved.