[SOLVED] JS on Custom Button to open help file |
7/28/2022 11:25:13 PM |
PHPRunner General questions | |
A
asawyer13 authorDevClub member
I have a custom button on my list page that I want to open a help file. The help file is xyz.html. In my Before Display I have this code: $pageObject->setProxyValue(fname, $filename); where $filename = "help/xyz.html" Then in my Custom Button in the client before I have this code: windows.open (window.proxy['fname'],'_blank'); When I click on the button, it's doesn't do anything. Probably something simple but I can't figure out what I'm doing wrong. Thanks |
|
![]() |
Sergey Kornilov admin 7/29/2022 |
The first parameter in setProxyValue must be quoted. See examples at https://xlinesoft.com/phprunner/docs/setproxyvalue.htm |
A
|
asawyer13 authorDevClub member 8/3/2022 |
Ok, I put double quotes around the fname on the Before Display. In my Custom Button in the Client before I have //window.open('help/xyz_list.html', '_blank'); If I click on the custom button, it does nothing. Must be something with the windows.open(window.proxy statement that I'm doing wrong. I feel I'm very close. Do I need to do something besides windows.open (window.proxy['fname'],'_blank'); like save the value in a variable or something? JS is not my strong suit. Alan |
A
|
asawyer13 authorDevClub member 8/4/2022 |
I think I'm close, just can't get it to work |
A
|
asawyer13 authorDevClub member 8/5/2022 |
I knew it would be something simple. Should be window.open not windows.open. All fixed |