My favorites | Sign in
Project Home Issues
New issue   Search
for
  Advanced search   Search tips   Subscriptions
Issue 136: Building event array from VS, end cannot be defined as event property.
1 person starred this issue and may be notified of changes. Back to list
Status:  Done
Owner:  ----
Closed:  Oct 2009


Sign in to add a comment
 
Reported by dmcstudi...@googlemail.com, Oct 20, 2009
What steps will reproduce the problem?
1.Create event array through VB.Net
2.Define structure containing event properties
3.

What is the expected output? What do you see instead?
Event has end date. 'end' is keyword in VB and cannot be defined.

What version of the product are you using? On what operating system?
1.4 on XP

Please provide any additional information below.
Is there a way to change the wording of the properties of the events? ie 
start, end, title. Really just need to change 'end' property so I can 
define length of event. Agenda view fantastic by the way. This really is 
an impressive tool.
Oct 23, 2009
#1 leandrok...@gmail.com
how exactly are you creating that array? the keyword "end" shouldn't be supposed to 
brake your code... I'm currently using a method to create the array through a VB code 
and works just fine
Oct 26, 2009
#2 dmcstudi...@googlemail.com
hi leandrokoiti, I had created a VB structure in a web service. ie 
declaring 'id', 'title' etc. I was never able to get the formatting of a simple 
string array correct. New to jQuery and json formatting. 
Oct 31, 2009
Project Member #3 adamrs...@gmail.com
not sure the ins-and-outs of json in VB, but you should be able to specify 'end' as a 
string. i'm 99% sure you should be able to figure this out, but if worst comes to 
worst, you can always use a custom event-source 'function' 
(http://arshaw.com/fullcalendar/docs/events-and-sources.php) to convert from 'length' 
to 'end'. but this problem is best solved by doing a little more research about how 
json works in VB
Status: Done
Jun 22, 2010
#4 Jake1...@gmail.com
This is still a problem in VB and a limiting factor.  The problem is with the parameter names you pass to the webservice. You basicly call the following jquery fuction:
                $.ajax({
                    type: 'POST',
                    contentType: 'application/json; charset=utf-8',
                    url: 'Calendar.asmx/EventList',
                    data: '{start: 1278820800, end: 1275192000}',
                    datatype: 'json'});

This calls the matching webservice in ASP.NET:

<WebMethod()> _
    Public Function EventList(ByVal start As String, ByVal end As String) As String
        ' Code to return events here
    End Function

The problem is not passing the string, its matching the name. 'ByVal end as String)' is not valid in VB.NET because end is a keyword.
http://msdn.microsoft.com/en-us/library/t99w05f1(VS.80).aspx


The problem
Sign in to add a comment

Powered by Google Project Hosting