Hello Everyone,
I am new to PAD and JS. I am scraping information from multiple webpages with identical table layouts. The table is within an IFRAME and because of that when I use the "Extract Data from Webpage" action I can set the table up correctly but I cannot run the action because I receive the error "Export Data can't be found". I believe this is because the data is not on the webpage but instead in the IFRAME.
I can take the URL from the IFRAME and open that URL directly for each webpage by running through Client IDs. My URL for the IFRAMEs is this:
https://my.epitomax.net//epitomax/episode/AllForms.jsp?episode_id=%ClientID%&MAX_ROWS_OVERRIDE=FALSE&ALLFORM_DEFAULT_FORM_TYPE_FILTER='TREATMENT PLAN','PROGRESS NOTE','MISCELLANEOUS','DISCHARGE SUMMARY','ASSESSMENT'
When inspecting the table on each website I see they all have "div id = 'myGrid'". Is there a way to use JavaScript to extract all this table data into a data table on PAD? I need the code to work so that I can run through any webpage with the same generic URL and a new Client ID.
You can also use a Wait for web page content action to wait for an element or text to appear. Then you will not need to have a hardcoded wait. It is usually more efficient this way.
My "Extract Data" action was running before all the data loaded. I added a "Wait" action and it started working again!
Hello,
Thanks for the update about JS. Is there a way to tell it to return the string of the values inside the element labeled "myGrid"? As for extracting from the URL behind the IFRAME is still returns the error "Data Extraction Element not found".
Are there other ways you know of to remedy this problem?
A JS function will never return a table for you. It is always designed to return a string. You will then need to use various processing afterwards in native PAD actions to convert it to a table.
If you can actually open the direct URL behind the iframe, I would suggest opening that web page and using Extract data from web page on it. If the structure of the tables is the same, you should be perfectly fine with it.
-------------------------------------------------------------------------
If I have answered your question, please mark it as the preferred solution. If you like my response, please give it a Thumbs Up.
I also provide paid consultancy and development services using Power Automate. If you're interested, DM me and we can discuss it.
Michael E. Gernaey
497
Super User 2025 Season 2
David_MA
436
Super User 2025 Season 2
Riyaz_riz11
244
Super User 2025 Season 2