PermaLink Some more Domino PHP stuff01/14/2009 01:26 PM
PHP

If you need to access an items Values, ala NotesItem.Values, you can't access it directly.  Instead, assign the value(s) returned by the Values property to a temporary variable, then access the values in the temporary variable as an array:


$item = $doc->GetFirstItem( "SomeField" );
$ivalues = $item->Values;
// $ivalues[0] is the first element

To create a NotesDateTime object in PHP, you need to use the NotesSession.CreateDateTime() method, like this:

$ndt = $session->CreateDateTime( '01/14/2009 01:22:00 PM EST' );

Easy, no?
Comments :v
No comments.
Credits
NuTechs Powered by Domino
Search
Calendar
February 2012
Su
Mo
Tu
We
Th
Fr
Sa
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
Monthly Archive
Get Real, Detroit!
Real Detroit Weekly
SWARM
Service
With
A
Rapid
Motion


-- old Rally's Hamburgers credo
Lotus Domino ND6 RSS News Feed RSS Comments Feed Podcast Feed Geo URL netcraft RSS Validator Lotus Geek Chris. A. Brandlehner Open Notes Picture Database OpenNTF CoComment Integrated BlogSphere
By Category
The BlogRoll
About
Contact Me
Contact me, Michael Sobczak, using this e-mail address:

my first initial my last name at Yahoo dot com
Recent Entries
No Recent Blogs
Powered by
Blogsphere