This topic is locked

Insert Button Problem with Key Values

5/4/2010 7:35:44 AM
ASPRunnerPro General questions
I
ioagia author

Hi,
I am using ASPRunnerPro 6.2 (Build 5242).
I insert a new Button at a List Page of my Project.
At Button Properties i leave Client Before and Client After code as default.
I insert the following code at Server Side Tab



For n = 0 To keys.Count-1

result("txt") = result("txt") & keys(n)("myID")

next


The problem is that i cannot access the keys values.

(I think the syntax of code is correct)
Can you help me please ?

Sergey Kornilov admin 5/4/2010

You do not have access to key column values in Server event.
Explain what you are trying to achieve and we'll suggest a solution for it.

I
ioagia author 5/5/2010

I want to insert a button to the List Page of my USERS_EMAILS Table, which consists of two columns (ID & Email), and when i click on the button to send an email to all the email addresses of the selected records.
Odd not to have access to key columns values in Server Event (i followed this example of ASPRunner Documentation).
Thank very much for your feedback...

Sergey Kornilov admin 5/5/2010

That example is for the Edit/View pages.
Check this one:

http://xlinesoft.com/asprunnerpro/docs/email_selected_records.htm