Quantcast
Channel: V5 Issue - SambaClub Forum
Viewing all articles
Browse latest Browse all 749

Cache not refeshed when Report Design changed

$
0
0

@philbkk wrote:

Update Report in grid mode doesn’t clear column spec cache.

Example … if i have a Report used as a data source for a Custom Report Widget in grid mode (see # symbol before the name at the top) :

[#SettingTypeSelector:20,20]
>Setting Type|Screen
{REPORT SQL DETAILS:
	SELECT ButtonHeader, Name AS EntityScreenName, SortOrder
	FROM  EntityScreens
	WHERE (Name LIKE 'CFG%')
	ORDER BY SortOrder
	:F.ButtonHeader,F.EntityScreenName
}

So that works fine, but any changes to column names or order of columns will not take effect until SP is restarted.

A faster workaround is to change the report identifier at the top:
I appended the letter B in this example …

[#SettingTypeSelectorB:20,20]
>Screen Header|Screen Name
{REPORT SQL DETAILS:
SELECT ButtonHeader, Name AS EntityScreenName, SortOrder
FROM EntityScreens
WHERE (Name LIKE ‘CFG%’)
ORDER BY SortOrder
:F.ButtonHeader,F.EntityScreenName
}

but changing the report name/identifier also means you need to change any Setting Mappings in the Custom Report Widget to match the new name.

in this example, the 2 columns were mapped to Local Settings:

cfgSettingType=SettingTypeSelector.1
cfgSettingScreenName=SettingTypeSelector.2

so after updating the column names i would have to change the mappings to:

cfgSettingType=SettingTypeSelectorB.1
cfgSettingScreenName=SettingTypeSelectorB.2

==========

SP should update it’s internal report data when the design is updated.

Posts: 3

Participants: 2

Read full topic


Viewing all articles
Browse latest Browse all 749

Trending Articles