Join the #BuildWithBuildAgent Challenge! Get recognized, earn exclusive swag, and inspire the ServiceNow Community with what you can build using Build Agent.  Join the Challenge.

Modal Widget in Portal

darianistor
Tera Contributor

Hi, I have a widget that I want to show my approvals. The problem is that I want it to display details about the approval once I click on it, data that it takes from a table (called Instnace). In this moment, it doesn't show me the details. 

For the button who takes me to more details I used: ng-click="c.viewModal(); c.showPopover(approvment.sys_id, approvment.template);"

And in the client controller: 

c.viewModal = function(step, item) {
        c.modalInstance = $uibModal.open({
            templateUrl: 'approve_home',
            keyboard: false,
            backdrop: 'static',
            scope: $scope
        });
    };
c.closeModal = function() {
    c.modalInstance.close();
};
Thanks! 🙂
0 REPLIES 0