Hi
Sorry for the delay with which I answer you and sorry for my bad english (helped by google translate!)
I solved it like this:
- I no longer use scriptcase webhelp because internationalization was not foreseen and was too complicated!
- I solved it by doing a special function and doing the webhelp separate from the application (I use the Kompozer editor !!!)
- in the form, control, grid application I insert a button :
Name = Help
Type = PHP
Target = Other windows
Button Code = dm_myHelp(); // with or without parameters
Example :
control name = ec_1_open_control
form name = ec_form_ec_pers_m
grid name = ec_grid_ec_table_stat
Attached some sample .html files.
This is the function in Internal libraries -> Public :
function dm_myHelp($module="", $page="", $lang="") {
/*
parameters :
$module = module name
if set : direct folder (e.g. queue module1, module2, etc.)
if empty : the reference folder is _ <app_name> (e.g. _eurostore), global variable [app_name]
$page = any page to call up directly, without extension
empty : take the app that called this function via the variable $this->Ini->nm_cod_apl
set : the value intended as a name without extension is taken
$lang = language (2 char). If empty it takes the active one (sc_get_language())
gen : pages for generic language, usually in multiple languages on the same page (e.g. root_control_login)
Example :
dm_myHelp();
dm_myHelp("ELIMINACODE");
dm_myHelp("ELIMINACODE", "", "gr"); forced specific language
dm_myHelp("Eliminacode", "", "it");
la struttura deve essere :
_dm_tools (a personal folder of mine in the application root (same level as _lib) )
webhelp
index.html (to select the language)
it (language)
_eurostore (application name)
index.html
ec_form_ec_office.html
ec_form_ec_pers_m.html
/*
if ( empty($module) ) {
$module = "_".[app_name];
}
$module = strtolower($module)."/";
$page = strtolower($page);
if ( empty($page) ) {
$page = strtolower($this->Ini->nm_cod_apl); // nome app attiva che richiama questo help.
}
if ( empty($lang) ) {
$lang = strtolower(substr(sc_get_language(), 0, 2))."/"; // lingua attiva
}
if ( $lang == "gen" ) {
$lang = "gen/";
$module = "";
}
//$xref = "../_dm_tools/webhelp/webhelp_".$module."_".$lang."/".$page.".html";
$xref = "../_dm_tools/webhelp/".$lang.$module.$page.".html";
sc_redir($xref, , "_self");
return ;
}
Ciao
Enricostructure_my_webhelp.zip (150.7 KB)