Can shortcut based combobox have 3 columns seperatedby space

If you have questions or if you want to share your opinion about Aware IM post your message on this forum
Post Reply
swiftinitpvtltd
Posts: 370
Joined: Sat Apr 28, 2018 3:33 am
Location: India
Contact:

Can shortcut based combobox have 3 columns seperatedby space

Post by swiftinitpvtltd »

I have a combobox in editable grid which right now can only show one column value via shortcut. Can I have 3 column values shown in a dropdown? May be I need to create some calculated column to join 3 and display if thats not possible.
Dropdown1
Date1 productid1 type1
Date2 productid2 type2

Just like grid but in a dropdown so for user to decide which product to pick based on date. As grid has inline editing I need it as a dropdown. I know how to get this in edit form as a grid so thats not an option.
customaware
Posts: 2389
Joined: Mon Jul 02, 2012 12:24 am
Location: Ulaanbaatar, Mongolia

Re: Can shortcut based combobox have 3 columns seperatedby s

Post by customaware »

You can define which columns you want displayed in the Combo... see Display Columns property.

I have also used the method of building another string attribute in the BO Rules to display differently to what just the data has.
Cheers,
Mark
_________________
AwareIM 6.0, 8.7, 8.8, 9.0 , MariaDB, Windows 10, Ubuntu Linux. Theme: Default, Browser: Arc
Upcloud, Obsidian....
Image
Jhstephenson
Posts: 297
Joined: Wed Apr 22, 2015 11:44 pm

Re: Can shortcut based combobox have 3 columns seperatedby s

Post by Jhstephenson »

Mark, when you display multiple columns in a Drop Box it runs them together based on the length of the data in the attribute not the size of the attribute.

How do you tell it to separate them based on size instead of just 1 space between each?
customaware
Posts: 2389
Joined: Mon Jul 02, 2012 12:24 am
Location: Ulaanbaatar, Mongolia

Re: Can shortcut based combobox have 3 columns seperatedby s

Post by customaware »

Combos dont currently respect the px or % spacing of multiple columns as far as I know.

Two methods I have used to get around it.

Have a look at this demo.

The String method is best as the string is preserved and is visible in the Combo when closed.
Using the Constuct method, that is not the case.
MultiColumnComboDemo.bsv.zip
(40.66 KiB) Downloaded 454 times
Cheers,
Mark
_________________
AwareIM 6.0, 8.7, 8.8, 9.0 , MariaDB, Windows 10, Ubuntu Linux. Theme: Default, Browser: Arc
Upcloud, Obsidian....
Image
Jhstephenson
Posts: 297
Joined: Wed Apr 22, 2015 11:44 pm

Re: Can shortcut based combobox have 3 columns seperatedby s

Post by Jhstephenson »

Thanks Mark.

You still get a wavy look to the data because of attribute length differences.

But it does at least have the labels so you can tell what is what.

Jim
aware_support
Posts: 7521
Joined: Sun Apr 24, 2005 12:36 am
Contact:

Re: Can shortcut based combobox have 3 columns seperatedby s

Post by aware_support »

You can also create a custom layout for your combobox and display any values you want using HTML
Aware IM Support Team
Post Reply