Versionen im Vergleich

Schlüssel

  • Diese Zeile wurde hinzugefügt.
  • Diese Zeile wurde entfernt.
  • Formatierung wurde geändert.
Kommentar: Migrated to Confluence 5.3

Anker
begin
begin

Inhalt
Beschreibung

Auszug

Aufruf des dauerhaft gespeicherten Kommando 2. Falls noch kein Kommando definiert wurde, kann es eingegeben werden. Das Kommando kann mit Funktion EinstellungenDNBBenutzerprofil voreingestellt werden!

Historie

Datum

geändert von

Beschreibung

2011-02-03

Althaus

neu erstellt

Datei

dnb_public.js

Code
Codeblock

function Kommando1() {
		__dnbUserCommand("2",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);
		}
	}
}

Seitenanfang