<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
  <channel>
    <title>Generic Message API for web dialogs on sillysky.net</title>
    <link>https://sillysky.net/docs/doc-remoteskin/remoteskin-for-the-web/generic-message-api-for-web-dialogs/</link>
    <description>Recent content in Generic Message API for web dialogs on sillysky.net</description>
    <generator>Hugo</generator>
    <language>en</language>
    <lastBuildDate>Tue, 09 Dec 2025 00:00:00 +0000</lastBuildDate>
    <atom:link href="https://sillysky.net/docs/doc-remoteskin/remoteskin-for-the-web/generic-message-api-for-web-dialogs/index.xml" rel="self" type="application/rss+xml" />
    <item>
      <title>CRecordShowWebDialog</title>
      <link>https://sillysky.net/docs/doc-remoteskin/remoteskin-for-the-web/generic-message-api-for-web-dialogs/crecordshowwebdialog/</link>
      <pubDate>Tue, 09 Dec 2025 00:00:00 +0000</pubDate>
      <guid>https://sillysky.net/docs/doc-remoteskin/remoteskin-for-the-web/generic-message-api-for-web-dialogs/crecordshowwebdialog/</guid>
      <description>&lt;p&gt;The CRecordShowWebDialog message can be used to create and display a dialog&#xA;that has been deployed as a microservice.&lt;/p&gt;&#xA;&lt;p&gt;The message is part of the &lt;a href=&#34;https://sillysky.net/docs/doc-remoteskin/remoteskin-for-the-web/generic-message-api-for-web-dialogs/&#34;&gt;Web Dialog API&lt;/a&gt; of &lt;a href=&#34;https://sillysky.net/docs/doc-remoteskin/remoteskin-for-the-web/&#34;&gt;RemoteSkin for Web&lt;/a&gt;. The API is part of the NY_RemoteSkinWebProtocolAPI plugin.&lt;/p&gt;&#xA;&lt;pre class=&#34;ss-javacode&#34;&gt;&lt;code class=&#34;language-json&#34;&gt;{&#xA;  &#34;id&#34;: &#34;d64362ee-b6cb-4dde-97e0-e51c7fbc2b03&#34;,&#xA;  &#34;name&#34;: &#34;SHOW_WEB_DIALOG&#34;,&#xA;  &#34;description&#34;: &#34;Create and show the web dialog.&#34;,&#xA;  &#34;slots&#34;: [&#xA;    {&#xA;      &#34;key&#34;: &#34;1&#34;,&#xA;      &#34;name&#34;: &#34;CLIENT_TARGET_ADDRESS&#34;,&#xA;      &#34;direction&#34;: &#34;REQUEST&#34;,&#xA;      &#34;presenceConstraint&#34;: &#34;MANDATORY&#34;,&#xA;      &#34;type&#34;: &#34;TARGET_ADDRESS&#34;,&#xA;      &#34;description&#34;: &#34;The target address of the client.&#34;&#xA;    },&#xA;    {&#xA;      &#34;key&#34;: &#34;2&#34;,&#xA;      &#34;name&#34;: &#34;OWNER_TARGET_ADDRESS&#34;,&#xA;      &#34;direction&#34;: &#34;REQUEST&#34;,&#xA;      &#34;presenceConstraint&#34;: &#34;MANDATORY&#34;,&#xA;      &#34;type&#34;: &#34;TARGET_ADDRESS&#34;,&#xA;      &#34;description&#34;: &#34;The target address of the OWNER.&#34;&#xA;    },&#xA;    {&#xA;      &#34;key&#34;: &#34;3&#34;,&#xA;      &#34;name&#34;: &#34;PARENT_WIDGET_ID&#34;,&#xA;      &#34;direction&#34;: &#34;REQUEST&#34;,&#xA;      &#34;presenceConstraint&#34;: &#34;MANDATORY&#34;,&#xA;      &#34;type&#34;: &#34;STRING&#34;,&#xA;      &#34;description&#34;: &#34;The ID of the HTML parent widget.&#34;&#xA;    },&#xA;    {&#xA;      &#34;key&#34;: &#34;4&#34;,&#xA;      &#34;name&#34;: &#34;PARAMS&#34;,&#xA;      &#34;direction&#34;: &#34;REQUEST&#34;,&#xA;      &#34;presenceConstraint&#34;: &#34;OPTIONAL&#34;,&#xA;      &#34;type&#34;: &#34;STRING_PROPERTIES&#34;,&#xA;      &#34;description&#34;: &#34;Optional: unspecified parameters.&#34;&#xA;    },&#xA;    {&#xA;      &#34;key&#34;: &#34;10&#34;,&#xA;      &#34;name&#34;: &#34;DIALOG_TARGET_ADDRESS&#34;,&#xA;      &#34;direction&#34;: &#34;RESPONSE&#34;,&#xA;      &#34;presenceConstraint&#34;: &#34;OPTIONAL&#34;,&#xA;      &#34;type&#34;: &#34;TARGET_ADDRESS&#34;,&#xA;      &#34;description&#34;: &#34;The target address of the dialog.&#34;&#xA;    }&#xA;  ]&#xA;}&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;h2 id=&#34;usage&#34;&gt;Usage&lt;/h2&gt;&#xA;&lt;h3 id=&#34;show-the-dialog&#34;&gt;Show the dialog&lt;/h3&gt;&#xA;&lt;p&gt;To start a dialog that has been implemented as a microservice, we need&lt;/p&gt;</description>
    </item>
    <item>
      <title>CRecordWebNotifyDialogDismissed</title>
      <link>https://sillysky.net/docs/doc-remoteskin/remoteskin-for-the-web/generic-message-api-for-web-dialogs/crecordwebnotifydialogdismissed/</link>
      <pubDate>Tue, 09 Dec 2025 00:00:00 +0000</pubDate>
      <guid>https://sillysky.net/docs/doc-remoteskin/remoteskin-for-the-web/generic-message-api-for-web-dialogs/crecordwebnotifydialogdismissed/</guid>
      <description>&lt;p&gt;This message is a notification. It states that a web dialog has been ended.&lt;/p&gt;&#xA;&lt;p&gt;The message is part of the &lt;a href=&#34;https://sillysky.net/docs/doc-remoteskin/remoteskin-for-the-web/generic-message-api-for-web-dialogs/&#34;&gt;Web Dialog API&lt;/a&gt; of &lt;a href=&#34;https://sillysky.net/docs/doc-remoteskin/remoteskin-for-the-web/&#34;&gt;RemoteSkin for Web&lt;/a&gt;. The API is part of the NY_RemoteSkinWebProtocolAPI plugin.&lt;/p&gt;&#xA;&lt;pre class=&#34;ss-javacode&#34;&gt;&lt;code class=&#34;language-json&#34;&gt;{&#xA;  &#34;id&#34;: &#34;93419a92-5055-4a1f-a35b-59a92467764b&#34;,&#xA;  &#34;name&#34;: &#34;WEB_NOTIFY_DIALOG_DISMISSED&#34;,&#xA;  &#34;description&#34;: &#34;The web dialog has been dismissed.&#34;,&#xA;  &#34;slots&#34;: [&#xA;    {&#xA;      &#34;key&#34;: &#34;1&#34;,&#xA;      &#34;name&#34;: &#34;MICROSERVICE_ID&#34;,&#xA;      &#34;direction&#34;: &#34;REQUEST&#34;,&#xA;      &#34;presenceConstraint&#34;: &#34;MANDATORY&#34;,&#xA;      &#34;type&#34;: &#34;ID&#34;,&#xA;      &#34;description&#34;: &#34;The micro service ID&#34;&#xA;    },&#xA;    {&#xA;      &#34;key&#34;: &#34;2&#34;,&#xA;      &#34;name&#34;: &#34;REASON&#34;,&#xA;      &#34;direction&#34;: &#34;REQUEST&#34;,&#xA;      &#34;presenceConstraint&#34;: &#34;MANDATORY&#34;,&#xA;      &#34;type&#34;: &#34;INT&#34;,&#xA;      &#34;description&#34;: &#34;0: successfully finished, 1: error, 2: canceled by user, 3: canceled by owner&#34;&#xA;    },&#xA;    {&#xA;      &#34;key&#34;: &#34;3&#34;,&#xA;      &#34;name&#34;: &#34;RESULTS&#34;,&#xA;      &#34;direction&#34;: &#34;REQUEST&#34;,&#xA;      &#34;presenceConstraint&#34;: &#34;OPTIONAL&#34;,&#xA;      &#34;type&#34;: &#34;STRING_PROPERTIES&#34;,&#xA;      &#34;description&#34;: &#34;Optional: unspecified results.&#34;&#xA;    }&#xA;  ]&#xA;}&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;h2 id=&#34;usage&#34;&gt;Usage&lt;/h2&gt;&#xA;&lt;p&gt;The message can be caught if you have created a dialog with the&#xA;&lt;a href=&#34;https://sillysky.net/docs/doc-remoteskin/remoteskin-for-the-web/generic-message-api-for-web-dialogs/crecordshowwebdialog/&#34;&gt;CRecordShowWebDialog&lt;/a&gt; message and the dialog has been closed.&lt;/p&gt;</description>
    </item>
    <item>
      <title>CRecordWebDismissDialog</title>
      <link>https://sillysky.net/docs/doc-remoteskin/remoteskin-for-the-web/generic-message-api-for-web-dialogs/crecordwebdismissdialog/</link>
      <pubDate>Thu, 23 Oct 2025 00:00:00 +0000</pubDate>
      <guid>https://sillysky.net/docs/doc-remoteskin/remoteskin-for-the-web/generic-message-api-for-web-dialogs/crecordwebdismissdialog/</guid>
      <description>&lt;p&gt;By sending the CRecordWebDismissDialog message, open web dialogs can be&#xA;terminated programmatically.&lt;/p&gt;&#xA;&lt;p&gt;The message is part of the &lt;a href=&#34;https://sillysky.net/docs/doc-remoteskin/remoteskin-for-the-web/generic-message-api-for-web-dialogs/&#34;&gt;Web Dialog API&lt;/a&gt; of &lt;a href=&#34;https://sillysky.net/docs/doc-remoteskin/remoteskin-for-the-web/&#34;&gt;RemoteSkin for Web&lt;/a&gt;. The API is part of the NY_RemoteSkinWebProtocolAPI plugin.&lt;/p&gt;&#xA;&lt;pre class=&#34;ss-javacode&#34;&gt;&lt;code class=&#34;language-json&#34;&gt;{&#xA;  &#34;id&#34;: &#34;66da8a3a-48c9-4da1-a1f2-cea0f006431b&#34;,&#xA;  &#34;name&#34;: &#34;WEB_DISMISS_DIALOG&#34;,&#xA;  &#34;description&#34;: &#34;Dismiss the web dialog.&#34;,&#xA;  &#34;slots&#34;: [&#xA;  ]&#xA;}&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;h2 id=&#34;usage&#34;&gt;Usage&lt;/h2&gt;&#xA;&lt;p&gt;The target address of the dialog is required. This is obtained in the response&#xA;of the message for starting the dialog.&lt;/p&gt;&#xA;&lt;pre class=&#34;ss-javacode&#34;&gt;&lt;code class=&#34;language-java&#34;&gt;void dismissDialog(@NotNull final &lt;a href=&#34;https://sillysky.net/docs/nyssr/ids-and-addresses/ctargetaddress/&#34;&gt;CTargetAddress&lt;/a&gt; aAddress) throws &lt;a href=&#34;https://sillysky.net/docs/nyssr/other-interfaces/cexception/&#34;&gt;CException&lt;/a&gt;&#xA;{&#xA;    final &lt;a href=&#34;https://sillysky.net/docs/nyssr/messages/cenvelope/&#34;&gt;CEnvelope&lt;/a&gt; env = &lt;a href=&#34;https://sillysky.net/docs/nyssr/messages/cenvelope/&#34;&gt;CEnvelope&lt;/a&gt;.forSingleTarget(aAddress);&#xA;    final &lt;a href=&#34;https://sillysky.net/docs/nyssr/messages/crecord/&#34;&gt;CRecord&lt;/a&gt; record = &lt;a href=&#34;https://sillysky.net/docs/doc-remoteskin/remoteskin-for-the-web/generic-message-api-for-web-dialogs/crecordwebdismissdialog/&#34;&gt;CRecordWebDismissDialog&lt;/a&gt;.create();&#xA;    sendNotification(env,&#xA;                     record);&#xA;}&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;h2 id=&#34;see-also&#34;&gt;See also:&lt;/h2&gt;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;&lt;a href=&#34;https://sillysky.net/docs/tutorials-for-nyssr-net/how-to-build-a-message/&#34;&gt;How to build a message&lt;/a&gt;&lt;/li&gt;&#xA;&lt;/ul&gt;</description>
    </item>
    <item>
      <title>CWebDialogApi</title>
      <link>https://sillysky.net/docs/doc-remoteskin/remoteskin-for-the-web/generic-message-api-for-web-dialogs/cwebdialogapi/</link>
      <pubDate>Mon, 25 Nov 2024 00:00:00 +0000</pubDate>
      <guid>https://sillysky.net/docs/doc-remoteskin/remoteskin-for-the-web/generic-message-api-for-web-dialogs/cwebdialogapi/</guid>
      <description>&lt;p&gt;This is a helper class. It is used to display and handle web dialogs. It is&#xA;located in the plugin NY_RemoteSkinWebProtocolAPI.&lt;/p&gt;&#xA;&lt;h2 id=&#34;constructor&#34;&gt;Constructor&lt;/h2&gt;&#xA;&lt;p&gt;The constructor requires your target, as the messages are sent to the&#xA;microservice with this target. This means that the microservice also receives&#xA;your target address and can send messages to your target.&lt;/p&gt;&#xA;&lt;p&gt;The second parameter is the client address, or more precisely the address of&#xA;the WebSocketServer that has the connection to the browser. This allows the&#xA;microservice to directly manipulate the DOM tree in the browser and receive&#xA;events from the browser.&lt;/p&gt;</description>
    </item>
  </channel>
</rss>
