[SOLVED] Â Question on how to pass List value to Add page |
2/24/2014 5:51:17 AM |
PHPRunner General questions | |
A
Anapolis author
[size="2"]I have a form used in an office that uses a Suggest Search Ajax window in the top field as a Client account number is typed in. As the office User starts typing in numbers the choices narrow down until they select the account number they want to use. |
|
A
|
Anapolis author 2/24/2014 |
I have asked the Question below because the Lookup Wizard setting if set for "List Page with Search" never allows for a complete field search of the Master Client table. [size="2"]I have a form used in an office that uses a Suggest Search Ajax window in the top field as a Client account number is typed in. As the office User starts typing in numbers the choices narrow down until they select the account number they want to use. Then the Client name, Address, City, Zip code are filled into readonly fields before the rest of the form is filled out by the user of the form. When the Client Account number is not known the Master Client Account information table must be searched by city, zip, phone, name, etc. In the Client accounts List page I want the "Client Account number" for all records to be a hyperlink that when selected jumps to the Add Client form page while passing along just the Client Account number.[/b] If the office user finds one master client record that matches their search results then I want them to simply click the highlighted Client Account number in that list view and when the Add Form shows up the Account number is filled out and the Ajax autofill is still working to fill in the Client name, address, city, zip. What is different about this from the Master table - Detail table links that PHPRunner does is that there is NO MASTERKEY reference because the Add Form Record has not been created yet. I think I am looking to use the Client Master table Edit page in Runner to WRAP the Client number field with a link, such as "http://webname.com/phprunnerproject/clientreport_Add.php&clientnumber=".{$clientaccount_value}."" I know the syntax is wrong because in my tests it does not open the Clientreport_Add.php. But it illustrates the principle. The examples I have looked at always seem to be using a MASTERKEY value which cannot work in this case when the record itself does not have a Masterkey to refer to. Thank you for cluing me in![/size] |
![]() |
Sergey Kornilov admin 2/24/2014 |
I've read it twice but just cannot grasp it. Could you rephrase your question or narrow it down somehow? |
A
|
Anapolis author 2/24/2014 |
I've read it twice but just cannot grasp it. Could you rephrase your question or narrow it down somehow? Some screenshots or links to live application can help as well.
|
![]() |
Sergey Kornilov admin 2/25/2014 |
Thanks, it makes sense. Additional search options are not currently available in 'List page with search' mode. We'll consider adding it. $value = "<a href='somepage_add.php?someparam='".$data["somefield"].">Add item</a>";
|
A
|
Anapolis author 2/26/2014 |
Thanks, it makes sense. Additional search options are not currently available in 'List page with search' mode. We'll consider adding it. Passing data to the Add page from List page is possible though. Your best bet is yo use 'View as' Custom for one of fields in order to build a hyperlink with parameter in it. Example: $value = "<a href='somepage_add.php?someparam='".$data["somefield"].">Add item</a>";
|