From 846719bc806e32580ebb332d7d2e50af62f2073c Mon Sep 17 00:00:00 2001 From: Alessandro Bonazzi Date: Fri, 8 Oct 2021 22:37:24 +0200 Subject: [PATCH] Patch level : 12.0 1086 Files correlati : ba8.exe Commento : Aggiunto prescript ai campi immagine --- src/ba/ba8301.cpp | 2 +- src/ba/ba8500.cpp | 6 ++++++ 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/src/ba/ba8301.cpp b/src/ba/ba8301.cpp index 8c2a0c9fb..cc326659a 100755 --- a/src/ba/ba8301.cpp +++ b/src/ba/ba8301.cpp @@ -730,7 +730,7 @@ void TReport_field_mask::vedo_non_vedo() enable(DLG_FINDREC, is_text && type != 'T'); show(F_CODVAL, is_currency); // Codice valuta di riferimento show(F_LINK, strchr("DNS", type) != NULL); // Chi puo' essere un link? - show(F_PRESCRIPT, is_text); + show(F_PRESCRIPT, is_text || type == 'I'); show(F_POSTSCRIPT, is_text); enable_page(3, type == 'A'); diff --git a/src/ba/ba8500.cpp b/src/ba/ba8500.cpp index 7ed501df1..96b52a51e 100755 --- a/src/ba/ba8500.cpp +++ b/src/ba/ba8500.cpp @@ -149,6 +149,12 @@ TReport* TKlarkKent_app::create_report(const char* name) const { TReport* r = new TReport; r->load(name); + + TString custom_query; + + get_custom_query("", name, custom_query); + if (custom_query.full()) + r->set_recordset(custom_query); return r; }