How to get the same type of component dbid for different floors

clipboard.png

I have the dbid, of the widget in the red box. I need to find the dbid, of the widget with the same name in the yellow box and the name of their parent node is the same. Is there any easy way?
I now look up the dbid of all components with the same name through viewer.search,
, then query their properties
through getBulkProperties, and then traverse one by one to see if the names of the parent nodes are the same.
is there another way?

Sep.10,2021

should be the only way to
get attributes using getProperties
parent object using getNodeParentId (dbId)?

MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1e4c85e-44215.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1e4c85e-44215.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?