web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

No record found.

News and Announcements icon
Community site session details

Community site session details

Session Id :
Microsoft Dynamics AX (Archived)

get enum value that is not bounded to data source in RDP class

(0) ShareShare
ReportReport
Posted on by 576

hello ..

i created new parm noYes in a contract class 

i need when this enum value is cheked some records will delete from tmp table

so i wrote next code after data inserted in tmp table

    parmNoYes = dataContract.parmSimiProduct();

    if (parmNoYes == NoYes::Yes)
    {
        
        delete_from t_PtodTotalTMP where 
         t_PtodTotalTMP.ItemId  == "1101020";
       
    }


but nothing deleted from tmp table even checked or not

so i change the code 

    if (parmNoYes == NoYes::No)
    {
        
        delete_from t_PtodTotalTMP where 
         t_PtodTotalTMP.ItemId  == "1101020";
       
    }


here the record 1101020 is deleted even checked or not

any help

thank you in advance ..

1101020

*This post is locked for comments

I have the same question (0)
  • Suggested answer
    startax Profile Picture
    1,845 on at

    Hi,

    Check parmNoYes = dataContract.parmSimiProduct() what is returning this method when you call this method.

    By default NoYes return 0 for case no if checkbox is unchecked. That's the reason your second condition is working. 

  • Verified answer
    Ismail Mohamed Profile Picture
    576 on at
        if (dataContract.parmSimiProduct()== NoYes::Yes)
        {    
            delete_from t_PtodTotalTMP where 
             t_PtodTotalTMP.ItemId  == "1101020";
           
        }

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Stars!

Meet the Microsoft Dynamics 365 Contact Center Champions

We are thrilled to have these Champions in our Community!

Congratulations to the March Top 10 Community Leaders

These are the community rock stars!

Leaderboard > 🔒一 Microsoft Dynamics AX (Archived)

#1
CP04-islander Profile Picture

CP04-islander 16

#2
GiacomoRovai Profile Picture

GiacomoRovai 4

#3
Douglas Noel Profile Picture

Douglas Noel 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans