Hello friends hope i am going to post proper question.
I am working on .net and navision integration.
currently i am facing problem in getting data of option field.
I can get the data
row["field type"] = serviceHelper.Fields["field type"].GetValue(objectname);
But this will give me data stored in table i want to get all values from
Optionstring
Optioncaption
so any one can guide me how to get restriction values ...
Himanshu PatelNavision Consultant(Technical and Functional)Phone No: 09979876474Email : anshpat2826@gmail.com 0
Comments
Type type = serviceHelper.Fields["field type"].fieldType
and you can get the possible values by
string[] values = Enum.GetValyes(type);
but you do not have access to the translated values - through Web Services you only have access to the enum programmatic values.
If you need access to further metadata you will have to create a codeunit and read the object metedata table to get to these data.
Group Program Manager, Client
Microsoft Dynamics NAV
http://blogs.msdn.com/freddyk
The information in this post is provided "AS IS" with no warranties, and confers no rights. This post does not represent the thoughts, intentions, plans or strategies of my employer. It is solely my opinion.
sir,
I already applied this code but as you can see we have stored all option string values in restriction.
But i want to get properties related to filter the data.
like i have added Table Relation : "Item Unit of Measure".Code WHERE (Item No.=FIELD(No.))
so how to achive this kind of functionality in .net.
Can you guide me how to do ?
Navision Consultant(Technical and Functional)
Phone No: 09979876474
Email : anshpat2826@gmail.com
Group Program Manager, Client
Microsoft Dynamics NAV
http://blogs.msdn.com/freddyk
The information in this post is provided "AS IS" with no warranties, and confers no rights. This post does not represent the thoughts, intentions, plans or strategies of my employer. It is solely my opinion.
Navision Consultant(Technical and Functional)
Phone No: 09979876474
Email : anshpat2826@gmail.com
Group Program Manager, Client
Microsoft Dynamics NAV
http://blogs.msdn.com/freddyk
The information in this post is provided "AS IS" with no warranties, and confers no rights. This post does not represent the thoughts, intentions, plans or strategies of my employer. It is solely my opinion.
Navision Consultant(Technical and Functional)
Phone No: 09979876474
Email : anshpat2826@gmail.com
I take lots of time but at last i got success for table relation and any query regarding web client and integration of Navision and .net welcome.
So Now almost my most of query regarding web service solved thanks freddyK he helped me a Lot is this project.
Any one who want to share knowledge welcome.
also for good reason any one can call me i am open for all who want to share their knowledge across people.
Thanks To all who helped me a Lots and also i am very Much thankful to Mibuso
Navision Consultant(Technical and Functional)
Phone No: 09979876474
Email : anshpat2826@gmail.com