Sha256: 432990ca8b196287f232c1b8b0bf3c4b1b55b081970a6e400fbc8e609e0fcb69

Contents?: true

Size: 1.42 KB

Versions: 1

Compression:

Stored size: 1.42 KB

Contents

= BOSDK.gem

== Description

A JRuby wrapper for the Business Objects SDK

== Requirements

- The Business Objects Java SDK
- An environment variable 'BOE_JAVA_LIB' pointing to the Business Objects Java
  SDK directory
- JRuby >= 1.4.0

== Usage

 require 'bosdk'
 include BOSDK
 session = EnterpriseSession.new('cms', 'Administrator', '')

 stmt = "SELECT TOP 10 * FROM CI_SYSTEMOBJECTS WHERE SI_KIND='User'"
 session.query(stmt).each do |obj|
   puts obj.path
 end

 session.disconnect

Alternatively you can use the #connect closure.

 require 'bosdk'
 BOSDK.connect('cms', 'Administrator', '') do |session|
   stmt = "SELECT TOP 10 * FROM CI_SYSTEMOBJECTS WHERE SI_KIND='User'"
   session.query(stmt).each do |obj|
     puts obj.path
   end
 end

== BOIRB

The library ships with an extension to the standard irb shell that connects you
to a cms and gives you a handful of helpful shortcuts.
 
 connect(cms, username, password, options = Hash.new)
Creates a new EnterpriseSession and binds it to @boe.

 connected?
Tests whether @boe is connected to a cms.

 disconnect
Disconnects @boe from the cms.

 query(stmt)
Runs the provided query on @boe and returns the resulting InfoObject array.

 open(docid)
Opens the specified InfoObject using a ReportEngine and returns the doc handle.

== Resources

- Website: http://semmons99.github.com/bosdk
- Git Repo: http://github.com/semmons99/bosdk

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
bosdk-1.0.3-universal-java-1.6 README.rdoc