Playing with the new "SET PROGRESS action"

If you have questions or if you want to share your opinion about Aware IM post your message on this forum
Post Reply
Jaymer
Posts: 2430
Joined: Tue Jan 13, 2015 10:58 am
Location: Tampa, FL
Contact:

Playing with the new "SET PROGRESS action"

Post by Jaymer »

from this thread


IF you INSPECT this area, after "Testing mode", you'll see a DIV with an ID.
Screen Shot 2021-06-21 at 7.35.43 PM.png
Screen Shot 2021-06-21 at 7.35.43 PM.png (10.72 KiB) Viewed 3633 times



So I modified TOP BAR, and added this:
Screen Shot 2021-06-21 at 7.36.57 PM.png
Screen Shot 2021-06-21 at 7.36.57 PM.png (11.36 KiB) Viewed 3633 times


One new change I spotted recently, and I have no idea how long this has been there, but after a normal SAVE of a form, I saw the message "Change Accepted" displayed at the bottom in the Status Bar.
NOW, after SAVEing a form, I see this message in my TOP BAR, at the location I placed a DIV... which is what we were asking for in the referenced thread.
Screen Shot 2021-06-21 at 7.36.25 PM.png
Screen Shot 2021-06-21 at 7.36.25 PM.png (12 KiB) Viewed 3633 times
No idea if this can be set with the SET PROGRESS action.
Click Here to see a collection of my tips & hacks on this forum. Or search for "JaymerTip" in the search bar at the top.

Jaymer
Aware Programming & Consulting - Tampa FL
hpl123
Posts: 2579
Joined: Fri Feb 01, 2013 1:13 pm
Location: Scandinavia

Re: Playing with the new "SET PROGRESS action"

Post by hpl123 »

Holy moly, nice catch Jaymer and makes sense this should work. Did it also work after you disabled the status bar (so status messages aren´t sent only when the status bar is enabled)? This should work with the set progress as well I assume as it looks like a regular status message in the video.
Henrik (V8 Developer Ed. - Windows)
customaware
Posts: 2391
Joined: Mon Jul 02, 2012 12:24 am
Location: Ulaanbaatar, Mongolia

Re: Playing with the new "SET PROGRESS action"

Post by customaware »

Have tried the SET PROGRESS area and cannot get it to accept html.
Have asked for it. Would open up a lot of possibilities.... such as css Progress Bar.
Cheers,
Mark
_________________
AwareIM 6.0, 8.7, 8.8, 9.0 , MariaDB, Windows 10, Ubuntu Linux. Theme: Default, Browser: Arc
Upcloud, Obsidian....
Image
Jaymer
Posts: 2430
Joined: Tue Jan 13, 2015 10:58 am
Location: Tampa, FL
Contact:

Re: Playing with the new "SET PROGRESS action"

Post by Jaymer »

Henrik,
YES, this still works with the Status Bar disabled.
Click Here to see a collection of my tips & hacks on this forum. Or search for "JaymerTip" in the search bar at the top.

Jaymer
Aware Programming & Consulting - Tampa FL
Jaymer
Posts: 2430
Joined: Tue Jan 13, 2015 10:58 am
Location: Tampa, FL
Contact:

Re: Playing with the new "SET PROGRESS action"

Post by Jaymer »

Screen Shot 2021-06-22 at 4.26.30 PM.png
Screen Shot 2021-06-22 at 4.26.30 PM.png (10.87 KiB) Viewed 3597 times
Screen Shot 2021-06-22 at 4.41.04 PM.png
Screen Shot 2021-06-22 at 4.41.04 PM.png (13.14 KiB) Viewed 3597 times
well, if you modify the LOCALE string in aware.js, you can hardcode in some html.
1st one just added <b><i>
2nd one added a <span class=xxxx>
so this means that its not being stripped out somewhere down the line.

Since we've discovered this way of sending output to the "status_message" div, I'd think its only some simple mods for Vlad to wrap it in a special class that will help us style it a little better... to stand out.
And he probably can check the code to keep it from stripping HTML out of the SET PROGRESS function.
Click Here to see a collection of my tips & hacks on this forum. Or search for "JaymerTip" in the search bar at the top.

Jaymer
Aware Programming & Consulting - Tampa FL
Jaymer
Posts: 2430
Joined: Tue Jan 13, 2015 10:58 am
Location: Tampa, FL
Contact:

Re: Playing with the new "SET PROGRESS action"

Post by Jaymer »

The above post isn't directly related to the new SET PROGRESS, just a newly discovered status msg that Aware displays at unknown times.
ONE known event is on the save of a form. there may be others.

BUT AS TO SET PROGRESS, I can't get it to work.
Was trying NOT in a background process (which is what the video shows), but here:
Screen Shot 2021-06-22 at 5.10.45 PM.png
Screen Shot 2021-06-22 at 5.10.45 PM.png (11.11 KiB) Viewed 3593 times
Was just trying to display a status message when a process shows a Form.
I get no output in the "status message" area, WITH or WITHOUT the Status Bar enabled/disabled.

Perhaps its because SET P is to be used in a background process as shown - and it doesn't work when placed in a non-background-running process.

IN ANY EVENT, anywhere we could call SET PROGRESS we could just as easily EXEC_JS to call our own message bar, as Henrik has in his "notify" functions. So while this was kinda neat, I'm not sure if its all that useful OUTSIDE of its designed use.
Click Here to see a collection of my tips & hacks on this forum. Or search for "JaymerTip" in the search bar at the top.

Jaymer
Aware Programming & Consulting - Tampa FL
bondicoffee
Posts: 130
Joined: Tue Dec 03, 2013 10:19 pm

Re: Playing with the new "SET PROGRESS action"

Post by bondicoffee »

Hi,


I attempted to add a string message on the set progress keyword. It's giving an error while executing stating it needs a percentage.

Is there a way how to fix this?

Thanks!
customaware
Posts: 2391
Joined: Mon Jul 02, 2012 12:24 am
Location: Ulaanbaatar, Mongolia

Re: Playing with the new "SET PROGRESS action"

Post by customaware »

The first parameter is mandatory and should represent the percentage complete. BUT, keep in mind, that parameter is not shown and is only used by the function. If you want to see the percentage complete then you need to include that again in you output string.
Cheers,
Mark
_________________
AwareIM 6.0, 8.7, 8.8, 9.0 , MariaDB, Windows 10, Ubuntu Linux. Theme: Default, Browser: Arc
Upcloud, Obsidian....
Image
bondicoffee
Posts: 130
Joined: Tue Dec 03, 2013 10:19 pm

Re: Playing with the new "SET PROGRESS action"

Post by bondicoffee »

Thanks Mark!
Post Reply