saltcorn, update rows in database using a trigger event

  Рет қаралды 502

John Christensen

John Christensen

Жыл бұрын

CODE:
let tableObject = await Table.findOne({name: 'onOrder'}).getRows(({user_key: user.id}));
console.log(tableObject[0].name);
for (let row of tableObject) {
await Table.findOne({name: 'onOrder'}).tryUpdateRow(({stage: 2}), row.id);
}

Пікірлер: 3
@RedCloudServices
@RedCloudServices 7 ай бұрын
thank you! Just started with saltcorn for a big project updating postgres records. Problem is we have people across country in regions so they need to view and edit only their data. Would you recommend just creating a role and view for each region? also i wish there was a way to create a card view where each card was a summary count of records per region 🤔
@johnchristensen3869
@johnchristensen3869 7 ай бұрын
I will see if I can look into that over the next few days. Saltcorn is a great tool and extremely useful. It’s not perfect though. Personally, I have found that if you’re doing something extremely custom saltcorn has its limitations. Something like laravel might be a better option, but unfortunately Laravel is made for people how know how to code. Let me see what I can find out.
@RedCloudServices
@RedCloudServices 7 ай бұрын
@@johnchristensen3869 thanks in meantime I am onto Dronahq. Any app builder that works locally w postgres i would take but most are cloud based. Dronahq self-host so far is a fail. Saltcorn refuses to be setup w postgres I am in their Discord others have same issue
Adding JWT Authentication & Authorization in ASP.NET Core
17:24
Nick Chapsas
Рет қаралды 199 М.
Find and delete duplicates in a table-SQL
15:07
The Data Treat
Рет қаралды 41
아이스크림으로 체감되는 요즘 물가
00:16
진영민yeongmin
Рет қаралды 63 МЛН
Red❤️+Green💚=
00:38
ISSEI / いっせい
Рет қаралды 83 МЛН
Don't Use Polly in .NET Directly. Use this instead!
14:58
Nick Chapsas
Рет қаралды 54 М.
Creating a Blog in Saltcorn [June 2020, v0.1]
18:39
Saltcorn
Рет қаралды 3,5 М.
How to use the UPS api oauth 2.0 auth
19:13
John Christensen
Рет қаралды 6 М.
Saltcorn | An Open Source, No-Code, Database Application Builder
13:05
Akamai Developer
Рет қаралды 20 М.
Saltcorn table relationships [Nov 2022, v0.8.0]
21:06
Saltcorn
Рет қаралды 2,1 М.
Which Database Model to Choose?
24:38
High-Performance Programming
Рет қаралды 48 М.
"I Hate Agile!" | Allen Holub On Why He Thinks Agile And Scrum Are Broken
8:33