September 21, 2023, 08:42:50 AM
Welcome, Guest. Please login or register
News: Stay up to date with everything that's happening at http://twitter.digitalsignage.com

MediaSignage support forum



Author Topic: Blocks query  (Read 3433 times)

dodo123

  • Jr. Member
  • **
  • Posts: 10
  • Karma: +0/-0
Blocks query
« on: December 05, 2015, 12:13:30 AM »
How can i start a query which blocks(blockID, Description) are in a specific timeline/channel?

admin

  • Administrator
  • Hero Member
  • *****
  • Posts: 5180
  • Karma: +36/-8
Re: Blocks query
« Reply #1 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...

 

Carbonate design by Bloc
variant: carbon
SMF 2.0.12 | SMF © 2016, Simple Machines