zhyhero Posted January 22, 2019 Share Posted January 22, 2019 At first ,I don't know how to explain this accurately (or exactly ) . I use five UniDBLookupComboBoxs as 'level' selectors , and link datasources to their 'linksource' property(with 'ListFiled' and 'Keyfield'). And Set 'MasterSource','MasterFields','IndexFieldNames' with FDMemTables (Is this called data 'cascade connection' ? ). The UniDBGrid Show some data with level infomation. Three FDMemTables (lv1-lv5) groups have same data. So if i click one row on the UniDBGrid, these Unidblookupcomboboxs will show level infomations according to currunt row's data(Id,id id....) of unidbgrid. And then get some confusing things. First, with some row data (id,id,id....),unidblookupcombobox show nothing (with style csDropDownList and csSimple). Second, 'Keyvalue:=xxx' pass wrong data to dataset ,not every time. (This is my wrong with data record 25 ,correct it ) Third, each Unidblookupcombobox's style( I test csDropDown,csDropDownList and csSimple) get diffrent effect . At end ,i hope someone may know what I say......... Here is s testcase. testcase reupload here aDemo.rar Link to comment Share on other sites More sharing options...
zhyhero Posted January 23, 2019 Author Share Posted January 23, 2019 I replace FDMemTable to ClientDataSet, and get same effect. With style =csDropDown , record.no=24, Data( 2,3,6,12,24 ) trans to Lv1(2),Lv2(3),Lv3(6),Lv4(12),Lv5(24) when record.no=25,Data( 2,3,7,13,25 ) trans to Lv1(2),Lv2(3),Lv3(6),Lv4(12),Lv5(24) , something happened. Link to comment Share on other sites More sharing options...
Recommended Posts
Please sign in to comment
You will be able to leave a comment after signing in
Sign In Now