This topic is locked
[SOLVED]

 Parameter forward iwith a button

12/26/2014 8:00:58 PM
PHPRunner General questions
B
bschaich author

Hello,

I'm trying this now for a couple of days and don't get forward. Seems I miss something here:
What I do is using the getCurrentRecord() function like this:

  • I inserted a button into the list view, which appears for every record.
  • I inserted code for the on server function :
    $record = $button->getCurrentRecord();

    $result["AuftragsNummer"]=$record["AuftragsNummer"];
    and for Client After:
    location.href= 'email_add.php?mastertable=EmailView&masterkey1=' + result["AuftragsNummer"];
    But everytime I run this, the resulting masterkey value is null. There is a relation between the two tables email and emailview (the latter one is a custom view on an order table.)
    Any idea what am I doing wrong here?
    Regards,

    Benny

Sergey Kornilov admin 12/27/2014

Your code looks correct, just in case make sure that field name is correct (case-sensitive). If this doesn't help post your application to Demo Account and open a ticket at http://support.xlinesoft.com sending your Demo Account URL. 'Demo Account' button can be found on the last screen in the program.

B
bschaich author 12/29/2014



Your code looks correct, just in case make sure that field name is correct (case-sensitive). If this doesn't help post your application to Demo Account and open a ticket at http://support.xlinesoft.com sending your Demo Account URL. 'Demo Account' button can be found on the last screen in the program.


Yep. that was it! The fieldnames!!! banging my head on table

Thanks for that valuable hint! I will write that down a hundred times: Check for the filed names.

Thanks a lot,

Benny