Hitachi Vantara Pentaho Community Forums
Results 1 to 3 of 3

Thread: Conditional returns in xactions?

  1. #1
    Join Date
    Apr 2007
    Posts
    2,010

    Default Conditional returns in xactions?

    Hi,

    In an xaction I want to return either 1 report or another, depending on an end user selection. Both reports will have ran.

    So; I need to conditionally set the return of the xaction. Can that be done?

    I wondered about using the stream copy stuff mentioned in this jira:

    http://jira.pentaho.com/browse/BISERVER-3739

    But that seems like a bit of a hack! Especially as that code is no longer in the referenced xaction anyway.

    Any ideas?

    Thanks,
    Dan

  2. #2
    Join Date
    Oct 2007
    Posts
    235

    Default

    This is just an idea so take with a pinch of salt

    Could you do it with a couple of if blocks that set the mapping for the output fields from the reports. IE

    if x = 0
    then run report a with output field mapping to foo (<report-output type="content" mapping="foo"/> )
    run report b with outputfield mapping to bar
    if x = 1
    then run report a with output field mapping to bar
    run report b with outputfield mapping to foo

    Then have your xactions outputs being foo and bar

    Good luck

    Wil
    SQL: as much of a standard as the English language

  3. #3
    Join Date
    Apr 2007
    Posts
    2,010

    Default

    ah yes; Excellent, that'll work; I'll give it a go..

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Privacy Policy | Legal Notices | Safe Harbor Privacy Policy

Copyright © 2005 - 2019 Hitachi Vantara Corporation. All Rights Reserved.