Iām currently busy with this, but I think I might have found a bug/issue.
When I try to save(insert a row) I get an error, I believe I followed the instructions correctly but Iām not sure seeing as the layout have changed a bit.
the error that I get are as follows:
UncaughtPromiseRejection: addNewInvestor failed to execute
AND
Plugin failed to parse JSON ā{
āInvestment Fundā: āasdfsā,
āLocationā: āasdfsdfā,
āName of Investorā: āsdfsdfā,
āDesignationā: āasdfsā,
āInteresting Portfolio Companiesā: āasdfā,
āSize of Fundā: āasdfsdā,
}ā with error: Unable to parse request body. Expected a row object.
And I get these errors in the browser console:
main.9996556e.chunk.js:1 TypeError: Cannot read properties of undefined (reading ānameā)
at main.9996556e.chunk.js:1:2718407
at l (11.5cf7b031.chunk.js:2:3975835)
at Generator._invoke (11.5cf7b031.chunk.js:2:3975623)
at Generator.next (11.5cf7b031.chunk.js:2:3976260)
at p (11.5cf7b031.chunk.js:2:702342)
at c (11.5cf7b031.chunk.js:2:702674)
at T. (11.5cf7b031.chunk.js:2:699362)
at 11.5cf7b031.chunk.js:2:701934
at m (11.5cf7b031.chunk.js:2:702891)
at p (11.5cf7b031.chunk.js:2:702402)
at c (11.5cf7b031.chunk.js:2:702674)
at T. (11.5cf7b031.chunk.js:2:699362)
at 11.5cf7b031.chunk.js:2:701934
at m (11.5cf7b031.chunk.js:2:702891)
at p (11.5cf7b031.chunk.js:2:702402)
at c (11.5cf7b031.chunk.js:2:702674)
at T. (11.5cf7b031.chunk.js:2:699362)
at 11.5cf7b031.chunk.js:2:701934
at m (11.5cf7b031.chunk.js:2:702891)
at p (11.5cf7b031.chunk.js:2:702402)
at W (11.5cf7b031.chunk.js:2:702130)
at 11.5cf7b031.chunk.js:2:698747
at m (11.5cf7b031.chunk.js:2:694997)
at T. (11.5cf7b031.chunk.js:2:698727)
at 11.5cf7b031.chunk.js:2:701934
at m (11.5cf7b031.chunk.js:2:702891)
at p (11.5cf7b031.chunk.js:2:702402)
at c (11.5cf7b031.chunk.js:2:702674)
at u (11.5cf7b031.chunk.js:2:697047)
at e.put (11.5cf7b031.chunk.js:2:696512)
at Object.e.put (11.5cf7b031.chunk.js:2:696704)
at 11.5cf7b031.chunk.js:2:704241
at dispatch (11.5cf7b031.chunk.js:2:463433)
at 11.5cf7b031.chunk.js:2:121287
at 11.5cf7b031.chunk.js:2:697255
at d (11.5cf7b031.chunk.js:2:694914)
at y (11.5cf7b031.chunk.js:2:695103)
at p (11.5cf7b031.chunk.js:2:694963)
at T. (11.5cf7b031.chunk.js:2:697209)
at 11.5cf7b031.chunk.js:2:701934
at m (11.5cf7b031.chunk.js:2:702891)
at p (11.5cf7b031.chunk.js:2:702402)
at Object.c [as cont] (11.5cf7b031.chunk.js:2:702674)
at y (11.5cf7b031.chunk.js:2:701193)
at Object.t.cont (11.5cf7b031.chunk.js:2:700733)
at p (11.5cf7b031.chunk.js:2:702387)
at W (11.5cf7b031.chunk.js:2:702130)
at 11.5cf7b031.chunk.js:2:701876
at m (11.5cf7b031.chunk.js:2:702891)
at p (11.5cf7b031.chunk.js:2:702402)
AND
Error: UncaughtPromiseRejection: addNewInvestor failed to execute
at main.9996556e.chunk.js:1:975623
at l (11.5cf7b031.chunk.js:2:3975835)
at Generator._invoke (11.5cf7b031.chunk.js:2:3975623)
at Generator.next (11.5cf7b031.chunk.js:2:3976260)
at p (11.5cf7b031.chunk.js:2:702342)
at c (11.5cf7b031.chunk.js:2:702674)
at u (11.5cf7b031.chunk.js:2:697047)
at Object.put (11.5cf7b031.chunk.js:2:695857)
at main.9996556e.chunk.js:1:972163
at l (11.5cf7b031.chunk.js:2:3975835)
at Generator._invoke (11.5cf7b031.chunk.js:2:3975623)
at Generator.next (11.5cf7b031.chunk.js:2:3976260)
at p (11.5cf7b031.chunk.js:2:702342)
at c (11.5cf7b031.chunk.js:2:702674)
at u (11.5cf7b031.chunk.js:2:697047)
at Object.put (11.5cf7b031.chunk.js:2:695857)
at Object._broker (main.9996556e.chunk.js:1:973234)
at Worker.a (11.5cf7b031.chunk.js:2:679518)
Ok did it in the query/Api builder, and did a run, and get a response:
{
"message":
"Inserted row successfully!"
}
In the Gsheet all the values are null.
BUT, if I try doing it from the modal, it gives a pop-up errors message: UncaughtPromiseRejection: addNewInvestor failed to execute
the console gives me this:
Error: UncaughtPromiseRejection: addNewInvestor failed to execute
at main.9996556e.chunk.js:1:975623
at l (11.5cf7b031.chunk.js:2:3975835)
at Generator._invoke (11.5cf7b031.chunk.js:2:3975623)
at Generator.next (11.5cf7b031.chunk.js:2:3976260)
at p (11.5cf7b031.chunk.js:2:702342)
at c (11.5cf7b031.chunk.js:2:702674)
at u (11.5cf7b031.chunk.js:2:697047)
at Object.put (11.5cf7b031.chunk.js:2:695857)
at main.9996556e.chunk.js:1:972163
at l (11.5cf7b031.chunk.js:2:3975835)
at Generator._invoke (11.5cf7b031.chunk.js:2:3975623)
at Generator.next (11.5cf7b031.chunk.js:2:3976260)
at p (11.5cf7b031.chunk.js:2:702342)
at c (11.5cf7b031.chunk.js:2:702674)
at u (11.5cf7b031.chunk.js:2:697047)
at Object.put (11.5cf7b031.chunk.js:2:695857)
at Object._broker (main.9996556e.chunk.js:1:973234)
at Worker.a (11.5cf7b031.chunk.js:2:679518)
Error: UncaughtPromiseRejection: addNewInvestor failed to execute
at main.9996556e.chunk.js:1:975623
at l (11.5cf7b031.chunk.js:2:3975835)
at Generator._invoke (11.5cf7b031.chunk.js:2:3975623)
at Generator.next (11.5cf7b031.chunk.js:2:3976260)
at p (11.5cf7b031.chunk.js:2:702342)
at c (11.5cf7b031.chunk.js:2:702674)
at u (11.5cf7b031.chunk.js:2:697047)
at Object.put (11.5cf7b031.chunk.js:2:695857)
at main.9996556e.chunk.js:1:972163
at l (11.5cf7b031.chunk.js:2:3975835)
at Generator._invoke (11.5cf7b031.chunk.js:2:3975623)
at Generator.next (11.5cf7b031.chunk.js:2:3976260)
at p (11.5cf7b031.chunk.js:2:702342)
at c (11.5cf7b031.chunk.js:2:702674)
at u (11.5cf7b031.chunk.js:2:697047)
at Object.put (11.5cf7b031.chunk.js:2:695857)
at Object._broker (main.9996556e.chunk.js:1:973234)
at Worker.a (11.5cf7b031.chunk.js:2:679518)
(anonymous) @ main.9996556e.chunk.js:1
l @ 11.5cf7b031.chunk.js:2
(anonymous) @ 11.5cf7b031.chunk.js:2
(anonymous) @ 11.5cf7b031.chunk.js:2
p @ 11.5cf7b031.chunk.js:2
c @ 11.5cf7b031.chunk.js:2
y @ 11.5cf7b031.chunk.js:2
o @ 11.5cf7b031.chunk.js:2
t.cont @ 11.5cf7b031.chunk.js:2
p @ 11.5cf7b031.chunk.js:2
c @ 11.5cf7b031.chunk.js:2
y @ 11.5cf7b031.chunk.js:2
o @ 11.5cf7b031.chunk.js:2
t.cont @ 11.5cf7b031.chunk.js:2
p @ 11.5cf7b031.chunk.js:2
c @ 11.5cf7b031.chunk.js:2
u @ 11.5cf7b031.chunk.js:2
put @ 11.5cf7b031.chunk.js:2
(anonymous) @ main.9996556e.chunk.js:1
l @ 11.5cf7b031.chunk.js:2
(anonymous) @ 11.5cf7b031.chunk.js:2
(anonymous) @ 11.5cf7b031.chunk.js:2
p @ 11.5cf7b031.chunk.js:2
c @ 11.5cf7b031.chunk.js:2
u @ 11.5cf7b031.chunk.js:2
put @ 11.5cf7b031.chunk.js:2
_broker @ main.9996556e.chunk.js:1
a @ 11.5cf7b031.chunk.js:2
in the modal('Modal1"), in the confirm button(āButton3ā), under Events of the button, in onClick, I selected Execute a quary, then selected addNewInvestor
Hi Armant, it appears to be working fine now. I just redid {{addNewInvestor.run()}} on the onClick event of the Confirm button. Must have been some typo in the api call
No question is silly So you can use the onSuccess parameter of the run() function to specify the modal to close after the record is inserted. Hereās some documentation on that Query - Appsmith
I also noticed that if you try to do another submit the data from the previous submit is still there, even though the āReset on submitā option is selected in the input field properties