ON SAM_AnyEdit / ON SAM_AnyEdit_Finished

Discussion forum about all things Team Developer 5.x and 6.x
analiz14
Turkey
Posts: 11
Joined: 27 Mar 2019, 08:14
Location: Nicosia Cyprus

ON SAM_AnyEdit / ON SAM_AnyEdit_Finished

Post by analiz14 » 31 Mar 2020, 08:12

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

Uwe van der Horst
Site Admin
Site Admin
Germany
Posts: 488
Joined: 05 Mar 2017, 14:21
Location: Wetter (Ruhr), Germany

Re: ON SAM_AnyEdit / ON SAM_AnyEdit_Finished

Post by Uwe van der Horst » 31 Mar 2020, 10:28

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
Best regards,
Uwe van der Horst
Advo-web GmbH

analiz14
Turkey
Posts: 11
Joined: 27 Mar 2019, 08:14
Location: Nicosia Cyprus

Re: ON SAM_AnyEdit / ON SAM_AnyEdit_Finished

Post by analiz14 » 31 Mar 2020, 11:22

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

Uwe van der Horst
Site Admin
Site Admin
Germany
Posts: 488
Joined: 05 Mar 2017, 14:21
Location: Wetter (Ruhr), Germany

Re: ON SAM_AnyEdit / ON SAM_AnyEdit_Finished

Post by Uwe van der Horst » 31 Mar 2020, 12:47

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.
Screen Shot 039.PNG
You do not have the required permissions to view the files attached to this post.
Best regards,
Uwe van der Horst
Advo-web GmbH

analiz14
Turkey
Posts: 11
Joined: 27 Mar 2019, 08:14
Location: Nicosia Cyprus

Re: ON SAM_AnyEdit / ON SAM_AnyEdit_Finished

Post by analiz14 » 31 Mar 2020, 14:51

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

EWetzel
Germany
Posts: 318
Joined: 07 Mar 2017, 12:08
Location: Germany

Re: ON SAM_AnyEdit / ON SAM_AnyEdit_Finished

Post by EWetzel » 31 Mar 2020, 16:21

Hi,

I think you have to move "Call SalMessageBox(col1, "col1",0)" after "On SAM_User"

Enrico

analiz14
Turkey
Posts: 11
Joined: 27 Mar 2019, 08:14
Location: Nicosia Cyprus

Re: ON SAM_AnyEdit / ON SAM_AnyEdit_Finished

Post by analiz14 » 01 Apr 2020, 07:02

Hi Enrico,

You got it. It is now working fine.

Thanks a lot also I also thank to Uwe again.

Mehmet

Return to “General Discussion”

Who is online

Users browsing this forum: [Applebot], [Ccbot] and 0 guests