PUG

  • PUG News
  • PUG Forum
  • Shared documents
  • PUG Events
    • Scandinavian Conferences
    • Scandinavian Theme Days
    • D-A-CH Events
    • North American Events
  • PUG Info
    • PUG Board Info (Scandinavia)
    • PUG Rules
    • PUG Member Lists and Board Members
  • Contact Us

Reply To: Farb Trigger in der Übersicht speichern

  • Follow us on Twitter
  • Join our Facebook Group
  • RSS

Welcome to the POB User Group Online Community! › Forums › PUG DACH › Farb Trigger in der Übersicht speichern › Reply To: Farb Trigger in der Übersicht speichern

08/05/2015 at 13:41 #2732
Stefan Reichelt
Participant

Ok, wenn du noch Fragen dazu hast, beantworte ich sie gern (vielleicht in einem eigenen Thread). SQL-Spalten sind ein sehr flexibles Werkzeug, um beliebige Informationen in POB-Listen einzubinden. Man kann sogar SQL-Funktionen verwenden (solange diese genau einen Wert zurückgeben), wodurch sich selbst systemfremde Tabellen anzapfen lassen (das geht aber auch so im Subselect).
Noch ein kurzer Hinweis:
Wenn du statt per CASE gleich mit einem Subselect einsteigst (z.B., weil du per Join in andere Tabellen schauen willst), solltest du unbedingt mit einem Alias arbeiten.
Kleines Beispiel für eine Spaltendefinition:
(
SELECT cat.Id
from Case cas
inner join Case_Category cat on cas.case_category_pk=cat.case_category_pk
where cas.case_pk=case_pk
)
Entscheidend ist die where-Zeile: das “case_pk” ohne Alias davor wird von POB automatisch so wie [CasePK] interpretiert und in das eigentliche Statement eingefügt. So würde das Statement dann aus POB-Sicht aussehen:

select a0.allemöglichenspalten,
(
SELECT cat.Id
from Case cas
inner join Case_Category cat on cas.case_category_pk=cat.case_category_pk
where cas.case_pk=a0.case_pk
)
from Case_Table a0
where a0.und_so_weiter=und_so_fort

Das klappt natürlich auch mit anderen Spalten wie priority_pk etc.

  • This reply was modified 5 years, 8 months ago by Stefan Reichelt.

Login

Register | Lost your password?

Menu

  • PUG News
  • PUG Forum
  • Shared documents
  • PUG Events
    • Scandinavian Conferences
    • Scandinavian Theme Days
    • D-A-CH Events
    • North American Events
  • PUG Info
    • PUG Board Info (Scandinavia)
    • PUG Rules
    • PUG Member Lists and Board Members
  • Contact Us

Pages

  • Anmeldung zur PUG Konferenz 2018
  • Contact us
  • Forgot Password
  • Login
  • Lost password
  • POB Tip – Filtering lists to show only limited data
  • Profile
  • Registration
  • Registration for PUG 2019 in Scandinavia
  • Registration for PUG 2020 in Scandinavia
  • Skandinavisk PUG konference 2014 (Hurdal, Norge)
  • Skandinavisk PUG konference 2017 (Sundvolden, Norge)
  • Tilmelding til / Anmälan till PUG 2015 i Sollentuna
  • Tilmelding til erfamøde hos Frederiksberg Kommune
  • Tilmelding til PUG 2016 / Anmälan till PUG 2016
  • Tilmelding til PUG 2018 / Anmälan till PUG 2018
  • Udfyld nedenstående felter hvis du ønsker at melde jer ind i PUG
  • Welcome to the POB User Group Online Community!
  • Wendia North America 2018 Customer-Partner Conference Registration Form
  • Wendia North America 2019 Customer-Partner Conference Registration Form
  • You are not a member?
  • Webinar on the New Mobile Web Apps in POB G6 2.006/01/2021 - 13:41

    The POB G6 2.0 mobile interfaces for analysts and customers provide great new capabilities and features. The mobile interfaces have a new look and feel and they allow utilization of most areas of POB from a mobile platform. On January 19th, Kevin Goertzen will show and demonstrate the new mobile interfaces in POB G6 2.0 […]

  • December Webinar on Triggers in POB27/11/2020 - 12:10
  • PUG 2021 – Redesigned for a Virtual Setting (Scandinavia)13/11/2020 - 11:29

    The PUG board has decided to have next year’s Scandinavian conference in a virtual setting. So, mark your calendar for April 20th, 2021, where PUG will host a one-day virtual conference. The decision was made based on the feedback the PUG board got when they asked how participants would feel about attending a physical conference, […]

© Copyright - PUG - All rights reserved by PUG © 2012
  • Send us Mail
  • Follow us on Twitter
  • Join our Facebook Group
  • Subscribe to our RSS Feed