PdcApplication.ActiveObjectID: Difference between revisions
m moved ActiveObjectID to PdcApplication.ActiveObjectID |
No edit summary |
||
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_AFTERPROJECTFORMCLOSE create a folder for documents concerning this project. | |||
<source lang="vb"> | |||
dim strProjNr | |||
dim strFolderPath | |||
strProjNr = pdc.ActiveObjectID | |||
strFolderPath = pdc.Options.GetFilePath(pdcApplicationPath) & " & strProjNr | |||
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). |
Revision as of 11:28, 21 May 2012
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_AFTERPROJECTFORMCLOSE create a folder for documents concerning this project.
dim strProjNr
dim strFolderPath
strProjNr = pdc.ActiveObjectID
strFolderPath = pdc.Options.GetFilePath(pdcApplicationPath) & " & strProjNr
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).