I’m going to be working on this for the next hour or so, I figured I’d ask you guys/gals if any of you have done something similar.
So basically I have a UD field on the OrderDtl table for Sales Sub Categories. We’re having issues writing reports/trackers that capture all the data about the orders (such as royalty information)… So this is what the Sales Sub Category will be for going forward. (We need to use the OrderDtl.SalesSubCatID_c field so it’s easier to report on it in the future) Now I’d like this combobox to act like the dynamic lists in Product Configurators.
So as an example if someone selected the Sales Category “MLB” I would like only the “MLB - ****” Sub Categories to show. Has anyone done this or something similar?
It’s a little disappointing that there’s no documentation on any of the epiCombo box controls… Like I’d want to know what exactly the EpiFiltersAppend and EpiFiltersParams controls do, and maybe even a few examples of the syntax that is required. (I looked on EpicWeb and sure, there’s the 1000 page customization guide, but there’s little to no information about the individual controls)
I’m sure I can achieve what I want to using epifiltersappend and params, but I’ve never really used these so I have no idea how they’re controlled.
The video helped a little bit, but in the video Jose adds both combo boxes; I’m going to be using a default combo box plus the custom one I added… So now I don’t know if I need to go the route the video shows, or maybe a simple search wizard route.
I think the main problem here is that most examples out there are for fields/data that are already in Epicor. Like with the video it’s Customer info and then ShipTo info off of that Customer.
I’m trying to put in manual data into my custom field (Sales Sub Category) and have that manual list/data filter off of what’s selected on the default Sales Category combo.
E.g. -
Sales Categories = Fundraisers, Concessions, Other
Sales Sub Categories = Example1, Example 2, Example 3, …, Example 7.
If Fundraisers is selected then only display Example 2, 3, 4, and 5. If Concessions is selected then display Example 6 and 7. If Other is selected then display Example 1.
I’m hoping this isn’t too difficult since it is definitely needed. We’re looking at a list of sub categories that may be over 50 choices…
I haven’t done it, but you might consider building out a table in UserCodes table (or a UD table) that has a combination of all the things you’re looking for, and then using a BAQ combo box as your custom control. Then, upon change to the first category, you could send a parameter to that BAQ combo and filter the list retrieved.
Ok, so in this example, I’ve created my UserCodes adapter and passed in a pre-load search filter to get the right table. I think you can further filter it later, but this is a good example.
LongDesc is a separate field than CodeDesc. I set it up in my example to be the “Display Member” of the combo box, which is what the user sees. The Value member is what get stored/recorded by the control. You could put whatever field from the data that you want as the Display member though…
I understand that, but I already posted a pic of this setup without using any code…
I just can’t seem to get the LongDesc stuff to be in a list format by using one UD Code - I guess if it’s not possible I’ll have to go with creating codes for all the sub categories like Ben said.
Oh sorry, I think I understand what you’re saying now. I think Ben’s suggestion is what I would do because it would be tightly coupled with the source data.
Hi Caleb,
I think you are complicating yourself a bit, here is what recommend.
Add 1 Set of UD Codes for your Sales Category
Then create another UDCode for the subcategory and make the “LongDescription” match the “Parent” category
Then you should be able to use my Video to do the filtering with no problem
Create a User Code called SalesCat which has codes
Fundraisers,
Concessions,
Other
Create a User Code called SalesSubCat which has alll the subcategories (individually not tilde separated)
make the Long Description for each of these = to the SalesCat they match to Above
Then use the video to filter by the “LongDesc” (include it in the HiddenAppendRows and use the same technique in my video to pass in the filter from the other combobox
Caleb I would say to go for UD codes as per Jose recommendation. I’ve used this method a few times, will post some screenshots later. Possible to do without custom code.
You want the UD codes separated out, means it will be easier to add and remove them in future and also when the combo value is stored in a field on your record, you want have to parse the tilde delimited list to get the value as you already have it.
Within the epiFiltersAppend I have “CodeDesc = ‘?[SalesCatId, 0]’” but I’m getting the error that this isn’t a valid column. If I change it to LongDesc I don’t get any errors but then the combo box comes up as blank.
For your post (#15) you show that I need my Descriptions to matchup with the actual sales codes, but I wanted to say that I’m not using FullDescription for that, I’m using just the Description field.
See -