yaai
yaai copied to clipboard
Popup in new window
I would like open in a new window the result of: return $sugar_config['site_url'] . "/index.php?module=$moduleName&action=EditView&record={$id}";
See the code of Web link: **
- Creates a web link to this record
- @param $moduleName
- @param $id
- @return string */ function build_link($moduleName, $id) { global $sugar_config; if( !empty($moduleName) && !empty($id) ) { $moduleName = ucfirst($moduleName); return $sugar_config['site_url'] . "/index.php?module=$moduleName&action=EditView&record={$id}"; } return null; }
Good luck. Your gonna run into issues if the user has multiple tabs with yaai open. Not sure how you'd prevent all tabs from opening it.
Sent via mobile
On Apr 26, 2014, at 6:19 AM, jersonjunior [email protected] wrote:
I would like open in a new window the result of: return $sugar_config['site_url'] . "/index.php?module=$moduleName&action=EditView&record={$id}";
See the code of Web link: **
Creates a web link to this record @param $moduleName @param $id @return string */ function build_link($moduleName, $id) { global $sugar_config; if( !empty($moduleName) && !empty($id) ) { $moduleName = ucfirst($moduleName); return $sugar_config['site_url'] . "/index.php?module=$moduleName&action=EditView&record={$id}"; } return null; } — Reply to this email directly or view it on GitHub.