636
Views
7
Comments
Solved
Clear input text
Question
Application Type
Reactive

Here is situation. I have a room table like this

and here is the detail of the room that I clicked

But when I want to add new room, the inputs still show the last detail room I clicked 

I want to clear the text inside input. Please help!

Plus: I get data room from local variable


2023-02-13 15-34-45
BabyBear
Solution

Hi Toumtam

Did you clear the variables that is used in the form in the screen action of the 'New Room' button? If not you can try assigning the variables with an empty value in the New Room onclick screen action

UserImage.jpg
Toumtam Phiphack

I got it. Thanks

2024-05-02 09-49-04
Murali Manoharan V
Champion

Hi Toumtam 


I hope, for updating you are sending RoomId to filter in aggregates so it displays respective Room Number and Bu. So Send RoomId as NullIdentifier on clicking Add New Room Button. It won't show value. It shows blank and after clicking add it will save as new result only.


Hope you will find this useful



Regards

Murali

2021-08-12 05-19-40
Shubham Janbandhu

Hi Toumtam Phiphack,

I hope it is happening because those values are not assigned properly.

Try like this to provide correct values to inputs for popup.

1. Take input parameter to the client action with data type of your entity containing Room number and Bu which has been mapped to particular Room number record.

2. Pass the value current record to input parameter. ex. Input = Get(EntityName).Current.Values.

3. Take local variable on screen with same data type as given to input parameter of the client action.

4. Inside client action assign like this, Local variable = Input parameter. Now, local var holding always current record value.

5. At last, If you close the popup window try null local var like this, LocalVariable.RoomNumber = "" and Bu = "".

Hope this helps. Let me know if you need further help.

Regards,

Shubham

2023-04-16 15-25-31
Krishnanand Pathak

Hi @Toumtam Phiphack ,


As you said you are using local variables for the form.
That means you must be assigning those local variables based on the selected room for update.
That means you must assign those local variables to null or empty to clear the form at New room button action otherwise form will show the last updated room details.


Regards
Krishnanand Pathak

2023-02-10 10-15-37
Pradeep Dubey

Under the client action, Assign null/empty to local variable. 

2024-09-12 02-43-38
Deepsagar Dubey

Hi Toumtam Phiphack, 


Suppose you have 3 local variables like -

Room Number - RoomNumber (Variable name)

Gu - Gu (Variable name) 

Is Active - IsActive (Variable name) 

So when you click on New Room button, drag and assign and set values of these variables to empty.


RoomNumber = ""

Gu  = ""

IsActive = False


i hop this will help you.

Thanks

Deep

Community GuidelinesBe kind and respectful, give credit to the original source of content, and search for duplicates before posting.