I need to create a new operator in Sugar, is that possible??
I need to create a new operator in Sugar, is that possible??
Unfortunately Reports module doesn't support upgrade safe customizations like that. You may create it by editing several core files, so you may need to redo the job unce upgrading your instance.
Regards
I have done the change but I cannot see the input displaying on the form, I have spent few days trying to find out where this trigger but there's something on the code that qualify the field to have a new entry and not hide the field , do you know how to do that ?
Rodrigo Manara
Sr. Developer
Did you try modifying the function
addFilterInput: function(htmlTableCell, filter, rowId)
There you may want to add your own logic on how to display the field:
if (filter.qualifier_name == '#_test_days_ago') {
SUGAR.reports.addFilterInputText(row,filter);
}
Yes, I have change the field name, so it does not go into the "tp_" condition
Rodrigo Manara
Sr. Developer
Yes, I have change the field name, so it does not go into the "tp_" condition
Rodrigo Manara
Sr. Developer
Can you share your code changes?
If you have the filter/qualifier name with "n_days", it should automatically go into the previous logic which displays input text box.
if (qualifier_name.indexOf("_n_days") != -1) {
SUGAR.reports.addFilterInputText(row, filter);
SUGAR.reports.addRunTimeCheckBox(row, filter, rowId);
}