An easy way to find code examples
This is the first article of the series Classical PLM Tips & Tricks. Similar to popular household books with Grandma’s 500 best secrets tips for good housekeeping, this series is intended to give various practical tips to make daily work easier.
Sometimes ridiculously simple things turn out to be useful. Therefore, we start this series with a practical tip that will seem absurdly banal even to people with low demands.
Today we will show you how to find code examples with a simple SavedSearch in the ItemType Method!
You are looking for a code sample for a specific use case, but cannot find anything suitable online or in the regular documentation? Why not just search for a sample in your own database?
All you need to do is create a new regular SavedSearch in the ItemType Method that uses the method_code property as a search filter. In the shown SavedSearch we also added an additional filter for the method_type and a condition filter for the id. The condition filter gives us the ability to search through all available Method revisions, not just the latest ones.
In this example we looked for a code sample for handling lists. How to get list values? How to use list values?
It is recommended to use simple but precise search terms. So we searched for a Method that might contain something like getlist.
The above search returned two Methods that seem to contain what we were looking for.
And as expected, the Method rb_User.. contains a beautiful code sample for retrieving list values!
So you can see your own database can be a nice source for sample code. If you like this search, add it to the TOC and share it with other administrators!
And don’t hesitate to share your thoughts and feedback in the comments!
Happy searching!
Shown example is based on Aras Innovator 11 SP12. For information purposes only. Use at your own risk!
Does your website have a contact page? I’m having trouble locating
it but, I’d like to shoot you an e-mail. I’ve got some ideas for your blog you might be interested in hearing.
Either way, great blog and I look forward to seeing it
expand over time.
Hi, contact page is on the upper right corner or use contact data in Imprint.
could you provide me the source in method ?