Skip to main content

Notifications

Announcements

No record found.

Microsoft Dynamics AX forum
Answered

property of the string control via code in runbasebatch class

Posted on by 768

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
    dark_knight 768 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
    Gunjan Bhattachayya 35,417 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
    André Arnaud de Cal... 288,513 Super User 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.

Helpful resources

Quick Links

Replay now available! Dynamics 365 Community Call (CRM Edition)

Catch up on the first D365 Community Call held on 7/10

Community Spotlight of the Month

Kudos to Saurav Dhyani!

Congratulations to the June Top 10 community leaders!

These stars go above and beyond . . .

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 288,513 Super User

#2
Martin Dráb Profile Picture

Martin Dráb 225,862 Super User

#3
nmaenpaa Profile Picture

nmaenpaa 101,148

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans