relxAddSetupRelxOption
relxAddSetupRelxOption ( [?names_name] [?types_type] [?promptt_prompt] [?choicesl_choices] [?valueg_value] [?displayg_display] [?enabledg_enabled] [?onFieldsl_onFields] [?buttonLocations_buttonLocation] [?callbackt_callback] [?defValueg_defValue] [?itemsPerRowx_itemsPerRow] [?itemsl_items] [?frameg_frame] [?formApplyCBs_formApplyCB] [?scrollableg_scrollable] [?tooltipt_tooltip] [?spacingx_spacing] [?discLayouts_discLayout] [?buttonIcong_buttonIcon] ) =>r_fieldHandle
Description
Adds new fields to the Reliability Options form.
This function can be used as a unit function to customize the Custom tab.
Arguments
Value Returned
Examples
Add the following SKILL code in the .cdsinit file to add these fields to the Custom tab:
-
Circuit Report of type
Boolean -
Circuit Report Path of type
string -
Circuit Type of type
radio -
Include Circuit of type
cyclic -
Circuit Mode of type
toggle
(defun relxCreateCustomizedTab (formSymbol)
let((cusTagVertLayout circuitReport circuitReportPath circuitType circuitMode
circuitInclude)
circuitReport = relxAddSetupRelxOption( ?name 'circuitReport
?type 'Boolean
?prompt "Circuit Report"
?defValue nil
)
circuitReportPath = relxAddSetupRelxOption(?name 'circuitReportPath
?type 'string
?prompt "Circuit Report Path"
)
circuitType = relxAddSetupRelxOption( ?name 'circuitType
?type 'radio
?choices list("Static" "Dynamic")
?value "Static"
?prompt " Circuit Type"
)
circuitMode = relxAddSetupRelxOption(?name 'circuitMode
?type 'toggle
?choices list( list( 't1 "Simple")
list('t2 "Complex")
list( 't3 "Intermediate")
)
?value list( t t t)
?itemsPerRow 2
?prompt " Circuit Mode"
)
circuitType = relxAddSetupRelxOption(?name 'circuitInclude
?type 'cyclic
?choices list("Include" "Exclude")
?value "Include"
?prompt "Include Circuit?"
)
cusTagVertLayout = relxAddSetupRelxOption( ?name 'cusTagVertLayout
?type 'verticalBoxLayout
?items list(
list(circuitReport)
list(circuitReportPath)
list(circuitType)
list(circuitMode)
list(circuitInclude)
list('spacer_item 5)
list('stretch_item 5)
)
)
cusTagVertLayout
)
)
The new fields are added to the Custom tab in the Reliability Options form.

Return to top