Skip to main content

Posts

Showing posts from February, 2019

Control Property Access with Identity in Aras Innovator

In Aras Innovator, each ItemType links to a table in database. That means the Property links to a column for storing data. If there are access issues for data field, create a Poly Item and Form with particular Identity should be the simplest way to implement. When facing to complicated scenario (maybe various columns and Identity need to be considered together), the future maintenance work might be very difficult. This article provides another thinking to achieve similar result with a little customization. Change Property Access The Property is also an ItemType in system, that means its access can be controlled by system permission. In default, a Relationship will inherits permission from its parent. But in order to control Property access individually, the "Use Src Access" option should be cancelled (see Figure 1). Figure 1 Create Private Permission Open the ItemType which need to create various view (here takes "Part" as example), and follow below s...

Add Locale Options to Login Page of Aras Innovator

Aras Innovator supports multilingual user interface and will automatically determine locale preference by browser's language configuration. But it is not convenient if user want to change locale quickly due to user may not know or do not want to change browser's settings. Allow users determine the locale with login data by themselves should be an alternative way to solve the problem. Follow below steps to implement. Add Inline Code Open "\Innovator\Client\scripts\login.aspx". Move to line 131 and add below code with embedded code block. Dim objLocales As XmlNodeList = ApplicationXML.SelectNodes("/Innovator/Locale-Option[@id and @text]") If objLocales.Count>0 Then Dim objLocale As XmlElement Dim strDefault As String = Request.ServerVariables.Item("HTTP_ACCEPT_LANGUAGE").SubString(0,5) Dim strID As String Dim strText As String Response.Write("<div class=""database"">") Response.Write("...

Email.SetupSmtpMailServerAndSend Method (Aras.Server.Core Namespace)

Email.SetupSmtpMailServerAndSend Method Sends an email message with specified message object. Syntax Email.SetupSmtpMailServerAndSend( msg ) Parameters Name Type Description msg MailMessage Required. A MailMessage object that contains the message to send. See Also Email Class Aras.Server.Core Namespace Aras Innovator Server Framework

Email.SendEmailToIdentityEx Method (Aras.Server.Core Namespace)

Email.SendEmailToIdentityEx Method Sends an email message. Syntax Email.SendEmailToIdentityEx( toIdentity , subject , plainBody , htmlBody , fromUser ) Parameters Name Type Description toIdentity String Required. The Identity name of the recipient. subject String Required. The subject for email message. plainBody String Required. The message body in plain text. This parameter will be useless when "htmlBody" is not empty string. htmlBody String Required. The message body in html text. fromUser String Required. The User login name of the sender. See Also Email Class Aras.Server.Core Namespace Aras Innovator Server Framework

Email.SendEmailToIdentity Method (Aras.Server.Core Namespace)

Email.SendEmailToIdentity Method Sends an email message with plain text. Syntax Email.SendEmailToIdentity( toIdentity , subject , body , fromUser ) Parameters Name Type Description toIdentity String Required. The Identity name of the recipient. subject String Required. The subject for email message. body String Required. The message body. fromUser String Required. The User login name of the sender. See Also Email Class Aras.Server.Core Namespace Aras Innovator Server Framework

UtilitiesProxy.WriteLog Method (Aras.Server.Core Namespace)

UtilitiesProxy.WriteLog Method Writes a message to log file with timestamp and database name. Syntax UtilitiesProxy.WriteLog( logFile , [text] ) Parameters Name Type Description logFile String Required. The file name. [text] String Required. The message to write. See Also UtilitiesProxy Class Aras.Server.Core Namespace Aras Innovator Server Framework

UtilitiesProxy.WriteDebug Method (Aras.Server.Core Namespace)

UtilitiesProxy.WriteDebug Method Writes a message to log file with timestamp. Syntax UtilitiesProxy.WriteDebug( debugFile , [text] ) Parameters Name Type Description debugFile String Required. The file name. [text] String Required. The message to write. See Also UtilitiesProxy Class Aras.Server.Core Namespace Aras Innovator Server Framework

UtilitiesProxy.SaveTextData Method (Aras.Server.Core Namespace)

UtilitiesProxy.SaveTextData Method Saves text data to a file. Syntax UtilitiesProxy.SaveTextData( fileName , text2Save , append2File ) Parameters Name Type Description fileName String Required. The file path to save. text2Save String Required. The text data to save. append2File Boolean Required. True to append data to the file, false to overwrite the file. See Also UtilitiesProxy Class Aras.Server.Core Namespace Aras Innovator Server Framework

UtilitiesProxy.IsIdValid Method (Aras.Server.Core Namespace)

UtilitiesProxy.IsIdValid Method Determines if the item ID is valid. Syntax UtilitiesProxy.IsIdValid( itemId , doThrowException ) Parameters Name Type Description itemId String Required. The ID to check. doThrowException Boolean Required. True to throw exception when ID is not valid, otherwise false. Return Value A Boolean. Returns true if the ID is valid, otherwise returns false. See Also UtilitiesProxy Class Aras.Server.Core Namespace Aras Innovator Server Framework

UtilitiesProxy.GetIdentityNameByUserId Method (Aras.Server.Core Namespace)

UtilitiesProxy.GetIdentityNameByUserId Method Gets Alias name of specified user. Syntax UtilitiesProxy.GetIdentityNameByUserId( userId ) Parameters Name Type Description userId String Required. User ID. Return Value A String. Returns Alias Identity name if specified user exists, otherwise returns an empty string. See Also UtilitiesProxy Class Aras.Server.Core Namespace Aras Innovator Server Framework

UtilitiesProxy.GetIdentityNameByIdentityId Method (Aras.Server.Core Namespace)

UtilitiesProxy.GetIdentityNameByIdentityId Method Gets Identity name by Identity ID. Syntax UtilitiesProxy.GetIdentityNameByIdentityId( identityId ) Parameters Name Type Description identityId String Required. Identity ID. Return Value A String. Returns Identity name if specified Identity exists, otherwise returns an empty string. See Also UtilitiesProxy Class Aras.Server.Core Namespace Aras Innovator Server Framework

UtilitiesProxy.GetIdentityIdByUserId Method (Aras.Server.Core Namespace)

UtilitiesProxy.GetIdentityIdByUserId Method Gets Alias ID of specified user. Syntax UtilitiesProxy.GetIdentityIdByUserId( userId ) Parameters Name Type Description userId String Required. User ID. Return Value A String. Returns Alias Identity ID if specified user exists, otherwise returns an empty string. See Also UtilitiesProxy Class Aras.Server.Core Namespace Aras Innovator Server Framework

UtilitiesProxy.FolderExists Method (Aras.Server.Core Namespace)

UtilitiesProxy.FolderExists Method Determines if the specified directory exists. Syntax UtilitiesProxy.FolderExists( folderPath ) Parameters Name Type Description folderPath String Required. The directory to check. Return Value A Boolean. Returns true if the directory exists, otherwise returns false. See Also UtilitiesProxy Class Aras.Server.Core Namespace Aras Innovator Server Framework

UtilitiesProxy.FileExists Method (Aras.Server.Core Namespace)

UtilitiesProxy.FileExists Method Determines if the specified file exists. Syntax UtilitiesProxy.FileExists( filePath ) Parameters Name Type Description filePath String Required. The file to check. Return Value A Boolean. Returns true if the file exists, otherwise returns false. See Also UtilitiesProxy Class Aras.Server.Core Namespace Aras Innovator Server Framework

Change Default Value of Main Grid Preview in Aras Innovator

There are 3 options (see below figure) for users to decide how to preview Item in main grid, and Aras Innovator will automatically save user's preference. When there is no any record, "Properties" will be chosen. To change the default value, follows below steps: Open "\Innovator\Client\javascript\search_grid.js". Move to line 220. The final parameter of function "getPreferenceItemProperty" is used to define default value, and only allows below values: Properties - show "Properties" panel to preview Item. (Original default value) Form - show preview panel to display the Item form. Off - do not preview Item. Save file after changed. If the change result seems not working, please try: Delete user's preference. Clear browser cache.