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
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
I got it. Thanks
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
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
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.
RegardsKrishnanand Pathak
Under the client action, Assign null/empty to local variable.
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