Question
Set Property using Data Transform not working
Hi,
I have below scenario.
I am using a Data Transform(DT) to update one text property from another text property in the same section on click of a button(which calls DT as an event).
I created a Page(samplepage) in Pages and Classes tab and refer the properties in Target and source in the definition tab of the DT, the value doesnt get populated.
For example -
created a page name "samplepage" which refers to class abc-xyz-work-homeloan
Now, when I use set operation I give as below
Set --> samplepage.targetproperty equals to samplepage.sourceproperty - this doesnt work
However, if I use pyWorkPage or just "." to refer properties in taget and source, it works.
Set --> pyWorkPage.targetProperty equals to pyWorkPage.sourceProperty - this works
or
Set --> .targetproperty equals to .sourceProperty - This works
Could you pleas help me find out why first scenario doesnt work?
***Edited by Moderator: Pallavi to update platform capability tags***
I think it's because of the context.
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.