<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html;charset=UTF-8" http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
What do you mean?<br>
<br>
There is no MgServiceType declared in JavaScript?<br>
You wrote that you used VB.Net in the original post.<br>
<br>
You cannot use any of the Mg* classes from JavaScript because they are
server side components.<br>
<pre class="moz-signature" cols="72">Regards, Kenneth Skovhede, GEOGRAF A/S
</pre>
<br>
<br>
Marius_360 skrev:
<blockquote cite="mid:18527660.post@talk.nabble.com" type="cite">
<pre wrap="">I am using JavaScript :
var featureService =
siteConnection.CreateService(MgServiceType.FeatureService);
featureService.CreateFeatureSource(resourceIdentifier, sdfParams);
Kenneth Skovhede, GEOGRAF A/S wrote:
</pre>
<blockquote type="cite">
<pre wrap="">How do you construct the featureService variable?
You should do something like:
Dim featureService as MgFeatureService =
connection.CreateService(MgServiceType.FeatureService)
featureService.CreateFeatureSource(...., ....)
Regards, Kenneth Skovhede, GEOGRAF A/S
Marius_360 skrev:
</pre>
<blockquote type="cite">
<pre wrap="">Hi
I need to develop a redlining application for a client using VB.Net and
JavaScript.
I converted the demo code available, but get stuck with the
“featureService.CreateFeatureSource” command, it gives me a “Objects of
type
'OSGeo.MapGuide.MgService' do not have such a member” error
Marius
</pre>
</blockquote>
<pre wrap="">_______________________________________________
mapguide-users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:mapguide-users@lists.osgeo.org">mapguide-users@lists.osgeo.org</a>
<a class="moz-txt-link-freetext" href="http://lists.osgeo.org/mailman/listinfo/mapguide-users">http://lists.osgeo.org/mailman/listinfo/mapguide-users</a>
</pre>
</blockquote>
<pre wrap=""><!---->
</pre>
</blockquote>
</body>
</html>