logo

Warning: The forum is now for consultation only. Please use GitHub Discussions to post any questions or comments.


Welcome Guest ! To enable all features please Login or Register.

Notification

Icon
Error

Options
Go to last post Go to first unread
EOSMatrix  
#1 Posted : Tuesday, November 20, 2018 4:28:21 PM(UTC)
EOSMatrix

Rank: Newbie

Groups: Registered
Joined: 11/20/2018(UTC)
Posts: 2
Bulgaria
Location: Sofia

Hi guys, we are receiving strange behavior when trying to show graphs in the browser.

Here is the model in the designer:
"
Quote:
https:// prnt.sc/lkrg2k
"

Here is the output when I execute the report with the designer
Quote:
"https:// prnt.sc/lkrgkg"


Here is the output when I publish the report on the web
Quote:
"https:// prnt.sc/lkrgxa"


As you can see - the model has columns elements in particular order. If I change this order - the internal browser applies the changes but the web is taking this order into account at all.

I've found where the razor file creates the javascript output:
Quote:
"https:// prnt.sc/lkrigi"


and here is what is the output in the browser:
Quote:
"https:// prnt.sc/lkriv5"


Could someone please assist us how to manage this issue.

P.S. Apologies for external links with images, it appears that I can't upload images here directly. Please in order to open them, remove the empty space after the '//'. Had to add it because of the SPAM restriction.

Edited by user Tuesday, November 20, 2018 4:29:12 PM(UTC)  | Reason: Not specified

epf  
#2 Posted : Wednesday, November 21, 2018 7:27:28 AM(UTC)
epf

Rank: Administration

Groups: Administrators
Joined: 12/20/2013(UTC)
Posts: 1,209
Switzerland

Thanks: 14 times
Was thanked: 206 time(s) in 199 post(s)
Did you try the 4.1, I know that the series order have been changed ?

In the Razor script, you may also force the series order:
Code:
                    @foreach (ResultSerie serie in page.Series.Where(i => i.Element.ChartJSSerie != ChartJSSerieDefinition.None).OrderByDescending(i => i.SerieDisplayName))


to translate the names….
Code:
                   @foreach (ResultSerie serie in page.Series.Where(i => i.Element.ChartJSSerie != ChartJSSerieDefinition.None).OrderByDescending(i => i.SerieDisplayName.Replace("a serie name1","a sort name 2").Replace("a serie name1","a sort name 2")))

EOSMatrix  
#3 Posted : Wednesday, November 21, 2018 11:15:50 AM(UTC)
EOSMatrix

Rank: Newbie

Groups: Registered
Joined: 11/20/2018(UTC)
Posts: 2
Bulgaria
Location: Sofia

Thank you for your feedback!
I have installed the latest version but the result was the same.
Is it normal to edit the razor files? We actually don't need to order them by name but by the order we arrange them in the designer or at least by the option in the each column.

Edited by user Wednesday, November 21, 2018 11:16:49 AM(UTC)  | Reason: Not specified

epf  
#4 Posted : Wednesday, November 21, 2018 3:49:42 PM(UTC)
epf

Rank: Administration

Groups: Administrators
Joined: 12/20/2013(UTC)
Posts: 1,209
Switzerland

Thanks: 14 times
Was thanked: 206 time(s) in 199 post(s)
Yes you can edit and customize your razor script, the only problem is that you will have to maintain the modification when you will upgrade to a future version of Seal Report.

concerning the serie order, you have here 1 X value with 4 series having 1 Y value, I have to check why the series order is different from one env. to another...
epf  
#5 Posted : Wednesday, November 28, 2018 9:28:39 AM(UTC)
epf

Rank: Administration

Groups: Administrators
Joined: 12/20/2013(UTC)
Posts: 1,209
Switzerland

Thanks: 14 times
Was thanked: 206 time(s) in 199 post(s)
this has been fixed for releases after 4.1
the simplest workaround in the meantime is to edit a custom template of your ChartJS, ChartNVD3 or Plotly and apply:

Code:
@foreach (ResultSerie serie in page.Series.Where(i => i.Element.ChartJSSerie != ChartJSSerieDefinition.None).OrderBy(i => i.Element.FinalSortOrder).ThenBy(i => i.SerieDisplayName))
Users browsing this topic
Guest
Forum Jump  
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.