Beispiel "Neuer Datensatz wird bearbeitet"

Beschreibung:

Auf die aktuelle Eingabemaske zugreifen, um den Datensatz zu bearbeiten.

VBScript:

Dim oInputForm : Set oInputForm = WScript.Event.View.CurrentInputForm(0) ' 0 = Wechsel in den Bearbeiten-Modus

 

If Not oInputForm Is Nothing Then

 

    oCurrentInputForm.SetContentsByName "ABC", "A"

   

Else

   

    MsgBox "Fehler beim Zugriff auf die Eingabemaske" & vbCrLf & "Ggf. fehlen Ihnen die erforderlichen Berechtigungen?", vbInformation

 

End If

 

Set oInputForm = Nothing

C#-Script:

Project currentProject = cRM.CurrentProject;

combit.cRM.COM.View activeView = currentProject.ActiveViews.ActiveView;

InputForm currentInputForm = activeView.CurrentInputForm(0);

 

currentInputForm.SetContentsByName("ABC", "A");

TypeScript:

import {

    cRM,

    Project,

    View,

    InputForm

} from "./sdk/combitCRM.SDK.WindowsClient.v13";

 

const currentProject : Project = cRM.CurrentProject;

const activeView : View = currentProject.ActiveViews.ActiveView;

const inputForm : InputForm = activeView.CurrentInputForm(0);

 

inputForm.SetContentsByName("ABC", "A");