Get all the widgets inside a section widget

740 views
Skip to first unread message

sivak...@gmail.com

unread,
Sep 10, 2014, 12:55:01 PM9/10/14
to suppor...@runmyprocess.com
Hi,

I need to get all the widgets inside a section widget. I do not see an API for this in the Javascript api reference. Can you please guide us?

Thank you.

Regards,
Siva

thoshino

unread,
Sep 10, 2014, 4:27:04 PM9/10/14
to suppor...@runmyprocess.com, sivak...@gmail.com
Hi Siva,

There is no way to do exactly what you asked.
Section and its contents are very loosely connected only.
When it renders as HTML page, the section will be the parent table structure for its contents, but I don't recommend digging into DOM too deep.

Instead this might be an acceptable workaround:

You could name your widget ids in that section with some unique prefex/suffix and loop if statement using 
RMPWidgets.getAllWidgets()
or similar, and filter it like, if id contains keyword ...

Like,
id_section-name_widget-name

Best regards,

Taka

sivak...@gmail.com

unread,
Sep 11, 2014, 9:46:44 AM9/11/14
to suppor...@runmyprocess.com, sivak...@gmail.com
Hi Taka,

Thanks for your response. We will have a prefix to track the children of the section.

Regards,
Siva

Reply all
Reply to author
Forward
0 new messages