From be85f8cef2de79920c9da8fc14dfea04734ca35f 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:27 +0000 Subject: [PATCH 1/2] Initial plan From 3eb663def9ad874d8da03e5d3d6c92d14adabe40 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Fri, 4 Jul 2025 11:33:41 +0000 Subject: [PATCH 2/2] Changes before error encountered Co-authored-by: silvath <2657156+silvath@users.noreply.github.com> --- .../SetExternalFrameMessage/description.html | 1 + .../SetExternalFrameMessage/parameters.json | 27 +++++++++++++++++++ .../samples/001/content.html | 13 +++++++++ .../samples/001/description.html | 1 + .../samples/002/content.html | 14 ++++++++++ .../samples/002/description.html | 1 + 6 files changed, 57 insertions(+) create mode 100644 src/WebDocs/wwwroot/app/functions/SetExternalFrameMessage/description.html create mode 100644 src/WebDocs/wwwroot/app/functions/SetExternalFrameMessage/parameters.json create mode 100644 src/WebDocs/wwwroot/app/functions/SetExternalFrameMessage/samples/001/content.html create mode 100644 src/WebDocs/wwwroot/app/functions/SetExternalFrameMessage/samples/001/description.html create mode 100644 src/WebDocs/wwwroot/app/functions/SetExternalFrameMessage/samples/002/content.html create mode 100644 src/WebDocs/wwwroot/app/functions/SetExternalFrameMessage/samples/002/description.html diff --git a/src/WebDocs/wwwroot/app/functions/SetExternalFrameMessage/description.html b/src/WebDocs/wwwroot/app/functions/SetExternalFrameMessage/description.html new file mode 100644 index 00000000..1782bf4f --- /dev/null +++ b/src/WebDocs/wwwroot/app/functions/SetExternalFrameMessage/description.html @@ -0,0 +1 @@ +

You can use SetExternalFrameMessage to send data to an external iframe using the postMessage API. This function allows communication between the parent page and an iframe by sending structured messages containing data from Drapo storage.

\ No newline at end of file diff --git a/src/WebDocs/wwwroot/app/functions/SetExternalFrameMessage/parameters.json b/src/WebDocs/wwwroot/app/functions/SetExternalFrameMessage/parameters.json new file mode 100644 index 00000000..3289805b --- /dev/null +++ b/src/WebDocs/wwwroot/app/functions/SetExternalFrameMessage/parameters.json @@ -0,0 +1,27 @@ +[ + { + "Name": "FrameID", + "Description": "The ID of the iframe element that will receive the message", + "Types": [ "text" ], + "Optional": false + }, + { + "Name": "ExternalFunction", + "Description": "The tag or function name that identifies the message purpose in the receiving iframe", + "Types": [ "text" ], + "Optional": false + }, + { + "Name": "DataKey", + "Description": "The identification of a storage item whose data will be sent to the iframe", + "Types": [ "datakey" ], + "Optional": false + }, + { + "Name": "IsClone", + "Description": "Indicates whether to clone the data before sending. When true, creates a deep copy of the data", + "Types": [ "boolean" ], + "Optional": true, + "DefaultValue": "false" + } +] \ No newline at end of file diff --git a/src/WebDocs/wwwroot/app/functions/SetExternalFrameMessage/samples/001/content.html b/src/WebDocs/wwwroot/app/functions/SetExternalFrameMessage/samples/001/content.html new file mode 100644 index 00000000..c036320e --- /dev/null +++ b/src/WebDocs/wwwroot/app/functions/SetExternalFrameMessage/samples/001/content.html @@ -0,0 +1,13 @@ +
+
+

User Data:

+
+ Name: {{user.Name}}, Age: {{user.Age}}
+
+
+ +

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

Send user data to an external iframe with the specified tag for processing or display

\ No newline at end of file diff --git a/src/WebDocs/wwwroot/app/functions/SetExternalFrameMessage/samples/002/content.html b/src/WebDocs/wwwroot/app/functions/SetExternalFrameMessage/samples/002/content.html new file mode 100644 index 00000000..b0291565 --- /dev/null +++ b/src/WebDocs/wwwroot/app/functions/SetExternalFrameMessage/samples/002/content.html @@ -0,0 +1,14 @@ +
+
+

Application Configuration:

+

Theme: {{config.Theme}}

+

Language: {{config.Language}}

+

Timeout: {{config.Timeout}}ms

+
+ + +

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

Send configuration data with clone enabled to ensure the iframe receives a copy that cannot affect the parent data

\ No newline at end of file