Update of "Sample Test Code"

Many hyperlinks are disabled.
Use anonymous login to enable hyperlinks.

Overview

Artifact ID: c2f88059fb42f0026cacc70362adf9048c92c754
Page Name:Sample Test Code
Date: 2016-02-29 06:30:25
Original User: anonymous
Parent: 6deff6c9d4a1958a09c7ad4f0564833d85352f70 (diff)
Content

Below is a small program that shows the use of the OData class library.

package require OData 4.0

set obj [ODataService new http://services.odata.org/V4/OData/(S(qe0mzsxp2vzxcr23zdd2rxg0))/OData.svc/]

puts stdout {
##
## Examples:
##
puts stdout [$obj info collections]

puts stdout {}
puts stdout [$obj Categories]

puts stdout {}
puts stdout [set p2 [$obj Products 2]]

puts stdout [$p2 get ID]

}

On 2016-02-29 06:30:25 UTC anonymous added:
bjjh