Ok, then you still have to do:

Dim featureService as MgFeatureService = 
siteConnection.CreateService(MgServiceType.FeatureService)
featureService.CreateFeatureSource(resourceIdentifier, sdfParams)


In VB.Net, because you cannot call the Mg* classes from JavaScript.

Regards, Kenneth Skovhede, GEOGRAF A/S



Marius_360 skrev:
Sorry, I’m using ASP.Net with JavaScript



Kenneth Skovhede, GEOGRAF A/S wrote:
What do you mean?

There is no MgServiceType declared in JavaScript?
You wrote that you used VB.Net in the original post.

You cannot use any of the Mg* classes from JavaScript because they are server side components.

Regards, Kenneth Skovhede, GEOGRAF A/S



Marius_360 skrev:
I am using JavaScript :
var featureService =
siteConnection.CreateService(MgServiceType.FeatureService);

featureService.CreateFeatureSource(resourceIdentifier, sdfParams);



Kenneth Skovhede, GEOGRAF A/S wrote:
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:
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
_______________________________________________
mapguide-users mailing list
[email protected]
http://lists.osgeo.org/mailman/listinfo/mapguide-users


_______________________________________________
mapguide-users mailing list
[email protected]
http://lists.osgeo.org/mailman/listinfo/mapguide-users



_______________________________________________
mapguide-users mailing list
[email protected]
http://lists.osgeo.org/mailman/listinfo/mapguide-users

Reply via email to