PdcApplication.ActiveObjectID: Difference between revisions
m moved ActiveObjectID to PdcApplication.ActiveObjectID |
No edit summary |
||
(One intermediate revision by one other user not shown) | |||
Line 1: | Line 1: | ||
== Declaration == | == Declaration == | ||
ActiveObjectID as String | |||
== Description == | == Description == | ||
Returns the active object ID | |||
== Notes == | == Notes == | ||
The 'ActiveObjectID' property contains the identifying value of the active object in PdC. | |||
== Code example == | == Code example == | ||
In userexit SCR_AFTERDELIVERYNOTECLOSE create a folder for documents concerning this project. | |||
<source lang="vb"> | |||
dim strDelNoteNr | |||
dim strFolderPath | |||
strDelNoteNr = pdc.ActiveObjectID | |||
strFolderPath = pdc.Options.GetFilePath(pdcApplicationPath) & "\" & strDelNoteNr | |||
'fbooMakeDir(strFolderPath) | |||
</source> | </source> | ||
== Constants == | |||
For example some userexits and its key in the table below.<br /> | |||
'''UserExit - ActiveObjectID'''<br /> | |||
SCR_AFTERMATERIALPASTE - MaterialNo (LM_MATN)<br /> | |||
SCR_AFTERPURCHASEORDERLINEPASTE - PurchaseorderlineID (IN_ID)<br /> | |||
SCR_AFTERASSIGNPURCHASELINECONNECTION - CombiID (IN_KOPPELID)<br /> | |||
SCR_AFTERINVOICESAVE - InvoiceNo (INF_NR)<br /> | |||
SCR_AFTERINVOICECLOSE - InvoiceNo (INF_NR)<br /> | |||
SCR_BEFOREPRINTINVOICE - InvoiceNo (INF_NR)<br /> | |||
SCR_AFTERDELIVERYNOTECLOSE - DeliverynoteNo (PB_NR)<br /> | |||
SCR_BEFOREPRINTDELIVERYNOTE - DeliverynoteNo (PB_NR)<br /> | |||
SCR_BEFOREPRNDELIVNF7 - DeliverynoteNo (PB_NR)<br /> | |||
SCR_AFTERPURCHASEORDERCLOSE - PurchaseorderNo (BK_NR)<br /> | |||
SCR_AFTERPRINTPURCHASEORDERNOTE - PurchaseorderNo (BK_NR)<br /> | |||
SCR_AFTERPROJECTFORMCLOSE - ProjectNo (DF_NR)<br /> | |||
SCR_AFTERCREATEPURCHASEORDERLINE - PurchaseorderlineID (IN_ID)<br /> | |||
SCR_AFTERINCOMINGGOODS - Incominggoods ID (ING_AUTOID)<br /> | |||
SCR_AFTERASSIGNCOMBIID - CombiID (DO_CMBID)<br /> | |||
SCR_AFTERREPORTFINISHEDPRODUCTS - ProductReportID (FM_ID) | |||
== Availability == | == Availability == | ||
Available since December 2004 (From version 2.5). |
Latest revision as of 12:40, 6 April 2017
Declaration
ActiveObjectID as String
Description
Returns the active object ID
Notes
The 'ActiveObjectID' property contains the identifying value of the active object in PdC.
Code example
In userexit SCR_AFTERDELIVERYNOTECLOSE create a folder for documents concerning this project.
dim strDelNoteNr
dim strFolderPath
strDelNoteNr = pdc.ActiveObjectID
strFolderPath = pdc.Options.GetFilePath(pdcApplicationPath) & "\" & strDelNoteNr
'fbooMakeDir(strFolderPath)
Constants
For example some userexits and its key in the table below.
UserExit - ActiveObjectID
SCR_AFTERMATERIALPASTE - MaterialNo (LM_MATN)
SCR_AFTERPURCHASEORDERLINEPASTE - PurchaseorderlineID (IN_ID)
SCR_AFTERASSIGNPURCHASELINECONNECTION - CombiID (IN_KOPPELID)
SCR_AFTERINVOICESAVE - InvoiceNo (INF_NR)
SCR_AFTERINVOICECLOSE - InvoiceNo (INF_NR)
SCR_BEFOREPRINTINVOICE - InvoiceNo (INF_NR)
SCR_AFTERDELIVERYNOTECLOSE - DeliverynoteNo (PB_NR)
SCR_BEFOREPRINTDELIVERYNOTE - DeliverynoteNo (PB_NR)
SCR_BEFOREPRNDELIVNF7 - DeliverynoteNo (PB_NR)
SCR_AFTERPURCHASEORDERCLOSE - PurchaseorderNo (BK_NR)
SCR_AFTERPRINTPURCHASEORDERNOTE - PurchaseorderNo (BK_NR)
SCR_AFTERPROJECTFORMCLOSE - ProjectNo (DF_NR)
SCR_AFTERCREATEPURCHASEORDERLINE - PurchaseorderlineID (IN_ID)
SCR_AFTERINCOMINGGOODS - Incominggoods ID (ING_AUTOID)
SCR_AFTERASSIGNCOMBIID - CombiID (DO_CMBID)
SCR_AFTERREPORTFINISHEDPRODUCTS - ProductReportID (FM_ID)
Availability
Available since December 2004 (From version 2.5).