object for multiselect, multidelete, multicopy, export and import from clipboard
Example call function
dw_1.multiselect=true
object=ue_copy=copy=beas_pk_schema,beas_pk_typen=schema_id
destroy=lcopy
declare=lcopy=ue_copy
lcopy=setprimarykey=schema_id
lcopy=setincrementfield=beas_pk_typen=buchnr_id
lcopy=insertclipboard=beas_pk_schema,beas_pk_typen
if <rowcount> n= 0 then
return success
end if
destroy=lcopy
declare=lcopy=ue_copy
lcopy=checktable=beas_ftpos
lcopy=setprimary=schema_id
lcopy=cut=beas_pk_schema,beas_pk_typen
if <value> n= -1 then
return failure
endif
destroy=lcopy
meldung=ok$ok
retrieve=retrieve
the master-functions are
cut, copy and insertclipboard
cut=[dw_x=]tablelist |
cut all select entrys. table=the master- and reference-table. - check, if beas can delete the entry in the reference-tables - copy to the clipboard - delete the entrys you can use this for a delete-function with undo-function. you can set the check-tables with "checktable", the primary with "primarykey" and the reference-table with "setreference" if you've more then one primary, set the other primarys with "setadditionalprimarykey" |
||||||||||||
copy=[dw_x=]tablelist |
the same as cut, but without dekete entrys |
||||||||||||
checktable=<propertie> |
Add Information to checktable and call the check-function: Check in all related table, if the entry if exist You can call this funktion to check, if the entry is exist in other tables.
|
||||||||||||
setreference |
set reference-tables for cut and delete lcopy=setadditionalprimarykey=otherprimary More Information see checktable-Function Attention: set this command behind "setadditionalprimarykey" |
||||||||||||
setprimarykey |
set the name of the primary-field |
||||||||||||
createstring=table1,table2..=primarykey=valuesqlstring |
generate a binary data-String in variable sys_copystring about the tables tablex the table-list to copy valuestring the values in format 'value1','value2'
Example dw_1.multiselect=1 object=ue_copy=createstring=beas_me=me_id=<dw_1.getselectentrysql>
Example Calculation-Schema dw_1.multiselect=1 |
||||||||||||
setadditionalprimarykey=key=value |
set additional primarykey, example the workordernumber if you copy a workorderposition. You can set more then one lcopy=setadditionalprimarykey=belnr_id=<belnr_id> and you can set more then one additional key with a second line lcopy=setadditionalprimarykey=key1=value lcopy=setadditionalprimarykey=key2=value Attention: set this command before "setreference" |
||||||||||||
setadditionalinfo |
Set additionainfo in exportstring. Write this info in [additionalinfo=<your info>] example: Check that you can only insert the string, if the additionalinfo the same Import: set this info in the same way |
insertclipboard=[table] |
insert from clipboard, the tablelist must be same as in the clipboard |
||||||||
insertfrombuffer=[table] |
insert from current ids-buffer |
||||||||
setdatafromclipboard |
For Import: set importstring from Clipboard |
||||||||
setdata=<string> |
For Import: set importstring directly lcopy=setdata=<mystring> |
||||||||
setvaluekeys |
read string sys_copy_info (created by replacewindow) and build arrays for handle the this function is calling automatically in "copyfromdis", lcopy=setvaluekeys |
||||||||
setincrementfield=table:field |
set a primaryfield for this table as a primary count field this field will be set with a identity key-value (only integer-type) example: lcopy=setincrementfield=beas_pk_typen=buchnr_id
|
||||||||
getldsfromstring |
works only with importstring-data set this string with setdatafromclipboard or setdata
|
||||||||
copyfromids=<table[:key]> |
copy from lcopy.ids to the table with the primarykey ":key" or the primarykey, set with "setprimarykey" or the current primarykey from current window. before copy 1. create Variable sys_copy_info (with replacewindow) 2. create copy-Info with ....
|
||||||||
sendretrieve=true/false |
send a retrieve-command after insert. default = true |
||||||||
replacewindow (object) |
Sub-Object replacewindow: for all command for the insert/replace-window system_copy_edit.psr
|
[beasclipboard] |
Sign of generate String from beas |
[tables=...] |
the tables: table1,table2 |
[values=...] |
the values: 'value1','value2',... |
[user=...] |
the current user |
[station=...] |
the station-Name |
[timestamp=...] |
time stamp in format yyyy/mm/dd hh:mm:ss |
[beas-version=..] |
generate with beas-version... |
[window=..] |
Filename from current window |
[table=<tablename>] ... [/table=<tablename>] |
the datastore (psr-file) from the data as ascii-zipped-data-String |
[primaryfield=<primary>] |
the primary-field |