SugarCRM - Correctly display total number of entries in Dashlet - sugarcrm

I am looking for a way, to correctly display the total number of entries in a SugarCRM dashlet. Right now, it is display as "(1 - 5 of 6+)", with 6+ being everything >= 6. I want the absolute number.
Thank you,
David

Put this in your config_override.php file...
$sugar_config['disable_count_query'] = false;
Or simply remove the existing $sugar_config['disable_count_query'] setting in either config_override.php or config.php

Related

How to do conditional sum in Crystal Report

Question originally posted in Spanish, on es.stackoverflow.com, by Sebastián Miranda:
I am working with Crystal Report since Visual Studio 2017, I was asked
to make a sum to group, I have 3 options: Credit Notes, Ballot and
Invoice.
The first thing I did was to create a Formula Field with the name
NumberValorCif to convert the ICIF Value that I have to numeric with ToNumber (). I saved this and created another formula field
named SumCIFCredito that has the following code:
If {CobroPorcentaje.TipoDoc} = 'Credit Notes'
then {#NumberValorCif}
else 0
I saved, compiled and ran the application and it worked without any
problems ... but. I wanted to do the same for SumCIFBoleta:
If {CobroPorcentaje.TipoDoc} = 'Ballot'
then {#NumberValorCif}
else 0
But I don't add anything. I'm missing something? or I have to create
another variable.
I hope someone can help me.
Thank you so much
It sounds like you simply need to add the actual SUM of that new formula.
Place the new formula in the detail section, select it, hit the Sigma button to sum it, and elect to generate subtotals for your Grouping level.

Prestashop 1.7 - filtering not working, showing empty results

I have got a problem on my store (still under development) - http://condesign.pl/officina . It's all about filtering products, for example here: http://condesign.pl/officina/pl/521-akcesoria-ze-skory . All the attributes on the left are being displayed correctly, with numbers of products in brackets, but when You click on any filter (like size or color), the list of results is empty.
Help please!
Try yo do the exact same thing with the default theme of Prestahsop. Because this looks like a theme issue.
This is very large bug in ps_facetedsearch module... You can't do anything with this. You must wait for fix. https://github.com/PrestaShop/PrestaShop/issues/9684 here is list of bugs in module.
It was my mistake - this module uses table ps_stock_available. I was migrating data from previous store to this one (only in phpmyadmin, not panel, because of very different structures), and I didn't know about this table. So it was about my missing data.

In SSRS How not to split same column on 2 pages

I have 20 columns on report. We have provided user to exclude columns which don't want in report. So we made hidden.
Problem is when I get report then any last column on page gets appeared some part on 1 page & some part on another page.
Can you please help.
hi i hope i understand your question correctly. you want to avoid page breake for a tablix? mark the tablix go to properies and check the PageBreak Options for me tDisabled = True works to render all informations in one page.
if it is still not working check your pagelayout in report --> report properties
also i remember there was a InteractiveHeight Option somewhere that should be set to 0.

MS Access Form - Between

I've created a form and need to make it so that it searches between 2 years.
So for example if the user enters 1980 and 2000, I need all entries to come up which are between those two years. Any help?!
http://imgur.com/bqdFWFB
The same goes for the length. Thanks in advance! :)
Sure,
Assuming that your form is bound to the table with the date field that you're filtering on, You could implement your search in the header section of that form.
Using design view, add two unbound text boxes (set their input mask to date/time to allow a datepicker to be used if you want). We'll call them txtDateStart and txtDateEnd.
In the after update for your txtDateEnd control on your form, add some vb code.
Me.Filter = "[dateField] BETWEEN " & me.txtDateStart & " AND " & me.txtdateEnd
me.filteron = true
That should be all you need.

Formatting a Second Page of Details

This is a problem I've managed to come up with a semi-solution for in the past, but I thought someone else might know better.
I have a report in Crystal Reports 10 that is used as an order summary form for a production area. We have standard products that only have one item per code, and then we have kits. A kit will have one primary item, and a secondary item, both of which need their own page in this summary as they go to different areas.
To accomplish this I've taken the normal details area from the report and made a copy of each section. This second set of details sections only shows when a record contains a kit, and they force a new page before them. To the average observer this makes it appear as though there are two separate items on the order, when in reality there is only one.
In my page header there is a flag that needs to show only on these secondary pages. My problem is that there is no special attribute for these second pages that sets them apart from the first page of a record. To make this formatting happen I've created a somewhat effective formula, but it doesn't work in all possible configurations.
The formula is:
(PageNumber = 2
or ({%kit count} = 1 and (PageNumber - 1) = RecordNumber)
or ({%kit count} > 1 and (PageNumber -2) = RecordNumber)) then false
%kit count is just a formula that gets a total count for kit codes in the report.
Currently this works only on a few specific cases. I'm sure there's some kind of pattern in the available values that I could work with, but I'm just not seeing it.
I need to be able to trigger this formula on every second page on a kit. How can I accomplish that?
EDIT: Screenshots as requested. (Brace yourselves)
(Original at http://cl.ly/392f033Y131e3r0l100V)
(Original at http://cl.ly/2x1D0t0W0S0j0F0h0S28)
It's quite hard to fully understand what you're trying to do without a discussion. Here is the solution to what I think you want to do with some made up data:
OrderNo Line Kit Rush
1 1 a 0
1 1 b 0
1 2 NULL 0
1 3 NULL 1
1 4 NULL 1
I create a group based on a formula (pretend OrderNo and Line are varchar so I don't have to cast :)
if {Rush} = 1 then
{OrderNo} & '-Rush'
else if isnull({Kit}) then
{OrderNo} & '-' & {Line}
else
{OrderNo} & '-' & {Line} & '-' & {Kit}
Then in the group header I place all of the stuff you currently have in your page header and enable Repeat Group Header on each Page.
Then finally put my detail in.