MediaSignage support forum

community support => Open source Digital Signage => Topic started by: dodo123 on December 05, 2015, 12:13:30 AM

Title: Blocks query
Post by: dodo123 on December 05, 2015, 12:13:30 AM
How can i start a query which blocks(blockID, Description) are in a specific timeline/channel?
Title: Re: Blocks query
Post by: admin on December 05, 2015, 04:09:24 PM
   /**
     Get a block's record using it's block_id
     @method getBlockRecord
     @param {Object} i_block_id
     @return {Object} recBlock
     **/
    getBlockRecord: function (i_block_id) {
        var self = this;
        return self.m_msdb.table_campaign_timeline_chanel_players().getRec(i_block_id);
    },
 

from http://www.digitalsignage.com/msdocs/files/_libs_Pepper.js.html#l1400

will get you the block's record, at which point you can parse the ch/timeline/campaign etc...