Hi and thanks ahead of time.
Is it possible to assign background colors of choices from dropdowns... to grid fields? And to have different field background colors depending on choice?
In other words, if I chose Yes from the dropdown, the field on the grid would be green, etc.
Cause choices to be colored in grid?
Cause choices to be colored in grid?
Regards and thanks,
Harry Carter
Harry Carter
-
- Posts: 2409
- Joined: Mon Jul 02, 2012 12:24 am
- Location: Ulaanbaatar, Mongolia
Re: Cause choices to be colored in grid?
Here is a demo for you Harry.
Run this and Add a record from the Add Button at the Lower Left of the Query.
You can see where the colors are defined in the Presentation Rules for the Is Valid Attribute.
Run this and Add a record from the Add Button at the Lower Left of the Query.
You can see where the colors are defined in the Presentation Rules for the Is Valid Attribute.
Cheers,
Mark
_________________
AwareIM 6.0, 8.7, 8.8, 9.0 , MariaDB, Windows 10, Ubuntu Linux. Theme: Default, Browser: Arc
Upcloud, Obsidian....
Mark
_________________
AwareIM 6.0, 8.7, 8.8, 9.0 , MariaDB, Windows 10, Ubuntu Linux. Theme: Default, Browser: Arc
Upcloud, Obsidian....
Re: Cause choices to be colored in grid?
This works when the reference widget is set to Grid
However, when set to a Combo Dropdown-box, its not possible to do this anymore, it used to work
Also a Text attribute with choices, background color doesn't work either
any ideas ?
However, when set to a Combo Dropdown-box, its not possible to do this anymore, it used to work
Also a Text attribute with choices, background color doesn't work either
any ideas ?
Re: Cause choices to be colored in grid?
Thank you Mark.eagles9999 wrote: ↑Thu Feb 23, 2023 4:36 pm Here is a demo for you Harry.
Run this and Add a record from the Add Button at the Lower Left of the Query.
You can see where the colors are defined in the Presentation Rules for the Is Valid Attribute.
HarryDemo.bsv.zip
Now, I can make this work as you laid it out but, can this work if I have the choices, say, good, bad and ugly in a BO called Rating? You have the choices in the attribute but I have them as looks in the attached image. I think that maybe allowing more choices would cause problems, namely, I'd have to go into the presentation rules and add a color each time I add a choice in the rating BO.
But can it be done? TIA
Regards and thanks,
Harry Carter
Harry Carter
-
- Posts: 2409
- Joined: Mon Jul 02, 2012 12:24 am
- Location: Ulaanbaatar, Mongolia
Re: Cause choices to be colored in grid?
If you have a seperate BO of the different choices.... Then add a Color Text Attribute to that BO
Then, in the Presentation, set it like this....
Then, in the Presentation, set it like this....
Cheers,
Mark
_________________
AwareIM 6.0, 8.7, 8.8, 9.0 , MariaDB, Windows 10, Ubuntu Linux. Theme: Default, Browser: Arc
Upcloud, Obsidian....
Mark
_________________
AwareIM 6.0, 8.7, 8.8, 9.0 , MariaDB, Windows 10, Ubuntu Linux. Theme: Default, Browser: Arc
Upcloud, Obsidian....
Re: Cause choices to be colored in grid?
Thanks Mark!
Damn you're good.
Damn you're good.
Regards and thanks,
Harry Carter
Harry Carter
Re: Cause choices to be colored in grid?
Hmm... where are you getting the "Color Picker" option from in the attribute? I have text and text area? I must be doing something wrong.eagles9999 wrote: ↑Fri Feb 24, 2023 3:54 pm If you have a seperate BO of the different choices.... Then add a Color Text Attribute to that BO
Color Text.png
Then, in the Presentation, set it like this....
Presentation.png
Regards and thanks,
Harry Carter
Harry Carter
Re: Cause choices to be colored in grid?
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
Aware Programming & Consulting - Tampa FL
-
- Posts: 2409
- Joined: Mon Jul 02, 2012 12:24 am
- Location: Ulaanbaatar, Mongolia
Re: Cause choices to be colored in grid?
It is one of the Content options for every Plain Text Attributes Harry....
Hmm... where are you getting the "Color Picker" option from in the attribute? I have text and text area? I must be doing something wrong.
Cheers,
Mark
_________________
AwareIM 6.0, 8.7, 8.8, 9.0 , MariaDB, Windows 10, Ubuntu Linux. Theme: Default, Browser: Arc
Upcloud, Obsidian....
Mark
_________________
AwareIM 6.0, 8.7, 8.8, 9.0 , MariaDB, Windows 10, Ubuntu Linux. Theme: Default, Browser: Arc
Upcloud, Obsidian....
Re: Cause choices to be colored in grid?
Okay!
Mark, I'm okay up to the color pickers and I have the shortcut to GC Rating
Do I need to create shortcuts to the Color BG and Color FG attributes also?
Thank you. I'm new to the color thing, so please bear with me.
Mark, I'm okay up to the color pickers and I have the shortcut to GC Rating
Do I need to create shortcuts to the Color BG and Color FG attributes also?
Thank you. I'm new to the color thing, so please bear with me.
Regards and thanks,
Harry Carter
Harry Carter
-
- Posts: 2409
- Joined: Mon Jul 02, 2012 12:24 am
- Location: Ulaanbaatar, Mongolia
Re: Cause choices to be colored in grid?
Am a bit snowed under Harry.
Send me the BSV and I will fix it for you.
That will be much quicker that tic tac back and forwards Mate.
Send me the BSV and I will fix it for you.
That will be much quicker that tic tac back and forwards Mate.
Cheers,
Mark
_________________
AwareIM 6.0, 8.7, 8.8, 9.0 , MariaDB, Windows 10, Ubuntu Linux. Theme: Default, Browser: Arc
Upcloud, Obsidian....
Mark
_________________
AwareIM 6.0, 8.7, 8.8, 9.0 , MariaDB, Windows 10, Ubuntu Linux. Theme: Default, Browser: Arc
Upcloud, Obsidian....
Re: Cause choices to be colored in grid?
I agree... didn't realize that I wouldn't "get it" immediately.eagles9999 wrote: ↑Sat Feb 25, 2023 12:24 pm Am a bit snowed under Harry.
Send me the BSV and I will fix it for you.
That will be much quicker that tic tac back and forwards Mate.
By all means, don't feel obligated. I'm just here asking away, hoping to learn from everyone.
Thank you.
Regards and thanks,
Harry Carter
Harry Carter
Re: Cause choices to be colored in grid?
Does anyone know off hand why I'm seeing the hex designations for background and foreground in my choices? TIA
- Attachments
-
- hex.jpg (7.15 KiB) Viewed 6058 times
Regards and thanks,
Harry Carter
Harry Carter
-
- Posts: 2409
- Joined: Mon Jul 02, 2012 12:24 am
- Location: Ulaanbaatar, Mongolia
Re: Cause choices to be colored in grid?
Because you have not explicitly Defined what attributes you want to display in the Combo
box.
box.
Cheers,
Mark
_________________
AwareIM 6.0, 8.7, 8.8, 9.0 , MariaDB, Windows 10, Ubuntu Linux. Theme: Default, Browser: Arc
Upcloud, Obsidian....
Mark
_________________
AwareIM 6.0, 8.7, 8.8, 9.0 , MariaDB, Windows 10, Ubuntu Linux. Theme: Default, Browser: Arc
Upcloud, Obsidian....
Re: Cause choices to be colored in grid?
Ahh! Thanks so much.eagles9999 wrote: ↑Mon Feb 27, 2023 2:47 pm Because you have not explicitly Defined what attributes you want to display in the Combo
harry.png box.
Regards and thanks,
Harry Carter
Harry Carter