If JavaScript is disabled, please continue to the
sitemap
.
Infor PLM for Process (Optiva) Scripting Administration Guide
Home
Home
Back
Back
Forward
Forward
Search
Help
Copy URL
PDF
Print this page
Help
Help
Copy URL
Copy URL
Topic URL copied to clipboard
PDF
PDF
Print
Hide the Table of Contents
Show the Table of Contents
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
Scripting functions
DataSet object
AddContextAttrib
AddNotification
AddReferences
AddSetCodes
AddTraceLog
AltUomCachedParamDouble
ArchiveBOD
CalcAllSave
CaptureElectronicRecord
CheckIn
CheckLoopCount
CheckOut
ClearNotifications
CopyRefObjContextAttrib
CopyRefObjDocuments
CopyRefObjIngreds
CopyRefObjReferences
CopyRefObjSetCodes
CopyRefObjTechParams
CopyRefObjTestPlan
DegradationRule(Param, DegradationRuleCode)
DailyValueRule(Param, DailyValueCode)
DocAddAttach
DocExist
EmailTemplate
ExecuteWorkflowEvent
FileLocation
FormatXML
FormulaGuidelineCheck
Examples for FormulaGuidelineCheck
GenerateCodeNumber
GetMessageText
GetProfileValue
GetSegData
GetSegDataByLineID
GetSequence
HasContextAttrib
HasSetCodes
IngrPreRowUpdate
IsBlank
IsLocked
IsLockedBy
LaunchWorkflow
LinkIDMAttachments
LogAddRec
Setting up a table and corresponding query
MessageList
Applying font styles to messages
Notify
Working with notifications
External email package
ObjectDelete
ObjectExists
ObjectSaveAs
ObjectsXmlForeign
ObjectXml
Attached documentation for multiple objects for reports
Retrieving materials
ObjectXsd
ObjMethod
Secured scripting using ObjMethod
Controlling the start time of an Optiva workflow
Calling ObjectMethod from ObjMethod
Using conversion factors for Formulation
Finding the lowest status for a formula or formula ingredients
Scaling formula ingredients
Calculating a formula
Obtaining the parent code
Changing the filter to retrieve parameters
Rolling up constituent values
Calculating Analysis results
Clearing results from an Analysis
Executing calculations
Calling Global Calc from ObjMethod
Applying an ingredient statement rule
Updating the preview in an ingredient statement
Using SWITCHLANGUAGE for ingredient statements
Updating the label content
Refreshing parameter data
Including Quick Search results in Web Reports
Recalling (Cancel) a workflow
ObjProperty
Detail codes
Single and array returns
Array data for single objects
Single and array data for references and contexts
Examples of ObjProperty
Array data for views
Array data for the multi-column extension tables
Data type returns with Strict On and Strict Off
Header data example
Returning single values
Multiple details returned
Retrieving specific context attributes
Retrieving all context values
Retrieving all references
Retrieving reference codes for vendors
Retrieving view data
Retrieving extension table values
Retrieving a file location
Specifying input variables
Adding a data value as a code segment
Retrieving TP values for Label Content object
ObjPropertyRemove
ObjPropertySet
Workflow examples
Copy Method examples
Equation examples
OptivaServerUICultureName
Param
ParamItem
PublishDebuggingInfo
PublishIONDoc
PushPulseNotification
ReadReportFile
XSL Transform example
Reassign
RejectChanges
RemoveContextAttrib
RemoveCustomTable
RemoveDocuments
RemoveNotification
RemoveRefCodes
RemoveReferences
RemoveSetCodes
RenameFormula
RemoveMultiLanguageValues
RenameObject
RoundingRule
RoundingRuleEx
SaveReportData
Using XmlDocument.OuterXml as a string
SaveReportSchema
SaveReportToIDM
SaveXMLSchema
SendMail
SetLineObject
SetMultiLangDescription
SetNullHandling
SetParam
SetSecurity
SetSecurityACL
ShellAPI
StartForm
Advanced Workflow Management
StartWorkflow
TableLookup
TableLookupEx
TableReader
Tparam
TparamItem
UserGroupAdd, UserGroupRemove
UserRoleAdd, UserRoleRemove
Valparam
WIPInfoGet
WIPInfoSet
Example of WIPInfoGet and WIPInfoSet
WipParamGet
WipParamSet
Wskip
Skipping multiple actions
DataSet objects
CommitNewRow
DataSetTableName
GetNewRow
ObjectDataSet
RowUpdate
Formula ingredients example
Extension table example
Scripting functions for IDM Reports
CreateIDMReport
IDMReportParams
IDMReportResult
Examples for equations, copy methods, and workflows
Equations for SCC and UPC codes
SCC
UPC
Copy Method to assign sets and classes
Copy methods and segment data
Clearing multi -language descriptions when copying an object
Finding patterns in codes
Formula explosion in Workflows
Example for Workflow inputs
Scheduling a script
Example of an ActionSetStart XML
Scripts for Optiva object events
Summary of functions
Configuring Scripts for Optiva objects
Templates
Examples of presave and prerowupdate
presave
prerowupdate
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
Open link in new tab
Open link in new window
Copy link to clipboard