Patch level : 10.0
Files correlati : ba8 Ricompilazione Demo : [ ] Commento : Corretto editing query su sottosezioni git-svn-id: svn://10.65.10.50/trunk@17410 c028cbd2-c16b-5b4b-a496-9718f37d4682
This commit is contained in:
parent
3cd9b87c10
commit
6b5e25dbef
@ -220,6 +220,13 @@ void TSection_properties_mask::set_section(const TReport_section& rs)
|
||||
set(F_CONDITION, rs.condition());
|
||||
set(F_GROUP_BY, rs.grouped_by());
|
||||
|
||||
if (field(F_SQL).shown())
|
||||
{
|
||||
const TRecordset* recset = rs.recordset();
|
||||
if (recset != NULL)
|
||||
set(F_SQL, recset->query_text());
|
||||
}
|
||||
|
||||
set(F_HIDE_IF_NEEDED, rs.hidden_if_needed());
|
||||
set(F_HIDDEN, rs.hidden());
|
||||
set(F_PAGE_BREAK, rs.page_break());
|
||||
@ -254,7 +261,8 @@ void TSection_properties_mask::get_section(TReport_section& rs) const
|
||||
|
||||
rs.set_condition(get(F_CONDITION));
|
||||
rs.group_by(get(F_GROUP_BY));
|
||||
rs.set_recordset(get(F_SQL));
|
||||
if (field(F_SQL).shown())
|
||||
rs.set_recordset(get(F_SQL));
|
||||
rs.hide_if_needed(get_bool(F_HIDE_IF_NEEDED));
|
||||
rs.force_page_break(get_bool(F_PAGE_BREAK));
|
||||
rs.keep_with_next(get_bool(F_KEEP_WITH_NEXT));
|
||||
@ -995,6 +1003,11 @@ bool TReport_mask::on_field_event(TOperable_field& o, TField_event e, long jolly
|
||||
case F_SECTIONS:
|
||||
if (e == fe_init || e == fe_modify)
|
||||
select_section();
|
||||
if (e == fe_info)
|
||||
{
|
||||
section_properties();
|
||||
return false; // No info dialog
|
||||
}
|
||||
break;
|
||||
case F_TOOLS:
|
||||
if (e == fe_modify)
|
||||
|
Loading…
x
Reference in New Issue
Block a user