Skip to content

lib-finstack 库参考 ​

原文: https://finproducts.atlassian.net/wiki/spaces/JIDD3/pages/34793979980/FIN+5.3.1+lib-finstack 中文整理基于 FIN 5.3.1

导读: 本页为 lib-finstack 的 API / 标签 / 函数参考文档。

以下为 API 参考,保留英文以便对照源码;目录已列出(英文标题便于检索);概述已尽量中译。


目录(导读) ​

  • lib
  • meta
  • tags
  • funcs
  • def
  • supertypes
  • arcs(src, dates: null)
  • createFirstLevelOptional(level)
    • src
  • createOptionalLevel(level, position: "")
  • finActionsRewrite(filter, oldExprDict, newExprDict)
  • finAssetUsedBy(assets)
  • finBacnetCurToWrite(recs, from: "bacnetCur", to: "bacnetWrite")
  • finBacnetWriteToCur(recs)
  • finBeginDiscovery(connectorName, discoveryConfiguration: "")
  • finCapsNeeded(capCount, mult: Number.<ctor>(1), params: null)
  • finConnExts()
  • finCopyBoundPoints(sourceExpr, targetExpr)
  • finCreateHaystackDb(conns, startLearn: "sep:/", hisEnable: false, doImport: true, parent: null, rootLearn: "")
  • finCreateTemplatePackage(finTemplates, meta)
  • finCreateTemplatePackage2(finTemplates, meta)
  • finCurrentDayInfo(time: SysLib.now(), tz: TimeZone.cur())
  • finDiscoveryAdd(recordIds)
  • finDiscoverySessionCleanup(discoveryId)
  • finDiscoverySessionEnd(discoveryId, error: null)
  • finDiscoveryStatusCheck(discoveryId)
  • finElementOn(target, elementTag, queryRelated: false)
  • finElementsOn(targets, elementTag, queryRelated: false)
  • finEnergyAnnualMonthlyDayRollup(pRef, foldFc: null)
  • finEnergyAnnualMonthlyRollup(pRef, foldFc: null)
  • finEnergyAnnualWkDayRollup(pRef, foldFc: null)
  • finEquipPointTagClone(fromEquipRef, fromPointRefs, tags, toEquipFilter, copy: false)
  • finFileAndAssetDelete(projects)
  • finFiles()
  • finFindRecordByChild(targetFilter, childFilter)
  • finFindRecordByChildDeep(targetFilter, childFilter)
  • finFixOldBinTags()
  • finFoldGrid(grd, foldFc: null, ops: {})
  • finFreqFilters()
  • finFuncs()
  • finGetCaps()
  • finGetConnectorTagSpecs(extName)
  • finGetCurrentUser()
  • finGetDiscoveryConfiguration(connectorName)
  • finGetHelp(appNames, targetRefs: null)
  • finHaystackDrillDown(conns, startLearn: "sep:/", hisEnable: false, rootLearn: "")
  • finHaystackExcludedTags()
  • finHaystackLearn(conn, learnPath: null, opts: [:])
  • finHttpProxy(url, method: "GET", headers: null, params: null)
  • finNavDrillDown(start, navTree: "equip", includeConns: false)
  • finNavDuplicate(treeName, src, opts)
  • finNavLevels(treeName, base: null, opts: null)
  • finNavMain(targets, dates: null)
  • finNavMerge(sourceRef, targetRef, treeName: "equip", moveTarget: true)
  • finNavMeta(level, position: "")
  • finNavMetaTagList(target, ops: {})
  • finNavNavlets(target, dates: null)
  • finNavRollup(grid)
  • finNavletsOn(target)
  • finNoteSummary(notes)
  • finPaginate(target, pageNumber: Number.<ctor>(1), itemsPerPage: Number.<ctor>(25))
  • finParseFilter(filter)
  • finPointSummary(target, equipExpr: null, pointExpr: null)
  • finPointSummary2(equip, normalizeNames: false)
  • finPublishTemplatePackage(pod, username, password, live: false)
  • finRebuildDocs()
  • finRebuildNavTree(navLevel, parentId: Ref.nullRef, navTreeName: "equip")
  • finRecordTagClone(fromRef, toFilter, tags)
  • finRemoveCategory(category)
  • finRewriteHisTz(id: null, tz: null)
  • finRewriteHisTzCommit(points)
  • finScheduleCopyDays(schedRefs, srcDay, dstDay)
  • finShowPointsInWatch(watchId)
  • finShowWatches()
  • finStackBootStrap()
  • finSub(expr)
  • finSubEnd()
  • finSubStart(graphicName, watchId: null)
  • finSyncTags(source, tags, createIfNotExist: false, treeName: "equip")
  • finTemplateCopy(source, basePath, targets, returnCloneIds: false)
  • finUniqueActions(filter: null, includeRefs: false)
  • finUniqueTags(filter: Literal.<ctor>("equip"))
  • finUriToDict(uri)
  • finhaystackDeviceDiscovery(ref, config)
  • finhaystackDeviceDiscoveryConfig()
  • finsedonaDeviceDiscovery(ref, config)
  • finsedonaDeviceDiscoveryConfig()
  • modifyNavMetaOptional(level, position: "")

概述(中译) ​

FINStack 服务


API 正文(英文) ​

tags ​

advanced
alarmEmailToggleHaving to do with the alarm email toggle
appFormOnApplication Form Selector Tag
axonTemplateThis is a sample axon query that can be used like a template
baSuExecBA Super User (Defined here because the BA connector does not support 5.0)
baseChartBasic charting functions
batchRecordsIndicates that the function will process multiple records
chartFunctions related to charting
chartOnChart Record Selector Tag
chartOnDownload
chartTest
childData
connDebugConnector debugging functions
connTreesRelated to dbAddEdit
constructDefines a constructor for the function
contextSensitiveThis is docs or video that are context Sensitive
dbAddEditMarks a function that holds add/edit logic for DB Builder forms
dbToolCategoryUsed to group forms together without affecting their folder path
deleteTop
digTimeRelated to digest time functions
editSum
exampleDefines an example for the function
excludes
finActionCatIndicates that the function will process fin actions
finAssetMarks resources published from FIN Builder as asset files
finBestPracticeThis is either docs or videos that are best practices, typically videos
finBucketThis tag means that the resource is a FIN Bucket resource
finBuilderThis tag is used for content that is used in FIN Builder
finBuilderActionThis resource belongs to a FIN Builder Action
finBuilderComponentThis tag means that the resource is associated with a component
finBuilderCustomThis tag means that the finp file is a custom graphic, IE.
finBuilderMenuIdentifies functions that have elements for right-click menus in Graphics Builder
finCommonQueryIdentifies functions that return common queries to be used with folio
finDocsTag that has a link to docs.finproducts.com
finDocsPathThis is the path where you find the docs in docs.finproducts.com
finExampleThis tag is for an something that is an example, either for a video, or docs typically
finFileMarker for Fin Builder published file resource, the actual file stored on disk
finFileUploadMarker for Fin Builder uploaded files
finFormForm Record Selector Tag
finIconMarker for Fin Builder published project icon file
finKeyWordsA Comma Seperated string that we can add keywords too, so the user can search on this tag
finMimeMarker for Fin Builder published file resource mime type
finModelThis asset is a FIN Model that can be opened in FIN BUilder
finModelFuncDefines functions that returns FIN Models
finNavTreeIndentifies a function as containing a root node for a DB Builder tree
finPreviewImageRefThis is a ref to an image that will be previewed for what this is
finProjectMarks resources published from FIN Builder as project files
finRemoteAssetDefines functions that returns graphics remote assets
finRemoteResource
finResourceMarks resources published from FIN Builder
finRuntimeMarks resources published from FIN Builder as runtime files (i.e
finSavedChart
finScreenshotMarker for Fin Builder published project screen shot file
finStackThis tag means the asset can be used in FIN
finStackMobileMenu
finStringHaving to do with fin string related functions
finTemplateFuncDefines functions that returns FIN Templates
finThumbMarker for Fin Builder published project thumb file
finTipsAndTricksThis is a resource for FIN Tips and Tricks
finUpdateRecords
finUriMarker for Fin Builder published resource Uri
finVideoThis tag means it's a video
finVideoPathThis is the path that goes to youTube for the video
finpFileThe asset is a finp file, that can be downloaded and opened in FIN Builder
finpFileRefThis tag is a ref to the finp file
floorRefA legacy deprecated floor reference
folderPathFolder Path Tag
fooUseless
formOnForm Record Selector Tag
globalContDefines usage in Global Control
helpDocPath to help documentation
hideFromMobileDBHide from database builder
hideMobileUsed to hide forms in mobile
noDocDocumentation Ignore Tag
obsoleteMarks a function as obsolete and that it needs to be reviewed before removal
polyStats
pooUseless
privateMarks the function as private
queryString
relationshipFuncIndentifies functions that hold pre-configured relationships
relationshipTreeRelated to dbAddEdit
savedQueryFilterTreeRelated to dbAddEdit
summs
tagBundleFuncIndentifies functions that hold pre-configured tag bundles
tagBundleTreeRelated to dbAddEdit
templateTreeRelated to dbAddEdit
timezDefinition of a timezone function
topics
uiFormOnuiForm Record Selector Tag
update

funcs ​

arcsGiven a grid of source data, return the arcs and the arc summaries which are available for the source data
createFirstLevelOptionalAxon function
createOptionalLevelAxon function
finActionsRewriteRewrite actions that match the filter expression and the oldExprDict, dis and expr, fields with the new newExprDict, that contains new tags or overrides existing dis or expr tags, or removes tags Users should call this like
finAssetUsedByGiven an asset or list of asset records or refs return a grid with fin project records that use those assets
finBacnetCurToWriteFinds all records from the grid or record list you passed as an argument, writes the value from the cur property to the write property and displays for every record of the argument the actions that took places
finBacnetWriteToCurFinds all records from the grid or record list you passed as an argument, writes the value from the write property to the cur property and displays for every record of the argument the actions that took places
finBeginDiscoveryBegins a Discovery session Returns the id of this discovery session
finCapsNeededThis function, given the number of required CAPS, returns a grid with the licensing parts and how many parts are needed alog with the base to reach desired CAPS at the lowest price
finConnExts
finCopyBoundPoints
finCreateHaystackDbTakes a haystack connector ref or a list of haystack connector refs and using the navTree supplied imports the entities matching the navFiltering to the local server
finCreateTemplatePackageCreates a template package to be published to StackHub Accepts as parameters
finCreateTemplatePackage2
finCurrentDayInfoReturns a grid with the columns daysLeftMonth daysLeftYear hoursLeftDay hoursPastDay daysPastMonth daysPastYear
finDiscoveryAddAdd discovered item to system
finDiscoverySessionCleanupDestroy Discovery Session
finDiscoverySessionEndClose Discovery Session
finDiscoveryStatusCheckGet Discovery Status
finElementOnFIN Element On This method will find records compatible with the target element based off of the elementTag
finElementsOnFIN Elements On This method will find records compatible with all of the target elements based off of the elementTag
finEnergyAnnualMonthlyDayRollupGiven a point ID and a folding function (sum, avg, median, etc....) the result of the query will return a years worth of data, and it will create up to 31 columns of data
finEnergyAnnualMonthlyRollupGiven a point or list of points ID and a folding function (sum, avg, median, etc....), if the points have a history it would return a row for each point, and then have 12 months of columns in it, for the last year, folded using the given function
finEnergyAnnualWkDayRollupGiven a point ID and a folding function (sum, avg, median, etc....) the result of the query will return a years worth of data, and it will create up to 31 columns of data
finEquipPointTagClone
finFileAndAssetDeleteGiven a finProject or list of finProject records or refs the function will delete the finProject(s) and assets that are use only by this project
finFilesReturn a list of fin files together with their respective screen shots, thumbs and icons
finFindRecordByChildThis function is just like finFindRecordByChildDeep except this one only searches 1 level deep, and is way more effecient
finFindRecordByChildDeepThis function will let you search for children of something
finFixOldBinTags
finFoldGrid
finFreqFiltersThis function is used for the filter ui that shally made
finFuncsFIN Funcs This method merges the result of the funcs() query with extra data within the finFuncs.trio file to support FIN
finGetCapsThis function returns a grid with the licensing parts and their prices
finGetConnectorTagSpecsReturns a Grid with the tag specs defined for an enabled connector
finGetCurrentUser
finGetDiscoveryConfigurationGet Discovery Configuration
finGetHelp
finHaystackDrillDownTakes a connector ref or a list of haystack connector refs and using the navTree supplied queries all the nav paths on each connector and creates an grid with all the entities that match the path
finHaystackExcludedTagsReturns a grid of tags to be excluded when working with records coming from haystack or nhaystack connectors
finHaystackLearnImproves haystackLearn so that it fetches all the tags defined for a learn path
finHttpProxy
finNavDrillDownGets all the children of the parent id or parent id list that matches the supplied navTree start - a ref or list of refs or a rec or list of records
finNavDuplicateDuplicates a record using the nav tree specified by treeName This functions uses the built-in proj::SysLib.navDuplicate function with the important add-on of also duplication the children of the src record that have the same nav level as the source, i.e
finNavLevelsEnhance navLevels
finNavMain
finNavMerge
finNavMetaAdding a Level
finNavMetaTagListGiven an record that is part of the equipPath Posible ops are {"drillDown":false, "values":true, "getRef":true} If drillDown is present
finNavNavlets
finNavRollup
finNavletsOn
finNoteSummary
finPaginateFIN
finParseFilterDecode a filter expression into a grid of operands
finPointSummaryGenerate a point summary by equip
finPointSummary2Function to read points that have pointSummaryRef pointing to the specified equipment
finPublishTemplatePackageUpload a template package to Stack Hub Accepts as parameters
finRebuildDocsRebuilds the documentation using the FINStack style
finRebuildNavTreeRebuild a nav tree by ensuring that parent refs to and from the specified navLevel are bound to parents and children respectively An optional parent ref id can be supplied so that the rebuild is limited to the branch starting from that specific parent ref id
finRecordTagClone
finRemoveCategoryRemoves a category or a list of categories from all actions and user records Users should call this like
finRewriteHisTzAxon function
finRewriteHisTzCommitAxon function
finScheduleCopyDaysChange a weekly schedule (or list of weekly schedules) by copying parts of it to other week days Examples
finShowPointsInWatchList all records registered for a watch id
finShowWatchesList all watches open for this project
finStackBootStrap
finSubEvaluate the given expression
finSubEndLast call of an evalAll for subscription
finSubStartOpen a new watch as part of an evalAll
finSyncTagsFIN Synchronize Tags This method will recursively synchronize the tag values from the source onto all of the children down the given tree Example
finTemplateCopy
finUniqueActionsFind all actions that have the same dis and expr tags Returns a grid with dis, expr, count rows to show how many similar actions were found
finUniqueTagsfinUniqueTags - returns a grid with all markers that are shared by records matching the filter and their match count
finUriToDict
finhaystackDeviceDiscovery
finhaystackDeviceDiscoveryConfig
finsedonaDeviceDiscovery
finsedonaDeviceDiscoveryConfig
modifyNavMetaOptionalAxon function


def ​

advanced ​


meta ​

defadvanced
ismarker
liblib:finstack

supertypes ​

markerMarker labels a dict with typing information


def ​

alarmEmailToggle ​

Having to do with the alarm email toggle


meta ​

defalarmEmailToggle
ismarker
liblib:finstack

supertypes ​

markerMarker labels a dict with typing information


def ​

appFormOn ​

Application Form Selector Tag


meta ​

defappFormOn
isstr
liblib:finstack

supertypes ​

valData value type
scalarScalar is an atomic value kind
strUnicode string of characters


def ​

axonTemplate ​

This is a sample axon query that can be used like a template


meta ​

defaxonTemplate
ismarker
liblib:finstack

supertypes ​

markerMarker labels a dict with typing information


def ​

baSuExec ​

BA Super User (Defined here because the BA connector does not support 5.0)


meta ​

defbaSuExec
ismarker
liblib:finstack

supertypes ​

markerMarker labels a dict with typing information


def ​

baseChart ​

Basic charting functions


meta ​

defbaseChart
ismarker
liblib:finstack

supertypes ​

markerMarker labels a dict with typing information


def ​

batchRecords ​

Indicates that the function will process multiple records


meta ​

defbatchRecords
ismarker
liblib:finstack

supertypes ​

markerMarker labels a dict with typing information


def ​

chart ​

Functions related to charting


meta ​

defchart
ismarker
liblib:finstack

supertypes ​

markerMarker labels a dict with typing information


def ​

chartOn ​

Chart Record Selector Tag


meta ​

defchartOn
isstr
liblib:finstack

supertypes ​

valData value type
scalarScalar is an atomic value kind
strUnicode string of characters


def ​

chartOnDownload ​


meta ​

defchartOnDownload
ismarker
liblib:finstack

supertypes ​

markerMarker labels a dict with typing information


def ​

chartTest ​


meta ​

defchartTest
ismarker
liblib:finstack

supertypes ​

markerMarker labels a dict with typing information


def ​

childData ​


meta ​

defchildData
ismarker
liblib:finstack

supertypes ​

markerMarker labels a dict with typing information


def ​

connDebug ​

Connector debugging functions


meta ​

defconnDebug
ismarker
liblib:finstack

supertypes ​

markerMarker labels a dict with typing information


def ​

connTrees ​

Related to dbAddEdit; specifies that the add/edit logic belongs to connector trees.


meta ​

defconnTrees
ismarker
liblib:finstack

supertypes ​

markerMarker labels a dict with typing information


def ​

construct ​

Defines a constructor for the function


meta ​

defconstruct
isstr
liblib:finstack

supertypes ​

valData value type
scalarScalar is an atomic value kind
strUnicode string of characters


def ​

contextSensitive ​

This is docs or video that are context Sensitive


meta ​

defcontextSensitive
ismarker
liblib:finstack

supertypes ​

markerMarker labels a dict with typing information


def ​

dbAddEdit ​

Marks a function that holds add/edit logic for DB Builder forms.


meta ​

defdbAddEdit
ismarker
liblib:finstack

supertypes ​

markerMarker labels a dict with typing information


def ​

dbToolCategory ​

Used to group forms together without affecting their folder path


meta ​

defdbToolCategory
isstr
liblib:finstack

supertypes ​

valData value type
scalarScalar is an atomic value kind
strUnicode string of characters


def ​

deleteTop ​


meta ​

defdeleteTop
ismarker
liblib:finstack

supertypes ​

markerMarker labels a dict with typing information


def ​

digTime ​

Related to digest time functions


meta ​

defdigTime
ismarker
liblib:finstack

supertypes ​

markerMarker labels a dict with typing information


def ​

editSum ​


meta ​

defeditSum
ismarker
liblib:finstack

supertypes ​

markerMarker labels a dict with typing information


def ​

example ​

Defines an example for the function


meta ​

defexample
isstr
liblib:finstack

supertypes ​

valData value type
scalarScalar is an atomic value kind
strUnicode string of characters


def ​

excludes ​


meta ​

defexcludes
isstr
liblib:finstack

supertypes ​

valData value type
scalarScalar is an atomic value kind
strUnicode string of characters


def ​

finActionCat ​

Indicates that the function will process fin actions


meta ​

deffinActionCat
ismarker
liblib:finstack

supertypes ​

markerMarker labels a dict with typing information


def ​

finAsset ​

Marks resources published from FIN Builder as asset files


meta ​

deffinAsset
ismarker
liblib:finstack

supertypes ​

markerMarker labels a dict with typing information


def ​

finBestPractice ​

This is either docs or videos that are best practices, typically videos


meta ​

deffinBestPractice
ismarker
liblib:finstack

supertypes ​

markerMarker labels a dict with typing information


def ​

finBucket ​

This tag means that the resource is a FIN Bucket resource


meta ​

deffinBucket
ismarker
liblib:finstack

supertypes ​

markerMarker labels a dict with typing information


def ​

finBuilder ​

This tag is used for content that is used in FIN Builder


meta ​

deffinBuilder
ismarker
liblib:finstack

supertypes ​

markerMarker labels a dict with typing information


def ​

finBuilderAction ​

This resource belongs to a FIN Builder Action


meta ​

deffinBuilderAction
ismarker
liblib:finstack

supertypes ​

markerMarker labels a dict with typing information


def ​

finBuilderComponent ​

This tag means that the resource is associated with a component


meta ​

deffinBuilderComponent
ismarker
liblib:finstack

supertypes ​

markerMarker labels a dict with typing information


def ​

finBuilderCustom ​

This tag means that the finp file is a custom graphic, IE.. It's not built with standard components in FIN Builder


meta ​

deffinBuilderCustom
ismarker
liblib:finstack

supertypes ​

markerMarker labels a dict with typing information


def ​

finBuilderMenu ​

Identifies functions that have elements for right-click menus in Graphics Builder.


meta ​

deffinBuilderMenu
ismarker
liblib:finstack

supertypes ​

markerMarker labels a dict with typing information


def ​

finCommonQuery ​

Identifies functions that return common queries to be used with folio.


meta ​

deffinCommonQuery
ismarker
liblib:finstack

supertypes ​

markerMarker labels a dict with typing information


def ​

finDocs ​

Tag that has a link to docs.finproducts.com


meta ​

deffinDocs
ismarker
liblib:finstack

supertypes ​

markerMarker labels a dict with typing information


def ​

finDocsPath ​

This is the path where you find the docs in docs.finproducts.com


meta ​

deffinDocsPath
ismarker
liblib:finstack

supertypes ​

markerMarker labels a dict with typing information


def ​

finExample ​

This tag is for an something that is an example, either for a video, or docs typically


meta ​

deffinExample
ismarker
liblib:finstack

supertypes ​

markerMarker labels a dict with typing information


def ​

finFile ​

Marker for Fin Builder published file resource, the actual file stored on disk


meta ​

deffinFile
ismarker
liblib:finstack

supertypes ​

markerMarker labels a dict with typing information


def ​

finFileUpload ​

Marker for Fin Builder uploaded files.


meta ​

deffinFileUpload
ismarker
liblib:finstack

supertypes ​

markerMarker labels a dict with typing information


def ​

finForm ​

Form Record Selector Tag


meta ​

deffinForm
ismarker
liblib:finstack

supertypes ​

markerMarker labels a dict with typing information


def ​

finIcon ​

Marker for Fin Builder published project icon file


meta ​

deffinIcon
ismarker
liblib:finstack

supertypes ​

markerMarker labels a dict with typing information


def ​

finKeyWords ​

A Comma Seperated string that we can add keywords too, so the user can search on this tag


meta ​

deffinKeyWords
ismarker
liblib:finstack

supertypes ​

markerMarker labels a dict with typing information


def ​

finMime ​

Marker for Fin Builder published file resource mime type


meta ​

deffinMime
ismarker
liblib:finstack

supertypes ​

markerMarker labels a dict with typing information


def ​

finModel ​

This asset is a FIN Model that can be opened in FIN BUilder


meta ​

deffinModel
ismarker
liblib:finstack

supertypes ​

markerMarker labels a dict with typing information


def ​

finModelFunc ​

Defines functions that returns FIN Models


meta ​

deffinModelFunc
ismarker
liblib:finstack

supertypes ​

markerMarker labels a dict with typing information


def ​

finNavTree ​

Indentifies a function as containing a root node for a DB Builder tree.


meta ​

deffinNavTree
ismarker
liblib:finstack

supertypes ​

markerMarker labels a dict with typing information


def ​

finPreviewImageRef ​

This is a ref to an image that will be previewed for what this is. IE.. A ThumbNail or etc...


meta ​

deffinPreviewImageRef
isref
liblib:finstack

supertypes ​

valData value type
scalarScalar is an atomic value kind
refReference to an entity


def ​

finProject ​

Marks resources published from FIN Builder as project files


meta ​

deffinProject
ismarker
liblib:finstack

supertypes ​

markerMarker labels a dict with typing information


def ​

finRemoteAsset ​

Defines functions that returns graphics remote assets


meta ​

deffinRemoteAsset
ismarker
liblib:finstack

supertypes ​

markerMarker labels a dict with typing information


def ​

finRemoteResource ​


meta ​

deffinRemoteResource
ismarker
liblib:finstack

supertypes ​

markerMarker labels a dict with typing information


def ​

finResource ​

Marks resources published from FIN Builder


meta ​

deffinResource
ismarker
liblib:finstack

supertypes ​

markerMarker labels a dict with typing information


def ​

finRuntime ​

Marks resources published from FIN Builder as runtime files (i.e. .flb, .swf)


meta ​

deffinRuntime
ismarker
liblib:finstack

supertypes ​

markerMarker labels a dict with typing information


def ​

finSavedChart ​


meta ​

deffinSavedChart
ismarker
liblib:finstack

supertypes ​

markerMarker labels a dict with typing information


def ​

finScreenshot ​

Marker for Fin Builder published project screen shot file


meta ​

deffinScreenshot
ismarker
liblib:finstack

supertypes ​

markerMarker labels a dict with typing information


def ​

finStack ​

This tag means the asset can be used in FIN|Framework


meta ​

deffinStack
ismarker
liblib:finstack

supertypes ​

markerMarker labels a dict with typing information


def ​

finStackMobileMenu ​


meta ​

deffinStackMobileMenu
ismarker
liblib:finstack

supertypes ​

markerMarker labels a dict with typing information


def ​

finString ​

Having to do with fin string related functions


meta ​

deffinString
ismarker
liblib:finstack

supertypes ​

markerMarker labels a dict with typing information


def ​

finTemplateFunc ​

Defines functions that returns FIN Templates


meta ​

deffinTemplateFunc
ismarker
liblib:finstack

supertypes ​

markerMarker labels a dict with typing information


def ​

finThumb ​

Marker for Fin Builder published project thumb file


meta ​

deffinThumb
ismarker
liblib:finstack

supertypes ​

markerMarker labels a dict with typing information


def ​

finTipsAndTricks ​

This is a resource for FIN Tips and Tricks


meta ​

deffinTipsAndTricks
ismarker
liblib:finstack

supertypes ​

markerMarker labels a dict with typing information


def ​

finUpdateRecords ​


meta ​

deffinUpdateRecords
ismarker
liblib:finstack

supertypes ​

markerMarker labels a dict with typing information


def ​

finUri ​

Marker for Fin Builder published resource Uri. This is computed at publishing time and constructs name spaces for each resource type.


meta ​

deffinUri
ismarker
liblib:finstack

supertypes ​

markerMarker labels a dict with typing information


def ​

finVideo ​

This tag means it's a video


meta ​

deffinVideo
ismarker
liblib:finstack

supertypes ​

markerMarker labels a dict with typing information


def ​

finVideoPath ​

This is the path that goes to youTube for the video


meta ​

deffinVideoPath
ismarker
liblib:finstack

supertypes ​

markerMarker labels a dict with typing information


def ​

finpFile ​

The asset is a finp file, that can be downloaded and opened in FIN Builder


meta ​

deffinpFile
ismarker
liblib:finstack

supertypes ​

markerMarker labels a dict with typing information


def ​

finpFileRef ​

This tag is a ref to the finp file


meta ​

deffinpFileRef
isref
liblib:finstack

supertypes ​

valData value type
scalarScalar is an atomic value kind
refReference to an entity


def ​

floorRef ​

A legacy deprecated floor reference. Prefer to use spaceRef.


meta ​

containedByfloor
deffloorRef
isref
liblib:finstack
offloor
tagOnfloor

supertypes ​

valData value type
scalarScalar is an atomic value kind
refReference to an entity


def ​

folderPath ​

Folder Path Tag


meta ​

deffolderPath
ismarker
liblib:finstack

supertypes ​

markerMarker labels a dict with typing information


def ​

foo ​

Useless


meta ​

deffoo
ismarker
liblib:finstack

supertypes ​

markerMarker labels a dict with typing information


def ​

formOn ​

Form Record Selector Tag


meta ​

defformOn
isstr
liblib:finstack

supertypes ​

valData value type
scalarScalar is an atomic value kind
strUnicode string of characters


def ​

func:arcs ​

arcs(src, dates: null) ​

Given a grid of source data, return the arcs and the arc summaries which are available for the source data.

Examples:

readAll(site).arcs        // using project default date span
readAll(site).arcs(today) // with explicit data span

meta ​

deffunc:arcs
isfunc
liblib:finstack
namearcs

supertypes ​

featureFeature namespace of definitions formatted as feature:name
funcAxon function


def ​

func:createFirstLevelOptional ​

createFirstLevelOptional(level) ​

Axon function


meta ​

deffunc:createFirstLevelOptional
isfunc
liblib:finstack
namecreateFirstLevelOptional

supertypes ​

featureFeature namespace of definitions formatted as feature:name
funcAxon function

src ​

(level) => do
  levels: read(navMeta).toRec->equipPath
  levels = levels.split("/")
  levels = levels.remove(0)
  childLevel: levels[levels.index(level) + 1]

  if(childLevel.startsWith("[") and childLevel.endsWith("]")) do
  childLevel = childLevel[1..-2]
  end

  if(level.startsWith("[") and level.endsWith("]")) do
  level = level[1..-2]
  end

  childLevelRef: childLevel + "Ref"
  levelName: "New " + level.capitalize
  levelRef: level + "Ref"
  d: {id: refGen(), "dis": levelName}
  d = d.set(level, marker())

  diff(null, d, {add}).commit

  e: {}
  e = e.set(levelRef, d->id)

  readAll(childLevelRef.parseFilter or childLevel.parseFilter).toRecList.map(r => diff(r, e)).commit
end


def ​

func:createOptionalLevel ​

createOptionalLevel(level, position: "") ​

Axon function


meta ​

deffunc:createOptionalLevel
isfunc
liblib:finstack
namecreateOptionalLevel

supertypes ​

featureFeature namespace of definitions formatted as feature:name
funcAxon function

src ​

(level, position: "") => do
  levelMarker: level
  if(level.startsWith("[") and level.endsWith("]")) do
  levelMarker = level[1..-2]
  end
  levelName: "New " + levelMarker.capitalize
  navMetaValue: modifyNavMetaOptional(level, position)

  if(navMetaValue == "yesLevel") do
  return level + " level exists"
  end
  else if(navMetaValue == "noPosition") do
  return position + " is invalid"
  end
  else do
  read(navMeta).toRecList.map(r => diff(r, {equipPath: navMetaValue})).commit

  if(position != "") do
    levels: navMetaValue.split("/")
    levels = levels.remove(0)
    parentLevels: []
    refs: {}

    levels[0..(levels.index(level) - 1)].each str => do
    if(str.startsWith("[") and str.endsWith("]")) do
      str = str[1..-2]
    end
    parentLevels = parentLevels.insert(0, str)
    end

    parentLevels.each str => do
    readAll(str.parseFilter).toRecList.each r => do
      if(refs.missing(r->id.toStr())) do
      refs = refs.set(r->id.toStr(), true)
      d: {id: refGen(),dis: levelName}
      d = d.set(levelMarker, marker())
      d = d.set(str + "Ref", r->id)

      parentLevels[parentLevels.index(str) + 1..-1].each str1 => do
        if(r.has(str1 + "Ref")) do
        refs = refs.set(r.get(str1 + "Ref").toStr(), true)
        d = d.set(str1 + "Ref", r.get(str1 + "Ref"))
        end
      end
      fltr : str + "Ref == @" + r->id
      readAll(fltr.parseFilter).toRecList.each r1 => do
        d1 : {}
        d1 = d1.set(levelMarker + "Ref", d->id)
        diff(r1, d1).commit
      end
      diff(null, d, {add}).commit
      end
    end
    end
  end
  else do
    createFirstLevelOptional(level)
  end

  return levelMarker + " was created successfully"
  end
end


def ​

func:finActionsRewrite ​

finActionsRewrite(filter, oldExprDict, newExprDict) ​

Rewrite actions that match the filter expression and the oldExprDict, dis and expr, fields with the new newExprDict, that contains new tags or overrides existing dis or expr tags, or removes tags

Users should call this like:

// all actions that have the dis and expr equal with the oldExprDict will get a new tag someTag finActionsRewrite(actions, {dis:"Manual Auto", expr: "pointAuto($self)"}, {someTag}) // all actions that have the dis and expr equal with the oldExprDict will get the tag someTag removed finActionsRewrite(actions, {dis:"Manual Auto", expr: "pointAuto($self)"}, {-someTag})


meta ​

constructfinActionsRewrite(actions, {dis:"Some dis", expr:"Some e...
deffunc:finActionsRewrite
examplefinActionsRewrite(actions, {dis:"Manual Auto", expr: "po...
isfunc
liblib:finstack
namefinActionsRewrite

supertypes ​

featureFeature namespace of definitions formatted as feature:name
funcAxon function


def ​

func:finAssetUsedBy ​

finAssetUsedBy(assets) ​

Given an asset or list of asset records or refs return a grid with fin project records that use those assets


meta ​

deffunc:finAssetUsedBy
isfunc
liblib:finstack
namefinAssetUsedBy

supertypes ​

featureFeature namespace of definitions formatted as feature:name
funcAxon function


def ​

func:finBacnetCurToWrite ​

finBacnetCurToWrite(recs, from: "bacnetCur", to: "bacnetWrite") ​

Finds all records from the grid or record list you passed as an argument, writes the value from the cur property to the write property and displays for every record of the argument the actions that took places


meta ​

deffunc:finBacnetCurToWrite
disBacnet Cur To Write
isfunc
liblib:finstack
namefinBacnetCurToWrite

supertypes ​

featureFeature namespace of definitions formatted as feature:name
funcAxon function

src ​

(recs, from : "bacnetCur", to : "bacnetWrite") => do
  recs = recs.toRecList()

  out : []
  tmp : null
  obj : {}

  recs.each r => do
    tmp = {id: r->id}
    if(r[from] == null) do
      tmp = tmp.set(from, from + " isn't set")

      if(r[to] ==  null) tmp = tmp.set(to, to + " isn't set")
      else tmp = tmp.set(to, r[to])
    end
    else do
      tmp = tmp.set(from, r[from])

      if(r[to] ==  null) tmp = tmp.set(to, to + " isn't set")
      else do
        tmp = tmp.set(to + "BeforeSet", r[to])
        obj = obj.set(to, r[from])
        r.diff(obj).commit
        tmp = tmp.set(to, r[from])
      end
    end
    out = out.add(tmp)
  end
  out
end


def ​

func:finBacnetWriteToCur ​

finBacnetWriteToCur(recs) ​

Finds all records from the grid or record list you passed as an argument, writes the value from the write property to the cur property and displays for every record of the argument the actions that took places


meta ​

deffunc:finBacnetWriteToCur
disBacnet Write To Cur
isfunc
liblib:finstack
namefinBacnetWriteToCur

supertypes ​

featureFeature namespace of definitions formatted as feature:name
funcAxon function

src ​

(recs) => do
  finBacnetCurToWrite(recs, "bacnetWrite", "bacnetCur")
end


def ​

func:finBeginDiscovery ​

finBeginDiscovery(connectorName, discoveryConfiguration: "") ​

Begins a Discovery session Returns the id of this discovery session. You can use this id to check real time results using the function finDiscoveryStatusCheck()

Example:

finBeginDiscovery("bacnet", "ver:\"2.0\" \n serialPort,baudRate,broadcastAddress,localAddress,instanceLow,instanceHi,networkNo,discoveryTimeout \n \"\",76800,\"255.255.255.255\",\"0.0.0.0\",0,4194303,65535,8")
finBeginDiscovery("bacnetMstp", "ver:\"2.0\" \n serialPort,baudRate,broadcastAddress,localAddress,instanceLow,instanceHi,networkNo,discoveryTimeout \n \"com1\",76800,\"FF\",\"00\",0,4194303,65535,8")

meta ​

deffunc:finBeginDiscovery
isfunc
liblib:finstack
namefinBeginDiscovery

supertypes ​

featureFeature namespace of definitions formatted as feature:name
funcAxon function


def ​

func:finCapsNeeded ​

finCapsNeeded(capCount, mult: Number.<ctor>(1), params: null) ​

This function, given the number of required CAPS, returns a grid with the licensing parts and how many parts are needed alog with the base to reach desired CAPS at the lowest price.

Has 3 parameters:

  • capCount: number of required CAPS
  • mult: multiplier number (optional)
  • params: a dictionary of parameters (optional)

meta ​

deffunc:finCapsNeeded
isfunc
liblib:finstack
namefinCapsNeeded

supertypes ​

featureFeature namespace of definitions formatted as feature:name
funcAxon function


def ​

func:finConnExts ​

finConnExts() ​


meta ​

deffunc:finConnExts
isfunc
liblib:finstack
namefinConnExts

supertypes ​

featureFeature namespace of definitions formatted as feature:name
funcAxon function


def ​

func:finCopyBoundPoints ​

finCopyBoundPoints(sourceExpr, targetExpr) ​


meta ​

deffunc:finCopyBoundPoints
isfunc
liblib:finstack
namefinCopyBoundPoints

supertypes ​

featureFeature namespace of definitions formatted as feature:name
funcAxon function


def ​

func:finCreateHaystackDb ​

finCreateHaystackDb(conns, startLearn: "sep:/", hisEnable: false, doImport: true, parent: null, rootLearn: "") ​

Takes a haystack connector ref or a list of haystack connector refs and using the navTree supplied imports the entities matching the navFiltering to the local server


meta ​

deffunc:finCreateHaystackDb
isfunc
liblib:finstack
namefinCreateHaystackDb

supertypes ​

featureFeature namespace of definitions formatted as feature:name
funcAxon function


def ​

func:finCreateTemplatePackage ​

finCreateTemplatePackage(finTemplates, meta) ​

Creates a template package to be published to StackHub

Accepts as parameters:

  • finTemplates:
    • An Urifor a folder in the `io/` folder under current project. for example: `io/templates/vendorName` To create an resource extension, one will need to create a file called podNameFuncs.trio (see the name tag in the meta Dict). Any trio file that's named fstTemplateNameTags.trio will be included in the templates section of this package and the tags added to the template record. If bacnetProperties.trio file is present, then it will be added to the package also.
    • A list of Refs ids to file records or Records of file tags pointing to FinStack Template files uploaded using the file upload method in the curent project
  • meta: a dictionary with properties that will identify the resulting packaged template Contains fields that are exported to the Pods meta.props file, like:
    • name
    • version
    • summary

Returns:

  • a Grid containing the id to the resulting template package

Examples:

finCreateTemplatePackage(`io/templates/acmeinc`, {name: "acmeTemplates", version: "1.0"})
finCreateTemplatePackage([@fst1, @fst2], {name: "ACME templates", version: "1.0"})
finCreateTemplatePackage(readAll(file and fst), {name: "acmeTemplates", version: "1.0"})

meta ​

deffunc:finCreateTemplatePackage
isfunc
liblib:finstack
namefinCreateTemplatePackage

supertypes ​

featureFeature namespace of definitions formatted as feature:name
funcAxon function


def ​

func:finCreateTemplatePackage2 ​

finCreateTemplatePackage2(finTemplates, meta) ​


meta ​

deffunc:finCreateTemplatePackage2
isfunc
liblib:finstack
namefinCreateTemplatePackage2

supertypes ​

featureFeature namespace of definitions formatted as feature:name
funcAxon function


def ​

func:finCurrentDayInfo ​

finCurrentDayInfo(time: SysLib.now(), tz: TimeZone.cur()) ​

Returns a grid with the columns

daysLeftMonth daysLeftYear hoursLeftDay hoursPastDay daysPastMonth daysPastYear


meta ​

constructfinCurrentDayInfo()
deffunc:finCurrentDayInfo
examplefinCurrentDayInfo(now() + 7, tz("New_York"))
isfunc
liblib:finstack
namefinCurrentDayInfo

supertypes ​

featureFeature namespace of definitions formatted as feature:name
funcAxon function


def ​

func:finDiscoveryAdd ​

finDiscoveryAdd(recordIds) ​

Add discovered item to system


meta ​

deffunc:finDiscoveryAdd
isfunc
liblib:finstack
namefinDiscoveryAdd

supertypes ​

featureFeature namespace of definitions formatted as feature:name
funcAxon function


def ​

func:finDiscoverySessionCleanup ​

finDiscoverySessionCleanup(discoveryId) ​

Destroy Discovery Session


meta ​

deffunc:finDiscoverySessionCleanup
isfunc
liblib:finstack
namefinDiscoverySessionCleanup

supertypes ​

featureFeature namespace of definitions formatted as feature:name
funcAxon function


def ​

func:finDiscoverySessionEnd ​

finDiscoverySessionEnd(discoveryId, error: null) ​

Close Discovery Session


meta ​

deffunc:finDiscoverySessionEnd
isfunc
liblib:finstack
namefinDiscoverySessionEnd

supertypes ​

featureFeature namespace of definitions formatted as feature:name
funcAxon function


def ​

func:finDiscoveryStatusCheck ​

finDiscoveryStatusCheck(discoveryId) ​

Get Discovery Status. Provide the discovery session id to get real time discovery results.


meta ​

deffunc:finDiscoveryStatusCheck
isfunc
liblib:finstack
namefinDiscoveryStatusCheck

supertypes ​

featureFeature namespace of definitions formatted as feature:name
funcAxon function


def ​

func:finElementOn ​

finElementOn(target, elementTag, queryRelated: false) ​

FIN Element On This method will find records compatible with the target element based off of the elementTag.

Example: read(equip).finElementOn("form")

This example will find all of the forms that are compatible with the equipment found in the "read()" function.

finElementOn(@target, "graphic", true) - This will find all of the graphics whose graphicsOn tag contains a filter that matches the target.

  • target This is the target element that will be used as a test to find compatible elements.
  • elementTag This is the element type tag. if "form" is passed, it will search for the filter to be in "formOn" on the form records
  • queryRelated If this is true, it will also match elements whose filter evaluates to true for any record referenced by the target.

meta ​

deffunc:finElementOn
isfunc
liblib:finstack
namefinElementOn

supertypes ​

featureFeature namespace of definitions formatted as feature:name
funcAxon function


def ​

func:finElementsOn ​

finElementsOn(targets, elementTag, queryRelated: false) ​

FIN Elements On This method will find records compatible with all of the target elements based off of the elementTag.

Example: read(equip).finElementOn("form")

This example will find all of the forms that are compatible with the equipment found in the "read()" function.

finElementOn(@target, "graphic", true) - This will find all of the graphics whose graphicsOn tag contains a filter that matches the target.

  • grid This is a list of the target elements that will be used as a test to find compatible elements.
  • elementTag This is the element type tag. if "form" is passed, it will search for the filter to be in "formOn" on the form records
  • queryRelated If this is true, it will also match elements whose filter evaluates to true for any record referenced by the target.

meta ​

deffunc:finElementsOn
isfunc
liblib:finstack
namefinElementsOn

supertypes ​

featureFeature namespace of definitions formatted as feature:name
funcAxon function


def ​

func:finEnergyAnnualMonthlyDayRollup ​

finEnergyAnnualMonthlyDayRollup(pRef, foldFc: null) ​

Given a point ID and a folding function (sum, avg, median, etc....) the result of the query will return a years worth of data, and it will create up to 31 columns of data. The columns will be Day 1, Day 2, Day 3, etc... The rows will be Jan, Feb, March, APril, May, June, etc....

It returns that exact formation please. If no folding function is specified, "sum" is used as default.

Has 2 parameters:

  • pRef: point reference
  • foldFc: a folding function (optional), default is "sum"

meta ​

deffunc:finEnergyAnnualMonthlyDayRollup
isfunc
liblib:finstack
namefinEnergyAnnualMonthlyDayRollup

supertypes ​

featureFeature namespace of definitions formatted as feature:name
funcAxon function


def ​

func:finEnergyAnnualMonthlyRollup ​

finEnergyAnnualMonthlyRollup(pRef, foldFc: null) ​

Given a point or list of points ID and a folding function (sum, avg, median, etc....), if the points have a history it would return a row for each point, and then have 12 months of columns in it, for the last year, folded using the given function. The columns will be point, jan, feb, mar, etc... The rows will be the points. Has 2 parameters: - pRef: point or list of point - foldFc: a folding function (optional), default is "avg"


meta ​

deffunc:finEnergyAnnualMonthlyRollup
isfunc
liblib:finstack
namefinEnergyAnnualMonthlyRollup

supertypes ​

featureFeature namespace of definitions formatted as feature:name
funcAxon function


def ​

func:finEnergyAnnualWkDayRollup ​

finEnergyAnnualWkDayRollup(pRef, foldFc: null) ​

Given a point ID and a folding function (sum, avg, median, etc....) the result of the query will return a years worth of data, and it will create up to 31 columns of data. The columns will be Day 1, Day 2, Day 3, etc... The rows will be Jan, Feb, March, APril, May, June, etc.... It returns that exact formation please. If no folding function is specified, "sum" is used as default. Has 2 parameters: - pRef: point reference - foldFc: a folding function (optional), default is "sum"


meta ​

deffunc:finEnergyAnnualWkDayRollup
isfunc
liblib:finstack
namefinEnergyAnnualWkDayRollup

supertypes ​

featureFeature namespace of definitions formatted as feature:name
funcAxon function


def ​

func:finEquipPointTagClone ​

finEquipPointTagClone(fromEquipRef, fromPointRefs, tags, toEquipFilter, copy: false) ​


meta ​

deffunc:finEquipPointTagClone
isfunc
liblib:finstack
namefinEquipPointTagClone

supertypes ​

featureFeature namespace of definitions formatted as feature:name
funcAxon function


def ​

func:finFileAndAssetDelete ​

finFileAndAssetDelete(projects) ​

Given a finProject or list of finProject records or refs the function will delete the finProject(s) and assets that are use only by this project. Returns a grid with all records that where deleted


meta ​

deffunc:finFileAndAssetDelete
isfunc
liblib:finstack
namefinFileAndAssetDelete

supertypes ​

featureFeature namespace of definitions formatted as feature:name
funcAxon function


def ​

func:finFiles ​

finFiles() ​

Return a list of fin files together with their respective screen shots, thumbs and icons.


meta ​

deffunc:finFiles
isfunc
liblib:finstack
namefinFiles

supertypes ​

featureFeature namespace of definitions formatted as feature:name
funcAxon function

src ​

() => do

p: readProjStatus()

readAll(finThumb).map r => do
  name:  r->name
  return {
    dis: r.toDis,
    finFileUri: p->siteUri + ("/api/" + p->projName + "/rec/" + name + "/finFile"),
    iconUri: p->siteUri + ("/api/" + p->projName + "/rec/" + name[0..-5] + "_fin/finIcon"),
    thumbUri: p->siteUri + ("/api/" + p->projName + "/rec/" + name[0..-5] + "_fin/finThumb"),
    screenUri: p->siteUri + ("/api/" + p->projName + "/rec/" + name[0..-5] + "_fin/finScreenshot"),
  }
 end
end


def ​

func:finFindRecordByChild ​

finFindRecordByChild(targetFilter, childFilter) ​

This function is just like finFindRecordByChildDeep except this one only searches 1 level deep, and is way more effecient. This function would let you search for let's say all AHUs that have zone temp sensors under them. And it will return the AHUs. parameter-1 is a filter, which is typically a equip , and paramter-2 is a filter for what typically would be a point


meta ​

constructfinFindRecordByChild(ahu and equip, zone and temp and ai...
deffunc:finFindRecordByChild
examplefinFindRecordByChild(ahu and equip, zone and temp and ai...
isfunc
liblib:finstack
namefinFindRecordByChild

supertypes ​

featureFeature namespace of definitions formatted as feature:name
funcAxon function


def ​

func:finFindRecordByChildDeep ​

finFindRecordByChildDeep(targetFilter, childFilter) ​

This function will let you search for children of something. IE... IF you are looking for equipment that have temp sensors under item than this function will return all the equipment that have temp sensors. The normal folio filter does not let you do this. This function finFindRecordByChildDeep is just like finFindRecordByChild, so if you are looking for things and you only want to get the children that are one level deep, than use finFindRecordByChild. finFindRecordByChildDeep is more expensive as it is looking for all the children under what you find. parameter-1 is a filter, which is typically a site or floor, and paramter-2 is a filter for what typically would be a point


meta ​

constructfinFindRecordByChildDeep(site and area, kw or temp)
deffunc:finFindRecordByChildDeep
examplefinFindRecordByChildDeep(site, (kw or water) and (point)...
isfunc
liblib:finstack
namefinFindRecordByChildDeep

supertypes ​

featureFeature namespace of definitions formatted as feature:name
funcAxon function


def ​

func:finFixOldBinTags ​

finFixOldBinTags() ​


meta ​

deffunc:finFixOldBinTags
isfunc
liblib:finstack
namefinFixOldBinTags

supertypes ​

featureFeature namespace of definitions formatted as feature:name
funcAxon function


def ​

func:finFoldGrid ​

finFoldGrid(grd, foldFc: null, ops: {}) ​


meta ​

deffunc:finFoldGrid
isfunc
liblib:finstack
namefinFoldGrid

supertypes ​

featureFeature namespace of definitions formatted as feature:name
funcAxon function


def ​

func:finFreqFilters ​

finFreqFilters() ​

This function is used for the filter ui that shally made. It is a short cut for filters that people use frequently. The tag call freqFilters will also be able to be extended.


meta ​

deffunc:finFreqFilters
isfunc
liblib:finstack
namefinFreqFilters

supertypes ​

featureFeature namespace of definitions formatted as feature:name
funcAxon function

src ​

() => do
[
{dis:"Find all Points",filter:"point",finFreqFilters},
{dis:"Find all Equips",filter:"equip",finFreqFilters},
{dis:"Find all Sites",filter:"site",finFreqFilters},
{dis:"Find all History Points",filter:"his and hisEndVal>1",finFreqFilters},
{dis:"Find all Numeric Points",filter:"point and kind==\"Number\"",finFreqFilters},
{dis:"Find all Boolean Points",filter:"point and kind==\"Bool\"",finFreqFilters},
{dis:"Find all Enum Points",filter:"point and kind==\"Str and enum\"",finFreqFilters},
{dis:"Find all Commandable Numeric Points",filter:"point and writable and actions and kind==\"Number\"",finFreqFilters},
{dis:"Find all Commandable Boolean Points",filter:"point and writable and actions and kind==\"Bool\"",finFreqFilters}
]
end


def ​

func:finFuncs ​

finFuncs() ​

FIN Funcs This method merges the result of the funcs() query with extra data within the finFuncs.trio file to support FIN|Stack's code editor

Example: finFuncs()


meta ​

deffunc:finFuncs
isfunc
liblib:finstack
namefinFuncs

supertypes ​

featureFeature namespace of definitions formatted as feature:name
funcAxon function


def ​

func:finGetCaps ​

finGetCaps() ​

This function returns a grid with the licensing parts and their prices.


meta ​

deffunc:finGetCaps
isfunc
liblib:finstack
namefinGetCaps

supertypes ​

featureFeature namespace of definitions formatted as feature:name
funcAxon function


def ​

func:finGetConnectorTagSpecs ​

finGetConnectorTagSpecs(extName) ​

Returns a Grid with the tag specs defined for an enabled connector.


meta ​

deffunc:finGetConnectorTagSpecs
isfunc
liblib:finstack
namefinGetConnectorTagSpecs

supertypes ​

featureFeature namespace of definitions formatted as feature:name
funcAxon function


def ​

func:finGetCurrentUser ​

finGetCurrentUser() ​


meta ​

deffunc:finGetCurrentUser
isfunc
liblib:finstack
namefinGetCurrentUser

supertypes ​

featureFeature namespace of definitions formatted as feature:name
funcAxon function


def ​

func:finGetDiscoveryConfiguration ​

finGetDiscoveryConfiguration(connectorName) ​

Get Discovery Configuration


meta ​

deffunc:finGetDiscoveryConfiguration
isfunc
liblib:finstack
namefinGetDiscoveryConfiguration

supertypes ​

featureFeature namespace of definitions formatted as feature:name
funcAxon function


def ​

func:finGetHelp ​

finGetHelp(appNames, targetRefs: null) ​


meta ​

deffunc:finGetHelp
isfunc
liblib:finstack
namefinGetHelp

supertypes ​

featureFeature namespace of definitions formatted as feature:name
funcAxon function


def ​

func:finHaystackDrillDown ​

finHaystackDrillDown(conns, startLearn: "sep:/", hisEnable: false, rootLearn: "") ​

Takes a connector ref or a list of haystack connector refs and using the navTree supplied queries all the nav paths on each connector and creates an grid with all the entities that match the path.


meta ​

deffunc:finHaystackDrillDown
isfunc
liblib:finstack
namefinHaystackDrillDown

supertypes ​

featureFeature namespace of definitions formatted as feature:name
funcAxon function


def ​

func:finHaystackExcludedTags ​

finHaystackExcludedTags() ​

Returns a grid of tags to be excluded when working with records coming from haystack or nhaystack connectors


meta ​

deffunc:finHaystackExcludedTags
isfunc
liblib:finstack
namefinHaystackExcludedTags

supertypes ​

featureFeature namespace of definitions formatted as feature:name
funcAxon function


def ​

func:finHaystackLearn ​

finHaystackLearn(conn, learnPath: null, opts: [:]) ​

Improves haystackLearn so that it fetches all the tags defined for a learn path


meta ​

deffunc:finHaystackLearn
isfunc
liblib:finstack
namefinHaystackLearn

supertypes ​

featureFeature namespace of definitions formatted as feature:name
funcAxon function


def ​

func:finHttpProxy ​

finHttpProxy(url, method: "GET", headers: null, params: null) ​


meta ​

deffunc:finHttpProxy
isfunc
liblib:finstack
namefinHttpProxy

supertypes ​

featureFeature namespace of definitions formatted as feature:name
funcAxon function


def ​

func:finNavDrillDown ​

finNavDrillDown(start, navTree: "equip", includeConns: false) ​

Gets all the children of the parent id or parent id list that matches the supplied navTree start - a ref or list of refs or a rec or list of records


meta ​

deffunc:finNavDrillDown
isfunc
liblib:finstack
namefinNavDrillDown

supertypes ​

featureFeature namespace of definitions formatted as feature:name
funcAxon function


def ​

func:finNavDuplicate ​

finNavDuplicate(treeName, src, opts) ​

Duplicates a record using the nav tree specified by treeName This functions uses the built-in proj::SysLib.navDuplicate function with the important add-on of also duplication the children of the src record that have the same nav level as the source, i.e. sub-equips


meta ​

deffunc:finNavDuplicate
isfunc
liblib:finstack
namefinNavDuplicate

supertypes ​

featureFeature namespace of definitions formatted as feature:name
funcAxon function


def ​

func:finNavLevels ​

finNavLevels(treeName, base: null, opts: null) ​

Enhance navLevels


meta ​

deffunc:finNavLevels
isfunc
liblib:finstack
namefinNavLevels

supertypes ​

featureFeature namespace of definitions formatted as feature:name
funcAxon function

src ​

(treeName, base: null, opts: null) => do

  navs: navLevels(treeName, base, opts).addMeta({"projName": "demo"}) // TODO: Retrieve Project Name

  // This may be able to be done faster by reading all items into memory at once then mapping them over.
  // TODO: Test performance of all possible methods and select the fastest
  navs.map(nav => do
    item: readById(nav->id)
    nav.merge(item)
  end)

end


def ​

func:finNavMain ​

finNavMain(targets, dates: null) ​


meta ​

deffunc:finNavMain
isfunc
liblib:finstack
namefinNavMain

supertypes ​

featureFeature namespace of definitions formatted as feature:name
funcAxon function


def ​

func:finNavMerge ​

finNavMerge(sourceRef, targetRef, treeName: "equip", moveTarget: true) ​


meta ​

deffunc:finNavMerge
isfunc
liblib:finstack
namefinNavMerge

supertypes ​

featureFeature namespace of definitions formatted as feature:name
funcAxon function


def ​

func:finNavMeta ​

finNavMeta(level, position: "") ​

Adding a Level: If you want to add a top level, just enter your parameter level you would like to add. ex: finNavMeta("region") - This will create a region level above the highest level you have.

If you want to add a level between other levels, then you will need two parameters. The first one is what you want to add. The second is under which level you want to add it under. ex: finNavMeta("wing","site") - This will create a wing level under the site level.

Adding an Optional Level: If want an optional level, then you will need two parameters. The first one is what you want to add (in square brackets). The second is under which level you want to add it under. ex: finNavMeta("[branch]","region")

Removing a Level: If you want to remove a level, simply add the "-" before whichever level it is you want to remove. ex: finNavMeta("-[branch]") or finNavMeta("-branch")


meta ​

deffunc:finNavMeta
isfunc
liblib:finstack
namefinNavMeta

supertypes ​

featureFeature namespace of definitions formatted as feature:name
funcAxon function

src ​

(level, position: "") => do
  if(level != "" and level[0..0] == "-") do

  if(level == "-") do
    level = ""
  end
  else if(level[1..1] != "[") do
    level = level[1..-1]
  end
  else do
    level = level[2..-2]
  end

  navMetaValue: read(navMeta).toRec->equipPath
  navMetaValue1: navMetaValue + "/"

  if((level != "") and (navMetaValue1.contains("/" + level + "/") or navMetaValue1.contains("/[" + level + "]/"))) do
    if(navMetaValue1.contains("/" + level + "/")) do
    navMetaValue = navMetaValue.replace("/" + level, "")
    end
    else do
    navMetaValue = navMetaValue.replace("/[" + level  +"]", "")
    end

    read(navMeta).toRec.diff({equipPath: navMetaValue}).commit

    levelRef: level + "Ref"
    d: {}
    d = d.set(levelRef, removeMarker())
    readAll(level.parseFilter).toRecList.map(r => diff(r, {trash})).commit
    readAll(levelRef.parseFilter).toRecList.map(r => diff(r, d)).commit

    return level + " was successfully removed"
  end
  else do
    return level + " level doesn't exit and can't be removed"
  end
  end
  else do
  createOptionalLevel(level, position)
  end
end


def ​

func:finNavMetaTagList ​

finNavMetaTagList(target, ops: {}) ​

Given an record that is part of the equipPath Posible ops are {"drillDown":false, "values":true, "getRef":true} If drillDown is present: Find all unique tags that are used by the record and all it's nav children. Else finds all unique tags that are used by the record and all it's nav parents. If "drillDown" is not present but "values" is then the resulted grid includes the values for those tags also.


meta ​

deffunc:finNavMetaTagList
isfunc
liblib:finstack
namefinNavMetaTagList

supertypes ​

featureFeature namespace of definitions formatted as feature:name
funcAxon function


def ​

func:finNavNavlets ​

finNavNavlets(target, dates: null) ​


meta ​

deffunc:finNavNavlets
isfunc
liblib:finstack
namefinNavNavlets

supertypes ​

featureFeature namespace of definitions formatted as feature:name
funcAxon function


def ​

func:finNavRollup ​

finNavRollup(grid) ​


meta ​

deffunc:finNavRollup
isfunc
liblib:finstack
namefinNavRollup

supertypes ​

featureFeature namespace of definitions formatted as feature:name
funcAxon function


def ​

func:finNavletsOn ​

finNavletsOn(target) ​


meta ​

deffunc:finNavletsOn
isfunc
liblib:finstack
namefinNavletsOn

supertypes ​

featureFeature namespace of definitions formatted as feature:name
funcAxon function


def ​

func:finNoteSummary ​

finNoteSummary(notes) ​


meta ​

constructreadAll(note).finNoteSummary
deffunc:finNoteSummary
examplereadAll(note).finNoteSummary
isfunc
liblib:finstack
namefinNoteSummary

supertypes ​

featureFeature namespace of definitions formatted as feature:name
funcAxon function


def ​

func:finPaginate ​

finPaginate(target, pageNumber: Number.<ctor>(1), itemsPerPage: Number.<ctor>(25)) ​

FIN|Stack Paginate This method will paginate the data of the grid passed to it.

  • target This is the target Grid to be paginated.
  • pageNumber This is the page number requested. (Optional, defaults to 1)
  • itemsPerPage This is the number of items per page (Optional, defaults to 25)

Example: readAll(point).finPaginate(1, 25)

The resulting grid will contain 5 metadata tags

  • paginated is a marker that defines this grid as being a paginated grid
  • currentPage is the current page number of the result (requested)
  • itemsPerPage is the requested items per page.
  • totalItems is the total number of items in the target grid.
  • totalPages is the total number of available pages

The resulting grid will also contain the original metadata tags defined by the target.

@return This method returns a paginated grid which is a subset of the target grid.


meta ​

deffunc:finPaginate
isfunc
liblib:finstack
namefinPaginate

supertypes ​

featureFeature namespace of definitions formatted as feature:name
funcAxon function


def ​

func:finParseFilter ​

finParseFilter(filter) ​

Decode a filter expression into a grid of operands


meta ​

deffunc:finParseFilter
isfunc
liblib:finstack
namefinParseFilter

supertypes ​

featureFeature namespace of definitions formatted as feature:name
funcAxon function


def ​

func:finPointSummary ​

finPointSummary(target, equipExpr: null, pointExpr: null) ​

Generate a point summary by equip:

  • target is id, dict, list of id, list of dicts which determines base to use for <navFilter>. If null, then entire proj is queried.
  • equipFilter: filter for equip or null for all equip under target
  • pointFilter: filter for points or null for all points under equip

Return a table where ever row represents an equipment, and columns represent key tags on the points. The following cols are used:

  • id: equip id and dis
  • idX: point id and dis
  • curValX: curVal tag of each point
  • curDisX: display string for curVal for each point
  • curStatusX: curStatus tag of each point

The column's are grouped and use dis tag based on the navName of each point. The grid.meta defined numPoints to determine the number of point columns.

Examples:

finPointSummary(read(site))
finPointSummary(null, ahu)
finPointSummary(null, ahu, discharge and temp)

meta ​

deffunc:finPointSummary
isfunc
liblib:finstack
namefinPointSummary

supertypes ​

featureFeature namespace of definitions formatted as feature:name
funcAxon function


def ​

func:finPointSummary2 ​

finPointSummary2(equip, normalizeNames: false) ​

Function to read points that have pointSummaryRef pointing to the specified equipment. If normalizeNames is set to true then the equipment name would be stripped from the point's dis for points having the equipRef pointing to the equipment.


meta ​

deffunc:finPointSummary2
isfunc
liblib:finstack
namefinPointSummary2

supertypes ​

featureFeature namespace of definitions formatted as feature:name
funcAxon function

src ​

/**
** Function to read points that have pointSummaryRef pointing to the specified equipment.
** If normalizeNames is set to true then the equipment name would be stripped
** from the point's dis for points having the equipRef pointing to the equipment.
**/
(equip, normalizeNames:false) =>
do
  g:readAll(point and pointSummaryRef == equip->id, false)

  if(g == null)
    return null

  // strip the equipment name from points belonging to the equipment
  if(normalizeNames == true) do
    g = g.map((r)=> do
      if(r->equipRef == equip->id)
        set(r, "dis", r->dis.replace(r->equipRef->dis, ""))
      else
        r
    end)
  end

  return g
end


def ​

func:finPublishTemplatePackage ​

finPublishTemplatePackage(pod, username, password, live: false) ​

Upload a template package to Stack Hub

Accepts as parameters:

  • pod: a String or Dict or Uri to the pod name, like `mytemplate.pod`. The Dict parameter must have an Uri tag called templatePod
  • username: the Stack Hub username
  • password: the Stack Hub password
  • live: publish to live account or the sand-box Stack Hub sites. Default is sand-box.

Examples:

finCreateTemplatePackage(`io/templates/acmeinc`, {name: "acmeTemplates", version: "1.0"}).finPublishTemplatePackage("user", "passwd")
finPublishTemplatePackage(`mytemplate.pod`, "user", "passwd")

meta ​

deffunc:finPublishTemplatePackage
isfunc
liblib:finstack
namefinPublishTemplatePackage

supertypes ​

featureFeature namespace of definitions formatted as feature:name
funcAxon function


def ​

func:finRebuildDocs ​

finRebuildDocs() ​

Rebuilds the documentation using the FINStack style


meta ​

deffunc:finRebuildDocs
isfunc
liblib:finstack
namefinRebuildDocs

supertypes ​

featureFeature namespace of definitions formatted as feature:name
funcAxon function


def ​

func:finRebuildNavTree ​

finRebuildNavTree(navLevel, parentId: Ref.nullRef, navTreeName: "equip") ​

Rebuild a nav tree by ensuring that parent refs to and from the specified navLevel are bound to parents and children respectively An optional parent ref id can be supplied so that the rebuild is limited to the branch starting from that specific parent ref id.


meta ​

deffunc:finRebuildNavTree
isfunc
liblib:finstack
namefinRebuildNavTree

supertypes ​

featureFeature namespace of definitions formatted as feature:name
funcAxon function


def ​

func:finRecordTagClone ​

finRecordTagClone(fromRef, toFilter, tags) ​


meta ​

deffunc:finRecordTagClone
isfunc
liblib:finstack
namefinRecordTagClone

supertypes ​

featureFeature namespace of definitions formatted as feature:name
funcAxon function


def ​

func:finRemoveCategory ​

finRemoveCategory(category) ​

Removes a category or a list of categories from all actions and user records

Users should call this like: // remove category foo_finCat finRemoveCategory("foo_finCat") // remove a list of categories finRemoveCategory(["foo_finCat", "bar_finCat"])


meta ​

constructfinRemoveCategory()
deffunc:finRemoveCategory
examplefinRemoveCategory("some_finCat")
isfunc
liblib:finstack
namefinRemoveCategory

supertypes ​

featureFeature namespace of definitions formatted as feature:name
funcAxon function


def ​

func:finRewriteHisTz ​

finRewriteHisTz(id: null, tz: null) ​

Axon function


meta ​

deffunc:finRewriteHisTz
isfunc
liblib:finstack
namefinRewriteHisTz

supertypes ​

featureFeature namespace of definitions formatted as feature:name
funcAxon function

src ​

(id: null, tz: null) => do
  points: [] //{id, tz}

  genFilter: rec => do //generates a filter for all points under this site/floor/equip
    if(rec.has("point")) return "id==@" + rec->id
    filt: "point and " + finNavMetaWhoAmI(rec) + "Ref==@" + rec->id
  end

  //fill points list with all points to fix and what the tz's are
  if(id == null and tz == null) do //each site with site's tz
    readAll(site).each s=> do
      tzval: s["tz"]
      if(tzval == null) tzval = now().tz
      readAll(point and siteRef==s->id).each p=> do
        points = points.add({id: p->id, tz: tzval})
      end
    end
  end else if(id == null) do //each site with specific tz
    readAll(site).each s=> do
      readAll(point and siteRef==s->id).each p=> do
        points = points.add({id: p->id, tz: tz})
      end
    end
  end else if(tz == null) do //site with site's tz
    s: readById(id)
    tzval: s["tz"]
    if(tzval == null) tzval = now().tz
    readAll(parseFilter(genFilter(s))).each p=> do
      points = points.add({id: p->id, tz: tzval})
    end
  end else do //site with specific tz
    s: readById(id)
    readAll(parseFilter(genFilter(s))).each p=> do
      points = points.add({id: p->id, tz: tz})
    end
  end

  eval("jobRun(finRewriteHisTzCommit("+ points.toAxonCode +"))")

  //add stuff to change the timezone of the floors and equips and stuff
end
/*
(null, null)          go through each site and update the stuff based on site's tz
(null, Los_Angeles)   go through each site and update the stuff based on specified tz
(@site, null)         go through site and update the stuff based on site's tz
(@site, Los_Angeles)  go through site and update the stuff based on specified tz
*/


def ​

func:finRewriteHisTzCommit ​

finRewriteHisTzCommit(points) ​

Axon function


meta ​

deffunc:finRewriteHisTzCommit
isfunc
liblib:finstack
namefinRewriteHisTzCommit

supertypes ​

featureFeature namespace of definitions formatted as feature:name
funcAxon function

src ​

(points) => do
  percent: 100 / points.size
  jobmsg: " of " + points.size

  nowVal: now()
  hisReadFunc: hp=> hp.hisRead(nowVal)

  points.each() (p, i)=> do
    jobProgress(i * percent, (i + 1) + jobmsg) //update percent
    pt: readById(p->id)

    if(pt.has("his") and not pt.has("hisFunc")) do //fix the his also
      isBroken: try do pt.hisReadFunc; false end catch true //check if the his needs fixing
      continue: true
      if(pt["tz"] != p->tz or isBroken) do //only fix if it's broken
        (1..100).eachWhile q=> do //try to fix the his 100 times max

          try do
            pt.hisRewrite((val, ts)=> [ts.toTimeZone(p->tz), val])
            readById(p->id).diff({tz: p->tz}).commit
            continue = true
          end catch(e) do
            stat: reGroups(r"tz config ([\S]+) != ([\S]+)", e->dis)
            if(stat == null) continue = false //unknown error, stop trying
            else do
              pt.diff({tz: stat[2]}).commit //set it to what the his is
              pt = readById(p->id) //refresh point
              continue = null //keep trying
            end
          end

          if(continue == false or q == 100) logWarn("finRewriteHisTz", "Point "+ pt.dis +" (@"+ p->id +") timezone change failed")
          continue
        end
      end
    end

    else pt.diff({tz: p->tz}).commit //no his, just change tz
  end
end
/*
//rewrite his to york, fail york != regina
//change point to regina
//rewrite his to york, fail regina != berlin
//change point to berlin
//rewrite his to york, success
//change point to york
*/


def ​

func:finScheduleCopyDays ​

finScheduleCopyDays(schedRefs, srcDay, dstDay) ​

Change a weekly schedule (or list of weekly schedules) by copying parts of it to other week days

Examples:

// copy events from Monday to Tuesday finScheduleCopyDays(@schedRef, "mon", "tue") // copy events from Monday to all work days finScheduleCopyDays(@schedRef, "mon", "workWeek") // copy events from Monday to all week days finScheduleCopyDays(@schedRef, "mon", "everyDay") // using a list of schedule records, for each one, copy events from Monday to all work days finScheduleCopyDays([@schedRef1, @schedRef2], "mon", "workWeek")


meta ​

constructfinScheduleCopyDays(id, srcDay, dstDay)
deffunc:finScheduleCopyDays
examplefinScheduleCopyDays(id, "mon", "tue")
isfunc
liblib:finstack
namefinScheduleCopyDays

supertypes ​

featureFeature namespace of definitions formatted as feature:name
funcAxon function


def ​

func:finShowPointsInWatch ​

finShowPointsInWatch(watchId) ​

List all records registered for a watch id


meta ​

deffunc:finShowPointsInWatch
isfunc
liblib:finstack
namefinShowPointsInWatch

supertypes ​

featureFeature namespace of definitions formatted as feature:name
funcAxon function


def ​

func:finShowWatches ​

finShowWatches() ​

List all watches open for this project


meta ​

deffunc:finShowWatches
isfunc
liblib:finstack
namefinShowWatches

supertypes ​

featureFeature namespace of definitions formatted as feature:name
funcAxon function


def ​

func:finStackBootStrap ​

finStackBootStrap() ​


meta ​

deffunc:finStackBootStrap
isfunc
liblib:finstack
namefinStackBootStrap

supertypes ​

featureFeature namespace of definitions formatted as feature:name
funcAxon function


def ​

func:finSub ​

finSub(expr) ​

Evaluate the given expression. If the expression results in a Dict or a Grid of records with an id tag, then add to them to the watch for the current evalAll. Must call finSubStart() first.


meta ​

deffunc:finSub
isfunc
liblib:finstack
namefinSub

supertypes ​

featureFeature namespace of definitions formatted as feature:name
funcAxon function


def ​

func:finSubEnd ​

finSubEnd() ​

Last call of an evalAll for subscription. This returns an empty grid with the meta tag finSubWatch which contains the watch id of the current watch subscription.


meta ​

deffunc:finSubEnd
isfunc
liblib:finstack
namefinSubEnd

supertypes ​

featureFeature namespace of definitions formatted as feature:name
funcAxon function


def ​

func:finSubStart ​

finSubStart(graphicName, watchId: null) ​

Open a new watch as part of an evalAll. The graphicName parameter should be the debug string for the watch. If watchId is null then a new watch is created, otherwise it must reference an existing watch.


meta ​

deffunc:finSubStart
isfunc
liblib:finstack
namefinSubStart

supertypes ​

featureFeature namespace of definitions formatted as feature:name
funcAxon function


def ​

func:finSyncTags ​

finSyncTags(source, tags, createIfNotExist: false, treeName: "equip") ​

FIN Synchronize Tags This method will recursively synchronize the tag values from the source onto all of the children down the given tree

Example:

finSyncTags(@SiteId, ["tz"])

This example will update the tz tag on all of the children down the tree. It will not create the tz tag if it does not exist on an item

finSyncTags(@SiteId, ["tz"], true) - This will update and/or create the tz tag on every item down the equip tree.
  • source This is the Ref to the source where the tag of interest exists. This is also the starting point in the tree that will be traversed.
  • tags This is a list of tags that will be copied from the source onto the descendants in the tree.
  • createIfNotExist If this is true, it will create the tags of interet on the descendants if they do not exist
  • treeName This is the name of the tree that we shall traverse and update

meta ​

constructfinSyncTags(source, ["tag1", "tag2"])
deffunc:finSyncTags
examplefinSyncTags(source, [])
isfunc
liblib:finstack
namefinSyncTags

supertypes ​

featureFeature namespace of definitions formatted as feature:name
funcAxon function


def ​

func:finTemplateCopy ​

finTemplateCopy(source, basePath, targets, returnCloneIds: false) ​


meta ​

deffunc:finTemplateCopy
isfunc
liblib:finstack
namefinTemplateCopy

supertypes ​

featureFeature namespace of definitions formatted as feature:name
funcAxon function


def ​

func:finUniqueActions ​

finUniqueActions(filter: null, includeRefs: false) ​

Find all actions that have the same dis and expr tags Returns a grid with dis, expr, count rows to show how many similar actions were found. An optional filter expression can be provided which can narrow the search area that defaults to all actions.

Examples:

// returns all unique actions finUniqueActions() // returns unique actions for sensor finUniqueActions(sensor)


meta ​

constructfinUniqueActions()
deffunc:finUniqueActions
examplefinUniqueActions(sensor)
isfunc
liblib:finstack
namefinUniqueActions

supertypes ​

featureFeature namespace of definitions formatted as feature:name
funcAxon function


def ​

func:finUniqueTags ​

finUniqueTags(filter: Literal.<ctor>("equip")) ​

finUniqueTags

  • returns a grid with all markers that are shared by records matching the filter and their match count

meta ​

constructfinUniqueTags()
deffunc:finUniqueTags
examplefinUniqueTags(equip)
isfunc
liblib:finstack
namefinUniqueTags

supertypes ​

featureFeature namespace of definitions formatted as feature:name
funcAxon function


def ​

func:finUriToDict ​

finUriToDict(uri) ​


meta ​

deffunc:finUriToDict
isfunc
liblib:finstack
namefinUriToDict

supertypes ​

featureFeature namespace of definitions formatted as feature:name
funcAxon function


def ​

func:finhaystackDeviceDiscovery ​

finhaystackDeviceDiscovery(ref, config) ​


meta ​

deffunc:finhaystackDeviceDiscovery
isfunc
liblib:finstack
namefinhaystackDeviceDiscovery

supertypes ​

featureFeature namespace of definitions formatted as feature:name
funcAxon function


def ​

func:finhaystackDeviceDiscoveryConfig ​

finhaystackDeviceDiscoveryConfig() ​


meta ​

deffunc:finhaystackDeviceDiscoveryConfig
isfunc
liblib:finstack
namefinhaystackDeviceDiscoveryConfig

supertypes ​

featureFeature namespace of definitions formatted as feature:name
funcAxon function


def ​

func:finsedonaDeviceDiscovery ​

finsedonaDeviceDiscovery(ref, config) ​


meta ​

deffunc:finsedonaDeviceDiscovery
isfunc
liblib:finstack
namefinsedonaDeviceDiscovery

supertypes ​

featureFeature namespace of definitions formatted as feature:name
funcAxon function


def ​

func:finsedonaDeviceDiscoveryConfig ​

finsedonaDeviceDiscoveryConfig() ​


meta ​

deffunc:finsedonaDeviceDiscoveryConfig
isfunc
liblib:finstack
namefinsedonaDeviceDiscoveryConfig

supertypes ​

featureFeature namespace of definitions formatted as feature:name
funcAxon function


def ​

func:modifyNavMetaOptional ​

modifyNavMetaOptional(level, position: "") ​

Axon function


meta ​

deffunc:modifyNavMetaOptional
isfunc
liblib:finstack
namemodifyNavMetaOptional

supertypes ​

featureFeature namespace of definitions formatted as feature:name
funcAxon function

src ​

(level, position: "") => do
  level1 : level

  if(position != "" and position.startsWith("[") and position.endsWith("]")) do
  position = position[1..-2]
  end

  if(level1.startsWith("[") and level1.endsWith("]")) do
  level1 = level1[1..-2]
  end

  navMetaValue: read(navMeta).toRec.get("equipPath")
  navMetaValue1: "/" + navMetaValue + "/"

  if(navMetaValue1.contains("/" + level1 + "/") or navMetaValue1.contains("/[" + level1 + "]/")) do
  return "yesLevel"
  end
  else if(not (navMetaValue1.contains("/" + position + "/") or navMetaValue1.contains("/[" + position + "]/"))) do
  return {"noPosition", value: position, navMeta: navMetaValue1}
  end
  else do
  if(position == "") do
    navMetaValue = "/" + level + navMetaValue
      return navMetaValue
    end
  else do
    if(navMetaValue1.contains("/[" + position + "]/")) do
    navMetaValue = navMetaValue.replace("[" + position + "]", "[" + position + "]" + "/" + level)
    return navMetaValue
    end
    else do
    navMetaValue = navMetaValue.replace(position, position + "/" + level)
    return navMetaValue
    end
  end
  end
end


def ​

globalCont ​

Defines usage in Global Control


meta ​

defglobalCont
ismarker
liblib:finstack

supertypes ​

markerMarker labels a dict with typing information


def ​

helpDoc ​

Path to help documentation


meta ​

defhelpDoc
isstr
liblib:finstack

supertypes ​

valData value type
scalarScalar is an atomic value kind
strUnicode string of characters


def ​

hideFromMobileDB ​

Hide from database builder


meta ​

defhideFromMobileDB
ismarker
liblib:finstack

supertypes ​

markerMarker labels a dict with typing information


def ​

hideMobile ​

Used to hide forms in mobile


meta ​

defhideMobile
ismarker
liblib:finstack

supertypes ​

markerMarker labels a dict with typing information


def ​

noDoc ​

Documentation Ignore Tag


meta ​

defnoDoc
ismarker
liblib:finstack

supertypes ​

markerMarker labels a dict with typing information


def ​

obsolete ​

Marks a function as obsolete and that it needs to be reviewed before removal.


meta ​

defobsolete
ismarker
liblib:finstack

supertypes ​

markerMarker labels a dict with typing information


def ​

polyStats ​


meta ​

defpolyStats
ismarker
liblib:finstack

supertypes ​

markerMarker labels a dict with typing information


def ​

poo ​

Useless


meta ​

defpoo
ismarker
liblib:finstack

supertypes ​

markerMarker labels a dict with typing information


def ​

private ​

Marks the function as private


meta ​

defprivate
ismarker
liblib:finstack

supertypes ​

markerMarker labels a dict with typing information


def ​

queryString ​


meta ​

defqueryString
isstr
liblib:finstack

supertypes ​

valData value type
scalarScalar is an atomic value kind
strUnicode string of characters


def ​

relationshipFunc ​

Indentifies functions that hold pre-configured relationships.


meta ​

defrelationshipFunc
ismarker
liblib:finstack

supertypes ​

markerMarker labels a dict with typing information


def ​

relationshipTree ​

Related to dbAddEdit; specifies that the add/edit logic belongs to the relationship tree.


meta ​

defrelationshipTree
ismarker
liblib:finstack

supertypes ​

markerMarker labels a dict with typing information


def ​

savedQueryFilterTree ​

Related to dbAddEdit; specifies that the add/edit logic belongs to the savedQueryFilter tree.


meta ​

defsavedQueryFilterTree
ismarker
liblib:finstack

supertypes ​

markerMarker labels a dict with typing information


def ​

summs ​


meta ​

defsumms
ismarker
liblib:finstack

supertypes ​

markerMarker labels a dict with typing information


def ​

tagBundleFunc ​

Indentifies functions that hold pre-configured tag bundles.


meta ​

deftagBundleFunc
ismarker
liblib:finstack

supertypes ​

markerMarker labels a dict with typing information


def ​

tagBundleTree ​

Related to dbAddEdit; specifies that the add/edit logic belongs to the tag bundle tree.


meta ​

deftagBundleTree
ismarker
liblib:finstack

supertypes ​

markerMarker labels a dict with typing information


def ​

templateTree ​

Related to dbAddEdit; specifies that the add/edit logic belongs to the template tree.


meta ​

deftemplateTree
ismarker
liblib:finstack

supertypes ​

markerMarker labels a dict with typing information


def ​

timez ​

Definition of a timezone function


meta ​

deftimez
ismarker
liblib:finstack

supertypes ​

markerMarker labels a dict with typing information


def ​

topics ​


meta ​

deftopics
ismarker
liblib:finstack

supertypes ​

markerMarker labels a dict with typing information


def ​

uiFormOn ​

uiForm Record Selector Tag


meta ​

defuiFormOn
isstr
liblib:finstack

supertypes ​

valData value type
scalarScalar is an atomic value kind
strUnicode string of characters


def ​

update ​


meta ​

defupdate
ismarker
liblib:finstack

supertypes ​

markerMarker labels a dict with typing information