cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

The community will undergo maintenance on October 16th at 10:00 PM PDT and will be unavailable for up to one hour.

Custom Widget - How to create Custom Dialog for custom widget?

DK_10003244
6-Contributor

Custom Widget - How to create Custom Dialog for custom widget?

I couldn't find any documentation regarding how to use custom dialog when developing custom widgets from any of these documentations. Are there any documentation for custom dialogs?

 

taken from thingworx_extension_development_user_guide.pdf 

  • customEditor – the name of the custom editor dialog to use for entering and editing the widget configuration. The system assumes there is a dialog named you created TW.IDE.Dialogs..
  • customEditorMenuText - The text that appears on the flyout menu of the widget and the hover over text for the Configure Widget Properties button. For example, “Configure Grid Columns.”
Sincerely,
DAVID KHOWANTO (Mr)
IoT Application Engineer

CAD-IT IoT Centre
CAD-IT Consultants (Asia) Pte Ltd
Bringing you tomorrow’s technology today! www.caditglobal.com
8 REPLIES 8

Hello @DK_10003244 ,

 

Hope you are doing well!

 

I have checked the links mentioned in the query and seems like you are referring to an old guide: https://support.ptc.com/WCMS/files/170215/en/thingworx_extension_development_user_guide.pdf?

 

You can explore some latest documents custom Widgets/ Extensions:

Article: https://www.ptc.com/en/support/article/CS201191

Help center guide link: https://support.ptc.com/help/thingworx/platform/r9/en/index.html#page/ThingWorx/Help/Best_Practices_for_Developing_Applications/EclipsePluginInstallingThePlugin.html

Community Tutorial: https://community.ptc.com/t5/IoT-Tips/Create-An-Extension-Part-1/ta-p/827938

 

Kindly check the above attached links. Let me know if it helps.

Thanks

Bhawna

 

 

Hi @bchaudhary 

Thank you for the response,

 

The link you provided writes the exact same thing as the documentation in 2015 and 2018.

I also found other community posts regarding this topic that also refer to the documentation I provided above. 

 

DK_10003244_0-1705564802466.png

 

 

It doesn't mention anything about customEditor like grid or mashup 

Sincerely,
DAVID KHOWANTO (Mr)
IoT Application Engineer

CAD-IT IoT Centre
CAD-IT Consultants (Asia) Pte Ltd
Bringing you tomorrow’s technology today! www.caditglobal.com
slangley
23-Emerald II
(To:DK_10003244)

Hi @DK_10003244.

 

What version or ThingWorx are you running?  The 9.x documentation for extension development can be found here.

 

Regards.

 

--Sharon

 

 

DK_10003244
6-Contributor
(To:slangley)

Hi @slangley,

Thank you for your response,

 

I couldn't find any information regarding custom dialog on the link you provided, along with the Lit Component version for 9.4.x and above.

So it can be concluded that the devs can't use any custom dialog when developing a custom widget?

Sincerely,
DAVID KHOWANTO (Mr)
IoT Application Engineer

CAD-IT IoT Centre
CAD-IT Consultants (Asia) Pte Ltd
Bringing you tomorrow’s technology today! www.caditglobal.com

Hello @DK_10003244 , 

 

I believe Sharon has shared the right link with you. If you are developing a lint widget, you can also look for any lint custom dialog. Also, You can use SimpleJavaScript Dialog.

 

Thanks

Bhawna

Hello @bchaudhary,

 

Sorry, but I couldn't find the SimpleJavaScript Dialog that you are mentioning on any link that Sharon shared.

I think this topic is leading the wrong way. Maybe I'll rephrase my question. What I meant was how to create this dialog when developing or creating a Custom Widget. This is the example dialog from Mashup. Another widget that has this dialog is the Grid Widget. By using this dialog, we can make the widget configuration to the next level.

DK_10003244_0-1709868096890.png

 

Thanks!

 

Sincerely,
DAVID KHOWANTO (Mr)
IoT Application Engineer

CAD-IT IoT Centre
CAD-IT Consultants (Asia) Pte Ltd
Bringing you tomorrow’s technology today! www.caditglobal.com
allardv
5-Regular Member
(To:DK_10003244)

Hello David,

 

The reason you have not found any documentation on the 'custom editor' is that it's an internal API only and is currently not intended for external use. The custom editor is used for certain PTC widgets that deviate from the standard configuration options. This would be a feature request for Mashup Builder and Widget development. I will inform PTC Product Management about your request.

 

Sincerely,

 

-Allard van der Heijden

Director Software development at PTC.

 

atondorf
13-Aquamarine
(To:allardv)

Dear Allard,

 

thanks for the information, but when it's an "Internal API" why is it mentioned in the Documenation?

 

customEditor
Name of the custom editor dialog that should be used to set and edit the widget configuration. In your widget project create a dialog box with the name TW.IDE.Dialogs.<name>.
customEditorMenuText
The text that appears on the flyout menu of the widget. It is also the text that appears as the tooltip for widgets in the ThingWorx Composer . For example, Configure Grid Columns.

 

Thingworx and it's documentation are making promises and raises expectations that cannot be kept.
Please also inform PTC Product Management, that before implementing 100 new cool features,
they should get the existing ones smoothly operational and well documented.

Greetings

 

Andreas

Announcements


Top Tags