From bdca0e836699660da48c145b4ce5168d94de7bd4 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Fri, 4 Jul 2025 11:24:04 +0000 Subject: [PATCH 1/4] Initial plan From 2485d2df5bbcf4a0232aab6aca249837b7c9055d Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Fri, 4 Jul 2025 11:31:44 +0000 Subject: [PATCH 2/4] Add GetExternalFrame Drapo function documentation Co-authored-by: silvath <2657156+silvath@users.noreply.github.com> --- .../GetExternalFrame/description.html | 1 + .../GetExternalFrame/parameters.json | 27 +++++++++++++++++++ .../GetExternalFrame/samples/001/content.html | 23 ++++++++++++++++ .../samples/001/description.html | 1 + 4 files changed, 52 insertions(+) create mode 100644 src/WebDocs/wwwroot/app/functions/GetExternalFrame/description.html create mode 100644 src/WebDocs/wwwroot/app/functions/GetExternalFrame/parameters.json create mode 100644 src/WebDocs/wwwroot/app/functions/GetExternalFrame/samples/001/content.html create mode 100644 src/WebDocs/wwwroot/app/functions/GetExternalFrame/samples/001/description.html diff --git a/src/WebDocs/wwwroot/app/functions/GetExternalFrame/description.html b/src/WebDocs/wwwroot/app/functions/GetExternalFrame/description.html new file mode 100644 index 00000000..436fed50 --- /dev/null +++ b/src/WebDocs/wwwroot/app/functions/GetExternalFrame/description.html @@ -0,0 +1 @@ +

The GetExternalFrame function retrieves data from an external iframe by calling a specified function within that iframe and storing the result in a data key. This function enables communication between the main page and embedded iframes, allowing you to get data from external content.

\ No newline at end of file diff --git a/src/WebDocs/wwwroot/app/functions/GetExternalFrame/parameters.json b/src/WebDocs/wwwroot/app/functions/GetExternalFrame/parameters.json new file mode 100644 index 00000000..cf0115a5 --- /dev/null +++ b/src/WebDocs/wwwroot/app/functions/GetExternalFrame/parameters.json @@ -0,0 +1,27 @@ +[ + { + "Name": "frameID", + "Description": "The ID of the iframe element from which to retrieve data", + "Types": [ "text", "mustache" ], + "Optional": false + }, + { + "Name": "externalFunction", + "Description": "The name of the function to call within the iframe to retrieve data", + "Types": [ "text", "mustache" ], + "Optional": false + }, + { + "Name": "dataKey", + "Description": "The data key where the retrieved data will be stored", + "Types": [ "text", "mustache" ], + "Optional": false + }, + { + "Name": "isClone", + "Description": "Whether to clone the retrieved data before storing it", + "Types": [ "boolean" ], + "Optional": true, + "DefaultValue": "false" + } +] \ No newline at end of file diff --git a/src/WebDocs/wwwroot/app/functions/GetExternalFrame/samples/001/content.html b/src/WebDocs/wwwroot/app/functions/GetExternalFrame/samples/001/content.html new file mode 100644 index 00000000..95b4666c --- /dev/null +++ b/src/WebDocs/wwwroot/app/functions/GetExternalFrame/samples/001/content.html @@ -0,0 +1,23 @@ +
+
+

GetExternalFrame Example

+ + + + + +
+

Data Retrieved from Frame:

+ +
+
+

No data retrieved yet. Click the button above to get data from the external frame.

+
+ + +

Note: This example demonstrates calling a GetSampleData() function inside an iframe with ID "myExternalFrame".

+
\ No newline at end of file diff --git a/src/WebDocs/wwwroot/app/functions/GetExternalFrame/samples/001/description.html b/src/WebDocs/wwwroot/app/functions/GetExternalFrame/samples/001/description.html new file mode 100644 index 00000000..02370d47 --- /dev/null +++ b/src/WebDocs/wwwroot/app/functions/GetExternalFrame/samples/001/description.html @@ -0,0 +1 @@ +

A sample demonstrating how to use GetExternalFrame to retrieve data from an external iframe by calling a function within that iframe and displaying the result

\ No newline at end of file From 344239ae085233db4b99a83eae1e5ed774c84f2f Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Mon, 18 Aug 2025 11:57:43 +0000 Subject: [PATCH 3/4] Update GetExternalFrame sample to match proper HTML structure Co-authored-by: silvath <2657156+silvath@users.noreply.github.com> --- .../GetExternalFrame/samples/001/content.html | 54 +++++++++++-------- 1 file changed, 32 insertions(+), 22 deletions(-) diff --git a/src/WebDocs/wwwroot/app/functions/GetExternalFrame/samples/001/content.html b/src/WebDocs/wwwroot/app/functions/GetExternalFrame/samples/001/content.html index 95b4666c..20c60655 100644 --- a/src/WebDocs/wwwroot/app/functions/GetExternalFrame/samples/001/content.html +++ b/src/WebDocs/wwwroot/app/functions/GetExternalFrame/samples/001/content.html @@ -1,23 +1,33 @@ -
-
-

GetExternalFrame Example

- - - - - -
-

Data Retrieved from Frame:

- + + + + + Function - GetExternalFrame + + + Function - GetExternalFrame +
+
+

GetExternalFrame Example

+ + + + + +
+

Data Retrieved from Frame:

+
    +
  • + {{item.name}}: {{item.value}} +
  • +
+
+
+

No data retrieved yet. Click the button above to get data from the external frame.

+
+ + +

Note: This example demonstrates calling a GetSampleData() function inside an iframe with ID "myExternalFrame".

-
-

No data retrieved yet. Click the button above to get data from the external frame.

-
- - -

Note: This example demonstrates calling a GetSampleData() function inside an iframe with ID "myExternalFrame".

-
\ No newline at end of file + + \ No newline at end of file From 157eab63be926cadcaf85a3daa62986954e6de22 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Mon, 18 Aug 2025 13:24:36 +0000 Subject: [PATCH 4/4] Fix GetExternalFrame sample: add missing iframe element and sample content Co-authored-by: silvath <2657156+silvath@users.noreply.github.com> --- .../GetExternalFrame/samples/001/content.html | 5 +++- .../wwwroot/app/shared/sampleIframe.html | 25 +++++++++++++++++++ 2 files changed, 29 insertions(+), 1 deletion(-) create mode 100644 src/WebDocs/wwwroot/app/shared/sampleIframe.html diff --git a/src/WebDocs/wwwroot/app/functions/GetExternalFrame/samples/001/content.html b/src/WebDocs/wwwroot/app/functions/GetExternalFrame/samples/001/content.html index 20c60655..7667cd1a 100644 --- a/src/WebDocs/wwwroot/app/functions/GetExternalFrame/samples/001/content.html +++ b/src/WebDocs/wwwroot/app/functions/GetExternalFrame/samples/001/content.html @@ -10,6 +10,9 @@

GetExternalFrame Example

+ + + @@ -27,7 +30,7 @@

Data Retrieved from Frame:

-

Note: This example demonstrates calling a GetSampleData() function inside an iframe with ID "myExternalFrame".

+

Note: This example demonstrates calling a GetSampleData() function inside the iframe above with ID "myExternalFrame".

\ No newline at end of file diff --git a/src/WebDocs/wwwroot/app/shared/sampleIframe.html b/src/WebDocs/wwwroot/app/shared/sampleIframe.html new file mode 100644 index 00000000..1c424e74 --- /dev/null +++ b/src/WebDocs/wwwroot/app/shared/sampleIframe.html @@ -0,0 +1,25 @@ + + + + + Sample Iframe Content + + +

External Frame Content

+

This iframe contains sample data that can be retrieved by the parent window.

+ + + + \ No newline at end of file