Old Popups

It looks like old (ob 22) popups (ValuePicker, regular popup with single form) don't work in 2.4 at all. Is there any way to enable them to work?

Do you plan to use -

Do you plan to use

- EasyView + BizForms?

- or BizView + EasyForms?

The popup.tpl should be in app/templates/ which is defined in SMARTY_TPL_PATH. Can you check that in BizSystem::GetSmartyTemplate()?

Thanks.

 

I have about ~ 200 forms and

I have about ~ 200 forms and ~ 100 views . For easier upgrade it makes sense to go with BizView = EasyForms + BizForm combination, because it will be only several changes. Though down the road I foresee it might switch to EasyView = BizForm + EasyForms and then eventually to EasyView=EasyForm + EasyForm. I think these would be the right steps to take.

I checked popup: popup.tpl file is in template dir as well as it is defined within GetSmartyTemplate.

-Andrew

The issue with displaying

The issue with displaying old popups in 2.4 is solved. Apparently, BizSystem::GetTplFileWithPath() method wants popup.tpl to be in /common/templates/ folder instead of app/templates. So putting it there solves the issue.

Thanks,

Andrew

Initially I hesitated to ask

Initially I hesitated to ask this question and went to the road of creating EasyForm with new popups, but unfortuanately it was not possible to use these forms in views based on BizView class, only EasyView class. I was not able to use forms based on BizForm class in EasyView either. It means that all forms must be based on EasyForm.  Throughout my application I can have one view based on EasyView and others on BizView but it's a huge UI inconsistency. It means that version 2.4 is not backward compatible. Please advise.

Here is error stack from popup:

[2009-09-21 13:47:01 (GMT)] An exception occurred while executing this script:
Error message: #512, Smarty error: unable to read resource: "popup.tpl"
Script name and line number of error: C:\xampp\htdocs\2.4\openbiz\others\Smarty\libs\Smarty.class.php:1088

function: ErrorHandler ( 512, "Smarty error: unable to read resource: "popup.tpl"", "C:\xampp\htdocs\2.4\openbiz\others\Smarty\libs\Smarty.class.php", 1088, Array(2) ) @ C:\xampp\htdocs\2.4\openbiz\bin\sysheader.inc 261
function: userErrorHandler ( 512, "Smarty error: unable to read resource: "popup.tpl"", "C:\xampp\htdocs\2.4\openbiz\others\Smarty\libs\Smarty.class.php", 1088, Array(2) ) @
function: trigger_error ( "Smarty error: unable to read resource: "popup.tpl"", 512 ) @ C:\xampp\htdocs\2.4\openbiz\others\Smarty\libs\Smarty.class.php 1088
function: trigger_error ( "unable to read resource: "popup.tpl"" ) @ C:\xampp\htdocs\2.4\openbiz\others\Smarty\libs\Smarty.class.php 1584
function: _fetch_resource_info ( Array(3) ) @ C:\xampp\htdocs\2.4\openbiz\others\Smarty\libs\Smarty.class.php 1410
function: _compile_resource ( "popup.tpl", "C:\xampp\htdocs\2.4\uniqueaid/templates/cpl\%%29^291^291A85FE%%p..." ) @ C:\xampp\htdocs\2.4\openbiz\others\Smarty\libs\Smarty.class.php 1249
function: fetch ( "popup.tpl", Null, Null, True ) @ C:\xampp\htdocs\2.4\openbiz\others\Smarty\libs\Smarty.class.php 1101
function: display ( "popup.tpl" ) @ C:\xampp\htdocs\2.4\openbiz\bin\ui\BizView.php 392
function: _render ( False, False ) @ C:\xampp\htdocs\2.4\openbiz\bin\ui\BizView.php 315
function: Render ( ) @ C:\xampp\htdocs\2.4\openbiz\bin\ui\BizForm.php 848
function: ShowPopup ( "main.FO.employee_Child_Popup" ) @
function: call_user_func_array ( Array(2), Array(1) ) @ C:\xampp\htdocs\2.4\openbiz\bin\BizController.php 300
function: Invoke ( ) @ C:\xampp\htdocs\2.4\openbiz\bin\BizController.php 94
function: DispatchRequest ( ) @ C:\xampp\htdocs\2.4\openbiz\bin\BizController.php 32
function: include_once ( "C:\xampp\htdocs\2.4\openbiz\bin\BizController.php" ) @ C:\xampp\htdocs\2.4\uniqueaid\bin\controller.php 4

 

-Andrew