Hi all, sorry for late reply. I have found a solution using an alternative method given the existing function in PAD couldn't direct extract the UI element value of the parent.
The website was built using Internet Explorer (IE) and I couldn't inspect the webpage code. The only RPA I can use is UI automation. On the website, I want to post data into the website table's specific cell. The only way to detect the specific cell is UI element - ID. Therefore, I need it to iterate the table with some logic and post it correctly to the cell I want. Initially, I want to grab the cell of the Column header that I want to post my data.
Long story short, I was able to grab the first item (ie row 0 col 0) ID element and increment by a fixed amount (given the table format is consistent) to get the Column header cell ID - I was able to iterate thereafter.
Nevertheless, appreciate you all for sharing and helping me :). Thank you very much.
PS. I have thought of using the column header to iterate like what we did in excel but can't - the information I obtained by spying element is not robust/sufficient to do that. Also, I can't inspect the whole website (built using IE).