Seitenhistorie
Anker | ||||
---|---|---|---|---|
|
Inhalt |
---|
Beschreibung
Auszug |
---|
Neu: Aufruf des dauerhaft gespeicherten Kommandos Kommando 1. Falls noch kein Kommando definiert wurde, kann es eingegebenwerden.eingegeben werden. Das Kommando kann mit Funktion EinstellungenDNBBenutzerprofil voreingestellt werden! |
Historie
Datum | geändert von | Beschreibung |
---|---|---|
2011-02-03 | Althaus | neu erstellt |
...
Codeblock |
---|
function Kommando1() { __dnbUserCommand("1",true); } function __dnbUserCommand(nrCommand,exec) { var text = "Möchten Sie das Kommando ändern?\nDie Änderung bitte mit OK bestätigen!\nAusführen des Kommandos mit Funktion: Kommando" + nrCommand; var title = "Setze Kommando" + nrCommand; var prompter = utility.newPrompter(); var msg; var profileString = "userCommand" + nrCommand; var value = application.getProfileString("dnbUser", profileString, ""); if (exec) { text = "Kommando noch nicht vorhanden. Bitte geben Sie ein Kommando ein?\nAm Ende bitte mit OK bestätigen!"; if (!value) { msg = prompter.prompt(title,text,value,null,null); if (msg == 1) { value = prompter.getEditValue(); application.writeProfileString("dnbUser",profileString,value); application.activeWindow.command(value, false); } else { __dnbFehler("Abbruch","Keine Eingabe erfolgt, Funktion wird beendet!"); } } else { application.activeWindow.command(value, false); } } else { msg = prompter.prompt(title,text,value,null,null); if (msg == 1) { value = prompter.getEditValue(); application.writeProfileString("dnbUser",profileString,value); } } } function SetzeKommando1() { __dnbUserCommand("1",false); } |
Überblick
Inhalte