June 26, 2019, 03:47:30 PM
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 1439 times)

dodo123

  • Newbie
  • *
  • Posts: 10
  • Karma: +0/-0
    • View Profile
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: 4944
  • Karma: +35/-8
    • View Profile
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