Replies: 15 comments 9 replies
-
Hello Med. About tdropdownlistEditLB, indeed it seems that it was not yet totally completed and should be revisited. |
Beta Was this translation helpful? Give feedback.
-
Hello Fred,
The goal is not to change tdropdownlisteditlb.value but to get ( nRow, nCol , value) of the selected item.
Thank you, Med
…________________________________
De : Fred vS ***@***.***>
Envoyé : mercredi 6 septembre 2023 13:25
À : mse-org/mseuniverse ***@***.***>
Cc : Med Hamza ***@***.***>; Author ***@***.***>
Objet : Re: [mse-org/mseuniverse] DropdownEdit (Discussion #5)
Hello Med.
About tdropdownlistEditLB, indeed it seems that it was not yet totally completed and should be revisited.
I will jump into your sample_lookup.zip asap (I am super busy this week :-( )
Fred
—
Reply to this email directly, view it on GitHub<#5 (comment)>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/AKJ7NTYLQMQOYPXO4O23GLDXZB2UHANCNFSM6AAAAAA4NAZIDA>.
You are receiving this because you authored the thread.Message ID: ***@***.***>
|
Beta Was this translation helpful? Give feedback.
-
Hello Med.
Yes, I understood this but the fact is that I dont see how to get the column selected.
And maybe the code of tdropdownlisteditlb not permit it like it is now.
Fre;D
…________________________________
De : Med Hamza ***@***.***>
Envoyé : vendredi 8 septembre 2023 20:50
À : mse-org/mseuniverse ***@***.***>
Cc : Fred vS ***@***.***>; Comment ***@***.***>
Objet : Re: [mse-org/mseuniverse] DropdownEdit (Discussion #5)
Hello Fred,
The goal is not to change tdropdownlisteditlb.value but to get ( nRow, nCol , value) of the selected item.
Thank you, Med
________________________________
De : Fred vS ***@***.***>
Envoyé : mercredi 6 septembre 2023 13:25
À : mse-org/mseuniverse ***@***.***>
Cc : Med Hamza ***@***.***>; Author ***@***.***>
Objet : Re: [mse-org/mseuniverse] DropdownEdit (Discussion #5)
Hello Med.
About tdropdownlistEditLB, indeed it seems that it was not yet totally completed and should be revisited.
I will jump into your sample_lookup.zip asap (I am super busy this week :-( )
Fred
—
Reply to this email directly, view it on GitHub<#5 (comment)>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/AKJ7NTYLQMQOYPXO4O23GLDXZB2UHANCNFSM6AAAAAA4NAZIDA>.
You are receiving this because you authored the thread.Message ID: ***@***.***>
—
Reply to this email directly, view it on GitHub<#5 (comment)>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/AA2DIQLA7R5WZLI67PM2RQTXZNSIFANCNFSM6AAAAAA4NAZIDA>.
You are receiving this because you commented.Message ID: ***@***.***>
|
Beta Was this translation helpful? Give feedback.
-
Hello fred,
You can notice that we can have any column, but the problem is the row number selected ?
for example:
var nCol:integer;
....
nCol:=1;
procedure tmainfo.onchange ()
var nRow:integer;
begin
nrow:=?????? <----------- REWARD
showmessage(lookuplb.textvalue[nCol, nRow]);
end;
Regards
Med.
…________________________________
De : Fred vS ***@***.***>
Envoyé : vendredi 8 septembre 2023 19:34
À : mse-org/mseuniverse ***@***.***>
Cc : Med Hamza ***@***.***>; Author ***@***.***>
Objet : Re: [mse-org/mseuniverse] DropdownEdit (Discussion #5)
Hello Med.
Yes, I understood this but the fact is that I dont see how to get the column selected.
And maybe the code of tdropdownlisteditlb not permit it like it is now.
Fre;D
________________________________
De : Med Hamza ***@***.***>
Envoyé : vendredi 8 septembre 2023 20:50
À : mse-org/mseuniverse ***@***.***>
Cc : Fred vS ***@***.***>; Comment ***@***.***>
Objet : Re: [mse-org/mseuniverse] DropdownEdit (Discussion #5)
Hello Fred,
The goal is not to change tdropdownlisteditlb.value but to get ( nRow, nCol , value) of the selected item.
Thank you, Med
________________________________
De : Fred vS ***@***.***>
Envoyé : mercredi 6 septembre 2023 13:25
À : mse-org/mseuniverse ***@***.***>
Cc : Med Hamza ***@***.***>; Author ***@***.***>
Objet : Re: [mse-org/mseuniverse] DropdownEdit (Discussion #5)
Hello Med.
About tdropdownlistEditLB, indeed it seems that it was not yet totally completed and should be revisited.
I will jump into your sample_lookup.zip asap (I am super busy this week :-( )
Fred
—
Reply to this email directly, view it on GitHub<#5 (comment)>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/AKJ7NTYLQMQOYPXO4O23GLDXZB2UHANCNFSM6AAAAAA4NAZIDA>.
You are receiving this because you authored the thread.Message ID: ***@***.***>
—
Reply to this email directly, view it on GitHub<#5 (comment)>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/AA2DIQLA7R5WZLI67PM2RQTXZNSIFANCNFSM6AAAAAA4NAZIDA>.
You are receiving this because you commented.Message ID: ***@***.***>
—
Reply to this email directly, view it on GitHub<#5 (comment)>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/AKJ7NT2ODJOFKU3LYF7Y6RTXZNXKVANCNFSM6AAAAAA4NAZIDA>.
You are receiving this because you authored the thread.Message ID: ***@***.***>
|
Beta Was this translation helpful? Give feedback.
-
Hello Med. Sorry but I did not find yet time to jump into it. I will try to find time tonight. Write you later. Fre;D |
Beta Was this translation helpful? Give feedback.
-
Hello Fred,
Ultimately it's simplier than we thought .
Just:
ncol:=1; for example
procedure tmainfo.changeEV(const sender: TObject);
var s:string;
begin
with tdropdownlisteditlb1 do
s:=(lookuplb.textvalue[ncol,dropdown.itemindex]);
// and we can do here a dataset find ( s);
end;
Regards.
Med
PS:itemidex is in msedataedits.pas
…________________________________
De : Fred vS ***@***.***>
Envoyé : dimanche 10 septembre 2023 16:04
À : mse-org/mseuniverse ***@***.***>
Cc : Med Hamza ***@***.***>; Author ***@***.***>
Objet : Re: [mse-org/mseuniverse] DropdownEdit (Discussion #5)
Hello Med.
Sorry but I did not find yet time to jump into it.
I will try to find time tonight.
Write you later.
Fre;D
—
Reply to this email directly, view it on GitHub<#5 (comment)>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/AKJ7NT4MZBXRUXAIHTHNWFTXZXQJBANCNFSM6AAAAAA4NAZIDA>.
You are receiving this because you authored the thread.Message ID: ***@***.***>
|
Beta Was this translation helpful? Give feedback.
-
Hello Med. Ha, ok, nice you found the solution. Huh, may I ask you to update the sample_lookup.zip file and include the missing main.mfm file? (So I can better understand what was the question and the solution). Thanks. Fre;D |
Beta Was this translation helpful? Give feedback.
-
Ok, but the solution how to get the selected column if number of columns > 1 is still mystery. But that is a other story and maybe not really needed ( if you decide before popup what column must be retrieved ). |
Beta Was this translation helpful? Give feedback.
-
Hello Fred,
Here is the the complete demo prj. Notice that we can use the same datasource for the lookupbuffer and the grid.
See also lookup dboptions which is important in case of adding record to dataset.
Med
…________________________________
De : Fred vS ***@***.***>
Envoyé : dimanche 10 septembre 2023 18:42
À : mse-org/mseuniverse ***@***.***>
Cc : Med Hamza ***@***.***>; Author ***@***.***>
Objet : Re: [mse-org/mseuniverse] DropdownEdit (Discussion #5)
Ok, but the solution how to get the selected column if number of columns > 1 is still mystery.
But that is a other story and maybe not really needed ( if you decide before popup what column must be retrieved ).
—
Reply to this email directly, view it on GitHub<#5 (comment)>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/AKJ7NT2YMBNFLGTBJPWRAE3XZYC2HANCNFSM6AAAAAA4NAZIDA>.
You are receiving this because you authored the thread.Message ID: ***@***.***>
|
Beta Was this translation helpful? Give feedback.
-
Hello Med.
Hum, where, I dont see any attachment... ?! Fre;D |
Beta Was this translation helpful? Give feedback.
-
Re-Hello
It's sample_lookup.zip I can see in my box?
May be I have to upload it on GitHub ? not as attn in hotmail?
Med.
…________________________________
De : Fred vS ***@***.***>
Envoyé : mardi 12 septembre 2023 15:23
À : mse-org/mseuniverse ***@***.***>
Cc : Med Hamza ***@***.***>; Author ***@***.***>
Objet : Re: [mse-org/mseuniverse] DropdownEdit (Discussion #5)
Hello Med.
Here is the the complete demo prj.
Hum, where, I dont see any attachment... ?!
Fre;D
—
Reply to this email directly, view it on GitHub<#5 (comment)>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/AKJ7NTYPACJQD24D5PVGTLLX2B5ALANCNFSM6AAAAAA4NAZIDA>.
You are receiving this because you authored the thread.Message ID: ***@***.***>
|
Beta Was this translation helpful? Give feedback.
-
Yes, please, upload it on Github, I dont get the attachment.. You may also edit your post in Github ( click on the 3 dots ... ), delete your initial zip and upload the new. |
Beta Was this translation helpful? Give feedback.
-
Ha, ok, I see it now. |
Beta Was this translation helpful? Give feedback.
-
Hello Med. |
Beta Was this translation helpful? Give feedback.
-
Hello Med. Thanks for the new demo, I will study it asap.
So you found how to do without tdbnavigator.datalink property published? |
Beta Was this translation helpful? Give feedback.
-
Hi All,
I am working with tdropdownlistEditLB combined with tdblookupbuffer and I did not find the object propertie where the index and the array of data items are stored when the event onChange is fired.
There is not a dropdown.cols[n].value or a function to get ( n, value). Has anyone worked on this before to help us is this subject?
Med.
Ps: I noticed that onFilter event gives paramerters to get index and value ?
procedure tmainfo.onFilterEV(const sender: tcustomlookupbuffer, const physindex: Integer; var valid: Boolean);
and I want to do: tmsesqlQuery( datasource.dataset).indexlocal(0). find( value of column (n) index physindex.)
Beta Was this translation helpful? Give feedback.
All reactions