I need to prepopulate the spreadsheet with multiple rows corresponding to amount of months specified by user.
Initial screen asks user for [Input1] and time span in months (FROM and TO Date cells).
I want the button to populate the spreadsheet with corresponding Input in a column by creating X rows, where X = number of months.
I'm doing planning application, where long term planning is done.
Is there a way to use Automation to add multiple rows with 1 action using iterative/repeat process?
Is there a way to Automate rows creation by running Automation until condition is False?
Create a blank table, just to hold some temporary values, maybe name it "values".
Automation on click...
Calculate the number of months, "X" in your example.
Write "X" into values!A1
New automation, from the left nav.
Start when cell changes =values!A1
Add row to table
Overwrite Step, with "Run if this condition is met" set to IF(values!A1>0).... take data from SUM(values!A1, -1) and write to values!A1.
I think this would create a hacky loop with a counter. The button press would set the number, and then the table automation would detect the change, add a row, and then decrease the number by 1 so long as it hasn't hit zero.
Yeah, just tried to work on A2 level... still the Automation don't trigger still.
Wish it would throw an error or something... looking where might be the problem.
Ok, so now behavior is fixed, but the end goal is not achieved.
but, the Overwrite step don't trigger the repetition of Automation even though the Cell gets decremented (modified).
With initial input for 10, Automation created the row in Rows and decremented A2 to 9 and stopped there.
My take on it, that the trigger is not hit if the change was made by Automation itself making iterative process impossible. That's a good "safety" mechanism for infinite looping prevention, but don't allow for the target scenario to execute. Unless I'm wrong with my assumption.
You are right. The automations currently do not support recursive triggering to avoid run away automations. Do any of your projects go over a year? I have a solution that might work but want to understand your use case better.
well, this is a financial planner app. As initial step I'm asking user to input
Current Monthly Income
Average Monthly Expenses (total)
And duration of the planning to be generated.
once the button is hit --> the Automation should create the row for each month for the duration specified.
This allows user to see the cashflow running totals for specified period as a baseline for further planning, where they would eventually update the rows with actual numbers.