web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Finance | Project Operations, Human Resources, ...
Answered

refersh FormStringControll when click on Button Delete !

(0) ShareShare
ReportReport
Posted on by

Hi All,

the Case is like that : 

1 - The button Delete should refersh the all fields on Forms once is clicked 

2 - all fields should be set it to default like the page is refreshed.

problem : 

when i opend the dropdown box the vlaue is still selected and if i chose another one it wil be added with the last value like : valu1;value2 

what I have tried : 

public void clicked()
{
FormStringControll_1.text("");
FormStringControll_2.text("");

etc....

}

I have the same question (0)
  • Gunjan Bhattachayya Profile Picture
    35,423 on at

    Hi Ben,

    Delete button will delete the record and normally the next available record will open. If you want to refresh the fields, you will need to modify the record that's opening up.

    Could you explain what you mean by refreshing the page? Are you looking to create a new record?

  • Community Member Profile Picture
    on at

    it's like this : 

    on the form there is a delele filter button which should delete filter that's meaning just deleting what User chosen

    like in this Picture . The use chose a Brand name but now he wants to choice another brand then he should click on the button Delete filter to clean the brand dropdown box and to be able to choice another brand name . 

    8231.Capture.JPG

    After clicked on delete filter and chosen another brand name it will looks like that : 

    1122.Capture1.JPG

    so the value or new brand name will be added with the last choice and if i click on Delete filter button it will make the dropdown box empty or blank then when i choice a new brand name it will added to the last 2 choice and so on .... 

    when i open the dropdown box after clicked delete filter button its looks like this : 

    7752.Capture3.JPG

    the value is still always selected my code just make FormStringControll empty but as you see i want to make it also uncheck Brand .

  • Gunjan Bhattachayya Profile Picture
    35,423 on at

    Hi Ben,

    So, this control "Brand" is a multi-select control. Correct? From your screenshots, I can see that you are able to select multiple values here.

  • Community Member Profile Picture
    on at

    Hi Gunjan,

    exactly. it's a multi-select control . and i want to reset it to blank once i click on delete Button

  • Verified answer
    Gunjan Bhattachayya Profile Picture
    35,423 on at

    Hi Ben,

    Do you have a variable declared in your form like this for the multi select control?

    SysLookupMultiSelectCtrl multiSelectCtrl;

    If yes, you can add this in the clicked method for the "Delete filters" button and check if that works for you.

    multiSelectCtrl.set(conNull());

  • Community Member Profile Picture
    on at

    Hi Gunjan,

    thanks for your help . it has worked .

    you are the best.

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > Finance | Project Operations, Human Resources, AX, GP, SL

#1
Martin Dráb Profile Picture

Martin Dráb 451 Most Valuable Professional

#2
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 428 Super User 2025 Season 2

#3
BillurSamdancioglu Profile Picture

BillurSamdancioglu 239 Most Valuable Professional

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans