1,880 pts.
 Colors in subfile
In my subfile, when I delete some records, I don't want to remove that records from the subfile. Instead, I want to show them in red color. What is the best way to achieve this?

Software/Hardware used:
AS400
ASKED: September 18, 2012  5:30 AM
UPDATED: September 18, 2012  12:34 PM

Answer Wiki:
Last Wiki Answer Submitted:  Be the first to answer this question.
All Answer Wiki Contributors:  Be the first to answer this question.
To see all answers submitted to the Answer Wiki: View Answer History.


Discuss This Question:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _


 

What is the best way to achieve this?
 
There is no “best” way for most programming problems. There are usually many ways, and different ways may be better for different circumstances.
 
I’d probably assign a DSPATR() with a program-to-system field to the columns in my subfile rows. After reading a row and performing the DELETE against whatever you’re deleting, I would UPDATE the subfile row with a new color attribute value in the associated program-to-system field.
 
But that’s just what I would do. I don’t know what’s best for you to do.
 
Tom

 107,695 pts.