Hi Everyone,
I have the drop-down values active and inactive .when the drop-down value is empty and the button is clicked,
show an error message as "select the status". When active/Inactive is selected and the button is clicked, then save the status and refresh the all dropdown list. I will Already try but it's not working properly so help to achieve this.
Regards,
Asik
Hi @SHAIK ASIK ,
Check this oml, I do some corrections in it .
I hope it is helpful for you.
Thanks
Rakhi
In this case I think if you share your .oml it will be better for people to help.
As I see the picture you shared, I can suggest that:
- There should be a check status when click a button and show message if not select. (Can use List.Current or can pass current value into button click)
- If selected a status => save current record (CreateOrUpdate) => call refresh aggregare (or Data Action) to refresh the table view.
Khuong
Hey SHAIK ASIK,
Can you share me OML File? I will help you.
Thanks,
Ramesh
hi ,Ramesh , Khuong Truong , Rakhi Chouhan.
I attached oml below.
kindly Thanks regards,
I updated your .oml.
Please take a look.
Hi again,
I just updated the .oml (no need to use OnDropdownChange event).
Please re-download if you have downloaded before.
hi Khuong Truong ,
It's not working if I select the active or inactive and also get the error message,
and
thanks Regards ,
Sorry, I updated wrong condition.
Just update again, please take a look.
I cannot publish to test so I may make mistake.
hi Khuong Truong,
now it's not get a error message
thanks Regards,
once I select the option from the Status(Dropdown list), the value should appear next to the button as shown like "Active". after this again the options (Active & Inactive) value should get loaded and be present in the dropdown list and should appear with the value i have selected earlier.
Regards ,
I did update as per your first post "When active/Inactive is selected and the button is clicked, then save the status and refresh the all dropdown list. I will Already try but it's not working properly so help to achieve this."
Can you elaborate more about the above once you select and status display next column right? At this time the button is not clicked?
Hi Khuong Truong ,
if i do not select the dropdown list after clicking the button the error message will appear.
next, I select the dropdown list values and I click the button to only show values on the left side, not in the dropdown list.
the dropdown list always shown should select the values if i want to change the values
Thanks, Regards,
Hai Rakhi Chouhan,
Thanks For helping to Achieve this Task
Kindly Thanks Regards,
Glad to help you @SHAIK ASIK
Hi @SHAIK ASIK,can you share oml or logic actions screenshot which you created? It will be better for us to understand your problem.
Hello @SHAIK ASIK ,
I saw your provided OML file and trying to run your code but there is having some Publishing Issue.
but I have find out your issue without selecting any Status when you will click Button always it will show a error message "Check Status"
because of if your Is_Active var Default value is blank so it will treat as False always.
solution is
1. you can removed Record1 Records from your Status Entities.
or
2. you can set a Default value for Is_Active Local var.
So error will removed
I hope this will help you.
Thanks & Regards
Navneet Sharma