transfer

beasscript-logo-small

transfer a value from one column,object or variable to other without converting the value

 

transfer=[parent/child].[datawindow].<column>=[parent/child].[datawindow].<column>
transfer=[parent/child].object.<silexer-objectname>=[parent/child].[datawindow].<column>
transfer=[parent/child].variable.<variablename>=[parent/child].variable.<variablename>

 

Follow sources available

dw_1...dw_7

from Datawindow

dw_1.item.[columnname].value

or

dw_1.[columnname]

or in target value you can set the row

transfer=dw_1.[columnname]=dw_2.[columnname]:[row]

object

from an object

 

object.[objectname].[command]

 

if command not defined, beas use "gettext"

 

example:

object.silex

object.silex.gettext

object.silex.getselectedtext

object.silex.

variable

return the value from Variable

 

the variable can be a local or an instance variable

 

setvar=myvalue=hello world

transfer=variable.myvalue=dw_1.mycolumn

quotation marks

Transfer a text

You can use this, if you have placeholders

 

transfer="today is <today>"=myvalue

 

examples

 

transfer=mysourcefield=mytargetfield
 
transfer=dw_1.mysourcefield=dw_2.mytargetfield
 
transfer=parent.dw_1.mysourcefield=dw_1.mytargetfield
 
transfer=mysourcefield=child.dw_1.mytargetrield
 
// Move CodeEditor Text to the variable "thescript"
transfer=object.silex=variable.thescript 

 

what is the different between working with placeholder and transfer?

If  you work with placeholder, beas convert all placeholders inside the placeholders too

If you work with transfer, beas don't replace the placeholders

 

Example:

setvar=ls_test=today is <today>
// now we've "today is 9.1.2017" in the variable "ls_test"
 
transfer="today is <today>"=variable.ls_test
// now we've "today is <today>" in variable ls_test