Repository navigation
SPPage: support sp_instance child tables (e.g. sp_instance_link) in SPInstance #144
gabrielcasag
started this conversation in
Ideas
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
SPInstance.widget only accepts widgets whose dataTable is sp_instance. Passing an SPWidget with dataTable: 'sp_instance_link' fails type-checking (Type '"sp_instance_link"' is not assignable to type '"sp_instance"', SDK 4.13.6). Passing the widget sys_id as a string compiles, but the instance is created in sp_instance, not in the widget’s data table. So widgets like the OOTB Icon Link lose fields such as link type, page and kb_article, and $sp.getMenuHREF() can’t resolve the link.
Proposal: let SPInstance honor the widget’s dataTable (or accept an explicit table property) and expose the child table’s fields (sp_instance_link, sp_instance_menu, sp_instance_carousel, …).
Repro: clone Icon Link as an SPWidget with dataTable: 'sp_instance_link', then reference it from an SPPage column.
All reactions