Infor PLM for Process (Optiva) Scripting Guide

Home

Back

Forward

  • Copy URL
  • PDF
  • Print this page

Favorite

Copy URL

Topic URL copied to clipboard

PDF

Print

About This Guide
Overview
Optiva and Visual Basic .NET
Optiva Scripting for Workflows, Copy Methods, Equations
New Code Editor for Optiva Script Libraries, Workflows, Equation, Object Symbol and Copy Method Scripts
.NET Framework scripting for Optiva events
Summary of Optiva scripting
Scripting in workflows
Scripting in copy methods
Scripting in equations
Scripts for Optiva object events
Conventions for Scripting
Templates for scripts
Option Strict
Example of error for Context.ReturnValue with Option Strict On
Example of ObjProperty with Option Strict OFF and ON
Imports system namespaces
Class script
Workflow events
wf_start event
wf_launch() event
Assign event
Writing scripts for Workflow events
Variables in Workflow
Local variables
Parameter values
Global variables
Variables in copy methods
Segments
Local variables
Global variables
Variables in equations
Reserved keywords for variables
Return codes
Detail codes
Scripting requirements
Increasing the maximum values
Tips for Scripting
Migrated scripts add “Imports Microsoft.VisualBasic”
Tips for Wizards
User-defined Script Library
Creating the Script Library
Calling the Script Library
Equation tips for the Script Library
Constant values
Reusing Script Libraries
Including additional .dll’s
Example of Microsoft Solver .dll
Configuring Optiva for Secured Scripting
Secured scripting with ObjectDataSet
Secured scripting for Web Reports
Secured Scripting for RowUpdate()
Secured Scripting for creating new whitelist entries
Scripting for ION integrations
Handling SQL "IN" criteria lists
Managing Script Versions
Wizards to push C# scripts to IDM
Configuring the Publish C# Scripts to IDM wizard.
Scripting functions
AddContextAttrib
AddNotification
AddReferences
AddSetCodes
AddTraceLog
APIGet
APIPost
APIPut
AltUomCachedParamDouble
ArchiveBOD
AnalysisSetResultValue
AnonymizeUser
CalcAllSave
CaptureElectronicRecord
CallIONAPI
CheckIn
CheckOut
CheckLoopCount
ClearNotifications
CopyRefObjContextAttrib
CopyRefObjDocuments
CopyRefObjIngreds
CopyRefObjReferences
CopyRefObjSetCodes
CopyRefObjTechParams
CopyRefObjTestPlan
CreateObjectUsingCreateRule
CloneUserGridConfig
DailyValueRule
DegradationRule
Deserialize
DocAddAttach
DocExist
EmailTemplate
EvaluateEquation
ExecuteWorkflowEvent
FileLocation
FormatXML
FormulaGuidelineCheck
GenerateCodeNumber
GetBrixData
GetEnums
GetEnumsByDbField
GetMessageText
GetProfileValue
GetSequence
GetGENAIPromptText
GenerateGenAIPrompt
HasContextAttrib
HasSetCodes
IsBlank
IsLocked
IsLockedBy
LaunchWorkflow
LinkIDMAttachments
MessageList
Notify
ObjectDelete
ObjectExists
ObjectSaveAs
ObjectsXMLForeign
ObjectXML
ObjectXSD
ObjMethod
Available methods by Category
Formula Method
Analysis Method
Ingredient Statement method
Label Content method
User method
Workflow method
Report method
Order method
Generic method
ObjProperty
ObjPropertySet
ObjPropertyRemove
OptivaServerUICultureName
Param
ParamItem
PublishDebuggingInfo
PushPulseNotification
ReadReportFile
Reassign
RejectChanges
RemoveContextAttrib
RemoveCustomTable
RemoveNotification
RemoveDocuments
RemoveMultiLanguageValues
RemoveOtherLanguageTranslations
RemoveRefCodes
RemoveReferences
RemoveSetCodes
RenameFormula
RenameObject
RoundingRule
RoundingRuleEx
SaveReportData
SaveReportSchema
SaveReportToIDM
SaveXMLSchema
SendMail
SetLineObject
Serialize
SetMultiLangDescription
SetNullHandling
SetParam
SetSecurity
SetSecurityACL
ShellAPI
Startform
StartWorkflow
TableLookup
TableLookupEx
TableReader
TParam
TParamItem
UserAccessCollectionAdd
UserAccessCollectionRemove
UserGroupAdd
UserGroupRemove
UserRoleAdd
UserRoleRemove
ValParam
WIPInfoGet
WIPInfoSet
WIPParamGet
WIPParamSet
WSkip
Dataset Objects
GetNewRow
CommitNewRow
RowUpdate
ObjectDataSet
DataSetTableName
Examples for C# workflow, copy method, equation, and hook scripts
WorkFlow Scripts
Copy Method Scripts
Equation Script
Hook Script
Comparison of Common Scripting Objects and Functions
Difference Between Param, ParamItem, Tparam, and TparamItem
Difference Between TableLookup, TableLookup, TableReader
Scripting functions for IDM Reports
CreateIDMReport
IDMReportParams
IDMReportResult
Scripts for Optiva object events
Summary of functions
Configuring Scripts for Optiva objects
Templates
Examples of presave, prerowupdate, prereplace and postreplace
presave
Skipping Calculation during save
prerowupdate
prereplace and postreplace
Search <Object> forms in the Web Client
Methods for the Search script hooks
Common arguments
Script libraries
DELAYEDWORKFLOW
GDSNXMLHELPER
GENERATEGSDNXML
TPDATAVALIDATIONSEC
Using public functions from the FSLIBIDMHELPER script library
Generic functions
Sample functions
Scripting functions for IDM wizard attachments
  • Links
  • Feedback
  • Support
  • © Copyright 2026. Infor. All rights reserved.
  • Open link in new tab
  • Open link in new window
  • Copy link to clipboard
Do you find this site useful?
Do you find this page useful?