Showing posts with label Aras Innovator. Show all posts
Showing posts with label Aras Innovator. Show all posts

Wednesday, 17 October 2018

Get new GUIDs using Aras AML Studio

Requirement: Get  3 new GUIDs, which are not used in Aras Innovator.
Solution:
Open NASH
Ex: http://localhost/innovator/Client/scripts/nash.aspx
Login using admin or root
Under Action select: GenerateNewGUIDEx (Instead of ApplyAML())
Under XML: type below. quantity="3" mean it will return, 3 new GUIDs
<Item quantity="3" />

Thursday, 11 October 2018

Aras Innovator disable a control after save

How to disable a control after save?
Prerequisites: Control property should be required field.
Solution:

Create new Item Type ex: TestItem

Add new properties
Ex: test1, test2 as string data type

Add new JS method: Ex: MyTest

For textbox control:

var myTestField = getFieldByName("test1");

//var myTestFieldValue = myTestField.querySelector("input[name='test1']").value;//Another way to get value
if (myTestField.value)
{
    setTimeout(function(){
        myTestField.getElementsByTagName("input")[0].disabled = true;
    }, 1);
}

For DDL (List Data Type):
var varMyddl = getFieldByName("mydll");

if (varMyddl)
{
    If(varMyddl.value){
        setTimeout(function(){      
            varMyddl.getElementsByTagName("input")[0].disabled = true;   
            varMyddl.getElementsByTagName("button")[0].disabled = true;

        }, 1);
    }

}

Open Item Type: TestItem
Under View, open TestItem form
Lock TestItem form
Click on  "Form Event"
Add method by click on +
Search for "MyTest"
Under Event, select "onFormPopulated"

Testing:
Create new item
Enter value for test1
Hit on Save
Now test1 control will be disable

Thursday, 21 June 2018

Monday, 18 June 2018

Aras Innovator filesRevision

filesRevision:
This setting controls when the client machine has to refresh all Aras Innovator settings, used whenever there is an update to the Innovator.  This setting is in the web.config file, in the …\Innovator\Client\ directory (Example: C:\Program Files (x86)\Aras\Innovator\Innovator\Client\). The setting is part of the chachingModule tag. 

</runtime> 
<cachingModule moduleEnabled="true" filesRevision="std" />
 </configuration>

 Every time a change is made to the static content on the server (html, images, etc.) you need to change this value from std to 2, 3, 4, etc.  As with any change to production, Aras strongly suggests you notify users to log out of their current session while deploying the change.   Any changes made to the Aras Innovator installation require the following steps to ensure deployment to all users:

Deploy the change to the installed code tree on the server.
Edit the web.config file in the Client folder. 
Set the appropriate filesRevision value:   
  ...    </runtime> 
<cachingModule moduleEnabled="true" filesRevision="2" />
</configuration>

Restart the w3svc service(IIS).

Thursday, 14 June 2018

Invalid object name 'LOCALE'.



Invalid object name 'LOCALE'.

refer:
http://community.aras.com/en/forums/topic/320-support-qampa-exception-during-initialization/

Login failed for user 'innovator_regular'.

The Database is not available:Cannot open database "Inn" requested by the login
The login failed.

Login failed for user 'innovator_regular'.

solution

Open SSMS
Expand Security
Expand Logins
Right click on  innovator_regular user
Select Properties
Click on User Mapping
check under Map for your data base
Check db_owner
Ok

or

run below

exec sp_change_users_login 'Update_One', 'innovator_regular', 'innovator_regular'

exec sp_addrolemember 'db_owner','innovator_regular'

Aras Innovator change Data base connection string

If you have installed Aras Innovator
Go to IIS
Expand Sites-->Default Web Site
Select your Innovator web site: ex: InnovatorServer
Right click on InnovatorServer
Select Explore
You will land at : C:\Program Files (x86)\Aras\Innovator\Innovator
Go one folder up
C:\Program Files (x86)\Aras\Innovator
You will find InnovatorServerConfig.xml
In the above file data base connection string will be there
Open InnovatorServerConfig.xml file in notepad administrator mode
you will find <DB-Connection

<DB-Connection
 id="Innovator"
 database="InnovatorSolutions"
 server="localhost"
 uid="innovator"
 pwd="innovator" />

in the above line, you can change db server and name

Wednesday, 13 June 2018

Error , 'Aras.IOM.Item' does not contain a constructor that takes 2 arguments

var selectedItemClass = new Item("Item Class", "get"); -Javascript
Error: Line number 18, Error Number: CS1729, 'Aras.IOM.Item' does not contain a constructor that takes 2 arguments

Item selectedItemClass = this.getInnovator().newItem("Item Class", "get"); - C#

ArasLabs

https://github.com/ArasLabs

Install Aras Innovator

We can install Aras Innovator in Server or client
For server installation-
https://www.youtube.com/watch?v=2uof2j-ZjIU

For client installation-
https://www.youtube.com/watch?v=OaR0zs7ma9s

Monday, 4 June 2018

Aras Innovator error System.Net.WebException: The remote server returned an error: (503) Server Unavailable

Aras Innovator error System.Net.WebException: The remote server returned an error: (503) Server Unavailable

Root cause: IIS
Solution: I have un installed IIS and re-installed, then it has resolved the issue.

Monday, 7 August 2017

Aras innovator promoteItem from one state to another state

<AML>
<Item type="Document" action="promoteItem" version="0" where="[Document].id='1121B0903C8C4DAEB57006C0C5234C82'" serverEvents="0">
<state>Superseded</state>
</Item>
</AML>

Error LifeCycle: PromoteItem: Transition to promote Part from Preliminary to Released not found

LifeCycle: PromoteItem: Transition to promote Part from Preliminary to Released not found
Internal Error: failed to get the transition to promote the Part from Preliminary to Released
Aras Innovator error.
Solution:
You are missing “Assigned Creator” value for a Item, first provide “Assigned Creator” value, then try to promoteitem.
This is the AML which used to promote the state for an Item.
<AML>
<Item type=”Part” action=”promoteItem” where=”[PART].item_number=’P0001′”>
<state>New state</state>
</Item>
</AML>

Delete Client Cache from Aras innovator

Open Aras innovator
Go to Tools --> Admin -->Clear Client Metadata Cache
Delete any IE temporary files 

Aras innovator enabling logging

Aras innovator enabling logging:
Go to Innovator server.
Open: InnovatorServerConfig.xml
<operating_parameter key="debug_log_flag" value="false" />
Change to : <operating_parameter key="debug_log_flag" value="true” />
Note: This will be log each action, so after logging your action set back to “false”
Go to this path:
C:\LocalBuild\ArasInn\Innovator\Server\logs\
Open .xml
You will see all the logs (AML) which are sending to aras

Aras debugging



Add this in innovatorconfig.xml

in method add this: if (System.Diagnostics.Debugger.Launch()) System.Diagnostics.Debugger.Break();

when we call method, it will open VS and run debugging
if VS is not opened,
Open VS as admin
Click Tools
Click Attach process
Click Show processes for all users
Search for  w3wp.exe
select right w3wp.exe (should be innovator, not vault)
Attach
OK

Now you will get debugging

Monday, 19 September 2016

The property item_number must be common to all sources or the property item_number has inappropriate data type

Solution: With poly items, each property called out in the poly item must exist in all of the item types added to it and have the same type in all of the item types

Ex: If you are adding Part, Manufacturer Part and Manufacturer as Poly Sources for Poly item.
Then you should delete Item_number, manufacturer_id and Name from properties under Poly Item.
Mean you should add properties which are common to all Poly Items

Thursday, 4 August 2016

Aras good tool

Download .exe
Connect to your Aras Innovator instance
You can write AMLs
Run
Get the result

Good one: https://github.com/erdomke/InnovatorAdmin