Skip to main content

Posts

Showing posts from April, 2018

Create Tab Layout for Form in Aras Innovator

This article will introduce how to create tab layout for Form like below Figure 1 and able to trigger function while clicking a tab. Figure 1. A tab layout in Form Figure 2. Trigger a function while clicking a tab Create a HTML Field in Form with clicking the icon marked in Figure 3. Figure 3. Create HTML Field In "Field Type", paste below code to "HTML Code". And then, save Form. The function "onClick" mainly defines the action while tab is clicked. <script type="text/javascript"> var tabApplet; clientControlsFactory.createControl("Aras.Client.Controls.Experimental.SimpleTabbar", {style: 'width: 400px; height: 200px;'}, function(control) { tabApplet = control; //Set tabs tabApplet.addTab('tab1','Tab 1'); tabApplet.addTab('tab2','Tab 2'); //Set tab content tabApplet._getTab('tab1').setContent('This is Tab 1.'); tabApplet._getTab(&#

Fix Blank Message of Promotion Error in Aras Innovator While Using IE 11

Blank message may show up like below picture when server throw an error at life cycle promotion. (Not sure which version has this bug and when being fixed.) Solution: Open the file "\Innovator\Client\scripts\promoteDialog.html" on server. Find the function "closeWindow". Modify as below: function closeWindow(value) { if (dialogArguments.dialog) { setTimeout(function () { dialogArguments.dialog.close(value); }, 100); } else { window.returnVal ue = value; window.close(); } } Open the file "\Innovator\Client\web.config". Increase the attribute "filesRevision" value of tag "cachingmodule". <cachingModule moduleEnabled="true" filesRevision="2" /> References: Return error at LifeCycle Transition Pre Server method - Aras Open PLM Community

Item Window Render Process in Aras Innovator

Item window is a typical way to display item data, this article is to investigate the render process of it. And then, check the trigger timing of "onFormPopulated" and "onLoad". When user open an item, Window Render Process (see Figure 1) will be executed. There is an action "render" which mainly handles form details (see Figure 2), here calls Form Render Process. When HTML elements are loaded, system will trigger form event "onFormPopulated" if it exists. After Form Render Process finished, system will trigger form event "onLoad" if it exists, and then Window Render Process is finished. But if user save/lock/unlock an item, system will only execute Form Render Process. With above points, the trigger timing and main difference between "onFormPopulated" and "onLoad" are clear: onFormPopulated: execute every time while item window update form data. onLoad: execute only one time while item window opened.