(this post was contributed by Brian Barnett, Senior Software Engineer on the MDS Team)While using Bing Maps last night to look for directions I thought of a way to use MDS business rules to create a Bing Map URL link attribute. This may sound like merely a cool thing to try but not very useful. But, I’m going to show a couple of examples of how it could be useful to pique your interest for other possibilities.
Here is the URL format we will need to follow to open Bing Maps to a specific address:
http://bing.com/maps/default.aspx?where1= 1 %20 Microsoft %20 Way %20 Redmond %20 WA %20 98052
For more info see the Bing Maps help topic Build your own URL .
I’m going to use the Customer sample model. We’ll need to add a link attribute to the customer entity then create a concatenation business rule to set the value of the link attribute. In this post I’m not giving the step-by-step, detailed instructions to create each item. Please see my Creating a Simple Business Rule and Enabling Human Workflow – Part 1 posts for specific instructions.
Add a new Free-form, link attribute to the Customer entity called BingMapURL . Make sure the data type is Link .
Now let’s create a rule to populate its value.
Now let’s add the Bing Map specific URL pieces.
Add a new customer then return to the Member grid. Scroll over to the right and you will see the populated BingMapURL.
Double click the link icon and then select View from the context menu.
A new browser window opens to the Bing Maps URL.
To prevent users from editing the BingMapURL attribute change the security permissions to Readonly. Other possibilities are to create another link attribute called BingMapDirectionsURL which would be the URL for directions from your company to the customer.
Here’s another example, which I’ll not walk through but simply give you as an idea. What if you have an internal (or external) product catalog website? If you are managing Product data in MDS then you can add a ProductCatalogURL link attribute to the Product entity then follow the same steps we did with the BingMapURL to create it.
If you want to take this a little further you could create an ASP.Net web application that utilizes the MDS API. You could create a product list page listing all the products. Each product listing would have a link to the product catalog using the ProductCatalogURL.
There are a lot of possibilities. All it takes is a little creativity.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.