newdevs:code:save-grid-settings
Differences
This shows you the differences between two versions of the page.
Next revision | Previous revision | ||
newdevs:code:save-grid-settings [2025/05/19 13:00] – created tmccanna | newdevs:code:save-grid-settings [2025/06/12 13:31] (current) – [Determine the Setting Name] tmccanna | ||
---|---|---|---|
Line 5: | Line 5: | ||
https:// | https:// | ||
- | ===== Update Open-ILS/ | + | ===== Make the Save Grid Settings Option Visible ===== |
+ | |||
+ | If the Save Grid Settings option doesn' | ||
+ | |||
+ | < | ||
+ | <eg-grid #partsGrid idlClass=" | ||
+ | persistKey=" | ||
+ | hideFields=" | ||
+ | class=" | ||
+ | </ | ||
+ | |||
+ | |||
+ | ===== Determine the Setting Name ===== | ||
+ | |||
+ | As above, you can identify the persistKey in the code to determine what the name of the new setting should be. | ||
+ | |||
+ | You can also tell via the browser console. The error you see when clicking on Save Grid Settings should should say something like: | ||
+ | |||
+ | < | ||
+ | Error saving columns: No user or workstation setting type | ||
+ | exists for: " | ||
+ | </ | ||
+ | |||
+ | |||
+ | |||
+ | |||
+ | ===== Create Seed Data for New Installs ===== | ||
+ | |||
+ | Update | ||
< | < | ||
Line 18: | Line 46: | ||
); | ); | ||
</ | </ | ||
+ | |||
+ | ===== Create Upgrade Script for Existing Installs ===== | ||
+ | |||
+ | New file: Open-ILS/ | ||
+ | |||
+ | Don't worry about trying to predict what the next sequential script number will be, just use " | ||
+ | |||
+ | < | ||
+ | BEGIN; | ||
+ | |||
+ | -- SELECT evergreen.upgrade_deps_block_check(' | ||
+ | |||
+ | INSERT into config.workstation_setting_type (name, grp, datatype, label) | ||
+ | VALUES ( | ||
+ | ' | ||
+ | oils_i18n_gettext( | ||
+ | ' | ||
+ | 'Grid Config: catalog.record.parts', | ||
+ | ' | ||
+ | ) | ||
+ | ); | ||
+ | |||
+ | COMMIT; | ||
+ | </ | ||
+ | |||
+ |
newdevs/code/save-grid-settings.1747674002.txt.gz · Last modified: 2025/05/19 13:00 by tmccanna