2 Redraw bugs in 8.4 - or is it just me

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:

2 Redraw bugs in 8.4 - or is it just me

Post by Jaymer »

The MAIN ISSUE here is the redrawing of the Parent form to show updated values of the Current Qty field.

here's a simple parent-child screen.
the grid are detail recs from a peer multiple
RedrawBug.png
RedrawBug.png (84.68 KiB) Viewed 4179 times
The Current Qty field is maintained by a Rule in the Parent:

Code: Select all

If StorageDetails WAS REMOVED FROM TicketStorage.pm_StorageDetails OR 
	StorageDetails WAS ADDED TO TicketStorage.pm_StorageDetails OR 
	TicketStorage.pm_StorageDetails.Qty WAS CHANGED  THEN
TicketStorage.zActualTime =SUM StorageDetails.Qty WHERE (StorageDetails IN TicketStorage.pm_StorageDetails)
NOTE: The rule works fine. Its not the issue.

Issue # 1:
the [+ Add Item] button WAS a "Add New Reference".
A popup would appear to enter the Storage Item record.
The Rule fired and the database value was updated and saved (verified in SQL tool), but the Current Qty does not change.

So, you go to the Auto-Refresh Settings of the Form and add "StorageDetail" (the child file) and same result... no redraw on Add.
BUT, if you edit a record, the value updates no problem.
AND, if you manually redraw the top form after an Add, you see the correct value from the db.

Solution to Issue # 1:
Do extra coding to make a Process that does a "CREATE NEW StorageDetail..... "
And, after adding that Process to the Auto-Refresh Settings, sure enough, after an Add (which used the Process), the redraw works.

So, I thought I was done (although slightly annoyed and time wasted) until I added the Delete.
Guess what?

Issue # 2:
Delete a Record, AND THE RULE FIRES and the db is updated, BUT NO REDRAW.
And now, I can't seem to find a hook for the Auto-Refresh Settings to make it redraw.
The text says "If you want to refresh the form after the user saves a Form of any other BO Object, select object below"
Well I'm not Saving a Form, I'm deleting a record.

Of course, I can manually redraw the top form and the value updates correctly.
What am I supposed to do... Keep writing processes to circumvent the built-in operations (that are there to keep this low-code and do things for me)?

But I would think this presents 2 overlooked areas (bugs) where Aware should be refreshing correctly without me having to write workarounds...
OR its been so long since I've written a SIMPLE screen that I've overlooked something.

Any ideas?
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
tford
Posts: 4238
Joined: Sat Mar 10, 2007 6:44 pm

Re: 2 Redraw bugs in 8.4 - or is it just me

Post by tford »

Is TicketStorage included in Auto Refresh criteria?

Is the rule you mentioned Dynamic?
Tom - V8.8 build 3137 - MySql / PostGres
Jaymer
Posts: 2430
Joined: Tue Jan 13, 2015 10:58 am
Location: Tampa, FL
Contact:

Re: 2 Redraw bugs in 8.4 - or is it just me

Post by Jaymer »

The rule is NOT dynamic.

Yes, TicketStorage is in the Auto Refresh Settings (normally not, but there from when I was trying all options on Issue # 1, where it did not help)
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
tford
Posts: 4238
Joined: Sat Mar 10, 2007 6:44 pm

Re: 2 Redraw bugs in 8.4 - or is it just me

Post by tford »

I always put the BO (TicketStorage in this case) in Auto Refresh. I've found situations many versions ago when it was needed, so I've been in the habit.

Would it make sense to make the rule dynamic & see what impact that has?
Tom - V8.8 build 3137 - MySql / PostGres
Jaymer
Posts: 2430
Joined: Tue Jan 13, 2015 10:58 am
Location: Tampa, FL
Contact:

Re: 2 Redraw bugs in 8.4 - or is it just me

Post by Jaymer »

Good idea, but I just made the Rule dynamic - but no change.
The Rule, keeping the parent field SUM'd correctly is not the issue.

Its Aware's Redraw logic.
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
tford
Posts: 4238
Joined: Sat Mar 10, 2007 6:44 pm

Re: 2 Redraw bugs in 8.4 - or is it just me

Post by tford »

I thought it might force a redraw.

What if you added a child counter attribute to the parent?

These are obviously just possible workarounds though.
Tom - V8.8 build 3137 - MySql / PostGres
Post Reply