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

How to clear dialog field cache in parameter

(0) ShareShare
ReportReport
Posted on by

Hello everyone,

I've created a batchjob using operation framework. As usual, there is an UIBuilder class that manage the DialogField. like this :

dlgCustAccount = this.bindInfo().getDialogField(this.dataContractObject(), methodStr(MyContractClass, parmCustomerAccount));

How to make every time we run the batch job, this Dialog Field is empty ?

Thanks,

I have the same question (0)
  • Blue Wang Profile Picture
    on at

    HI WWwong,

    Please check this if it's helpful:

    www.schweda.net/blog_ax.php

  • Verified answer
    Sergei Minozhenko Profile Picture
    23,093 on at

    Hi WWwong,

    You can also use SysOperationInitializable interface

    community.dynamics.com/.../1045616

  • Community Member Profile Picture
    on at

    Hi all,

    Great, I think I will use Init instead, btw how to clear a List ? because my Dialog Field to clear is a list.

    thanks

  • Blue Wang Profile Picture
    on at

    Hi WWwong,

    Try to iterate through the list, use iterator then use delete().

  • Community Member Profile Picture
    on at

    Hi Blue,

    I'm sorry, but as this is a cache, seems not make sense to me to iterate it in Initialize method of Contract class.

    Found another approach, I just initialize the list variable as well with New then. should be ok, right ?

    mylist = New List (Type::String)

    Thanks,

  • Thomas Tian Profile Picture
    on at

    you can try to set up user option->usage data->reset usage data

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 646 Most Valuable Professional

#2
André Arnaud de Calavon Profile Picture

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

#3
Sohaib Cheema Profile Picture

Sohaib Cheema 285 User Group Leader

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans