triggers

Duplicate emails sent from Apps Script project that has a weekly time-based trigger

醉酒当歌 提交于 2020-07-01 16:50:44
问题 The below script was correctly sending one weekly email to each person who met the conditions specified in the script. The trigger is time-based, set to run weekly on Monday mornings. This morning, the script ran 4 times and the same individuals received the same email 4 times. The only thing I can think of is that last week I put a shortcut to the Sheet into a shared folder. The folder has 5 individuals who can access anything in it - me and 4 other people. I am 100% certain none of the

Duplicate emails sent from Apps Script project that has a weekly time-based trigger

北慕城南 提交于 2020-07-01 16:50:19
问题 The below script was correctly sending one weekly email to each person who met the conditions specified in the script. The trigger is time-based, set to run weekly on Monday mornings. This morning, the script ran 4 times and the same individuals received the same email 4 times. The only thing I can think of is that last week I put a shortcut to the Sheet into a shared folder. The folder has 5 individuals who can access anything in it - me and 4 other people. I am 100% certain none of the

Duplicate emails sent from Apps Script project that has a weekly time-based trigger

牧云@^-^@ 提交于 2020-07-01 16:49:31
问题 The below script was correctly sending one weekly email to each person who met the conditions specified in the script. The trigger is time-based, set to run weekly on Monday mornings. This morning, the script ran 4 times and the same individuals received the same email 4 times. The only thing I can think of is that last week I put a shortcut to the Sheet into a shared folder. The folder has 5 individuals who can access anything in it - me and 4 other people. I am 100% certain none of the

Load sidebar onOpen google Sheets

别说谁变了你拦得住时间么 提交于 2020-06-29 13:36:21
问题 I am trying to load the sidebar when the page opens. I have important information that i was readily available for them to see. How can i load the sidebar when page is opened? I also could do onEdit if need be. function onOpen(){ var ui = SpreadsheetApp.getUi() .createAddonMenu() .addItem('Show sidebar', 'showSidebar') .addItem('Show dialog', 'showDialog') .addSeparator() .addToUi(); // Display sidebar if auto-sidebar is enabled showSidebar(); SpreadsheetApp.getUi().createMenu('Information')

Google apps javascript doesn't run for anonymous users?

不问归期 提交于 2020-06-25 06:54:43
问题 This is probably a dumb newbie question, but I have a spreadsheet that I want to make available to anonymous users by just giving them the URL. After a lot of hair-pulling I now have the cell protection rain dance figured out, but I have another problem. The original sheet's onOpen works fine for me and creates a custom menu, but when I share the sheet and open it as an anonymous user, no menu appears. Fine, thought I, it isn't the first time Google's stuff doesn't work as advertised. So then

How to add a trigger to a WPF custom control without overriding the existing style?

狂风中的少年 提交于 2020-06-24 11:08:32
问题 I am creating a simple custom control extending from toggle button that allows the user to specify checked and unchecked content directly in XAML. It works well but it is based on a trigger, and I don't know how to define the trigger except in a style. If I define the style, then I lose anything set outside of the custom control. What I would like to be able to do is just append this trigger to any existing style set elsewhere on the control. Here's the XAML for the style/trigger.

How to add a trigger to a WPF custom control without overriding the existing style?

人盡茶涼 提交于 2020-06-24 11:07:17
问题 I am creating a simple custom control extending from toggle button that allows the user to specify checked and unchecked content directly in XAML. It works well but it is based on a trigger, and I don't know how to define the trigger except in a style. If I define the style, then I lose anything set outside of the custom control. What I would like to be able to do is just append this trigger to any existing style set elsewhere on the control. Here's the XAML for the style/trigger.

MySQL trigger with conditions on UPDATE

独自空忆成欢 提交于 2020-06-18 16:01:27
问题 Is it possible to insert a conditional type of update in a mysql trigger? If I need to do something after a certain type of update, for example if the update is a certain type of changing in field value. Better said, if I need to increment a value in another table after that a specific field in my original table changes his value to a specific value, is it possible? Any help will be greatly appreciated. I'm trying this: CREATE TRIGGER Increment AFTER UPDATE ON Subscription FOR EACH ROW BEGIN

“Cannot call SpreadsheetApp.getUi() from this context” error while not using getUi() on time-based trigger

爷,独闯天下 提交于 2020-06-17 11:12:11
问题 I am trying to run a function every night that checks a list of dates and does work if it finds that a date has passed and all the checkboxes on that row are checked. Every day, though, I get an email saying "Cannot call SpreadsheetApp.getUi() from this context. (line 172, file "Code")". The weird thing is that I don't use getUi() anywhere in my CheckHireDates function and the line that it specifies is not even in the function that is supposed to run. Line 172 is in my onEdit function which

“Cannot call SpreadsheetApp.getUi() from this context” error while not using getUi() on time-based trigger

有些话、适合烂在心里 提交于 2020-06-17 11:06:08
问题 I am trying to run a function every night that checks a list of dates and does work if it finds that a date has passed and all the checkboxes on that row are checked. Every day, though, I get an email saying "Cannot call SpreadsheetApp.getUi() from this context. (line 172, file "Code")". The weird thing is that I don't use getUi() anywhere in my CheckHireDates function and the line that it specifies is not even in the function that is supposed to run. Line 172 is in my onEdit function which