Differences
This shows you the differences between two versions of the page.
Last revisionBoth sides next revision | |||
72:custom_report_tipsandtricks_retrieving_element [2019/02/07 13:49] – created ext-bkkr | 72:custom_report_tipsandtricks_retrieving_element [2019/03/08 18:57] – ext-bkkr | ||
---|---|---|---|
Line 1: | Line 1: | ||
====== Retrieving the Parent Element Path ====== | ====== Retrieving the Parent Element Path ====== | ||
+ | **Function to Retrieve the Parent Element Path** | ||
+ | |||
+ | < | ||
+ | function getParent(myelement) { | ||
+ | var path = ""; | ||
+ | do { | ||
+ | var parent = | ||
+ | |||
+ | | ||
+ | |||
+ | if (parent[0].getProperty(" | ||
+ | | ||
+ | } | ||
+ | if (path =="" | ||
+ | path = parent[0].getProperty(" | ||
+ | else | ||
+ | path = parent[0].getProperty(" | ||
+ | | ||
+ | } while (parent[0].getProperty(" | ||
+ | | ||
+ | } | ||
+ | </ | ||