Metainformationen zur Seite
  •  

Unterschiede

Hier werden die Unterschiede zwischen zwei Versionen angezeigt.

Link zu dieser Vergleichsansicht

Beide Seiten der vorigen RevisionVorhergehende Überarbeitung
Nächste Überarbeitung
Vorhergehende Überarbeitung
speedy:30_modules:script [2024/11/28 12:53] – [FileOperations_onFileExport(timing, handling, dictionary)] speedyspeedy:30_modules:script [2026/04/15 12:20] (aktuell) speedy
Zeile 131: Zeile 131:
 === Application.InvokeCommand(sCallBack, wParam, lParam) === === Application.InvokeCommand(sCallBack, wParam, lParam) ===
 Ruft einen speedy Zusatzbefehl auf. \\ Ruft einen speedy Zusatzbefehl auf. \\
-\\+Die Zusatzbefehle werden von den Zusatzmodulen definiert. \\ 
 +^Befehl^Parameter^Beschreibung^ 
 +|OnBomEdit | | Stückliste des aktuell selektierten Objekts bearbeiten | 
 +|OnBomDelete | | |  
 +|OnBomCompare | | |  
 +|OnBomPrint | | |  
 +|OnBomSave | | |  
 +|OnBomShow | | |  
 +|OnBomShowAll | | |  
 +|OnBomShowStructure | | |  
 +|OnEplanImport | | |  
 +|OnProjectBom | | |  
 +|OnEditClass | | |  
 +|LanguageSearch | | | 
 +|LanguageAnalyse | | | 
 +|LanguageEdit | | | 
 +|OnOutput | | | 
 +|ToGo | | | 
 +|GoOffline | | | 
 +|GoOnline | | | 
 +|CompareConflict | | | 
 +|GoOfflineDirect | | | 
 +|GoOnlineDirect | | | 
 +|OnBulkload | | | 
 +| | | |
  
 === Application.HasCommand(sCallBack) === === Application.HasCommand(sCallBack) ===
Zeile 188: Zeile 212:
 Die Funktion liefert kein Ergebnis aus dem SQL-Statement zurück. \\ Die Funktion liefert kein Ergebnis aus dem SQL-Statement zurück. \\
 <code> <code>
-Call DbExecute("", "UPDATE dm_document d inner join dm_version v ON d.doc_did=v.ver_did AND d.doc_rev=v.ver_major AND d.doc_ver=v.ver_minor inner join dm_prop_cad p on v.ver_vid=p.prop_did SET p.NORM = 'DIN 931' WHERE d.doc_docno = 'BS01516';")+Call Application.DbExecute("", "UPDATE dm_document d inner join dm_version v ON d.doc_did=v.ver_did AND d.doc_rev=v.ver_major AND d.doc_ver=v.ver_minor inner join dm_prop_cad p on v.ver_vid=p.prop_did SET p.NORM = 'DIN 931' WHERE d.doc_docno = 'BS01516';")
 </code> </code>
 \\ \\
Zeile 201: Zeile 225:
 Beispiel:  Beispiel: 
 <code vbscript> <code vbscript>
-Call DbQuery(result, "", "SELECT lst_idx,lst_name,lst_desc FROM lng_lst WHERE lst_typ='PROJEKTSTATUS';"+Call Application.DbQuery(result, "", "SELECT lst_idx,lst_name,lst_desc FROM lng_lst WHERE lst_typ='PROJEKTSTATUS';"
  
 Ergebnis: Ergebnis:
Zeile 232: Zeile 256:
 <code sql>SELECT <Expression> FROM <Domain> WHERE Criteria</code> <code sql>SELECT <Expression> FROM <Domain> WHERE Criteria</code>
 <code vbscript> <code vbscript>
-Call DbLookup(result, "", "MAX(doc_docno)", "dm_document", "") - Liefert die größte Dokumentnummer +Call Application.DbLookup(result, "", "MAX(doc_docno)", "dm_document", "") - Liefert die größte Dokumentnummer 
-Call DbLookup(result, "", "sett_value", "dm_setting", "sett_key='bom.autosorted'" - Liefert den Einstellungswert des Konfigurationsparameters [bom.autosorted]+Call Application.DbLookup(result, "", "sett_value", "dm_setting", "sett_key='bom.autosorted'" - Liefert den Einstellungswert des Konfigurationsparameters [bom.autosorted]
 </code> </code>
 \\ \\
Zeile 258: Zeile 282:
 s = Application.GetDocumentProperty(dictionary.item("dm_docno"), “projectcontainer.PROJECTMANAGER“) s = Application.GetDocumentProperty(dictionary.item("dm_docno"), “projectcontainer.PROJECTMANAGER“)
 </code> </code>
-\\+ 
 +=== Application.DumpDictionary(File, Dictionary) === 
 +Schreibt den Inhalt des Dictionaries in die Datei //File//. 
 + 
 +=== Application.ShowDictionary(Title, Dictionary) === 
 +Zeigt den Inhalt des Dictionaries in einem Dialog an.  
  
 ==== Clipboard - Objekt ==== ==== Clipboard - Objekt ====
 Globales Objekt mit Funktionen zur Zwischenablage. Globales Objekt mit Funktionen zur Zwischenablage.
 +
 === Clipboard.Clear === === Clipboard.Clear ===
 Leert die Zwischenablage Leert die Zwischenablage
-\\ 
  
 === Clipboard.Copy(Text) === === Clipboard.Copy(Text) ===
 Kopiert den Text in die Zwischenablage Kopiert den Text in die Zwischenablage
-\\ 
  
 === Clipboard.Paste === === Clipboard.Paste ===
Zeile 274: Zeile 303:
 <code VBScript>Text = Clipboard.Paste()</code> <code VBScript>Text = Clipboard.Paste()</code>
 \\ \\
 +
 +==== Path - Objekt ====
 +Globales Objekt mit Funktionen zu Pfadangaben und Dateinamen.
 +
 +=== String Path.AddBackslash(String pszPath) === 
 +=== String Path.AddExtension(String  pszPath, String pszExt) === 
 +=== String Path.Append(String  pszPath, String pszMore) === 
 +=== String Path.BuildRoot(int   iDrive) === 
 +=== String Path.Combine(String pszDir, String pszFile) === 
 +=== Boolean Path.FileExists(String pszPath) === 
 +=== String Path.FindExtension(String pszPath) === 
 +=== String Path.FindFileName(String pszPath) === 
 +=== Boolean Path.IsDirectory(String pszPath) === 
 +=== Boolean Path.IsFileSpec(String pszPath) === 
 +=== Boolean Path.IsPrefix(String pszPrefix, String pszPath) === 
 +=== Boolean Path.IsRelative(String pszPath) === 
 +=== Boolean Path.IsRoot(String pszPath) === 
 +=== Boolean Path.IsSameRoot(String pszPath1, String pszPath2) === 
 +=== Boolean Path.IsSystemFolder(String pszPath, Integer  dwAttrb) === 
 +=== Boolean Path.IsUNC(String pszPath) === 
 +=== Boolean Path.IsURL(String pszPath) === 
 +=== String Path.MakePretty(String pszPath) === 
 +=== Boolean Path.MatchSpec(String pszFile,String pszSpec) === 
 +=== String Path.QuoteSpaces(String lpsz) === 
 +=== String Path.RelativePathTo(String pszFrom, Integer  dwAttrFrom, String pszTo, Integer  dwAttrTo) === 
 +=== String Path.RemoveArgs(String pszPath) === 
 +=== String Path.RemoveBackslash(String pszPath) === 
 +=== String Path.RemoveExtension(String pszPath) === 
 +=== String Path.RemoveFileSpec(String pszPath) === 
 +=== String Path.RenameExtension(String  pszPath, String pszExt) === 
 +=== String Path.SkipRoot(String pszPath) === 
 +=== String Path.StripPath(String pszPath) === 
 +=== String Path.StripToRoot(String pszPath) === 
 +=== String Path.Undecorate(String pszPath) === 
 +=== String Path.UnquoteSpaces(String lpsz) === 
 +
 +
 +
 +==== Shell - Objekt ====
 +Globales Objekt mit Funktionen zur Windows-Shell.
 +
 +=== Shell.ExecuteCommand(Command, bVisible, iWait, CurrentDirectory) ===
 +Führt ein Programm (Command) aus.
 \\ \\
 +
 +==== Speedy - Objekt ====
 +Globales Objekt mit speziellen speedy-Funktionen rundum Dokumente.
 +
 +=== Speedy.DoFileView ===
 +=== Speedy.DoFileOpen ===
 +=== Speedy.DoFileCheckout ===
 +=== Speedy.DoFileCheckoutIn ===
 +=== Speedy.DoFilePendingapproval ===
 +=== Speedy.DoFileApprove ===
 +=== Speedy.DoFileRelease ===
 +=== Speedy.DoFileRevokeRelease ===
 +=== Speedy.DoFileCheckin ===
 +=== Speedy.DoFileProperties ===
 +=== Speedy.DoFileAttachDirect ===
 +=== Speedy.DoFileAttach ===
 +=== Speedy.DoCheckInWorkspace ===
 +=== Speedy.DoShellOpen ===
 +=== Speedy.DoOpenLinkToOrigin ===
 +=== Speedy.FindOrigin ===
 +=== Speedy.DoCreateFileFromTemplate ===
 +=== Speedy.ActivateExplorer ===
  
  
 +\\ \\ \\
 ===== speedy.* ===== ===== speedy.* =====
  
Zeile 977: Zeile 1072:
 |dictionary|Übergibt das Dictionary Objekt| |dictionary|Übergibt das Dictionary Objekt|
 **Rückgabe:** true oder 1 := Das Dictionary enthält Eigenschaften, die in den Dialog zu übernehmen sind. **Rückgabe:** true oder 1 := Das Dictionary enthält Eigenschaften, die in den Dialog zu übernehmen sind.
-<code>+<code vbscript>
 Function OnBrowse(lEventTiming, dictionary) Function OnBrowse(lEventTiming, dictionary)
   OnBrowse = False   OnBrowse = False
Zeile 1010: Zeile 1105:
 \\ \\ \\ \\
  
-=== OnPopulateNew(kBefore, dictionary) ===+=== OnPopulateNew(timing, dictionary) ===
 Wird beim Öffnen des Neu-Dialogs vor dem Erstellen eines neuen Dokuments aufgerufen Wird beim Öffnen des Neu-Dialogs vor dem Erstellen eines neuen Dokuments aufgerufen
 ^Parameter^Beschreibung^ ^Parameter^Beschreibung^
-|kBefore | Zeitpunkt wann die Aktion ausgeführt wird (hier unrelevant) |+|timing | Zeitpunkt wann die Aktion ausgeführt wird (hier unrelevant, immer kBeore) |
 |dictionary | Übergibt das Dictionary Objekt | |dictionary | Übergibt das Dictionary Objekt |
 **Rückgabe:** 1 := Das Dictionary enthält Eigenschaften, die in den Dialog zu übernehmen sind. **Rückgabe:** 1 := Das Dictionary enthält Eigenschaften, die in den Dialog zu übernehmen sind.