In het CRM example is a Method which I find a bit strange.
(choose_company Global Method).
var dialogResult = "";
globals.current_form=currentcontroller.getName();
if(currentcontroller.getName() =="order_details")
{
if( forms.order_details.company_id >0)
{
dialogResult = plugins.dialogs.showDialog('Alert','Do you want to change the Company?','Yes','Cancel');
if(dialogResult =="Yes")
{
[b]globals.choose_company_subscript();[/b]
}
}
else
{
[b]globals.choose_company_subscript();[/b] }
}
Question is: If CANCEL why isn't the same subscript triggered as with YES?
Must be something I overlooked, but what?