• How to prevent overwrite a custom administration controller.php?

    Hi folks! I have 2 packages that write one same file. The first package I made some days ago and is installed now. The second package is a plugin that some company made. So, When I installed the second package, I didn't prevent the latests package overwrite…
  • Why can't I import controller.php files using module loader?

    OtherCustomization.zip I created the following package, but I had to comment out the controller.php files because there is an error when they are imported. Why can't we import into controller.php files, or any file into custom/modules/<module>/…
  • Can't access fields in view controller

    I'm having a problem accessing field values in a view controller. I have a controller for the Resources record view that takes a value from a dropdown and sets the value of a field depending on the dropdown selection. It looks like this: // custom/modules…
  • this.model in quote-data-group-list does not have relate field from record.php

    Hello, I've been struggling to figure this one out and wondered if anyone had any ideas. We have a requirement to make a relationship between products and Tax Rates, selectable in the 7.9+ Sidecar quote-data-group-list.php view. Here's a brief outline…
  • Set relationship dropdown via javascript controller

    Hi everyone, I'm trying to set a relationship dropdown on the "One" side (One-To-Many relationship) in the create javascript controller. With relate fields I'm able to simply do this: this.model.set('account_c', accountName); this.model.set('account_id_c…
  • subpanel controller not working

    Hi all I try to call function after click a button in list view on Email subpanel in Cases module but it not working, controller don't return anythings in console log. Can someone help me to find out why it not working ? custom/modules/Emails/clients…
  • What is the best way to catch ALL edits on Approved record?

    I have a need to warn the user that they are editing an "Approved" custom record, or one of its related custom records, and allow them to proceed if they so choose, get out without changing anything if they don't. How do I catch any and all attempts to…
  • JavaScript Controller copy one field to another before blanking the first field

    field_one is a drop down and field_two is a varchar. I want to be able to pick a value in field_one , have it populate field_two and then clear out field_one . Sounds simple enough. So I run this code in the on change event: this.model.set(' field_two…