The documentation for the API Explorer is practically non-existent. One of my models requires a date property. The example given in the API Explorer looks like this: '2016-03-27'. How can I add a time to that?
Keep in mind I just need a datetime literal to enter into the API Explorer, not any JavaScript code.
I couldn't locate any documentation either. Based on a guess, I tried out some of the dateString literals that Date.parse() would parse successfully and found it to be working as expected with loopback. I used the example string formats from here.
For example, I used the following dateString for the created field in the API Explorer for a POST \Users request:
javascript
{
"email":"username#domain.com",
"password":"pass123",
"created":"Mar 24, 2016 04:00:00 GMT"
}
The response contained this:
javascript
"created" : "2016-03-24T04:00:00.000Z"
I also noticed that, similar to what is described in the link pasted, the Date defaults to local timezone if not explicitly stated.
I am Using Lotus notes 8.5. I am trying to create a new document in nsf database with a specific datetime using C++ API of Lotusnotes. But Document is created with Current Datetime.
If you can set the $Created item on the document that should let you change the created date.
Code with the Notes C++ API really should never ignore the LNSTATUS return that comes back from the calls. As you say that the item is not being created, the LNSTATUS would be the first place I'd look for a reason.
Also, it doesn't make sense (to me, anyhow) to have $Created be a timedate range, but your code is passing an LNDatetimes object. I suspect that you should be a passing a single LNDatetime instead.
If I got to calendar, click on To Do, then try to add an event, the form pops up, I fill it out, press save, but no Event gets added.
In the SQL error log's I see an error like this:
2011-09-29 14:57:07 EDT ERROR: null value in column "visibility" violates not-null constraint
2011-09-29 14:57:07 EDT STATEMENT: insert into
vtiger_activity(activityid,subject,date_start,time_start,time_end,due_date,status,eventstatus,priority,sendnotification,activitytype,visibility,duration_hours,duration_minutes,location,recurringtype,notime)
values('235','Testing','2011-09-29','19:50',NULL,'2011-09-29','Not Started',NULL,'High','0','Task',NULL,NULL,NULL,NULL,NULL,'0')
So, for some reason, it is trying to add a To-Do while inserting null values. My biggest problem is that I cannot locate the origin of the query. So, basically, the most important thing I am asking is what file takes the data that was input into the todosave form and turns it into a query.
I don't know if many people on here use Vtiger, but I couldn't figure this out so I went ahead and posted anyway. The official documentation is not very helpful in my opinion.
Thanks for everything, have a good day.
This might be an isolated case, but was any of the modules modified recently? In this case, I would assume that it would be the Calendar module. I've tested this on the demo website and on my vTiger installation and it works fine..
Perhaps you can download a fresh copy of vTiger and replace the modules/Calendar all its content.
By the way, another place to ask if you have any questions, is the vTiger forums.
http://forums.vtiger.com/index.php
Usually you can ask it in the Help - 5.2.1 section. Hope this helps!
Good Day to All,
I am working with a small code, where I cant get my right hand part correctly
Response.Cookie("MyCookie").Expires=DateTime.FromString("2011-10-1");
Above cookie codes were used in my company's old project, I am updating the code and could not find a property named FromString in DateTime. Can anybody tell me an alternative to get desired result ?
To get a DateTime from a string, you would use DateTime.Parse
DateTime.Parse("2011-10-1")
I would like to get the original query (in the exact same format as sent) from Django.
Currently, django sends me a query dict object, wherein if I do querydict.urlencode(), I get the query back, but in a different format from what is sent, since dictionary mangles the positions.
For GET, we can use, request.get_full_path().
I have not found a mechanism for POST.
I require it since I am doing a HMAC, and for HMAC, the exact positioning of fields are important.
Regards
K
Sorry, this is solved.
We can use raw_post_data for that. Forgot about that.