Date/Time Dialog with Fusion API

Date/Time Dialog with Fusion API

manfred_weinert
Contributor Contributor
180 Views
0 Replies
Message 1 of 1

Date/Time Dialog with Fusion API

manfred_weinert
Contributor
Contributor

I'm currently developing an add-in for which I need a dialog that allows the entry of date and time information. For the date and time information, I use "IntegerSpinnerCommandInput" objects from the Fusion API to enter the day, month, year, as well as the hour, minute, and second. (See the attached screen dump "Screendump-Fusion-Date Time Dialog current style.png"). This looks a bit unusual, as the day, month, hour, minute, and second are displayed as single digits without leading zeros.

 

I have incorporated my desired display format into the attached screen dump "Screendump-Fusion-Date Time Dialog future style.png." I hope you also find the format more familiar.

 

This could be achieved by allowing the developer to specify an output format string in the "IntegerSpinnerCommandInput" object. If the programming language for the API objects were C++, the format string could be "%02d" for a sprintf function.

 

Please let me know your suggestions about the issue  or a better solution.

 

Many thanks in advance.

 

Mit freundlichen Grüßen / Kindest Regards

 

Manfred Weinert

0 Likes
181 Views
0 Replies
Replies (0)