PdcApplication.ActiveObjectPickFilter: Difference between revisions

From External Bemet Wiki
Jump to navigation Jump to search
No edit summary
No edit summary
Line 3: Line 3:


== Description ==
== Description ==
Returns the active object result  
Sets an active object result  


== Notes ==
== Notes ==
Especially useful when the checks or inputs done in the script may decide not to close the form in PdC.
Especially useful to set a filter expression in script  
E.g. for mandatory data entry.
 
== Code example ==
== Code example ==
In userexit SCR_BEFORECHOOSEDELIVERYLINE check for the [project number in the first line of an active delivery note.
In userexit SCR_BEFORECHOOSEDELIVERYLINE check for the [project number in the first line of an active delivery note.

Revision as of 10:33, 2 October 2014

Declaration

ActiveObjectPickFilter as Boolean

Description

Sets an active object result

Notes

Especially useful to set a filter expression in script

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).