Merge branch 'master' of github.com:appsmithorg/appsmith
This commit is contained in:
commit
acb2e874dc
|
|
@ -5,4 +5,4 @@ VALUES
|
||||||
'{{ nameInput.text }}',
|
'{{ nameInput.text }}',
|
||||||
'{{ genderDropdown.selectedOptionValue }}',
|
'{{ genderDropdown.selectedOptionValue }}',
|
||||||
'{{ nameInput.text }}'
|
'{{ nameInput.text }}'
|
||||||
);
|
); -- nameInput and genderDropdown are example widgets, replace them with your widget names. Read more at http://bit.ly/postgres-widget-docs
|
||||||
|
|
@ -1 +1 @@
|
||||||
DELETE FROM users WHERE id = '{{ usersTable.selectedRow.id }}';
|
DELETE FROM users WHERE id = -1; -- Use widget data in a query by replacing static values with {{ widgetName.property }}. Read more at http://bit.ly/postgres-widget-docs
|
||||||
|
|
|
||||||
|
|
@ -1 +1 @@
|
||||||
SELECT * FROM users where role = '{{ roleDropdown.selectedOptionValue }}' ORDER BY id LIMIT 10;
|
SELECT * FROM users where role = 'Admin' ORDER BY id LIMIT 10 -- Use widget data in a query using {{ widgetName.property }}. Read more at http://bit.ly/postgres-widget-docs
|
||||||
|
|
|
||||||
|
|
@ -1,3 +1,3 @@
|
||||||
UPDATE users
|
UPDATE users
|
||||||
SET status = 'APPROVED'
|
SET status = 'APPROVED'
|
||||||
WHERE id = '{{ usersTable.selectedRow.id }}';
|
WHERE id = '{{ usersTable.selectedRow.id }}'; -- usersTable is an example table widget from where the id is being read. Replace it with your own Table widget or a static value. Read more at http://bit.ly/postgres-widget-docs
|
||||||
|
|
|
||||||
|
|
@ -5,4 +5,4 @@ VALUES
|
||||||
'{{ nameInput.text }}',
|
'{{ nameInput.text }}',
|
||||||
'{{ genderDropdown.selectedOptionValue }}',
|
'{{ genderDropdown.selectedOptionValue }}',
|
||||||
'{{ nameInput.text }}'
|
'{{ nameInput.text }}'
|
||||||
);
|
); -- nameInput and genderDropdown are example widgets, replace them with your widget names. Read more at http://bit.ly/postgres-widget-docs
|
||||||
|
|
|
||||||
|
|
@ -1 +1 @@
|
||||||
DELETE FROM users WHERE id = '{{ usersTable.selectedRow.id }}';
|
DELETE FROM users WHERE id = -1; -- Use widget data in a query by replacing static values with {{ widgetName.property }}. Read more at http://bit.ly/postgres-widget-docs
|
||||||
|
|
|
||||||
|
|
@ -1 +1 @@
|
||||||
SELECT * FROM users where role = '{{ roleDropdown.selectedOptionValue }}' ORDER BY id LIMIT 10;
|
SELECT * FROM users where role = 'Admin' ORDER BY id LIMIT 10; -- Use widget data in a query using {{ widgetName.property }}. Read more at http://bit.ly/postgres-widget-docs
|
||||||
|
|
@ -1,3 +1,4 @@
|
||||||
UPDATE users
|
UPDATE users
|
||||||
SET status = 'APPROVED'
|
SET status = 'APPROVED'
|
||||||
WHERE id = '{{ usersTable.selectedRow.id }}';
|
WHERE id = '{{ usersTable.selectedRow.id }}'; -- usersTable is an example table widget from where the id is being read. Replace it with your own Table widget or a static value. Read more at http://bit.ly/postgres-widget-docs
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user