PdcApplication.ActiveObjectPickFilter: Difference between revisions
Jump to navigation
Jump to search
Created page with "== Declaration == ActiveObjectResult as Boolean == Description == Returns the active object result == Notes == Especially useful when the checks or inputs done in the scrip..." |
No edit summary |
||
Line 1: | Line 1: | ||
== Declaration == | == Declaration == | ||
ActiveObjectPickFilter as Boolean | |||
== Description == | == Description == | ||
Line 10: | Line 10: | ||
== Code example == | == Code example == | ||
In userexit | In userexit SCR_BEFORECHOOSEDELIVERYLINE check for the [project number in the first line of an active delivery note. | ||
<source lang="vb"> | <source lang="vb"> |
Revision as of 10:31, 2 October 2014
Declaration
ActiveObjectPickFilter as Boolean
Description
Returns the active object result
Notes
Especially useful when the checks or inputs done in the script may decide not to close the form in PdC. E.g. for mandatory data entry.
Code example
In userexit SCR_BEFORECHOOSEDELIVERYLINE check for the [project number in the first line of an active delivery note.
dim objCalc
if objCalc.UserString(2) = "" then
pdc.ActiveObjectResult = false
msgbox "Please enter value for UserField3"
else
pdc.ActiveObjectResult = true
end if
Availability
Available since June 2006 (From version 3.7).