Action implementation by using classes

By providing or adapting a base class in the action implementation, generating further activity types through customizing can be enabled.

All implementations extend the class de.pisa.psa.frm.psa_qst. PsaQstSavActBas.

The parameters can be preset in the administration mask.

Create task (de.pisa.psa.frm.psa_qst. PsaQstSavActTsk)

Through customizing, other types can also be created by extending the class PsaQstSavActAct. The person respon­sible, subject, note and external key can be preset.

Send messages (de.pisa.psa.frm.psa_qst. PsaQstSavActMsg)

Recipients, subject, description (comment), object and sender can be preset.

Save answer in field (de.pisa.psa.frm.psa_qst.PsaQstSavActSetFld)

As the parameter, a loader path needs to be specified. The answer is saved in this field. If the field is a BLOB field and the answer is a file, a new BLOB is generated and registered in the field (File upload).

Save industry in the company (de.pisa.psa.frm.psa_qst.PsaQstSavActSetCom)

Example of writing back component data.

Parameters:

  • DST_PTH: = loader path to the parent record (/CONTACT/COMPANY)
  • DST_FLD: = key field in the parent record (LOB_GID)
  • QUE_DTO: = DTO of the component (PSA_LOB)
  • QUE_FLD: = field in which the answer is searched (NAM)
  • SRC_FLD: = field that should be written to the key field (PSC_GID)
Save communication language (de.pisa.psa.frm.psa_qst.PsaQstSavActSetMen)

Example of writing back menu selections.

Parameters:

  • DST_PTH: = destination DTO (in the action record of the questionnaire, DST_PTH can be left out)
  • DST_FLD: = destination fields, comma separated (COM_LNG_IDN, COM_LNG_NAM)
  • SRC_FLD: = source fields comma separated (IDN, NAM)
  • QUE_DTO: = menu DTO searched, and from which the data is retrieved (PSA_LNG)
  • QUE_FLD: = DTO field in which the answer is searched

Action parameters

The first character decides.

$ or @Makro - example: @PERSON_GID

# → value from a table

Predefined tables

Format: #Table.Field
Example: #QST.NAM

  • #QST = questionnaire
  • #QUE = question
  • #SBJ = subject
  • #PRO = project
  • #ACT = activity
  • #CON = contact
  • #ORG = company
  • #RES = answer record

Any table

Format: #Table.Field Field=:search condition Field=:search condition …
The search conditions can be action parameters again.

Example: #PSA_PRS_GRP_TEA.PSC_GID NAM=:'A-Team'
#PSA_CON_CON.CHD_GID CON_REL_IDN=:CON_CON_REL_SVC_PAR FAT_GID=:#CON.PSC_GID

! → message

Format: !message descriptor,parameter1,parameter2,…
The parameters can be action parameters again.
Example: !PSA_ACT_SAV,#ACT.NAM,@PERSON.NAM

→ data of a staff member record.

Example: *CUSTOMIZER.PSC_GID