Quantcast
Channel: SCN: Message List
Viewing all articles
Browse latest Browse all 8644

Re: Where to Access Datasource of Component

$
0
0

I have found the answer.

Add this code to the component.xml:

 

<component

  id="ConditionalTable"

  title="Conditional Table"

  icon="res/icon.png"

  handlerType="div"

  propertySheetPath="res/additional_properties_sheet/additional_properties_sheet.html"  databound="true">

  <jsInclude>res/js/component.js</jsInclude>

  <cssInclude>res/css/component.css</cssInclude>

  <property

    id="resultset"

    title="Resultset Filters"

    type="ResultSet"

    group="DataBinding">

  </property>

 

Then in the oComponentProperties of the This object, the data can be found. It is contained in the resultset property. resultset is the id that I gave the ResultSet in the components.xml. Now, the data just needs to be decoded, so that it can be arranged properly in a table.


Viewing all articles
Browse latest Browse all 8644

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>