This topic is locked

Button on View page

12/16/2009 2:25:45 AM
ASPRunnerPro General questions
A
amarhoun author

Hi everyone,
Mainly I have two favors to ask
1- How to show the link to other table (master/details linkage) in the list page in the view page also.
2- The second request I would like to create a button in the view page to activate the record i.e. when pressed it will change a field value in the viewed record from false to true.
Also please note that we are anxious to have the new released of ASPrunner 6.2. I can tell from the announced features its gona be so much awesome. Defiantly I am gonna have it. <img src='https://asprunner.com/forums/file.php?topicimage=1&fieldname=question&id=13349&image=1&table=forumtopics' class='bbc_emoticon' alt='B)' /> <img src='https://asprunner.com/forums/file.php?topicimage=1&fieldname=question&id=13349&image=2&table=forumtopics' class='bbc_emoticon' alt='B)' /> <img src='https://asprunner.com/forums/file.php?topicimage=1&fieldname=question&id=13349&image=3&table=forumtopics' class='bbc_emoticon' alt='B)' />
Thanks for your supports

J
Jane 12/16/2009

Hi,
please see my answers below:

  1. you can add link to the detail list page manually on the Visual Editor tab.

    Here is a sample:

<a {$link_attrs}>Link</a>



Then assign correct link in the View page: before process event on the Events tab:

xt.assign "link_attrs","href=""tablename_list.asp?mastertable=TableName&masterkey1=" & values("Fieldname") & """"


2. to add button use custom event (Insert ASP code snippet option on the Visual editor tab). Here is just a sample:

response.write "<input type=button value=Update onclick=""window.location.href='tablename_view.asp?editid1=" & request.querystring("editid1") & "&updaterecord=yes';"">"



Then check request.querystring("updaterecord") in the View page: Before process event and update record if needed.