ActionButton calling custom scripts

I like the new ActionButtons you can create in sugar 11 using studio and then place them anywhere like you do a field. the problem I have is it would be great in we could call custom scripts in records.js when the button is clicked. Has anyone found a way to do this?

Our field

<div class="record-link-wrapper span4">
<span class="normal index" data-fieldname="map_location_c" data-index="">
<span sfuuid="9688" class="detail">
<a id="546c15a3-38e9-47dd-9813-8f4c4924232d" class="actionbuttons actionbuttons-button btn btn-primary" href="javascript:void(0);" title="Display map of account location" role="button" aria-label="Get Map Location" tabindex="0"><i class="sicon sicon-settings"></i>Get Map Location</a>
</span>
</span>
</div>

I just wandered if anyone had a way to tie this into records.js

({
    extendsFrom: 'RecordView',
    
    initialize: function (options) {
        this._super('initialize', [options]);
        this.model.on('change:primary_address_country', this._changeCounrtyRelation, this);
        // detect click on actionButton using this.model.on();
    },
    


})

Parents Reply Children
No Data