

Group by sag.afdeling, sag.sagsnr, sag.start_dato, sag.stat, BOGF_TRANS.TRANSTYPE Where SAG.SELSKAB=37 and SAG.AFDELING = 'SUS' AND SAG.SAGSNR = 10876 Join bogf_trans on sag.selskab = bogf_lskab and sag.sagsnr = bogf_trans.sagsnr and sag.afdeling = bogf_trans.afdeling Max (case when BOGF_TRANS.TRANSTYPE = 'S' then sum(bogf_trans.belobdkk) end) as "SUM TRANSTYPE S" Max (case when BOGF_TRANS.TRANSTYPE = 'D' then sum(bogf_trans.belobdkk) end) as "TRANSTYPE K & D", Max (case when BOGF_TRANS.TRANSTYPE = 'K' then sum(bogf_trans.belobdkk) end) + - as "TRANSTYPE K",

Select sag.afdeling, sag.sagsnr, to_char(sag.start_dato, 'yyyy-mm-dd'), sag.stat, BOGF_TRANS.TRANSTYPE, I have a problem with below sql query, it gives me problem/error message 'ORA-00937: not a single-group group function', why? 1.7K Training / Learning / Certification.165.3K Java EE (Java Enterprise Edition).7.9K Oracle Database Express Edition (XE).3.8K Java and JavaScript in the Database.The IPCB_ServerInterface and IPCB_Board interfaces are two of the main interfaces to deal with when accessing and manipulating a PCB document. With this interface for example, you can proceed further by iterating for PCB objects on a PCB document.Ī simplified PCB Interfaces hierarchy example: The IPCB_ServerInterface interface is the main interface and contains many interfaces within. To have access to the PCB server and massage certain PCB design objects, you need to invoke the PCBServer function, which extracts the IPCB_ServerInterface interface. The PCB Object Model compromises of PCB Object Interfaces and standalone utility functions that allow you to deal with PCB objects from a PCB document in Altium Designer via object interfaces.Īn interface is just a means of access to an object in memory. Integrated Library Object Model - refer to the Integrated Library API Reference.Workspace Manager Object Model - refer to the Workspace Manager API Reference.Schematic Object Model - refer to the Schematic API Reference.System API Object Model - refer to the System API Reference.Separate references for other Altium Designer APIs PCB API Layer Interfaces - new updated content.PCB API Layer Stack Interfaces - new updated content.There are PCB script examples in the \Examples\Scripts\DelphiScripts\PCB folder which demonstrate the use of PCB interfaces. The IPCB_ServerInterface interface represents the PCB server object.The IPCB_Board interface represents an existing PCB document.The IPCB_Primitive interface is a generic ancestor interface for all PCB design object interfaces.With this interface, all other PCB interfaces can be extracted.įor example to get access to the current PCB document open in Altium Designer, you would invoke the GetCurrentPCBBoard method from the IPCB_ServerInterface interface object.Įxample: Obtaining the currently open PCB document. To work with PCB design objects, the starting point is to invoke the PCBServer function which returns the IPCB_ServerInterface interface, which represents the PCB Editor. Interfaces are declared like classes, but cannot be directly instantiated and do not have their own method definitions. Object InterfacesĪn interface is basically a list of methods that a class declares it implements - that is, each method in the interface is implemented in the corresponding class. The PCB design objects are wrapped by their corresponding PCB interfaces which makes it possible to manipulate those objects by scripts and server code. The PCB design objects and methods are available in all script languages supported by Altium Designer.


The PCB Object Model part of the PCB API is made accessible by the PCB Editor. The PCB API consists of the PCB Object model and the API functions. The Altium DXP Developer, used for developing Altium Designer server Extensions, has access to the full Altium Designer API via a set of API SDK source units. The Altium Designer scripting system implements a subset of the complete Altium Designer API and its Object Interfaces.
