myothet
7/30/2017 - 11:07 AM

ARAS_NOTES

Userful post about Sending Email Notification 
http://www.aras.com/Community/forums/t/709.aspx

I change this on smtp virtual server 

Smart host
mail.singnet.com.sg

top.aras.AlertError("Invalid Purchase Request No.");


Delete Relationship item OnDeleteRow
http://www.aras.com/Community/forums/p/584/1677.aspx


==================================================
Get value at client side
==================================================
var div_id = getFieldByName("acc_from_account").id;
var control_id = div_id.substring(0, div_id.indexOf("span"));
var select = document.getElementById(control_id);
var selected_index = select.selectedIndex;
var selected_value = select.options[selected_index].text;


==================================================
Get value from client side
==================================================
function getInputByName(inputName){
      var allFields = document.getElementsByName(inputName);
      var requiredField;
      for (var i=0;i<allFields.length;i++){
        if (allFields[i].tagName.toUpperCase()=="INPUT"){
          requiredField = allFields[i];
        }
      }
      return requiredField;
}

var _part_number = getInputByName("item_number").value;


==================================================
Get value from Item Cache
==================================================
var _customer_id = top.aras.getItemProperty(document.item, 'sop_customer');


// CSharp
System.Diagnostics.Debugger.Break();
Innovator myInnovator = this.getInnovator();

// javascript
var myInnovator = new Innovator();



==================================================
XML Tools
==================================================
https://uncss-online.com/
http://www.codebeautifier.com/
http://xmlbeautifier.com/



==================================================
Refersh Form
==================================================
parent.onRefresh();


==================================================
Word-Wrap in HTML Table
==================================================
table.stockDetails
{
table-layout:fixed;
}
table.stockDetails td
{
word-wrap: break-word;
}