<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Widget Extensions / CustomEditor / Incomplete Documentation / NO HELP, YET! in ThingWorx Developers</title>
    <link>https://www.ptcusercommunity.com/t5/ThingWorx-Developers/Widget-Extensions-CustomEditor-Incomplete-Documentation-NO-HELP/m-p/973119#M67830</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://www.ptcusercommunity.com/t5/user/viewprofilepage/user-id/840243"&gt;@Catalina&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;sorry to say, but the answer on my question was: "That is "internal API" and there will be no further support or documentation".&lt;BR /&gt;I got consolation but no acceptable solution, yet.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;Greetings&lt;/P&gt;&lt;P&gt;Andreas&lt;/P&gt;</description>
    <pubDate>Mon, 23 Sep 2024 09:55:09 GMT</pubDate>
    <dc:creator>atondorf</dc:creator>
    <dc:date>2024-09-23T09:55:09Z</dc:date>
    <item>
      <title>Widget Extensions / CustomEditor / Incomplete Documentation / NO HELP, YET!</title>
      <link>https://www.ptcusercommunity.com/t5/ThingWorx-Developers/Widget-Extensions-CustomEditor-Incomplete-Documentation-NO-HELP/m-p/971823#M67767</link>
      <description>&lt;P&gt;There are several posts regarding this issue, but all of them lead to nothing, yet.&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.ptc.com/t5/ThingWorx-Developers/Custom-Widget-How-to-create-Custom-Dialog-for-custom-widget/m-p/921533" target="_blank" rel="noopener"&gt;Custom Widget - How to create Custom Dialog for cu... - PTC Community&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;A href="https://community.ptc.com/t5/ThingWorx-Developers/Mashup-Widget-Custom-Dialog-API/m-p/532001" target="_blank" rel="noopener"&gt;Mashup Widget Custom Dialog API - PTC Community&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://www.ptc.com/en/support/article/CS276506?&amp;amp;_gl=1%2A7u11ur%2A_gcl_au%2AMTA0Nzg2NjM2OC4xNzI2MTU1Mzg2%2A_ga%2AOTYwNzIzNTk1LjE3MjYxNTUzODY.%2A_ga_7NMP2MSYPM%2AMTcyNjU3MDk0Ny40LjEuMTcyNjU3MjcwNi42MC4wLjA." target="_blank" rel="noopener"&gt;Article - CS276506 - Documentation/detail missing on Mashup Widget Custom Dialog API refered to in the Widget API for developing custom ThingWorx Extensions (ptc.com)&lt;/A&gt;&lt;/P&gt;&lt;P&gt;So I will retry!&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Current Documentation of CustomWidgets is:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;&lt;A href="https://support.ptc.com/help/thingworx/platform/r9.5/en/#page/ThingWorx/Help/Best_Practices_for_Developing_Applications/visualization_widgets_AddingCustomWidgets.html#" target="_blank" rel="noopener"&gt;Creating Customized ThingWorx Widgets (ptc.com)&lt;/A&gt;&amp;nbsp;- for classic approach using pure JS&lt;/LI&gt;&lt;LI&gt;&lt;A href="https://support.ptc.com/help/thingworx_hc/web_component_sdk/" target="_blank" rel="noopener"&gt;Development Guidelines - ThingWorx Web Component SDK - Lit (ptc.com)&lt;/A&gt;&amp;nbsp;- for LIT&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;Neither of them explain, how the Property "&lt;SPAN&gt;customEditor" of the *.ide.js can be used to show a dialog,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;or better what the API of this Dialog Class should look like! So the documentation is still incomplete.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Even this great repos:&amp;nbsp;&lt;A href="https://github.com/jmccuen/ThingworxWidgetAPI" target="_blank" rel="noopener"&gt;jmccuen/ThingworxWidgetAPI (github.com)&lt;/A&gt;&amp;nbsp;leavees us alone.&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;&lt;P&gt;customEditor - name of the custom editor dialog to use for entering/editing the widget’s configuration. If you put xxx, the system presumes you have created TW.IDE.Dialogs.xxx that conforms to the Mashup Widget Custom Dialog API (described in a separate document).&amp;nbsp;&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So my current status is this:&lt;/P&gt;&lt;P&gt;widget1.ide:&lt;/P&gt;&lt;PRE&gt;TW.IDE.Widgets.widget1 = function () {&lt;BR /&gt;&lt;SPAN&gt;    this.widgetProperties = function () {&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;    return {&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;        name: 'Widget1',&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;        description: '',&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;        category: ['Common'],&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;        customEditor: "widget1CustomEditor",&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;        customEditorMenuText: "Configure Widget",&lt;BR /&gt;....&lt;/SPAN&gt;&lt;/PRE&gt;&lt;P&gt;widget1.customdialog.ide.js:&lt;/P&gt;&lt;DIV&gt;&lt;PRE&gt;&lt;SPAN&gt;TW&lt;/SPAN&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;SPAN&gt;IDE&lt;/SPAN&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;SPAN&gt;Dialogs&lt;/SPAN&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;SPAN&gt;widget1CustomEditor&lt;/SPAN&gt; &lt;SPAN&gt;=&lt;/SPAN&gt; &lt;SPAN&gt;function&lt;/SPAN&gt;&lt;SPAN&gt; () {&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;this&lt;/SPAN&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;SPAN&gt;title&lt;/SPAN&gt; &lt;SPAN&gt;=&lt;/SPAN&gt; &lt;SPAN&gt;"Edit Source"&lt;/SPAN&gt;&lt;SPAN&gt;;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;this&lt;/SPAN&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;SPAN&gt;renderDialogHtml&lt;/SPAN&gt; &lt;SPAN&gt;=&lt;/SPAN&gt; &lt;SPAN&gt;function&lt;/SPAN&gt;&lt;SPAN&gt; (&lt;/SPAN&gt;&lt;SPAN&gt;widgetObj&lt;/SPAN&gt;&lt;SPAN&gt;) {&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;console&lt;/SPAN&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;SPAN&gt;log&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;"Rendering Dialog"&lt;/SPAN&gt;&lt;SPAN&gt;);&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;return&lt;/SPAN&gt; &lt;SPAN&gt;`&lt;/SPAN&gt;&lt;SPAN&gt;&amp;lt;&lt;/SPAN&gt;&lt;SPAN&gt;div&lt;/SPAN&gt; &lt;SPAN&gt;class&lt;/SPAN&gt;&lt;SPAN&gt;=&lt;/SPAN&gt;&lt;SPAN&gt;"configure-widget-content"&lt;/SPAN&gt;&lt;SPAN&gt;&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;&amp;lt;&lt;/SPAN&gt;&lt;SPAN&gt;h1&lt;/SPAN&gt;&lt;SPAN&gt;&amp;gt;&lt;/SPAN&gt;&lt;SPAN&gt;Widget Config&lt;/SPAN&gt;&lt;SPAN&gt;&amp;lt;/&lt;/SPAN&gt;&lt;SPAN&gt;h1&lt;/SPAN&gt;&lt;SPAN&gt;&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;&amp;lt;&lt;/SPAN&gt;&lt;SPAN&gt;textarea&lt;/SPAN&gt; &lt;SPAN&gt;id&lt;/SPAN&gt;&lt;SPAN&gt;=&lt;/SPAN&gt;&lt;SPAN&gt;"widgetSrcEditor"&lt;/SPAN&gt;&lt;SPAN&gt;&amp;gt;&amp;lt;/&lt;/SPAN&gt;&lt;SPAN&gt;textarea&lt;/SPAN&gt;&lt;SPAN&gt;&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;&amp;lt;/&lt;/SPAN&gt;&lt;SPAN&gt;div&lt;/SPAN&gt;&lt;SPAN&gt;&amp;gt;&lt;/SPAN&gt;&lt;SPAN&gt;`&lt;/SPAN&gt;&lt;SPAN&gt;;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; };&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;this&lt;/SPAN&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;SPAN&gt;afterRender&lt;/SPAN&gt; &lt;SPAN&gt;=&lt;/SPAN&gt; &lt;SPAN&gt;function&lt;/SPAN&gt;&lt;SPAN&gt; (&lt;/SPAN&gt;&lt;SPAN&gt;domElementId&lt;/SPAN&gt;&lt;SPAN&gt;) {&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; };&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;};&lt;/SPAN&gt;&lt;/PRE&gt;&lt;/DIV&gt;&lt;P&gt;This is working and gives me the Dialog:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="atondorf_0-1726573410973.png" style="width: 400px;"&gt;&lt;img src="https://www.ptcusercommunity.com/t5/image/serverpage/image-id/110588i94DAB272BB066F63/image-size/medium?v=v2&amp;amp;px=400" role="button" title="atondorf_0-1726573410973.png" alt="atondorf_0-1726573410973.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;With this html-tree:&lt;/P&gt;&lt;PRE&gt;&amp;lt;ux-dialog class="custom-editor-dialog ui-dialog au-target" au-target-id="1501"&amp;gt;&lt;BR /&gt;&amp;lt;!--view--&amp;gt;&lt;BR /&gt;&amp;lt;ux-dialog-header class="modal-header au-target" au-target-id="1502"&amp;gt;&lt;BR /&gt;&amp;lt;button type="button" class="dialog-close au-target" aria-label="Close" click.trigger="controller.cancel()" au-target-id="291"&amp;gt;&lt;BR /&gt;&amp;lt;span aria-hidden="true"&amp;gt;×&amp;lt;/span&amp;gt;&lt;BR /&gt;&amp;lt;/button&amp;gt;&lt;BR /&gt;&amp;lt;!--anchor--&amp;gt;&lt;BR /&gt;&amp;lt;div class="dialog-header-content"&amp;gt;&lt;BR /&gt;&amp;lt;h4&amp;gt;Configure Widget: widget (Widget1)&amp;lt;/h4&amp;gt;&lt;BR /&gt;&amp;lt;!--slot--&amp;gt;&lt;BR /&gt;&amp;lt;/div&amp;gt;&lt;BR /&gt;&amp;lt;/ux-dialog-header&amp;gt;&lt;BR /&gt;&amp;lt;ux-dialog-body class="modal-body au-target" au-target-id="1504" style="max-height: 1292px; max-width: 2032px;"&amp;gt;&lt;BR /&gt;&amp;lt;!--view--&amp;gt;&lt;BR /&gt;&amp;lt;div id="configure-bindings-dialog" class="custom-editor-content"&amp;gt;&lt;BR /&gt;&amp;lt;div id="configure-bindings-dialog-tabs"&amp;gt;&lt;BR /&gt;&amp;lt;div id="configure-bindings-dialog-custom"&amp;gt;&lt;BR /&gt;&amp;lt;div id="configure-bindings-dialog-custom-contents" innerhtml.bind="_editorHtml" class="au-target" au-target-id="1505"&amp;gt;&lt;BR /&gt;&amp;lt;div class="configure-widget-content"&amp;gt;&lt;BR /&gt;&amp;lt;h1&amp;gt;Widget Config&amp;lt;/h1&amp;gt;&lt;BR /&gt;&amp;lt;textarea id="widgetSrcEditor"/&amp;gt;&lt;BR /&gt;&amp;lt;/div&amp;gt;&lt;BR /&gt;&amp;lt;/div&amp;gt;&lt;BR /&gt;&amp;lt;/div&amp;gt;&lt;BR /&gt;&amp;lt;/div&amp;gt;&lt;BR /&gt;&amp;lt;/div&amp;gt;&lt;BR /&gt;&amp;lt;!--slot--&amp;gt;&lt;BR /&gt;&amp;lt;/ux-dialog-body&amp;gt;&lt;BR /&gt;&amp;lt;ux-dialog-footer class="modal-footer au-target" au-target-id="1506"&amp;gt;&lt;BR /&gt;&amp;lt;button disabled.bind="!model.isValid" class="btn btn-success au-target" click.trigger="done()" au-target-id="1507"&amp;gt;&lt;BR /&gt;Done&lt;BR /&gt;&amp;lt;/button&amp;gt;&lt;BR /&gt;&amp;lt;button class="btn btn-secondary au-target" click.trigger="cancel()" au-target-id="1509"&amp;gt;&lt;BR /&gt;Cancel&lt;BR /&gt;&amp;lt;/button&amp;gt;&lt;BR /&gt;&amp;lt;!--slot--&amp;gt;&lt;BR /&gt;&amp;lt;!--anchor--&amp;gt;&lt;BR /&gt;&amp;lt;/ux-dialog-footer&amp;gt;&lt;BR /&gt;&amp;lt;!--slot--&amp;gt;&lt;BR /&gt;&amp;lt;/ux-dialog&amp;gt;&lt;/PRE&gt;&lt;P&gt;But now to the question:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;So there is a &amp;lt;ux-dialog-header&amp;gt;, &amp;lt;ux-dialog-body&amp;gt; and &amp;lt;ux-dialog-footer&amp;gt;.&lt;/LI&gt;&lt;LI&gt;Why 4 additional div-layers between&amp;nbsp;&amp;lt;ux-dialog-body&amp;gt; and my html?&lt;/LI&gt;&lt;LI&gt;Are Tabs possible&lt;/LI&gt;&lt;LI&gt;How can I control the header and footer, e.g. no Buttons here ...&amp;nbsp;&lt;/LI&gt;&lt;LI&gt;How can I interact with the Widget?&lt;/LI&gt;&lt;LI&gt;How can I use thingworx's aurelia components here?&amp;nbsp; e.g. the codeEditor?&lt;/LI&gt;&lt;LI&gt;Why does this simple sample provide me this tree?&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;So there are predefined Tabs in the CustomDialog? How to use them?&lt;/P&gt;</description>
      <pubDate>Tue, 17 Sep 2024 12:05:30 GMT</pubDate>
      <guid>https://www.ptcusercommunity.com/t5/ThingWorx-Developers/Widget-Extensions-CustomEditor-Incomplete-Documentation-NO-HELP/m-p/971823#M67767</guid>
      <dc:creator>atondorf</dc:creator>
      <dc:date>2024-09-17T12:05:30Z</dc:date>
    </item>
    <item>
      <title>Re: Widget Extensions / CustomEditor / Incomplete Documentation / NO HELP, YET!</title>
      <link>https://www.ptcusercommunity.com/t5/ThingWorx-Developers/Widget-Extensions-CustomEditor-Incomplete-Documentation-NO-HELP/m-p/972009#M67779</link>
      <description>&lt;P&gt;FYI &lt;A href="https://community.ptc.com/t5/ThingWorx-Developers/Custom-Widget-How-to-create-Custom-Dialog-for-custom-widget/m-p/971892/highlight/true#M67769" target="_blank"&gt;https://community.ptc.com/t5/ThingWorx-Developers/Custom-Widget-How-to-create-Custom-Dialog-for-custom-widget/m-p/971892/highlight/true#M67769&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 18 Sep 2024 07:34:56 GMT</pubDate>
      <guid>https://www.ptcusercommunity.com/t5/ThingWorx-Developers/Widget-Extensions-CustomEditor-Incomplete-Documentation-NO-HELP/m-p/972009#M67779</guid>
      <dc:creator>Rocko</dc:creator>
      <dc:date>2024-09-18T07:34:56Z</dc:date>
    </item>
    <item>
      <title>Re: Widget Extensions / CustomEditor / Incomplete Documentation / NO HELP, YET!</title>
      <link>https://www.ptcusercommunity.com/t5/ThingWorx-Developers/Widget-Extensions-CustomEditor-Incomplete-Documentation-NO-HELP/m-p/973113#M67829</link>
      <description>&lt;P&gt;Hi &lt;SPAN style="background: var(--ck-color-mention-background); color: var(--ck-color-mention-text);"&gt;&lt;a href="https://www.ptcusercommunity.com/t5/user/viewprofilepage/user-id/290654"&gt;@atondorf&lt;/a&gt;&lt;/SPAN&gt;,&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;I wanted to see if you got the help you needed.&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;If so, please mark the appropriate reply as the Accepted Solution or please feel free to detail in a reply what has helped you and mark it as the Accepted Solution. It will help other members who may have the same question.&lt;BR /&gt;Please note that industry experts also review the replies and may eventually accept one of them as solution on your behalf.&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;Of course, if you have more to share on your issue, please pursue the conversation.&lt;BR /&gt;&lt;BR /&gt;Thanks,&lt;/P&gt;</description>
      <pubDate>Mon, 23 Sep 2024 09:46:54 GMT</pubDate>
      <guid>https://www.ptcusercommunity.com/t5/ThingWorx-Developers/Widget-Extensions-CustomEditor-Incomplete-Documentation-NO-HELP/m-p/973113#M67829</guid>
      <dc:creator>Catalina</dc:creator>
      <dc:date>2024-09-23T09:46:54Z</dc:date>
    </item>
    <item>
      <title>Re: Widget Extensions / CustomEditor / Incomplete Documentation / NO HELP, YET!</title>
      <link>https://www.ptcusercommunity.com/t5/ThingWorx-Developers/Widget-Extensions-CustomEditor-Incomplete-Documentation-NO-HELP/m-p/973119#M67830</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://www.ptcusercommunity.com/t5/user/viewprofilepage/user-id/840243"&gt;@Catalina&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;sorry to say, but the answer on my question was: "That is "internal API" and there will be no further support or documentation".&lt;BR /&gt;I got consolation but no acceptable solution, yet.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;Greetings&lt;/P&gt;&lt;P&gt;Andreas&lt;/P&gt;</description>
      <pubDate>Mon, 23 Sep 2024 09:55:09 GMT</pubDate>
      <guid>https://www.ptcusercommunity.com/t5/ThingWorx-Developers/Widget-Extensions-CustomEditor-Incomplete-Documentation-NO-HELP/m-p/973119#M67830</guid>
      <dc:creator>atondorf</dc:creator>
      <dc:date>2024-09-23T09:55:09Z</dc:date>
    </item>
  </channel>
</rss>

