Skip to main content

Notifications

Announcements

No record found.

Microsoft Dynamics AX forum
Answered

change form properties

Posted on by 350

pastedimage1659021989977v2.png 

It is possible to make this field mandatory when type = CXC, but for the other cases it is optional?

  • Luis Pascual Profile Picture
    Luis Pascual 350 on at
    RE: change form properties

    thanks

  • ergun sahin Profile Picture
    ergun sahin 8,812 Super User on at
    RE: change form properties

    Or Like this

    pastedimage1659036493198v1.png

    In this solution mandatory property work for only this control. If form has second PaymMode field at other tabs/groups, they will not change

  • Verified answer
    ergun sahin Profile Picture
    ergun sahin 8,812 Super User on at
    RE: change form properties

    Look for DS Methods 

    pastedimage1659036125336v3.png

    If it's not there You need overwrite method

    pastedimage1659035942248v1.png

    You can write something like this

    pastedimage1659036041871v2.png

  • Luis Pascual Profile Picture
    Luis Pascual 350 on at
    RE: change form properties

    I already activated the autodeclaration property on the control, but where is it in the active method of the Header dataSource?

  • ergun sahin Profile Picture
    ergun sahin 8,812 Super User on at
    RE: change form properties

    Set control's AutoDecletarion propery to YES (Or you can use the DS field directly)

    at Header dataSource's active method set field's(or control's) Mandatory property to Yes/No (When you change header row, active will called and your code will look for data (type = CXC or not) and will set value)

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... 287,986 Super User

#2
Martin Dráb Profile Picture

Martin Dráb 225,588 Super User

#3
nmaenpaa Profile Picture

nmaenpaa 101,148

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans