Forum Discussion

kaiiii's avatar
kaiiii
Regular Contributor
6 years ago
Solved

problem to understand Propnames and PropValues

TestObj.FindEx(PropNames, PropValues, Depth, Refresh, Timeout) hi , in the above line i am facing problem to understand PropNames and PropValues. How can i put a value into them... please explain...
  • tristaanogre's avatar
    tristaanogre
    6 years ago

    If you are wanting to use Find or FindEx to search for that object, a suggested bit of code would be something like

     

    //parentObject is whatever you have designated as an ancestor of the object you are trying to find
    
    //First parameter is an array of strings representing the names of the properties to be used in the search
    
    //Second parameter is an array of strings representing the respective values of those properties for the search
    
    //Third parameter is the maximum depth down in the hierachy tree, starting with the parent object, to search for the object which has properties of those names with those values
    
    
    parentObject.Find(['ObjectType', 'ViewId'], ['Layout', 'NO_ID'], 10)