Re[mapguide-users] dlining error

Kenneth Skovhede, GEOGRAF A/S ks at geograf.dk
Fri Jul 18 08:05:14 EDT 2008


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
>>>> mapguide-users at lists.osgeo.org
>>>> http://lists.osgeo.org/mailman/listinfo/mapguide-users
>>>>
>>>>
>>>>     
>>>>         
>>>   
>>>       
>> _______________________________________________
>> mapguide-users mailing list
>> mapguide-users at lists.osgeo.org
>> http://lists.osgeo.org/mailman/listinfo/mapguide-users
>>
>>
>>     
>
>   
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/mapguide-users/attachments/20080718/a56f4944/attachment.html


More information about the mapguide-users mailing list