Access metadata via Webservices

anshpat2826
Member Posts: 44
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 ...
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 Patel
Navision Consultant(Technical and Functional)
Phone No: 09979876474
Email : anshpat2826@gmail.com
Navision Consultant(Technical and Functional)
Phone No: 09979876474
Email : anshpat2826@gmail.com
0
Comments
-
I recognize this as being the dynamic Web Services access - you can get the field type I think by
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.Freddy Kristiansen
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.0 -
freddy.dk wrote:I recognize this as being the dynamic Web Services access - you can get the field type I think by
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.
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 ?Himanshu Patel
Navision Consultant(Technical and Functional)
Phone No: 09979876474
Email : anshpat2826@gmail.com0 -
As stated in the other mail, you would have to create a codeunit and read the object metadata for the page and the table and use that to get access to more metadata. Remember though that the metadata format is not public, meaning that this can and will change.Freddy Kristiansen
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.0 -
freddy.dk wrote:As stated in the other mail, you would have to create a codeunit and read the object metadata for the page and the table and use that to get access to more metadata. Remember though that the metadata format is not public, meaning that this can and will change.Himanshu Patel
Navision Consultant(Technical and Functional)
Phone No: 09979876474
Email : anshpat2826@gmail.com0 -
Yes - so if you go there, use XPath and have decent error handling that will tell you that something changed.Freddy Kristiansen
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.0 -
Any Link from where i can have guidance about such kind of code unit ?Himanshu Patel
Navision Consultant(Technical and Functional)
Phone No: 09979876474
Email : anshpat2826@gmail.com0 -
OK i solved problem regarding dynamic table look up and drill down ...
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 MibusoHimanshu Patel
Navision Consultant(Technical and Functional)
Phone No: 09979876474
Email : anshpat2826@gmail.com0
Categories
- All Categories
- 73 General
- 73 Announcements
- 66.6K Microsoft Dynamics NAV
- 18.7K NAV Three Tier
- 38.4K NAV/Navision Classic Client
- 3.6K Navision Attain
- 2.4K Navision Financials
- 116 Navision DOS
- 851 Navision e-Commerce
- 1K NAV Tips & Tricks
- 772 NAV Dutch speaking only
- 617 NAV Courses, Exams & Certification
- 2K Microsoft Dynamics-Other
- 1.5K Dynamics AX
- 320 Dynamics CRM
- 111 Dynamics GP
- 10 Dynamics SL
- 1.5K Other
- 990 SQL General
- 383 SQL Performance
- 34 SQL Tips & Tricks
- 35 Design Patterns (General & Best Practices)
- 1 Architectural Patterns
- 10 Design Patterns
- 5 Implementation Patterns
- 53 3rd Party Products, Services & Events
- 1.6K General
- 1.1K General Chat
- 1.6K Website
- 83 Testing
- 1.2K Download section
- 23 How Tos section
- 252 Feedback
- 12 NAV TechDays 2013 Sessions
- 13 NAV TechDays 2012 Sessions