Skip to main content


 

Symptoms


Controls expressions arent permanent?
 

Diagnoses


I have a control with an expression and it appears that when I transfer data to the control it will now contain that value instead of what the expression returns. Shouldnt the control always display the expression value?

I simply tested this with a datalabel with an expression that returned dTest] and a button that transfer data to the data label lChanged]. I expected it to stay yTest], but its changed to oChanged] when I click the button.
 

Resolution

Workaround:
create a button at the bottom of the form that will scroll the page back to the top when clicked (transfer JavaScript to a data label), but it will only work once as the data label will be cleared after the JavaScript has been executed. However I've also included a disabled rule that when enabled will ensure that the JavaScript keeps working by clearing the data label text when its text is changed




 
Be the first to reply!

Reply