Skip to main content

Posts

Showing posts from November, 2018

window.setRelationshipProperty Method (Relationship Window Object)

window.setRelationshipProperty Method Sets visible Relationship property value. This operation will trigger "OnChangeCell" event. Syntax window.setRelationshipProperty( relID , propName , propVal ) Parameters Name Type Description relID String Required. Relationship ID. propName String Required. Property name of Relationship. propVal String Required. Property value of Relationship. Return Value A Boolean. Returns true if satisfy all below conditions: The Relationship and its Related Item exist. The property is visible. Property value is changed successfully. Otherwise, returns false. See Also Relationship Window Object Aras Innovator Client Framework

window.setRelatedItemProperty Method (Relationship Window Object)

window.setRelatedItemProperty Method Sets visible Related Item property value. This operation will trigger "OnChangeCell" event. Syntax window.setRelatedItemProperty( relID , propName , propVal ) Parameters Name Type Description relID String Required. Relationship ID. propName String Required. Property name of Related Item. propVal String Required. Property value of Related Item. Return Value A Boolean. Returns true if satisfy all below conditions: The Relationship and its Related Item exist. The property is visible. Property value is changed successfully. Otherwise, returns false. See Also Relationship Window Object Aras Innovator Client Framework

window.getRelationshipProperty Method (Relationship Window Object)

window.getRelationshipProperty Method Gets Relationship property value with specified name. Syntax window.getRelationshipProperty( relID , propName ) Parameters Name Type Description relID String Required. Relationship ID. propName String Required. Property name of Relationship. Return Value A String or undefined. Returns property value of Related Item if the Relationship exists, otherwise returns undefined. See Also Relationship Window Object Aras Innovator Client Framework

window.getRelatedItemProperty Method (Relationship Window Object)

window.getRelatedItemProperty Method Gets Related Item property value with specified name. Syntax window.getRelatedItemProperty( relID , propName ) Parameters Name Type Description relID String Required. Relationship ID. propName String Required. Property name of Related Item. Return Value A String or undefined. Returns property value of Related Item if the Relationship and its Related Item exist, otherwise returns undefined. See Also Relationship Window Object Aras Innovator Client Framework

"Can Execute" Property of Action in Aras Innovator

Action had been added a new Property "Can Execute" (circled in Figure 1) at Aras Innovator 11 SP9. It only accepts client side Method, and the Method just need to return true or false. Figure 1 If evaluated result of the Method is true, the Action will be enabled and show normally (like Figure 2). Otherwise, the Action will be disabled and grayed out (like Figure 3). Figure 2 Figure 3 Please note. The "Can Execute" will only apply to "page", it cannot apply to "Item". When the type is "Generic", the Method will be evaluated after user login. When the type is "Iteme" or "ItemType", the Method will be evaluated when entering an ItemType main page.

Alternative Solution for Querying Date Interval in Aras Innovator

Query data from date range is a common demand, but the Property may not show in main grid. Therefore, users must use "Advanced Search" in order to query these "hidden Property" (like Figure 1). Figure 1 "Advanced Search" should satisfy most of demands. But it is not friendly for users due to the search option contains all Properties. Here propose an alternative solution for easily querying date interval, please follow the steps as follow: Create "Begin Date" and "End Date" Property with "Date" data type. Create a server side Method with below code: Const strQueryProp As String = "created_on" Dim strBegin As String = Me.getProperty("_begin","") Dim strEnd As String = Me.getProperty("_end","") Me.removeProperty("_begin") Me.removeProperty("_end") If Not String.IsNullOrEmpty(strBegin) Then strBegin = RegularExpressions.Regex.Split(strBe...

Sort Vote Time in Descending Order for Signoffs in Aras Innovator

By default, signoffs are sorted by vote time in ascending order. That means the latest record will be at the bottom. It is hard to check the newest information if there is a lot of records, and the "Vote Now" link will also be at the bottom Signoff page is rendered by running a Report named "Workflow Process History". And a Report Item can define style sheet for output. Therefore, open the style sheet of Workflow Process History and find sort definition at line 189 (shown in Figure 1), there are 2 conditions: Sort "state" in descending order. For a valid Workflow Process, there are only 2 kinds of Life Cycle State for Activity -- Active/Closed. So, according to alphabetical order, "Closed" will be sorted before "Active". Sort "closed_on" in ascending order. In order to sort by vote time, date string should be split into numbers. Using XSLT function -- substring -- can extract all these numbers. And then, they could be s...