Dutch 4 Posted September 19, 2011 Report Share Posted September 19, 2011 I'm using 4.0.66 and can't get list values to populate either UI List box ro UI Dropdown. I thought this had been corrected in an earlier release. Here's an example: clear table(&DealerVehicles)clear list(%VehicleYear)clear list(%VehicleYear2)create table from file("{$special folder("Desktop")}\\Vehicles.csv", &DealerVehicles)set(#rowDealerVehicles, 1, "Global")loop($table total rows(&DealerVehicles)) { add item to list(%VehicleYear2, $table cell(&DealerVehicles, #rowDealerVehicles, 1), "Don\'t Delete", "Global") increment(#rowDealerVehicles)}add list to list(%VehicleYear, %VehicleYear2, "Delete", "Global")ui drop down("Vehicle Year", %VehicleYear, #VehicleYear)ui list box("Vehicle Year", %VehicleYear, #VehicleYear) Snippet of Vehicles.csv Make,Year,ModelAcura,2011,MDXAcura,2011,RDXAcura,2011,TLAcura,2012,TLAcura,2011,TSXAcura,2011,TSX Sport WagonAudi,2011,A3Audi,2011,A4Audi,2011,A5Audi,2011,A6Audi,2011,A7Audi,2012,A7 Quote Link to post Share on other sites
JohnB 255 Posted September 19, 2011 Report Share Posted September 19, 2011 If you use something like this, it works: clear list(%cars)define ui list { add item to list(%cars, $read file("{$special folder("Desktop")}/cars.csv"), "Delete", "Global")}ui list()ui drop down("cars", %cars, #cars) But you need to refresh it by clicking on code view and then back on node view. here is the file I called: cars.zip Quote Link to post Share on other sites
Dutch 4 Posted September 19, 2011 Author Report Share Posted September 19, 2011 That now works - does it also work with tables (multi-column lists)? Quote Link to post Share on other sites
DeveloperOnCall 0 Posted November 3, 2011 Report Share Posted November 3, 2011 Hey John -- quick question for you.... Is it possible to use that drop down list inside a UI HTML Panel - and have it run a custom command when that drop down list is changed? Thanks Quote Link to post Share on other sites
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.