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

property of the string control via code in runbasebatch class

(0) ShareShare
ReportReport
Posted on by 942

Hello,

I'm trying to set up propertie ReplaceONLookup of the string control to NO via code in RunBaseBatch Class in method dialog. I Tried something like this

dfUserGroup.
dfUserGroup.control().

And no property ReplaceONLookup  is shown. How can I set this property via code?

Thanks.

I have the same question (0)
  • Verified answer
    André Arnaud de Calavon Profile Picture
    301,037 Super User 2025 Season 2 on at

    Hi Azat,

    AX2009 is a long time ago for me. If you build the dialog with a method, you are quite limited in the options. You can also create a form object for the dialog. Then it might be possible.

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

    Hi Azat,

    Have you tried accessing the control using a FormStringControl variable? I am not sure if it is possible in AX 2009 though.

    FormStringControl control;
    
    dfUserGroup.
    control = dfUserGroup.control();

    You can try setting the properties using the control variable.

  • dark_knight Profile Picture
    942 on at

    Thank you guys. I tried in both ways) and both work fine

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

#2
André Arnaud de Calavon Profile Picture

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

#3
Sohaib Cheema Profile Picture

Sohaib Cheema 250 User Group Leader

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans