Commit c000d46ced687a4375ddf0f86d8a5302e2836bce

Authored by Isaac Lewis
1 parent 46f53dff

add raw xml output

Showing 1 changed file with 6 additions and 2 deletions   Show diff stats
lib/syspro/business_objects/combrw.rb
... ... @@ -12,11 +12,15 @@ module Syspro
12 12 attr_accessor :browse_name, :start_condition, :return_rows, :filters,
13 13 :table_name, :title, :columns
14 14  
15   - def call(user_id)
  15 + def call(user_id, raw)
16 16 xml_in = template.result(binding)
17 17 params = { 'UserId' => user_id, 'XmlIn' => xml_in }
18 18 resp = ComBrw.browse(params)
19   - parse_response(resp)
  19 + unless raw
  20 + parse_response(resp)
  21 + else
  22 + resp
  23 + end
20 24 end
21 25  
22 26 def template
... ...