#Progress Button
This add-on allows you to add a button with a progress indication during the execution of your procedure linked to it.
Simply made with a web viewer, it is possible to configure the web viewer completely independently with a simple copy and paste. Responsive, the size is determined by the size of the web viewer.
Features :
This add-on uses the JavaScript libraries ladda.js and spin.js.
Close FileMaker Pro
Copy the folder IUD_ProgressButton_v1_AddOn to the following directory :
- macOs : ~/Library/Application Support/FileMaker/Extensions/AddonModules/ - Windows : AppData\Local\FileMaker\Extensions\AddonModules\
In FileMaker Pro, open the solution on which you want to add the Add-On
In layout mode, open the left side panel on the Add-ons tab, click on the button add
Under the IU-DATA category, select Progress Button then click on Choose
Drag and drop the Progress Button add-on on the layout where you want to add-it.
The add-on can work without any context thanks by using the global field IUD_ProgressButton::gct_WV_FinalCode
.
Example of code associated with the web viewer :
Let (
[
_code = z_IUD_PROGRESSBUTTON::gct_WV_FinalCode;
_WebViewerName = "WV_ProgressButton";
_ScriptFMPToCall = "IUD_fmps_ProgressButton_action" ;
_button_Effect = "slide-down" ;
_button_Progress = 1 ;
_button_Color = "custom" ;
_button_Custom_Color = "#9AD0C0" ;
_button_Progress_Custom_Color = "#E1DD14" ;
_button_BorderRadius = 0 ;
_text = "IU-DATA" ;
_text_Size = "14vw" ;
_text_Weight = "normal" ;
_text_Color = "#FFFFFF" ;
_body_BackgroundColor = "#ffffff" ;
_button_Custom_Color_Hover = IUDATA_LightenColorHEX ( _button_Custom_Color ; 21 ) ;
_finalCode = Substitute ( _code ;
["{{button_Effect}}" ; _button_Effect ];
["{{button_Color}}" ; _button_Color ];
["{{button_Custom_Color}}" ; _button_Custom_Color ];
["{{button_Custom_Color_Hover}}" ; _button_Custom_Color_Hover ];
["{{button_Progress_Custom_Color}}" ; _button_Progress_Custom_Color ];
["{{button_BorderRadius}}" ; _button_BorderRadius ];
["{{WebViewerName}}" ; _WebViewerName ];
["{{ScriptFMPToCall}}" ; _ScriptFMPToCall ];
["{{isProgress}}" ; _button_Progress ];
["{{text}}" ; _text ];
["{{text_Color}}" ; _text_Color ];
["{{text_Weight}}" ; _text_Weight ];
["{{text_Size}}" ; _text_Size ];
["{{body_backgroundColor}}" ; _body_BackgroundColor ]
)
]
;
"data:text/html;charset=utf-8,¶" & _finalCode
)
Please note : If your database on which you want to install the add-on is hosted with FileMaker Server. You might need to refresh the globale calculation field IUD_ProgressButton::gct_WV_FinalCode
. Otherwise the webviewer that contains the add-on will remain empty. To refresh this field, you can set the field IUD_ProgressButton::WV_HTML
by it's own value inside a script that is launch at the start of your application.
Editable parameter values :
⚠️ if you modify the names of the parameters, you will have to report your modifications to _finalCode
if necessary
_webViewerName
: your web viewer's name_scriptFMPToCall
: FileMaker's sciprt linked to the Progress Button_button_Effect
: Define the button animation. Value from the list_button_Progress
: Define the progress mode. 1 / 0_button_Color
: Button's color_button_Custom_Color
: Custom button's color_button_Progress_Custom_Color
: Custom progression's color_button_BorderRadius
: Button's border radius_Text
: Button's text_Text_Size
: Text's size_Text_Color
: Text's color_Text_Weight
: Text's weight_button_Custom_Color_Hover
: Button's hover color_body_BackgroundColor
: Web viewer background color⚠️ Parameters not to be modified :
_code
: HTML code of the Progress Button contained in the global field ProgressButton::gct_WV_FinalCode
_finalCode
: Final HTML code of Progress Button, value of _code
with the replacement of previous parametersz_IUD_PROGRESSBUTTON
: Table containing the definition of the add-onIUD_fmps_ProgressButton_action
: Script called from the web viewerJS - ProgressButton Perform Javascript in WebViewer
: Web viewer's control scriptThe following functions description can be found inside their calculation definition.
IUDATA_HexToRGB ( __HexColor ; __Option )
IUDATA_RGBToHex ( __R ; __G ; __B )
IUDATA_DarkenColorHEX ( __colorHEX ; __delta )
Button - Effects
: List of progression effectsButton - Colors
: List of predifine colorsText - Size
: Exemple value list for the text's sizeText - Weight
: Value list for the text's weightOperating systems :
FileMaker :
FileMaker WebDirect :
Please note that on FileMaker Go 19 the Progress Button activation inside the web viewer require a double tap.
Important Note: Please read this EULA carefully. Downloading, installing, using or modifying this add-on signifies that the end user and their organization accept this EULA.
Definitions :
Contract terms :
IU-DATA authorizes the end user and his organization or household to use, modify, copy the add-on at their convenience. IU-DATA authorizes the end user and his organization to use for commercial purposes the add-on, when the add-on is an integral part of a solution whose spectrum of use is much wider than that defined by the functionalities of the add-on alone. On the other hand, IU-DATA does not authorize the end user and his organization to use for commercial or distribution purposes the add-on, modified or not as a final product.
The end user and his organization / household have free assistance for a period of 2 months from the date of purchase of this add-on, for any questions related to the use and configuration of this add-on.
Full access to FileMaker sources as well as to the source code used in the web viewer gives to the end user and his organization / household full control over modifying this add-on. It is therefore natural that we cannot intervene free of charge on the add-on whose code has been altered compared to the original version that IU-DATA delivered. Likewise, IU-DATA cannot be held responsible for any malfunction of any libraries mentioned in paragraph 4 - Dependencies, as well as malfunctions of the add-on following use on an operating system or a FileMaker platform other than those mentioned in paragraph 5 - Compatibilities.
Contact :
For any questions, please contact us to this address: product@iu-data.com
Creation and development :
Icon design :
01/03/2022 - Progress Button v2.0.0 - Add FileMaker WebDirect Compatibilty
16/02/2021 - Progress Button v1.0.0 - 1st release
© IU-DATA 2021