Cheat Sheet: Unterschied zwischen den Versionen
K |
|||
| (76 dazwischenliegende Versionen von 3 Benutzern werden nicht angezeigt) | |||
| Zeile 1: | Zeile 1: | ||
| − | + | <!-- Diese Seite wurde automatisch generiert und sollte nicht manuell bearbeitet werden. Das Projekt findet sich unter /misc/WikiCheatSheetGenerator im SVN. --> | |
| + | {| cellpadding="10" | ||
| + | |- | ||
| + | | style="vertical-align:top;"| | ||
| + | <span id="datetimecalc"></span> | ||
| + | {| class="wikitable" | ||
| + | |- | ||
| + | ! style="background-color:#6B8E23; color:#FFFFFF; text-align:left;" colspan="2" | Datum und Zeit festlegen / berechnen | ||
| + | |- | ||
| + | | style="background-color:#ABBDDD; color:#000000; width:200px;" | Jetzt || style="width:400px;" | DateTime.Now | ||
| + | |- | ||
| + | | style="background-color:#ABBDDD; color:#000000; width:200px;" | Heute, Mitternacht || style="width:400px;" | DateTime.Today | ||
| + | |- | ||
| + | | style="background-color:#ABBDDD; color:#000000; width:200px;" | Heute, 14 Uhr || style="width:400px;" | DateTime.Today.AddHours(14) | ||
| + | |- | ||
| + | | style="background-color:#ABBDDD; color:#000000; width:200px;" | Gestern vor einem Jahr || style="width:400px;" | DateTime.Now.AddDays(-1).AddYears(-1) | ||
| + | |- | ||
| + | | style="background-color:#ABBDDD; color:#000000; width:200px;" | Weihnachten 1998 || style="width:400px;" | new DateTime(24,12,1998) | ||
| + | |- | ||
| + | | style="background-color:#ABBDDD; color:#000000;" colspan="2" | Übersicht der Datums- und Zeitmethoden auf der DateTime-Struktur:<br> [https://msdn.microsoft.com/de-de/library/system.datetime https://msdn.microsoft.com/de-de/library/system.datetime] | ||
| + | |} | ||
| + | | style="vertical-align:top;"| | ||
| + | {| class="wikitable" | ||
| + | |- | ||
| + | ! style="background-color:#6B8E23; color:#FFFFFF; text-align:left;" colspan="2" | Häufig verwendete Importe | ||
| + | |- | ||
| + | | style="background-color:#ABBDDD; color:#000000; width:200px;" | succest || style="width:400px;" | Grundlage für viele Aktivitäten und SysInfo (siehe "Informationen des Zielsystems") | ||
| + | |- | ||
| + | | style="background-color:#ABBDDD; color:#000000; width:200px;" | System || style="width:400px;" | Stellt Funktionen zur Datum- und Guid-Erstellung bereit | ||
| + | |- | ||
| + | | style="background-color:#ABBDDD; color:#000000; width:200px;" | System.Activities || style="width:400px;" | Grundlage zum Laden von Aktivitäten | ||
| + | |- | ||
| + | | style="background-color:#ABBDDD; color:#000000; width:200px;" | System.Collections.Generic || style="width:400px;" | Benötigt, um mit Datenquellen zu arbeiten | ||
| + | |- | ||
| + | | style="background-color:#ABBDDD; color:#000000;" colspan="2" | Wenn Funktionen (z. B. "DateTime.Now") nicht erkannt werden, prüfen ob der benötigte<br> Import vorhanden ist. | ||
| + | |} | ||
| + | |- | ||
| + | | style="vertical-align:top;"| | ||
| + | <span id="datetimeformat"></span> | ||
| + | {| class="wikitable" | ||
| + | |- | ||
| + | ! style="background-color:#6B8E23; color:#FFFFFF; text-align:left;" colspan="2" | Datum und Zeit formatiert ausgeben | ||
| + | |- | ||
| + | | style="background-color:#ABBDDD; color:#000000; width:200px;" | Datum || style="width:400px;" | DateTime.Now.ToString("dd.MM.yyyy"), z. B. "15.08.2016" | ||
| + | |- | ||
| + | | style="background-color:#ABBDDD; color:#000000; width:200px;" | Uhrzeit || style="width:400px;" | DateTime.Now.ToString("hh:mm:ss"), z. B. "13:54:22" | ||
| + | |- | ||
| + | | style="background-color:#ABBDDD; color:#000000;" colspan="2" | Übersicht aller Datums- und Zeitformatierungen:<br> [https://msdn.microsoft.com/de-de/library/8kb3ddd4 https://msdn.microsoft.com/de-de/library/8kb3ddd4] | ||
| + | |} | ||
| + | | style="vertical-align:top;"| | ||
| + | {| class="wikitable" | ||
| + | |- | ||
| + | ! style="background-color:#6B8E23; color:#FFFFFF; text-align:left;" colspan="2" | Informationen des Zielsystems | ||
| + | |- | ||
| + | | style="background-color:#ABBDDD; color:#000000; width:200px;" | Buchungsdatum || style="width:400px;" | SysInfo.GetPostingDate() | ||
| + | |- | ||
| + | | style="background-color:#ABBDDD; color:#000000; width:200px;" | Systemdatum || style="width:400px;" | SysInfo.GetSystemDate() | ||
| + | |- | ||
| + | | style="background-color:#ABBDDD; color:#000000; width:200px;" | Laufende TEV Nummer || style="width:400px;" | SysInfo.GetEodNum() | ||
| + | |- | ||
| + | | style="background-color:#ABBDDD; color:#000000;" colspan="2" | Für SysInfo wird der Import von "Succest" benötigt. | ||
| + | |} | ||
| + | |- | ||
| + | | style="vertical-align:top;"| | ||
| + | <span id="Datasource"></span> | ||
| + | {| class="wikitable" | ||
| + | |- | ||
| + | ! style="background-color:#6B8E23; color:#FFFFFF; text-align:left;" colspan="2" | Datenquellen nutzen | ||
| + | |- | ||
| + | | style="background-color:#ABBDDD; color:#000000; width:200px;" | Aktivität zum Laden einer Datenquelle || style="width:400px;" | "Liste aus Datenquelle laden"<br> (Aktivität GeneralTestActivities.LoadList) | ||
| + | |- | ||
| + | | style="background-color:#ABBDDD; color:#000000; width:200px;" | Aktivität zum Filtern einer Datenquelle || style="width:400px;" | "Gefilterte Liste aus Datenquelle laden"<br> (Aktivität GeneralTestActivities.LoadSelectedList) | ||
| + | |- | ||
| + | | style="background-color:#ABBDDD; color:#000000; width:200px;" | Typ der Listenvariable || style="width:400px;" | DataSourceList | ||
| + | |- | ||
| + | | style="background-color:#ABBDDD; color:#000000; width:200px;" | Anzahl Zeilen der Liste || style="width:400px;" | list.Count | ||
| + | |- | ||
| + | | style="background-color:#ABBDDD; color:#000000; width:200px;" | Liste der Spaltennamen || style="width:400px;" | list.GetColumns() | ||
| + | |- | ||
| + | | style="background-color:#ABBDDD; color:#000000; width:200px;" | Beliebiges Element aus Liste || style="width:400px;" | list.GetElement(x)<br> x ist ein Wert von 0 bis "Anzahl Zeilen der Liste - 1" | ||
| + | |- | ||
| + | | style="background-color:#ABBDDD; color:#000000; width:200px;" | Zufälliges Element aus Liste || style="width:400px;" | list.GetRandomElement() | ||
| + | |- | ||
| + | | style="background-color:#ABBDDD; color:#000000; width:200px;" | Aktivität zum Durchlaufen der Datenquelle || style="width:400px;" | ForEach<DataSourceObject> | ||
| + | |- | ||
| + | | style="background-color:#ABBDDD; color:#000000; width:200px;" | Zugriff auf Felder in Aktivitätsfeldern || style="width:400px;" | item.GetDatasourceValue("[Feldname]") | ||
| + | |- | ||
| + | | style="background-color:#ABBDDD; color:#000000; width:200px;" | Zugriff auf Felder in Vorlagenfeldern || style="width:400px;" | var:item.[Feldname] | ||
| + | |- | ||
| + | | style="background-color:#ABBDDD; color:#000000;" colspan="2" | Der Variablenname "list" wird beim Laden der Datenquelle vergeben.<br> Der Variablenname "item" wird in der Aktivität zum Durchlaufen der Daten vergeben. | ||
| + | |} | ||
| + | | style="vertical-align:top;"| | ||
| + | <span id="guids"></span> | ||
{| class="wikitable" | {| class="wikitable" | ||
|- | |- | ||
| − | ! style="background-color:#6B8E23;color:#FFFFFF;" colspan="2"| | + | ! style="background-color:#6B8E23; color:#FFFFFF; text-align:left;" colspan="2" | Arbeiten mit Guids |
|- | |- | ||
| − | | style="background-color:#ABBDDD;color:#000000; | + | | style="background-color:#ABBDDD; color:#000000; width:200px;" | Neue Guid || style="width:400px;" | Guid.NewGuid()<br> z. B. "dcec044e-67d3-481c-9375-c0dc9fb3aa27" |
|- | |- | ||
| − | | style="background-color:#ABBDDD;color:#000000;" | | + | | style="background-color:#ABBDDD; color:#000000; width:200px;" | Leere Guid || style="width:400px;" | Guid.Empty<br> z. B. "00000000-0000-0000-0000-000000000000" |
|- | |- | ||
| − | | style="background-color:#ABBDDD;color:#000000;" | | + | | style="background-color:#ABBDDD; color:#000000; width:200px;" | SAP-freundliche Guid || style="width:400px;" | Guid.NewGuid().ToString("N").ToUpper()<br> z. B. "25C68F7921FE4C19ADE490D4BC62DAB7" |
|- | |- | ||
| − | | style="background-color:#ABBDDD;color:#000000;" | | + | | style="background-color:#ABBDDD; color:#000000; width:200px;" | Eine Liste für Guids || style="width:400px;" | new List(of Guid)<br> (wenn Sie mehrere Guids in einer Liste sammeln wollen) |
|- | |- | ||
| − | | style="background-color:#ABBDDD;color:#000000;" | | + | | style="background-color:#ABBDDD; color:#000000;" colspan="2" | Übersicht aller Methoden:<br> [https://msdn.microsoft.com/de-de/library/system.guid(v=vs.110).aspx https://msdn.microsoft.com/de-de/library/system.guid(v=vs.110).aspx] |
| + | |} | ||
|- | |- | ||
| − | | style="background-color:#ABBDDD;color:#000000;" colspan="2"| | + | | style="vertical-align:top;"| |
| + | <span id="Datapool"></span> | ||
| + | {| class="wikitable" | ||
| + | |- | ||
| + | ! style="background-color:#6B8E23; color:#FFFFFF; text-align:left;" colspan="2" | Datenpools nutzen | ||
| + | |- | ||
| + | | style="background-color:#ABBDDD; color:#000000; width:200px;" | Aktivität zum Laden des Datenpools || style="width:400px;" | "Satz aus Datapool beziehen"<br> (Aktivität GeneralTestActivities.CreateGeneralReference) | ||
| + | |- | ||
| + | | style="background-color:#ABBDDD; color:#000000; width:200px;" | Typ der Listenvariable || style="width:400px;" | MainReference | ||
| + | |- | ||
| + | | style="background-color:#ABBDDD; color:#000000; width:200px;" | Zugriff auf Felder (beliebigen Typs, sprich Typ "object") in Aktivitätsfeldern || style="width:400px;" | item.GetValue("[Feldname]") | ||
| + | |- | ||
| + | | style="background-color:#ABBDDD; color:#000000; width:200px;" | Zugriff auf Felder (vom Typ "string") in Aktivitätsfeldern || style="width:400px;" | item.GetValueStr("[Feldname]") | ||
| + | |- | ||
| + | | style="background-color:#ABBDDD; color:#000000; width:200px;" | Zugriff auf Felder in Vorlagenfeldern || style="width:400px;" | var:item.[Feldname] | ||
| + | |- | ||
| + | | style="background-color:#ABBDDD; color:#000000;" colspan="2" | Der Variablenname "item" wird in der Aktivität zum Durchlaufen der Daten vergeben | ||
| + | |} | ||
| + | | style="vertical-align:top;"| | ||
| + | <span id="variabletypes"></span> | ||
| + | {| class="wikitable" | ||
| + | |- | ||
| + | ! style="background-color:#6B8E23; color:#FFFFFF; text-align:left;" colspan="2" | Variablentypen | ||
| + | |- | ||
| + | | style="background-color:#ABBDDD; color:#000000; width:200px;" | Boolean || style="width:400px;" | Boolescher Wert, also "True" oder "False" | ||
| + | |- | ||
| + | | style="background-color:#ABBDDD; color:#000000; width:200px;" | DateTime || style="width:400px;" | Datum- und Uhrzeit, siehe "[[#datetimecalc|Datum und Zeit festlegen / berechnen]]" und "[[#datetimeformat|Datum und Zeit formatiert ausgeben]]" | ||
| + | |- | ||
| + | | style="background-color:#ABBDDD; color:#000000; width:200px;" | Decimal || style="width:400px;" | Dezimalzahl, z. B. "7543,002" | ||
| + | |- | ||
| + | | style="background-color:#ABBDDD; color:#000000; width:200px;" | Guid || style="width:400px;" | Eindeutige ID, z. B. "FB7D20B2-7C8E-44DE-8B31-006CC9AF1BBF" | ||
| + | |- | ||
| + | | style="background-color:#ABBDDD; color:#000000; width:200px;" | Int32 || style="width:400px;" | Ganzzahliger Wert, z. B. "7543" | ||
| + | |- | ||
| + | | style="background-color:#ABBDDD; color:#000000; width:200px;" | String || style="width:400px;" | Zeichenkette, z. B. "Dr. Mayer" | ||
| + | |- | ||
| + | | style="background-color:#ABBDDD; color:#000000;" colspan="2" | Liste eingebauter Typen: [https://msdn.microsoft.com/de-de/library/ya5y69ds.aspx https://msdn.microsoft.com/de-de/library/ya5y69ds.aspx] | ||
| + | |} | ||
| + | |- | ||
| + | | style="vertical-align:top;"| | ||
| + | <span id="Shortcuts"></span> | ||
| + | {| class="wikitable" | ||
| + | |- | ||
| + | ! style="background-color:#6B8E23; color:#FFFFFF; text-align:left;" colspan="2" | Tastenkürzel im TCE | ||
| + | |- | ||
| + | | style="background-color:#ABBDDD; color:#000000; width:200px;" | Neue Datei || style="width:400px;" | Strg + N | ||
| + | |- | ||
| + | | style="background-color:#ABBDDD; color:#000000; width:200px;" | Datei öffnen || style="width:400px;" | Strg + O | ||
| + | |- | ||
| + | | style="background-color:#ABBDDD; color:#000000; width:200px;" | Speichern || style="width:400px;" | Strg + S | ||
| + | |- | ||
| + | | style="background-color:#ABBDDD; color:#000000; width:200px;" | Speichern unter || style="width:400px;" | Strg + Shift + S | ||
| + | |- | ||
| + | | style="background-color:#ABBDDD; color:#000000; width:200px;" | Ausgewähltes Dokument schließen || style="width:400px;" | Strg + W | ||
| + | |- | ||
| + | | style="background-color:#ABBDDD; color:#000000; width:200px;" | Favoriten öffnen || style="width:400px;" | Strg + D | ||
| + | |- | ||
| + | | style="background-color:#ABBDDD; color:#000000; width:200px;" | Zu Favoriten hinzufügen || style="width:400px;" | Strg + Alt + D | ||
| + | |- | ||
| + | | style="background-color:#ABBDDD; color:#000000; width:200px;" | Dokumenten-Manager öffnen || style="width:400px;" | Strg + M | ||
| + | |- | ||
| + | | style="background-color:#ABBDDD; color:#000000; width:200px;" | Testfall abnehmen || style="width:400px;" | Strg + Alt + A | ||
| + | |- | ||
| + | | style="background-color:#ABBDDD; color:#000000; width:200px;" | Anwendung beenden || style="width:400px;" | Alt + F4 | ||
| + | |- | ||
| + | | style="background-color:#ABBDDD; color:#000000; width:200px;" | Fenster schließen || style="width:400px;" | ESC | ||
| + | |- | ||
| + | | style="background-color:#ABBDDD; color:#000000; width:200px;" | TCE aktualisieren || style="width:400px;" | F5 | ||
| + | |} | ||
| + | | style="vertical-align:top;"| | ||
| + | <span id="TCEParameters"></span> | ||
| + | {| class="wikitable" | ||
| + | |- | ||
| + | ! style="background-color:#6B8E23; color:#FFFFFF; text-align:left;" colspan="2" | Parameter für den TCE | ||
| + | |- | ||
| + | | style="background-color:#ABBDDD; color:#000000; width:200px;" | /URI: '''(Benötigt)''' || style="width:400px;" | Die Url zum TCR. Bspw.: http://tcr.your-company.de | ||
| + | |- | ||
| + | | style="background-color:#ABBDDD; color:#000000; width:200px;" | /ToolCFG: '''(Benötigt)''' || style="width:400px;" | Das [[Erstellung und Pflege von fachlichen Aktivitäten#Aktivitätensets|Aktivitätenset]], welches der TCE verwenden soll. | ||
| + | |- | ||
| + | | style="background-color:#ABBDDD; color:#000000; width:200px;" | /Culture: || style="width:400px;" | Zum Einstellen der verwendeten Sprache des TCEs. Aktuell werden die Sprachen '''de-DE''' für Deutsch und '''en-US''' für Englisch unterstützt. | ||
| + | |- | ||
| + | | style="background-color:#ABBDDD; color:#000000; width:200px;" | /DateFormat: || style="width:400px;" | Zum Einstellen des Datumformats. Aktuell wird das Datumformat '''de-DE''' für Deutsch und '''en-US''' für Englisch unterstützt. | ||
| + | |- | ||
| + | | style="background-color:#ABBDDD; color:#000000; width:200px;" | /Username: || style="width:400px;" | Hierrüber kann ein Benutzername festgelegt werden, der in dem Login-Fenster des TCEs vorausgefüllt ist. | ||
| + | |- | ||
| + | | style="background-color:#ABBDDD; color:#000000; width:200px;" | /Debug: || style="width:400px;" | Schaltet die Protokollierung für den TCE an. Die Protokoll-Dateien werden unter "{Pfad-des-TCE}\Logs\" gespeichert. | ||
| + | |- | ||
| + | | style="background-color:#ABBDDD; color:#000000; width:200px;" | /ClientCertSN: || style="width:400px;" | Die Seriennummer eines Cient-Zertifikates mit dem sich der TCE am TCR authentifizieren soll. | ||
| + | |- | ||
| + | | style="background-color:#ABBDDD; color:#000000; width:200px;" | /RootCertIssuer: || style="width:400px;" | Der Name des Ausstellenden Zertifikates von dem das zu verwendende Cient-Zertifikat abstammt. | ||
| + | |- | ||
| + | | style="background-color:#ABBDDD; color:#000000;" colspan="2" | Klein- und Großschreibung der Parameternamen muss nicht beachtet werden. | ||
| + | |} | ||
|} | |} | ||
| + | [[Category:TCE]][[Category:Syntax]] | ||
Aktuelle Version vom 27. Februar 2019, 09:29 Uhr
|
|
| ||||||||||||||||||||||||||||||||||||||||||||||
|
|
| ||||||||||||||||||||||||||||||||||||||||||||||
|
|
| ||||||||||||||||||||||||||||||||||||||||||||||
|
|
| ||||||||||||||||||||||||||||||||||||||||||||||
|
|
| ||||||||||||||||||||||||||||||||||||||||||||||