Change Date Format in Calendar Control Date field
I have a date field in my custom form that is not bound to any item type. The Calendar Control Time selection is disabled by default as the default format is Short date. How do i change this to long date so the time selection is enabled?14KViews0likes7CommentsHow to pass Form fields value to Method
I'm new in Aras Innovator and I need some help with Forms. I have created a simple form with first name and last name and with a Submit button. The button's click event will call a method where I want to use the first and the last name field values. How can I pass the value from form to method and how can I use it there? And also where can I complete the form to try it?13KViews0likes6CommentsSimple search not working on dynamically setting search value for Activity2 Itemtype?
Hi Team, I have Item A and have "Activity2" relationship Item. I m setting search value for one of the field in Activity2. On clicking of search it not working. Following is way I am setting field search value //Setting filter value in search dialog box var Filter = {}; Filter["proj_num"] = { filterValue: 1333|1393, isFilterFixed: false }; return Filter; proj_num is one of the OTB field in form But if I Manually search with same value(1333|1393) it give result. I don't know what is going wrong. Any one please can help me out of this? Thanks in advanceSolved11KViews0likes5CommentsARAS 12 - Force to take all the available place
For an ItemType without relationship, ARAS 11 lets all the available place for the display of the item. See my ItemType in ARAS 11: But with ARAS 12, this is not the case. See the same ItemType in ARAS 12: Is there a solution to force the "Costing Context" to take all the place or to remove this frame ? Thank you in advance for your help? Regards.11KViews0likes8CommentsHow to open a Item in a new Window instead from a Form
Hi, I have a simple dialog form that contains a button that adds and opens a new Document Item. Unfortunately the new Document is not accessibly while I am still in the dialog. The Documet is added as new Aras tab in the background. Is it possible to display the Document in a new window in the front so user can edit the Document while still using the dialog? If I click the button, the following Method is called: // Create new Document var docItem = innovator.newItem("Document","add"); docItem.setProperty("item_number", "DOC-1234"); docItem.setProperty("description", "testtext"); var resultItem = docItem.apply(); var docId = resultItem.getID(); top.aras.uiShowItem("Document", docId); I tested the following command for opening my Document in a new Form ->top.aras.uiShowItemInFrameEx(window, resultItem, "view", 1,formNd ); But with this option I am only able to open the bare Document Form without the Relationships. But I need to display the whole Item, including the Relationships. Thanks and best regards! Angela10KViews1like3Comments- 8.6KViews0likes7Comments
Disable a Relationship Tab
I added a relationship to Part Item Type and I tried to disable the relationship tab in certain condition( the condition is not added to the code yet) . Relationship name ="a_Cost Data", label =" Cost Data", I am not sure which one I should use for GetTsbId(?) , tried both of them, neither works, the Cost Data tab is still enable. The action of the method is added to the Part Form Event , Event = onLoad Please advice Thanks if (parent.relationships.relTabbar !==null){ clearInterval(interval); disableTab(); } function disableTab() { var showTab = false; var tabbar = parent.relationships.relTabbar; var tabID =tabbar.GetTsbID(" a_Cost Data"); //var tabID =tabbar.GetTsbID("Cost Data"); if (!tabID){ aras.AlertError("Cannot access Tab") } else { tabbar.setTabEnabled(tabid,showTab); } return; } Also I like to know if there is any documentation for all the Form related functions and use cases, I couldn't find at ARAS Programming Guide or ARAS API references8.6KViews0likes5CommentsHow to set system date properties(Target Start & Target finish) dynamically?
Hello Team, I am trying to set the project template Target start and target finish property dynamically(date_start_target & date_start_due). I am able to set date in field using following code. //Getting today's date var Todaysdate = new Date(); //Getting date in dd/MM/yyy format var Currentdate = Todaysdate.getDate() + "/" + (Todaysdate.getMonth()+1) + "/" + Todaysdate.getFullYear(); //alert(Currentdate); var newdate = new Date(Todaysdate); //Setting Next day date newdate.setDate(newdate.getDate() + 1); //Getting date in dd/MM/yyy format var NextDate = newdate.getDate() + "/" + (newdate.getMonth()+1) + "/" + newdate.getFullYear(); //alert(NextDate); //Setting Project Target Start and Target Finish property with new values. window.handleItemChange("date_start_target",Currentdate); window.handleItemChange("date_due_target",NextDate); On click of saving project it give following error I am not getting which format is required. Can any one please help me out?Solved8.5KViews0likes4CommentsHow to edit code for submit on Project form?
Hi Team, I want to modify code for highlighted red section. I tried to find the function for same but I dint find and also din't find button on form(PM_projectOnAdd). Any one can please help where I can find this event method ?Solved7.8KViews0likes6CommentsHow to Set RelationShip field value result as onFormPopulated ?
I have a itemtype call 'Part' , Part has a field call 'part price' (type is decimal) Part has a relationship call Part_detail Part_detail has a field call 'RP price' (type is int). I need "part price" to have thousand separator, but it is only for displayed, and does not need to be in the database after save so I use onFormPopulated event to set code as : document.getElementsByClassName('part_price')[0].value = originalValue.replace( RegExp, '$1,'$2'); It is work ! but I need "RP price" to have thousand separator ,too ! It is relationship and has no onFormPopulated event to code What should I do to have the same effect as "part price" (thousand separator just for show , not need to save in database )? and where I can edit relationship DOM ?7.8KViews0likes5Comments