Quantcast
Channel: Forums - Recent Threads
Viewing all articles
Browse latest Browse all 143529

AIF : issue when Change Enum value through c#

$
0
0

Hello..

I added new enum has 5 values to SalesTable , and i already use salesSalesOrderServices to upload sales order to ax 2012R3 everything is ok the only issue is when change the enum value through the c# application , the enum in SalesTable is take the first value .

                switch (HeaderSalesMan.SectorID)
                {
                    case "1": st.Activites = AxdEnum_Activites.Icecream;       
                        break;
                    case "2": st.Activites = AxdEnum_Activites.Chipsy;
                        break;
                    case "3": st.Activites = AxdEnum_Activites.Sweets;
                        break;
                    default :st.Activites = AxdEnum_Activites.Stoped;
                        break;
                }

is there any condition to insert the enum value that different than insert string.
I already inserted alot of new string value , but it's first time to insert Enum value.

thank you.



Viewing all articles
Browse latest Browse all 143529

Latest Images

Trending Articles



Latest Images

<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>