abrar22
7 years agoFrequent Contributor
Pass parameter vale in Aliases?
Hi,
I am trying to pass the value through parameter in Aliases but its throwing runtime error. Please help
function FXConnectRFSClientAllin(Val)
{
var intValue= Aliases.jp2launcher.JideSystemShell.Orders.exec_orders.RootPane.null_layeredPane.null_contentPane.SessionDetailsTabbedPanel.Panel.JideTabbedPane.BusyComponent.JXLayer.MultiOrderCardPanel.RFS_Competitive.JS_RFSOrderDetails.wValue(Val)
return intValue
}
Value i am passing is '0,15'
A
Type Mismatch error show me that, you have convert your string to int.
try like below,
function FXConnectRFSClientAllin(rowValue, ColValue) { try { rowValue = aqConvert.VarToInt(rowValue); ColValue = aqConvert.VarToInt(ColValue); } catch (ex) { Log.Error("Invalid inputs"); return; } var intValue = Aliases.jp2launcher.JideSystemShell.Orders.exec_orders.RootPane.null_layeredPane.null_contentPane.SessionDetailsTabbedPanel.Panel.JideTabbedPane.BusyComponent.JXLayer.MultiOrderCardPanel.RFS_Competitive.JS_RFSOrderDetails.wValue(rowValue, ColValue); return intValue }