Hi,
Is it possible to Hide/Show a cell or disable/enable a cell on relationship grid?
I added two properties to my Relationship Itemtype. A checkbox property and an item property. While adding a relationship item I want to disable/enable item cell based on checkbox cell's check. On check the cell should be disabled/hidden.
I added a Property Event with OnEditFinish for 'checkbox' property. Code:
var no_item = getRelationshipProperty(relationshipID, propertyName);
var Cell = gridApplet.cells(relationshipID,2); //-- I am thinking that column numbers starts from 0, it is my 3rd column
if(no_item==="1")
{
if(Cell)
{
//alert("Cell found");
Cell.setEditable(false);
}
}
else{
if(Cell)
{
//alert("Cell found");
Cell.setEditable(true);
}
}
This not making the field not-editable.
Is this the correct way of disabling the cell? Please help me to solve this.
Thank you
Disable/Enable a cell on Relationship Grid based on a checkbox's check.
Ho to delete a relationship item from a client method.
Hi ,
I need to delete an item's relationship items from a Dropdown's OnChange event. I tried two ways. Neither worked.
Dropdown-OnChange:
var thisItem = document.thisItem;
var deleteRels = inn.newItem("Mappings","get");
deleteRels.setAttribute("where","[Mappings].source_id = '"+thisItem.getID()+"' ");
deleteRels = deleteRels.apply();
Facing an error with this code : Event handler failed with message: TypeError: id is null
I tried in another way:
var getRels = inn.newItem("AM_SWLIC_MachineMappingsRels","delete");
getRels.setAttribute("where","[AM_SWLIC_MachineMappingsRels].source_id = '"+thisItem.getID()+"' ");
getRels = getRels.apply();
if(getRels.getItemCount()>0)
{
for(var c=0;c<getRels.getItemCount();c++)
{
var item_ = getRels.getItemByIndex(c);
item_.setAttribute("action","delete");
alert("deleted");
}
thisItem= thisItem.apply();
}
I am not facing any error with this code. But deleting is not happening. I tried item.setAction("delete");, still its not happening. How to make this happen?
Thank you.
Workflow Dynamic ReAssignment Triggers
As described in "Just Ask Innovator", under Innovator Administration->Workflows->Dynamic Assignments, an Activity Manager can change an assignment's "Assigned To" Identity. This feature works as described.
However, I would like to execute a Server Method when this is done. I have tried to trigger this method from the "On Assign" or "on Delegate" server event, but my method is not executed when the re-assignment is done.
Does anyone have an idea of how I might trigger my server method when the manager does a re-assignment?
Thanks
Quality System on Innovator 10
Is Quality System solution for Innovator 10 already available?
If yes, how to install.
Problem----"the database in not available"
Hi All,
I have just install aras plm 10,but cant login,when I click login get "the database in not available",please help.Thans!
AML for Part Goal
Hi,
I try to insert cost goal with the following AML :
<AML>
<Item type="Part" action="merge" where="item_number='115150'">
<item_number>115150</item_number>
<name>TEST</name>
<Relationships>
<Item type="Part Goal" action="add">
<related_id>
<Item type="Part Goal" action="add">
<goal>Cost</goal>
<actual_value>2018.69</actual_value>
</Item>
</related_id>
</Item>
</Relationships>
</Item>
</AML>
And I am getting following fault :
<![CDATA[Cannot insert the value NULL into column 'GOAL', table 'InnovatorSolutionst.innovator.PART_GOAL';....
Why is that ? GOAL field in AML is properly populated ?
And next question, how would I construct AML if I would like to use on Part Goal item merge instead of add ? I have to update actual costs regulary because they do change over time.
Thanks for your help !
Bostjan
Radio input value missing
Hello everyone!
I have a problem getting the value of the radio input I added in a form. I have constructed the following form:
I managed to get the value from the text fields by referring to the following lines of code:
var part1 = this.form.part1.value;
var part2 = this.form.part2.value;
var partrev1 = this.form.partrev1.value;
var partrev2 = this.form.partrev2.value;
With this I can get the values from the text field, where the "Name" fields are configured as "part1", "part2", etc. Therefore I tried the same with the radio input. The name field is set to "compare_base" and when I try to get the value from the radio input, it returns null/undefined:
var radio = this.form.compare_base.value;
RESULT: Event handler failed with message: TypeError: srcElement.form.compare_base is undefined
I also looked up the generated HTML code. The radio input has a method handleItemChange("compare_base", this.value) and this method is called on select a assume. The value property itself has the right value in the HTML code and therefore should set the right value to "compare_base".
I also tried to get the value with document.getElementByName("column_base") and still no result.
I am really having trouble getting the value from the input. Is there a formal way to get it? I also tried different searches in the document to get the value - like document.getXXYY.
Client API
Hi all,
I cannot understand what methods I should use to communicate with Innovator Server from Innovator Client. IOM methods or Aras Object methods?
For example, to create a new Item, there are two ways:
- top.aras.newIOMItem(...);
- top.aras.newItem(...);
Which one is preferable? Is the same?
Thanks.
Editing multiple Calibrated Devices at once
HI
I have come across a question that I am reaching out to you to see if you can help me to get an answer.
In our calibrated device folder :
We can look up individual pieces of equipment and have check boxes to make changes too.
Is there a way for the administrator or me to open multiple files and make changes to these boxes without having to open each individual item and locking the file , and then making changes?
vault a file from vb.net
Insufficient relationship count (0) of Located relationships. At least 1 required.
I can't vault a file - can some one explain what I'm doing wrong?
Dim conn As IOM.HTTPServerConnection = New IOM.HTTPServerConnection
conn.innovator_server_url = "http://10.12.19.57/InnovatorServer/Server/InnovatorServer.aspx"
conn.http_username = "willig01"
conn.http_password = IOM.Innovator.ScalcMD5("12345678")
conn.http_database = "InnovatorSolutions"
conn.vault_server_url = "http://10.12.19.57/InnovatorServer/vault/VaultServer.aspx"
Dim inn As IOM.Innovator = New IOM.Innovator(conn)Dim queryItem As IOM.Item = inn.newItem("User", "get")queryItem.setAttribute("select", "login_name")
Dim qryRes As IOM.Item = queryItem.applySystem.Console.WriteLine("Number of Users: " & qryRes.getItemCount)
'Dim docItm As IOM.Item = inn.getItemByKeyedName("Document", "1234567")'docItm.apply("edit")'docItm.setProperty("Description", "Desc???")Dim fileItm As IOM.Item = inn.newItem("File", "add")fileItm.setFileName("C:\Gary\CMII\Legend.dwg")
'Dim relItm As IOM.Item = inn.newItem("Document File", "add")'docItm.addRelationship(relItm)'relItm.setRelatedItem(fileItm)Dim Res As IOM.Item = fileItm.apply()If Res.isError ThenConsole.WriteLine(Res.getErrorDetail)
EndIfconn.Close()
Internet Explorer 10 : The browser has failed the minimum browser requirement check
Hi,
I have installed an Innovator 10 on a Windows Server 2008R2 and encounter major problems to get the Internet Explorer on my client computer to work. I get the following error message for Internet Explorer 10.0.9200.16844 on Windows 7:
The browser has failed the minimum browser requirement check. Please contact your system administrator to confirm your client against the platform requirements.
Locally on the server with IE 10.0.9200.16866 it works without any problems. I have made the same internet option settings on both machines. The Firefox works on both machines.
In the troubleshooting part of the IE settings document I could not find any hints to this error message.
Any hints are appreciated.
Walter
Prompt BOM structure from VB.NET
Hello,
I am trying to write a vb.net script to prompte a list of Part BOM relationships items from a selected Part. Below is my last try and the error was: "Not a single Item". I assume the error is because there is a set of Items, but I try to prompt the items by a "getItemByIndex()". Does anyone can help me out?
I wrote the same script within an ARAS Method and it's working fine, I do not understand why.
Below is my code:
Dim part_select As Aras.IOM.Item = MyInnovator.getItemById("Part", "01391FC6931A4BFDB8A0BDB34C80D9DE")
part_select = part_select.apply()
Dim partBom As Aras.IOM.Item = MyInnovator.newItem("Part BOM", "get")
partBom.setAttribute("select", "name,item_number")
part_select.addRelationship(partBom)
Dim count As Integer = part_select.getItemCount()
Dim results As Aras.IOM.Item = part_select.apply()
Console.WriteLine("Number of relation : " & count)
Dim item As Aras.IOM.Item = results.getRelationships()
Dim bom As Aras.IOM.Item = item.getRelatedItem()
Dim i As Integer = 0
For i = 0 To count
Console.WriteLine("nom : " & bom.getItemByIndex(i).getProperty("name", "na"))
Next
Thanks!
Xavier
Classes and Methods usage in Server methods.
Hi all,
I have read Programmers Guide and some Wikis to understand Classes and Methods usage for Server methods. But still I have some doubts on using the Innovator object inside a Method. Here I' m mentioning a small example.
public class Test { ////Kindly ignore the syntax errors if any
public string GetItemName(Innovator inn); {
Item part = inn.newItem("Part","get");
part.setAttribute("where","[PART].item_number like 'PRT-001' " );
Item res_part = part.apply(); string part_name = res_part.getProperty("name"); return part_name; }
public static void main(){
Test t = new Test(); ///Instance ///// Call the GetItemName method
//// I want to store the Method return value in a temporary variable to use inside Main()
String new_name = t.GetItemName( inn); ///Here I" m confused with what the parameter to be passed
} /// Error states that 'inn' does' t exists in current context
How can I use the GetItemName method' s return value inside Main()?
What should be the Parameter to be passed here? And what happens if I declare static Main() as an entry point to the Method?
Thanks in advance, Vin
Deleting / Purging 'In Review' Part referenced in other part revision history
Hi all,
My mistake - made a bit of a blunder here, I mistakenly deleted an ECO that was currently in progress (logged in as super user) and as a result, I have a part that is now stuck at 'In Review, Rev B.'
I need to either get this part back to Rev A, Release - or deleted completely to start again.
If I try to delete, or purge the part - I can't because it's referenced elsewhere, which is in the historic generations of another parts BOM, generation 8 and 13 to be specific.
If I go into the other parts revision history, and delete the BOM relationship in gen 8 and 13, I'm still unable to delete the In Review part, as next time I look back where I've just deleted the relationship from, it is still there...
I can't think of any way to now delete this part - sitting there In Review. I can't purge it, I can't delete it, I can't manually release it as it's not preliminary, I can't promote it as no promotions available...
I've spent a good few hours tearing my hair out, now I truly am stuck....
Any help would be greatly appreciated.
Access to the Main Form DOM from Relationship Method
In ARAS 10.0, what is the appropriate way to access the DOM of the main Form from a Relationship Grid event?
Here is the gist of the situation: I have a method (Javascript), that is a Relationship Grid event, and in that event, I want to access some HTML elements on the main form.
In previous versions of ARAS, I was able to get to this via :
parent.parent.frames[1].document; //form document object
However, in 10.0 ...this doesn't work at all :(
Thanks in advance for any advice!
HTML field's onload event is not firing on all forms of an Itemtype
Hi,
Added three Forms under Views of an Itemtype. Selected type as 'Default' for all the three forms and selected different classifications for two forms, no classification is selected for a form.
Each form has an HTML field with the following HTML code:
<head>
<script type="text/javascript">
function loadChecks()
{
alert("here");
var inn =top.aras.newIOMInnovator();
//..
//..code here
//..
}
</script>
</head>
<body onload="loadChecks();">
<div id="lists">
</div>
</body>
The above event is firing and giving the result with the html field which is on the first form(for which classification is not selected).
The same is not firing on the other two forms for which there is a classification. What would be the reason? Setting setTimeout(loadChecks,1000) is the only solution?
Thanks in advance for any help!
Start a new Innovator Firefox client or connect to an already running Firefox client
Hello All,
I would like to know, how to either start a new Innovator Firefox client or connect to an already running Innovator Firefox client from another process.
In IE we have a similar solution in community (Below is the URL). I would like to do exactly the same in Firefox.
http://www.aras.com/projects/project-view.aspx?id=AE0F609553CB4FB7B2382809EC8EC6DF
Thanks,
Bali
Programmatically adding new items/values to form
Hello everyone!
I am currently struggling with the a small problem. I am looking for a way to add values, when a button is pressed. I can call a method, when the button is pressed and I can also retrieve the wanted information. But I do not find any steps how to add values to form items, when the form is already shown. When the window/form is shown, the listbox is still empty, because the listbox has to be filled, when a certain action is triggered.
I went through the forms in the Innovator, but I did not find not even one solution to my problem. I went through the examples, documentation and so on, but I have no clue what is the best practice. I created a form, where I have a button. By pressing the button, a JavaScript/client method is invoked and the client calls the business logic. The value is returned to the client and has to be set into the Listbox - I am trying to add an array of values to the Listbox. How can I programatically add values to the Listbox. Should I write the reference of the Lisbox name and set those array values by going with something like "this.form.listbox.value" and then afterwards refresh the form. In this way the value is linked to the form item (the linked value to the item is then set) and I only have to refresh the page after the set. OR is there another way to deal with it? Should I rather create an custom HTML code if I am trying to programmatically add stuff to the window?
If the first option is possible, is there somewhere written how you can pass values to those items? I know I can get the value of a filled textfield through this.form.ITEM_NAME.value. Can you get all the values (Radio button list, listbox, etc) from the form items like this? Can you also set those value like this and then only refresh the window?
ARAS and Microsoft Navision ERP
Are any members of this forum running ARAS in conjunction with Microsoft Navision ERP? If you are or know any one that is please let me know. I just want to get a feel for how well do they play with each other.
Thank you,
Milton Bonilla
Extend bom quantity roll up report to include part "description" and "manufacturer"
Hi there
Does anyone have a stylesheet which matches this description?
Any help would be appreciated.
Thanks so much
Heidi