Skip to main content

Notifications

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 795

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.

  • dark_knight Profile Picture
    795 on at
    RE: property of the string control via code in runbasebatch class

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

  • Verified answer
    Gunjan Bhattachayya Profile Picture
    35,421 on at
    RE: property of the string control via code in runbasebatch class

    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.

  • Verified answer
    André Arnaud de Calavon Profile Picture
    294,217 Super User 2025 Season 1 on at
    RE: property of the string control via code in runbasebatch class

    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.

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

🌸 Community Spring Festival 2025 Challenge 🌸

WIN Power Platform Community Conference 2025 tickets!

Jonas ”Jones” Melgaard – Community Spotlight

We are honored to recognize Jonas "Jones" Melgaard as our April 2025…

Kudos to the March Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 294,217 Super User 2025 Season 1

#2
Martin Dráb Profile Picture

Martin Dráb 232,978 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,158 Moderator

Leaderboard

Product updates

Dynamics 365 release plans