Hitachi Vantara Pentaho Community Forums
Results 1 to 4 of 4

Thread: custom component with data source

  1. #1

    Default custom component with data source

    I'm trying to develop a custom component for CDE that requires a data source such as a chart ccc .
    If I subclass the component from the class BaseComponent , I do not have a data source property available or the ability to map parameters on query variables .
    can you give me some guidance on how to do?
    thanks for any response

  2. #2
    Join Date
    Nov 2011
    Posts
    1,229

    Default

    You need to have the datasource property in your component.xml file:

    <Definition name="queryDefinition">
    <Property type="query">dataSource</Property>
    </Definition>
    Pedro Vale
    --
    CTools Product Development
    http://www.webdetails.pt

  3. #3

    Default

    OK , I checked the code and I understood your answer .
    However, I still have a doubt ;
    why the ccc components are derived from the class UnmanagedComponent instead of BaseComponent ?
    thanks for the help .

  4. #4
    Join Date
    Nov 2011
    Posts
    1,229

    Default

    UnmanagedComponents are CDF components that conform to the Asynchronous life cycle that was introduced earlier this year. BaseComponent is the base class for all components, regardless of their lifecycles.

    Check here for more info:

    http://pedroalves-bi.blogspot.pt/201...c-support.html

    There's also some documentation about the lifecycle in the plugin samples folder inside PUC.
    Pedro Vale
    --
    CTools Product Development
    http://www.webdetails.pt

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.