Epicor Discussion Forums Homepage
Forum Home Forum Home > Professional Services & Partners > Partner SE Forum > Technical
  New Posts New Posts
  FAQ FAQ  Forum Search   Register Register  Login Login

Configurator Dynamic Lists

 Post Reply Post Reply
CarltonDean View Drop Down

Joined: 08 December 2011
Status: Offline
Points: 1
Post Options Post Options   Thanks (0) Thanks(0)   Quote CarltonDean Quote  Post ReplyReply Direct Link To This Post Topic: Configurator Dynamic Lists
    Posted: 08 December 2011 at 05:26
How can you limit the information displayed in a combo box (Box 2) to a range of items based on a combo box (Box 1) selection made a set or two before such that no other selections show in Combo Box (Box 2) ?
If I have ten different weight ranges that can be selected in Box 1, I want to be able to limit the possible selections shown and selectable in box 2.  I tried using an "On Leave" statement for Box 1 and also tried "If box 1 = "XXXX" then List = " item1, item 2, item3, ... item N" but neither as you would expect in a language such as C, VB, C++, Java so I'm stuck.
Back to Top
mbtaylor View Drop Down

Joined: 24 July 2007
Location: China
Status: Offline
Points: 106
Post Options Post Options   Thanks (0) Thanks(0)   Quote mbtaylor Quote  Post ReplyReply Direct Link To This Post Posted: 03 August 2015 at 01:30
Sometimes people get stuck with trying to use 'expected' properties of objects in the UI for which the properties dont seem to be exposed. Classic example is trying to add an image to a button. This is not something for which the base customisation framework allows you to do.

What you need to is reference the object dynamically using its GUID like the example below:
     // Search 3b06b8f2-a9d0-44d0-9aa1-4db6ddc60c77
        this.EpiBtnC1 = (EpiButton)csm.GetNativeControlReference("8b22e8f2-42d0-4d70-ab0c-77e5fc042392");
        EpiBtnC1.ImageList = imageList;
        EpiBtnC1.Appearance.Image = 0;          // calcfield image
        EpiBtnC1.Appearance.ImageHAlign = Infragistics.Win.HAlign.Left;
        EpiBtnC1.Appearance.ImageVAlign = Infragistics.Win.VAlign.Middle;
        EpiBtnC1.PressedAppearance.Image = 0;   // image when pressed
        EpiBtnC1.ImageSize = new System.Drawing.Size(16,16);

Perhaps if you use this approach to add List items to your 2nd combobox.

Reply to let us all know if this works.

Back to Top
 Post Reply Post Reply
  Share Topic   

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.01
Copyright ©2001-2018 Web Wiz Ltd.