Scenario 1: When you are using samplepage, it won't have the source property and if we try to set the target property, it won't set. Moreover, the section which you are using on UI won't have this samplepage context.
Scenario 2: It will work because the section which is using has the context of work page, so if we refer the work page or give the property directly it will take the work page context.
Hope this helps.
Posted: 2 years ago
Posted: 23 Mar 2020 3:49 EDT
Marc Lasserre (MarcLasserre_GCS)
Senior Principal Engineer, Technical Support