Hello everbody
I want to know , how can i use ‘CustomCode’ in the subpanel<relationshipName>.php or the dashletviewdefs.php files.
I try to set this code , but it does not work
//\custom<moduleName>\metadata\subpanels<relationshipName>.php
‘preview_c’ =>
array (
‘type’ => ‘varchar’,
‘default’ => true,
‘label’ => ‘Details’,
‘width’ => ‘10%’,
‘customCode’ => 'See More ',
),
thank you for your help
I think custom code won’t work on listview. I suggest try it via process_record logic hook to display custom value in listview and subpanel list.
I used the hook logic, it works for me no.
But the only problem that I have, is to open the link in a new tab,
I tried this code, but without results :
$bean->preview_c = “See More”;
There is a syntax error in it. target blank should be in double quotes.
I try this code
$bean->apercu_c = “Aperçu du contrat”;
I obteint an error
Try this
$bean->apercu_c = '<a href="{$url}" target="_blank">Aperçu du contrat</a>';
I tried this code :
$url= “http://localhost:8080/companyName-VF/contrat_crm/contrat_crm.php?cnt=”.$bean->id;
$bean->apercu_c = ‘Aperçu du contrat’;
the system redirects me to the page "http://localhost:8080/companyName-VF/{$url} ",and staying on the same window
and the following message is displayed :
Not Found
The requested URL /companyName-VF/{$url} was not found on this server.