Monday 20 March 2017

ES6 Arrow Functions: The New Fat & Concise Syntax in JavaScript

Arrow function (fat arrow functions are new ES6 syntax for writing JS functions to save developers time ease of scope.

//param1, param2 => expression

//ES5 old school
var multiply = function (x,y){
return x*y;
};
console.log(multiply(2,3));

//ES6
var multiplynew = (x,y) => { return x*y};
console.log(multiplynew(3,4));


Saturday 18 March 2017

Auto population of LEAD field on Work order | Maximo Functional

1. Group default flag on persongroupteam of person group on the work order.

2. if the work order is generated from PM, then PM.LEAD 

3. alternate person for each primary member in PG. 

if 

group default is not available for the 

target/schedule start time of workroder. 

then 

alternate person.


Availability is determined from the primary calendar field PERSON.PRIMARYCALNUM.

Friday 17 March 2017

Launch in Context, Locate People with Google Map | IBM Maximo

Launch an external website or call an external API in a context. In our case, the context is an application record we are in.

it means the LIC is used to integrate with other products.
let us discuss it with an example, in People appliation, WILSON's addresses (bill to and ship to) will be displayed on google map.



org's address
ibmbrasil
ibmpakistan

1. in people, filer WILSON
set WILSON's workplace as shipto billto addresses.

2. we will use google api to show marker on map for WILSON's addresses. B for bill-to and S for ship-to
(https://developers.google.com/maps/maps-api-list)

Thursday 16 March 2017

Child Dataset in BIRT using Scripted Data Source | IBM Maximo

developing complex reports for Maximo requires a number of data sets in Birt sometimes. And definately every second dataset is a subset/or dependent of Main dataset. therefore every child dataset takes a parameter as input from MainDataSet.

for example;
A PO data set,
and a POLINE dataset, poline dataset takes PONUM as InputParameter from PO.

1. create a Paramter in PolineDataSet "Edit DataSet"
PONUM, String, Input, NULL
2. In Layout tab, draw table, and in Table Data Binding
a Click on DataSet Parameter Binding (b)
b Click Edit (b)
c type/select row["ponum"]
3. In PoLineDataSet's Open event (4 things)
i data source provider
ii dataset open
iii set query
iv Query Parameters

3(i) SetQuery:
we need to append our where class in (iii) set query part
sqlText = "select * from PO where ponum = ?";

don't forget to comment this line in child dataset "where " + param["where"]

3(ii) Query Parameter:
name first paramater in this line
polineDataset.setQueryParamterValue(1,inputParams["ponum"]);

Friday 10 March 2017

How do I detect whether 32-bit Java is installed on x64 Windows

java -d64 -version


If it's not a 64-bit version, you'll get a message that looks like:

This Java instance does not support a 64-bit JVM. Please install the desired version.