Quantcast
Channel: aras PLM community
Viewing all 1103 articles
Browse latest View live

Change class structure programmatically.

$
0
0

Hello all !

Something tricky I think, I recently tried to change the class structure of an ItemType programmatically, building the class_structure attribute this way :

<class id="xxx"> <class id="xxx" name="class1" /> <class id="xxx" name="class2" /></class>

Actually it did the job but I am facing some permissions issues when users want to set the classification on the objects, all the classifications are grayed out for some users whereas the "Can Add" is set to the appropriate identitiy without any class_path.

So my question, does Innovator need anything else to set a class structure ?

Thanks in advance !

Arnaud

 


deleting files from file Item type

$
0
0

Hi,

I am trying to delete the file that are not referenced to any item type, I want to write a method to execute an action that will check if the files present in the file Item type are related to any other item, if they are not, then the method should delete such files, Please suggest me as soon as you can.

 

Thanks.

JS functions to open dialog for creating/deleting items and relationships

$
0
0

Hi all,

I am aware of the JS function "top.ui.ShowItem(itemTypeName, itemID, viewMode)" which open an item based on its type and Id in a new window.

But I didn't find an equivalent JS function to 1) create an item 2) delete an item 3) pick a related item 4) remove an existing relationship.

Did I miss something?

Jeroen

How to display a different relationship tab depending on some condition when opening a form

$
0
0

I'm working on the following:

Depending on one condition or another, I want to be able to show, say, the third relationship tab of a form rather than the tab with index 0 (or the lowest sort order) when opening a document form client side.

So far I've been able to recover the ID of the tab currently (and defaultly) shown, yet I haven't been able to display the third tab rather than the first. I haven't been able to find a method to display a tab with a certain index/ID/name/whatever. What am I overlooking?

Variants définition

$
0
0

Hi all,

I'm new to aras and I wanted to study the variants package solution. I followed the instructions in the "Aras variants management doc".

After créating the tractor BOM, I wanted to display the "variants" of a part variant but nothing appears. The table is empty and there is no edition option the only action available is export to excel or word.

Thanks for the help

Rachèle

Email link to Aras Innovator Items (Documents in particular)

$
0
0

I'd like to be able to add a hyperlink to an MS Outlook email to take someone directly to a document.  For instance, I'd like to send an email to an engineer asking them to look at a particular section of a document, and have a link in the email so they can just click on the link and be taken to the document in Aras Innovator.  There is a post on how to add a ULR (I think they meant URL) to an email, but it doesn't quite seem to work in the way I'm hoping it can.

Item added through SQL query is not accessible

$
0
0

Hi,

I am designing a small Windows Forms application, which will allow users to add/delete/view an item to/from Innovator database directly.

As we are not giving direct access to communicate with Innovator instance I am not using IOM.dll in my project. So, I am doing things through SQL queries. To add an item I did this,

To generate Ids:

   public static string GetUniqueID(int Size)
    {
        char[] validChars = new char[36];
        validChars = "ABCDEFGHIJKLMNOPQRSTUVWXYZ1234567890".ToCharArray();
        byte[] dataToAttr = new byte[1];
        using (RNGCryptoServiceProvider RNGCSP = new RNGCryptoServiceProvider())
        {
            RNGCSP.GetNonZeroBytes(dataToAttr);
            dataToAttr = new byte[Size];
            RNGCSP.GetNonZeroBytes(dataToAttr);
        }
        StringBuilder IDstring = new StringBuilder(Size);
        foreach (byte b in dataToAttr)
        {
            IDstring.Append(validChars[b % (validChars.Length)]);
        }
        return IDstring.ToString();
    }

This creates ids like : OB7NFUVH2SSGTANCCSY058EV8JOAU070, 2V35DB7328ULFYWMM43FMNCIQJZ5N9X0

To add an item:

string newID = GetUniqueID(32);

SqlCommand addItem = new SqlCommand("insert into [innovator].[NIS_ASSET](NAME, CONFIG_ID, ID, CREATED_BY_ID, CREATED_ON,PERMISSION_ID,KEYED_NAME,IS_CURRENT,GENERATION,MAJOR_REV,IS_RELEASED,NOT_LOCKABLE) values('" + NameTxt.Text + "','" + newID + "','" + newID + "','30B991F927274FA3829655F50C99472E', '" + dtNow + "', 0 , '9122CD065CF04141B8EFE263FC80BEA4','" + newID + "',1,1,'A',0,0)", connMIF);
            addItem.ExecuteNonQuery();

Here for PERMISSION_ID , I gave 'Default Access' item's id as value, for CREATED_BY_ID 'Innovator Admin' Item's id a s value and the same generated Id(newID) for KEYED_NAME.

Executes successfully. But when I try to open this in Innovator, recieving this "2V35DB7328ULFYWMM43FMNCIQJZ5N9X0 is not valid". After clicking OK form opens and displays data as well. But I am unable to edit and delete that item. Seeing the same error if I try to Lock/Delete the item.

Is this because of the ID that I am creating? or anything wrong with the query? Please give me some suggestions over this and help me.

 

Thank you,

Erg R

Resetting your sequence when using a year

$
0
0

Hi all,

I'm trying to build a sequence and using the year as a prefix.
After each year the sequence needs to restart a beginning with 0 or 1.
After running and debugging the script it will hang.
When starting a new action and click on save the following server method will start.

Innovator inn = this.getInnovator();

if (this.getAction() == "add")
{
 //System.Diagnostics.Debugger.Break();
 
//Get the prefix of the sequence who needs to be reset every year
 Item res_seq = this.newItem("sequence","get");
 res_seq.setProperty("keyed_name","aer_action_8D");
 res_seq = res_seq.apply();
 string prefix_seq = res_seq.getProperty("prefix","");
 
 //Get current year 
 string Year = DateTime.Now.Year.ToString();
 Year = Year + "-";

 //If the prefix isn't equal change the prefix and reset
 if (prefix_seq != Year){
  res_seq = this.newItem("sequence","edit");
  res_seq.setAttribute("where","[sequence].name='aer_action_8D'");
  res_seq.setProperty("prefix",Year);
  res_seq.setProperty("current_value","1");
  res_seq = res_seq.apply();
 }
  
//Get next Sequence and use the field item_number to put it in.
 string nextseq = inn.getNextSequence("aer_action_8D");
 string item_number = this.getProperty("item_number", "");
 this.setProperty("item_number",nextseq);
 
}

return this;

When the if statement is skipped it works, and when we skip the getNextSequence (putting the last three lines in comments) it works and it's changing the prefix correctly.
If tested and set prefix on 2014- and then running the script.

I hope some one has done something like this before and could help me.

Best regards,
Tom Hofste 

 


Project Security

$
0
0

Hi All,

Can someone explain how to set up Project Security  so that a Prog. Manager sees all projects created  vis-a-vis a Team Manager only views his project. Do we use identity or Team concept?

SKS

Web Service Configuration: New configuration creation failed with error on item load

$
0
0

I am trying to create a new web service configuration and it fails on load with the following error. Please help me with this as I am stuck at this point trying to figure out what's going on.

The versions used are:

OS: Windows 7

Browser: IE 11

Aras: 11.0

Internal Error: event handler failed.Event handler failed with message: Object doesn't support this actionClient Side Error

how to Increase size of image in grid

$
0
0

when i upload images by default its inline height and width is 18px

i want to increase it.

Can anyone tell the steps of it....thank you in advance

E-mail notification in a life cycle of a Document

$
0
0

I know how to add an e-mail notification in a life cycle of a Document,(Not in WorkFlow of Document)

Thank you

field level logging in v9.3

$
0
0

I have a request from our master data team to view change logs at the field level. So whenever a field has been changed, they want to know:

  • what field was changed
  • what the prior value was
  • what the new value is
  • when was the field changed

Where can I find that within Innovator 9.3? Thanks in advance!

Main grid and user starting page customization...

$
0
0

Hi Folks,

I have two requirements from client.

1. Main grid customization

  In this the requirementt is to divide main grid into three different divisions

     a. Parts list

    b. Part details window to be embed in second division 

   c.  CAD related to Part should get open in third division using cad viewer.

As shown in snapshot:

i managed to create division by doing some modification in ItemGrid.html file in Aras installed directory. 

If user clicks on any part in first division then the detail page related to that part should get open in second div and the cad part should get open in 3rd div .

 

2 User Starting page.

Requirement is to create a starting page which has "My Inbasket"," My Discussion", "My Desktop" and "Search Center" in it. As shown in below snapshot.

 

 

If you guys have any suggestions or ideas to how to fulfil the requirement then please share it.

 

Thanks in advance.

Rahul.

Opening an item in the same (parent) window

$
0
0

Hi all,

by default, Innovator opens an item in a new pop-up window.

In certain cases, I would like to open the item in the same window where the navigation started. Is there a way to do this?

It would be great too if we could open an item in a new tab in a browser.

Jeroen.


Open Innovator Interface from external Application

$
0
0

Hi All,

I am doing some exploratory work with integrating to Innovator and want to be able to launch an Innovator session programatically.

I can connect and retrieve data but I want my users to see and be able to select items from Innovator so that I don't have to re-invent the interface.

Any suggestions where to start?

Thanks,

Brian.

include libraries or files into aras

$
0
0

Hello

I am trying to convert reports to pdf the code which i have is requires to download and include plugins and libraries of jsPDF, how to include libraries in aras?

XSLT BOM Report Help

$
0
0

I'm having issues with the rows inside my form. When there are two AML parts and three documents, the second document row is blank. I'm not sure what is causing this. Thank you for your help. 

 

Search

<Item type="Part" action="GetItemRepeatConfig" select="item_number,name,major_rev,classification" id="{@id}">

 <Relationships>

  <Item type="Part AML" select="state,related_id(item_number,manufacturer)"/>

  <Item type="Part Document" select="state,related_id(item_number,name,major_rev)"/>

  <Item type="Part BOM" select="sort_order,quantity,reference_designator,related_id" repeatProp="related_id" repeatTimes="5"/>

 </Relationships>

</Item>

 

Style Sheet

 

<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:msxsl="urn:schemas-microsoft-com:xslt" xmlns:aras="http://www.aras-corp.com">

 <xsl:output method="html" omit-xml-declaration="yes" standalone="yes" indent="yes"></xsl:output>

 <xsl:template match="/">

    <html>

      <head></head>

      <style type="text/css" userData="Global">

    table  {empty-cells:show; border-collapse:collapse;}

    th {font-family:helvetica; font-size:8pt;  padding:2px; border:1px #000000 solid; background-color:#CCCCCC; text-transform:capitalize;}

    td {font-family:helvetica; font-size:8pt;  padding:2px; border:1px #000000 solid;}

    td.noBorder {font-family:helvetica; font-size:8pt;  padding:2px; border-width:0;}

   </style>

      <body topmargin="50" leftmargin="50">

        <table border="0" cellspacing="0" cellpadding="0" width="1850">

          <tr valign="top">

            <td class="noBorder" align="left" colspan="9" uniqueID="ms__id21">

              <img src="../images/Logos/CooperPowerSystems.gif" height="60"></img>

      </td>

     </tr>

          <tr valign="bottom">

            <td class="noBorder" colspan="13" style="font-family:helvetica;font-size:15pt;color:#DA1943;padding:2px;" align="left" uniqueID="ms__id22">Bill of Materials Report -              <xsl:value-of select="//Item/name"></xsl:value-of> Rev              <xsl:value-of select="//Item/major_rev"></xsl:value-of>

            </td>

            <td class="noBorder" colspan="7" style="font-family:helvetica;font-size:10pt;padding:2px;" align="right" uniqueID="ms__id23">Generated on:              <script>function m00(r, n){r += ""; if (!n) n = 2; while(r.length &lt; n){r = "0" + r;} return r;} var dt = new Date(); var a = top.opener.top.aras; if (a){var s = m00(dt.getUTCFullYear(),4)+"-"+m00((dt.getUTCMonth()+1))+"-"+m00(dt.getUTCDate())+"T"+m00(dt.getUTCHours())+":"+m00(dt.getUTCMinutes())+":"+m00(dt.getUTCSeconds())+"+0000"; s = a.convertToNeutral(s, "date", "yyyy-MM-ddTHH:mm:sszzz"); s = a.convertFromNeutral(s, "date", "short_date"); document.write(s);}</script>

            </td>

     </tr>

          <tr>

            <th colspan="6">Indenture Level</th>

            <th>Part Number</th>

            <th>Legacy Part Number</th>

            <th>Revision</th>

            <th>Name</th>

            <th>Description</th>

            <th>Parameters</th>

            <th>RoHS/Pb-Free</th>

            <th>Quantity</th>

            <th>Reference Designator</th>

            <th>AML Status</th>

            <th>Manufacturer</th>

            <th>Manufacturer Part</th>

<th>Document Number</th>

            <th>Document Name</th>

            <th>Document Rev</th>

<th>Pos AML</th>

            <th>Pos Doc</th>

     </tr>

     <xsl:apply-templates select="//Item[@type='Part']"></xsl:apply-templates>

    </table>

   </body>

      <script src="../../javascript/PopupMenu.js"></script>

      <script src="../../javascript/PopupMenu.js"></script>

      <script src="../../javascript/PopupMenu.js"></script>

      <script src="../../javascript/PopupMenu.js"></script>

    </html>

 </xsl:template>

  <xsl:template match="Item[@type='Part']">

<xsl:variable name="Depth" select="count(ancestor::Item[@type='Part'])"></xsl:variable>

<xsl:variable name="AML">

      <xsl:choose>

        <xsl:when test="count(Relationships/Item[@type='Part AML'])=0">1</xsl:when>        

<xsl:otherwise>

          <xsl:value-of select="count(Relationships/Item[@type='Part AML'])"></xsl:value-of>

        </xsl:otherwise>

   </xsl:choose>

  </xsl:variable>

  <xsl:variable name="Doc">

      <xsl:choose>

        <xsl:when test="count(Relationships/Item[@type='Part Document'])=0">1</xsl:when>        

<xsl:otherwise>

          <xsl:value-of select="count(Relationships/Item[@type='Part Document'])"></xsl:value-of>

        </xsl:otherwise>

   </xsl:choose>

  </xsl:variable>

  <xsl:variable name="rowCount">

     <xsl:choose>

 <xsl:when test="$AML &lt;= $Doc"><xsl:value-of select="$Doc"></xsl:value-of></xsl:when> 

 <xsl:otherwise>

        <xsl:value-of select="$AML"></xsl:value-of>    

        </xsl:otherwise>

</xsl:choose>  

  </xsl:variable>

   <tr>

      <td rowspan="{$rowCount}" width="2%" align="center" uniqueID="ms__id10">

        <xsl:if test="$Depth=0">0</xsl:if>

      </td>

      <td rowspan="{$rowCount}" width="2%" align="center" uniqueID="ms__id11">

        <xsl:if test="$Depth=1">1</xsl:if>

      </td>

      <td rowspan="{$rowCount}" width="2%" align="center" uniqueID="ms__id12">

        <xsl:if test="$Depth=2">2</xsl:if>

      </td>

      <td rowspan="{$rowCount}" width="2%" align="center" uniqueID="ms__id13">

        <xsl:if test="$Depth=3">3</xsl:if>

      </td>

      <td rowspan="{$rowCount}" width="2%" align="center" uniqueID="ms__id14">        

 <xsl:if test="$Depth=4">4</xsl:if>

      </td>

      <td rowspan="{$rowCount}" width="2%" align="center" uniqueID="ms__id15">

        <xsl:if test="$Depth=5">5</xsl:if>

      </td>

      <td rowspan="{$rowCount}" width="5%" align="center" uniqueID="ms__id16">

        <xsl:value-of select="item_number"></xsl:value-of>

      </td>      

 <td rowspan="{$rowCount}" width="2%" align="center" uniqueID="ms__id18">

        <xsl:value-of select="major_rev"></xsl:value-of>

      </td>      

 <td rowspan="{$rowCount}" width="13%" align="center" uniqueID="ms__id19">

        <xsl:value-of select="name"></xsl:value-of>

      </td>

      <td rowspan="{$rowCount}" width="13%" align="center" uniqueID="ms__id20">

        <xsl:value-of select="description"></xsl:value-of>

      </td>      

 <td rowspan="{$rowCount}" width="5%" align="center" uniqueID="ms__id22">

        <xsl:value-of select="rohs_pb_free"></xsl:value-of>

      </td>

      <td rowspan="{$rowCount}" width="5%" align="center" uniqueID="ms__id23">

        <xsl:choose>

          <xsl:when test="$Depth=0">1</xsl:when>

          <xsl:when test="$Depth!=0 and (../../quantity)=''">1</xsl:when>

          <xsl:otherwise>

            <xsl:value-of select="../../quantity"></xsl:value-of>

          </xsl:otherwise>

</xsl:choose>

 </td>

      <td rowspan="{$rowCount}" width="5%" align="center" uniqueID="ms__id24">

        <xsl:value-of select="../../reference_designator"></xsl:value-of>

 </td>

      <td width="5%" align="center" uniqueID="ms__id25">

        <xsl:value-of select="Relationships/Item[@type='Part AML'][1]/state"></xsl:value-of>

      </td>

      <td width="13%" align="center" uniqueID="ms__id26">

        <xsl:value-of select="Relationships/Item[@type='Part AML'][1]/related_id/Item/manufacturer/@keyed_name"></xsl:value-of>

      </td>

      <td width="13%" align="center" uniqueID="ms__id27">

        <xsl:value-of select="Relationships/Item[@type='Part AML'][1]/related_id/Item/item_number"></xsl:value-of>

      </td>

 <td width="5%" align="center" uniqueID="ms__id28">

        <xsl:value-of select="Relationships/Item[@type='Part Document'][1]/related_id/Item/item_number"></xsl:value-of>

 </td>

      <td width="13%px" align="center" uniqueID="ms__id29">

        <xsl:value-of select="Relationships/Item[@type='Part Document'][1]/related_id/Item/name"></xsl:value-of>

 </td>

      <td width="8%" align="center" uniqueID="ms__id30">

        <xsl:value-of select="Relationships/Item[@type='Part Document'][1]/related_id/Item/major_rev"></xsl:value-of>

 </td>

 <td rowspan="{$rowCount}" width="8%" align="center" uniqueID="ms__id37">

        <xsl:value-of select="count(Relationships/Item[@type='Part AML'])"></xsl:value-of>

 </td>

 <td rowspan="{$rowCount}" width="8%" align="center" uniqueID="ms__id38">

        <xsl:value-of select="count(Relationships/Item[@type='Part Document'])"></xsl:value-of>

 </td>

  </tr>

<xsl:apply-templates select="Relationships/Item[@type='Part AML'][position()!=1] | Relationships/Item[@type='Part Document'][position()!=1]"></xsl:apply-templates>

 </xsl:template>

 

 <!-- Selects AML data for each row -->

 <xsl:template match="Item[@type='Part AML'] | Item[@type='Part Document']">

    <tr>

      <td width="5%" align="center" uniqueID="ms__id31">

        <xsl:value-of select="state"></xsl:value-of>

      </td>

      <td width="13%" align="center" uniqueID="ms__id32">

        <xsl:value-of select="related_id/Item/manufacturer/@keyed_name"></xsl:value-of>

      </td>

      <td width="13%" align="center" uniqueID="ms__id33">

        <xsl:value-of select="related_id[@type='Manufacturer Part']/Item/item_number"></xsl:value-of>

      </td>

 <td width="5%" align="center" uniqueID="ms__id34">

        <xsl:value-of select="related_id[@type='Document']/Item/item_number"></xsl:value-of>

      </td>

      <td width="13%" align="center" uniqueID="ms__id35">

        <xsl:value-of select="related_id[@type='Document']/Item/name"></xsl:value-of>

 </td>

      <td width="8%" align="center" uniqueID="ms__id36">

        <xsl:value-of select="related_id/Item/major_rev"></xsl:value-of>

 </td>

</tr> 

  </xsl:template>

 

</xsl:stylesheet>

Disable Error Messages

$
0
0

Hi there,

Is there a way to disable error messages? The reason is sometimes when I try adding, say a ItemType, to a package definiton (using Tools), I get error message saying the ItemType is already referenced in some other package. This is okay for me (infact this is what is expected). So, temporarily, I want to disable those.

Thanks

Importing package with Element Type 'Workflow Maps' change IDs and sometimes 'ElementId' as well ?

$
0
0

When I import a Workflow Map, the ID of that workflow in the receiving innovator turns out to be different than the one I imported from. Does anyone having the same issue? Or know how to fix it?

Viewing all 1103 articles
Browse latest View live