Print Page | Close Window

Configurator Dynamic Lists

Printed From: Epicor Discussion Forums
Category: Professional Services & Partners
Forum Name: Technical
Forum Description: Technical Discussion Forum
URL: http://forums.epicor.com/forum_posts.asp?TID=3395
Printed Date: 16 December 2017 at 02:51
Software Version: Web Wiz Forums 10.17 - http://www.webwizforums.com


Topic: Configurator Dynamic Lists
Posted By: CarltonDean
Subject: Configurator Dynamic Lists
Date 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.



Replies:
Posted By: mbtaylor
Date 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.

-mt



Print Page | Close Window

Forum Software by Web Wiz Forums® version 10.17 - http://www.webwizforums.com
Copyright ©2001-2013 Web Wiz Ltd. - http://www.webwiz.co.uk