Forum Discussion

Nayak_Ragh's avatar
Nayak_Ragh
Occasional Contributor
4 years ago

How to extract the data from the ObjectProperty

    I have spied on an object using 'Set Variable Value' assigning it to a new variable (Var1). Its value is  Aliases.Ax32.Purchase_order.TaskPageLayout.PartHostSplitContainer.SplitterPanel.NativeW...
  • Nayak_Ragh's avatar
    Nayak_Ragh
    4 years ago

    This is the code I used and it worked for me

    var obj = aqObject.GetPropertyValue(Aliases.Ax32.Purchase_order.TaskPageLayout.PartHostSplitContainer.SplitterPanel.NativeWindowControl.NativeWindowWithEvents.PurchTable.AxTabCtrl.AxPaneWnd.AxPaneWnd.Cable_Assembly_Llc, "Value");

    var objValue = aqConvert.VarToStr(obj);

    var obj1 = objValue.split(":");

    var objFirst = obj1[0];

    Log.Message(objFirst);