*FR - DISPLAY QUESTION / DISPLAY MESSAGE - Customisations

If you have questions or if you want to share your opinion about Aware IM post your message on this forum
Post Reply
RentProperty
Posts: 345
Joined: Mon Nov 12, 2012 9:08 pm
Location: South Africa

*FR - DISPLAY QUESTION / DISPLAY MESSAGE - Customisations

Post by RentProperty »

It would be really helpful if the DISPLAY QUESTION / DISPLAY MESSAGE feature could be expanded to take more parameters so we are able to dynamically set the Title, Message/Question, and the Button Text, as well as a Specific CSS class to use for that Dialog if you don't want to generally override all Question Dialogs. If left blank the default can be used.

As an example: DISPLAY QUESTION ('Delete Inspection','Are you sure you want to delete this inspection?','Yes, Delete!','No, Don't delete','Cancel','.my-custom-question').

This would then create a Question Dialog with the provided title, text, buttons, and css class, that is more relevant to the current context instead of just always saying 'Please Confirm', with Buttons 'Yes', 'No', 'Cancel'.

Just a thought.... Think it would be great and help a lot to have that flexibility in terms of the end user experience.
Hein Hanekom & Werner Hanekom
Sinov8.net
AwareIM Version 5.9 | 6.0 | 7.0 | 7.1 (Windows EC2 R2012 & MySQL)
hpl123
Posts: 2595
Joined: Fri Feb 01, 2013 1:13 pm
Location: Scandinavia

Re: *FR - DISPLAY QUESTION / DISPLAY MESSAGE - Customisation

Post by hpl123 »

Hein,
You can do a custom solution using the EXEC_SCRIPT function BUT I would also rather have this natively in Aware.

PS: Here is an sample of a simple custom modal:
http://www.awareim.com/forum/viewtopic.php?f=4&t=9174

You can probably also find samples online with choices where you can add the awareapp functions as functions linked to the choices.
Henrik (V8 Developer Ed. - Windows)
PointsWell
Posts: 1458
Joined: Tue Jan 24, 2017 5:51 am
Location: 'Stralya

Re: *FR - DISPLAY QUESTION / DISPLAY MESSAGE - Customisation

Post by PointsWell »

Post Reply