Hi friends,
First, of all, I wish you a healthier word. I hope we get rid of Corona Virüs Soon.
I am using the drop-down list in a grid. Suppose I have 3 items in a specific column.
When I make my selection with a mouse click, I want to detect the last item selected.
I could not do it. I use ON SAM_AnyEdit but it gives me the initial value, not the one I
selected last. Is there anything like ''ON SAM_AnyEdit_Finished"
Best regards From Cyprus
Mehmet
ON SAM_AnyEdit / ON SAM_AnyEdit_Finished
Re: ON SAM_AnyEdit / ON SAM_AnyEdit_Finished
Hi Mehmet,
which version of TD do you use? With TD 7.2 I can not confirm that. I have a Grid with a column of cell type "Drop Down List". If a select "item x" with the mouse, SAM_AnyEdit gives me "item x".
Greetings
which version of TD do you use? With TD 7.2 I can not confirm that. I have a Grid with a column of cell type "Drop Down List". If a select "item x" with the mouse, SAM_AnyEdit gives me "item x".
Greetings
Best regards,
Uwe van der Horst
Advo-web GmbH
Uwe van der Horst
Advo-web GmbH
Re: ON SAM_AnyEdit / ON SAM_AnyEdit_Finished
Hello Uwe,
I forgot to mention, I am using TD6.3.
I tried again to make sure. No, It does not give the last selected value.
Thanks Anyway
Mehmet
I forgot to mention, I am using TD6.3.
I tried again to make sure. No, It does not give the last selected value.
Thanks Anyway
Mehmet
Re: ON SAM_AnyEdit / ON SAM_AnyEdit_Finished
Yes, with 6.3 I see what you see. So obviously a bug that has been fixed
When sending a PostMessage on SAM_AnyEdit and putting a stop code here, I get the expected result.

When sending a PostMessage on SAM_AnyEdit and putting a stop code here, I get the expected result.
You do not have the required permissions to view the files attached to this post.
Best regards,
Uwe van der Horst
Advo-web GmbH
Uwe van der Horst
Advo-web GmbH
Re: ON SAM_AnyEdit / ON SAM_AnyEdit_Finished
Many Thanks, but I did not get it to work.
SalPostMsg did not make any effect.
I am checking the value of col1 right after Call SalPostMsg inside On Sam_AnyEdit
Simply like that.
On SAM_AnyEdit
Call SalPostMsg(col1,SAM_User,0,0)
Call SalMessageBox(col1, "col1",0)
On SAM_User
Call SalWaitCursor(FALSE)
I still don't get the last selected value.
Regards
SalPostMsg did not make any effect.
I am checking the value of col1 right after Call SalPostMsg inside On Sam_AnyEdit
Simply like that.
On SAM_AnyEdit
Call SalPostMsg(col1,SAM_User,0,0)
Call SalMessageBox(col1, "col1",0)
On SAM_User
Call SalWaitCursor(FALSE)
I still don't get the last selected value.
Regards
Re: ON SAM_AnyEdit / ON SAM_AnyEdit_Finished
Hi,
I think you have to move "Call SalMessageBox(col1, "col1",0)" after "On SAM_User"
Enrico
I think you have to move "Call SalMessageBox(col1, "col1",0)" after "On SAM_User"
Enrico
Re: ON SAM_AnyEdit / ON SAM_AnyEdit_Finished
Hi Enrico,
You got it. It is now working fine.
Thanks a lot also I also thank to Uwe again.
Mehmet
You got it. It is now working fine.
Thanks a lot also I also thank to Uwe again.
Mehmet
Who is online
Users browsing this forum: [Ccbot] and 0 guests