App Studio, Is it possible to use combos in non-dashboard grids?

I posted earlier this week regarding making a new tabpage in Order Entry Details, which is now working fine…mostly

I have several fields/columns that would be better as combobox’s, for example ShipVia (OrderRel.ShipViaCode), I would like a combo so the user can select using the description, not the code.

The data source for the grid is a uBAQ, which is tied to a view I created…
The ShipVia column is editable in the uBAQ and in Grid Model / Columns.

What I’ve tried:

  • setting it up the same as the combo is on Release Details, which uses reusable combo “ShipVia.ShipViaCombo”, but that property is not enabled for my grid

  • created a ShipVia BAQ to return the Code and Description and specified the BAQ in Grid Model / Columns / Erp Editor Model / Advanced, but the Text Field and Value Fields are not editable

  • created a Dataview tied to the ShipVia BAQ, but the “View Name” property in Grid Model / Columns / Erp Editor Model / Reusable Combo is not editable

I looked at Order Entry, Lines List and Releases List grids and there appear to be no fields that use Combos in those grids (e.g. the Releases grid does not use a combo the ShipVia like it does in release details.

All this makes me wonder, is it even possible ???

Thanks !!

Could you elaborate on this? In general, it is absolutely possible to do what you want … could you show what the Reusable Combo section of the properties looks like?

1 Like

That’s hard to do since in this situation the relevant fields are not editable (see my comments above) so the Reusable combo section is empty.

here is the case where I can edit some of the fields in the “Advanced” section, but typically you would specify the TextField and ValueField which are both not editable

Are you getting something like this in the Type dropdown?
image

I had to just type in the name of the combo class and it disappeared, but still functions as expected

I was able to set the Type and Sub Type, but then other fields like ComboId, Service, and Service Method are not editable.

image

I’ve been trying some tests by creating the same grid in Order Details page (instead of my new tabpage) and getting better results…the fields are not read-only like they are on the tabpage grid

Makes we wonder if it’s an issue specific to tab pages, I’ve created many other combo’s in grids (dashboards and applications) and never had this problem until now

But Order Details is a tabpage
image

Yes, I guess that’s a valid point, only difference mine being a new/custom tabpage as opposed to a tabpage built/provided by epicor…

I’ll continue to hunt…maybe I’ll try again and start fresh with another new tab page just to retrace my steps…you know how app studio can be…

Try This:

Create a combobox off to the side and set it up with the ShipVia.ShipViaCombo / default settings… take screen captures of all the settings you need.

Now, in your grid column Editor Model > reusable combo…

Enter Type: ShipVia.ShipViaCombo
Sub Type: LEAVE THIS BLANK!!

Manually fill out all the other properties you need.

I set this up but I’m not pinging against an updateable BAQ so I can’t test it as a dropdown… but my test display grid IS coming back with the description and not the code.

image

1 Like

Okay, here is what I did (following @dcamlin)

put a ship via combo on the side of my grid on my new tab page:

went to grid-model / columns / editor model and TRIED to setup combo the same way, I can fill out Reusable Combo / Type to “OrderRel.ShipViaCode” but lots of other fields are not editable (ComboId, Service, Table Name, etc)…same in the Advanced section of the editor model

But, I re-created another grid on Order Details tabpage with same configuration and the editor model property fields are not read-only and it works correctly

1 Like

Is there a reason you’re using the above vs. ShipVia.ShipViaCombo ?

I don’t think OrderRel.ShipViaCode is a predefined list.

Below is my Reusable Combo… inside of the Grid Model > Columns > Erp Editor Model:

I just typed in the same settings from the “default”… without choosing “default” as the subtype.

image

Sorry, that was a copy paste error “OrderRel.ShipViaCode” should have been “ShipVia.ShipViaCombo”

1 Like

Yes, I have the exact same properties (for the grid on the Order Details page)
Here are the screenshots:

image

It works for my grid on Order Details, but on my new TabPage with same grid, tied to same data source/baq, and tied to same view, most/alot/all of those properties I need to fill in are not editable :face_with_thermometer:

anything happen if you type in default for the subtype… and then delete it?

Mine will actually toggle readonly and then back to editable.

Just trying to think of a way to kick it in the butt and get it moving like it should.

May want to try deleting that column and adding it back in again?

okay, those are good suggestion, running out of time for today, will try in the morning…

yeah, app studio needs a kick frequently

thanks

2 Likes

OMG, deleting the column and re-adding fixed the read-only properties issue…wish I would have thought of that…it’s typical application studio

Appreciate the help !

3 Likes

Hahaha. You’re just like me… “I’ll pick this up tomorrow”…

(10 seconds later)… “well, let me just try one more thing.” :rofl:

Glad its finally working.

1 Like

3am, still up screwing with stuff…

3 Likes

That’s when inspiration strikes!