Welcome
Guest
, you are in:
<root>
•
Anmelden
CP Wiki
Navigation
¶
CP Solutions
Startseite
domizil+
Startseite
Administration
Administration
Neue Seite
Alle Seiten
Kategorien
Navigations-Pfade
Datei Manager
Neuer Benutzer
Suche im wiki
»
Zurück
Cold Funktion SQL
Modified on 22/03/2010 16:59
by CPALEB
Categorized as
DMS
,
Plattform
{BR} '''Syntax:'''{BR} {{{{'''%SQL'''(Abfrage, Spalte, DB, [Refresh], [Caching])'''%'''}}}}{BR} {BR} '''Bereich:'''{BR} [DMSCold|DMS Cold]{BR} {BR} '''Beschreibung:'''{BR} Mit der Funktion SQL kann ein zusätzliche SQL Abfrage ausgeführt werden. {BR} {BR} Abfrage:{BR} SQL Statement<BR> {BR} Spalte:{BR} Tabellen Spalte von der der Wert ausgelesen werden soll{BR} {BR} DB:{BR} 0=System{BR} 1=aktueller Mandant{BR} 2=DMS{BR} {BR} Refresh:{BR} Optional. Wird True angegeben (Standard ist false) und die SQL Abfrage wurde bereits einmal ausgeführt und gecacht, so wird die Datenmenge trotzdem nochmal ermittelt.{BR} {BR} Caching:{BR} Optional. Wird True angegeben (Standard), dann wird die SQL Abfrage gecacht. Wird die SQL Abfrage nochmals benötigt, so werden die Daten direkt aus der noch geöffneten Tabelle ermittelt. Beim Beenden von Cold werden alle gecachten Tabellen automatisch wieder geschlossen und freigegeben.{BR} {BR} '''netFrame Version:'''{BR} ab 3.1.0.250{BR} {BR} '''Beispiel:'''{BR} {BR} <code pascal> <?xml version="1.0" encoding="utf-8"?> <CP_DMSCOLD> <CP_DIR Value="Test\" Inherit="no" Import="yes" Delete="false"> <Containername value="%Currentdirname% - %date('yyyymmdd')%"/> <Company value="KuA"/> <Mailingtype value="Intern"/> <State value="Erledigt"/> <Section value="Bau"/> <Category value="%CASE([%filename(S, 1, 10)%, '00004-T001', 'Rechtsdokumente\Rechnung'], [%filename(S, 1, 10)%, '00004-T002', 'Rechtsdokumente\Plan'], 'sonstige')%"/> <Property Name="Nummer" Value="0815"> <Link Type="Objekt" Name="%filename(L, 5)%" Parent=""/> <Link Type="Gebäudeteil" Name="%SQL('SELECT gt.GT_ID FROM NET_GEBAUDETEIL gt WITH (NOLOCK) INNER JOIN NET_OBJEKT obj WITH (NOLOCK) ON gt.OB_ID=obj.OB_ID WHERE obj.OB_OBJEKT=%filename(L, 5)%', 'GT_ID', 1)%" Parent=""/> <Link Type="Einheit" Name="%FORMATFLOAT('000000', %IFTHEN(%Filename(S, 6, 2)%, '-T', %Filename(S, 8, 5)%, '99999')%" Parent="%filename(L, 5)%)%"/> </CP_DIR> </CP_DMSCOLD> </code> {BR} {BR} '''siehe auch:'''{BR} [ColdFunktionen|Cold Funktionen in der XML Datei]{BR}
ScrewTurn Wiki
version 3.0.1.400. Some of the icons created by
FamFamFam
.