|
Rank: Member
Joined: 1/10/2017 Posts: 11 Location: India
|
Hi
Some questions around MAP 2017 :
1. Does MapForce 2017 support visual studio 2015 ? I am using trial version of MAPForce and generated code in C# after opening the solution it gave me lot of namespace errors as i have VS 2015.
2. Is there way to call mfd file directly from c# application code ?
3. How to pass parameter from .net to mfd ? Are there any examples to demonstrate this ?
Thanks Ekta
|
|
Rank: Newbie
Joined: 10/28/2002 Posts: 1,283 Location: AT
|
Hi,
Quote: Does MapForce 2017 support visual studio 2015 ? I am using trial version of MAPForce and generated code in C# after opening the solution it gave me lot of namespace errors as i have VS 2015. The versions of Visual Studio for which code can be generated are listed here
It should however be possible to open e.g. a VS 2010 solution in VS 2015 and have VS automatically upgrade it so it can be used in VS 2015. if you have problems with the code I would suggest contacting support . Provide your mapping (.mfd) and all associated files as well as the error messages you are getting in VS 2015.
Quote: Is there way to call mfd file directly from c# application code ? I assume that you are referring to calling an mfd in order to execute it. The only way to do this would be to use MapforceServer i.e. the MapforceServer .Net API.
Compile your ".mfd" mapping to an ".mfx" file in Mapforce and then use the run method of the MapforceServer API to execute the ".mfx".
Quote:How to pass parameter from .net to mfd ? Are there any examples to demonstrate this ? Select Insert | Input in Mapforce to insert an input parameter into your mapping. This will then be reflected in the generated code.
|
|
Rank: Member
Joined: 1/10/2017 Posts: 11 Location: India
|
Thanks for clarifying this.
some more queries :
Are there any examples available for MAPFORCESERver API in .net ?
Also is there any option for automated beautification/formatter of mapping (for e.g. SQLformatter ) in mapforce so it can help other to understand mapping ?
Thanks !!
|
|
Rank: Newbie
Joined: 10/28/2002 Posts: 1,283 Location: AT
|
Examples can be found in the Code Examples section of the Mapforce Server Documentation.
When designing a mapping there are "component alignment helpers" which aid in the placement of components to help you design more aesthetically pleasing mappings (TOOLS | OPTIONS | Editing) , however there is no functionality which can rearrange components after the fact.
Note there are two other features which aid in the understanding of a mapping
1) You can generate documentation from a mapping (FILE | Generate Documentation)
2) You can add annotations to connections. Right click on a connection, select Properties and then add an annotation in the Description text box.
|
|
Rank: Member
Joined: 3/25/2015 Posts: 19
|
In completion to what island said, I find the mapping debugger to be a useful tool in understanding what the mapping does.
|
|
Rank: Member
Joined: 1/10/2017 Posts: 11 Location: India
|
Thanks Island for prompt replies.
One more question, can different collections be return in if-else condition rather than single value ? As i am intend to map multiple fields on different if-else condition with input table .
|
|
guest |