Page 1 of 1

URL String gone for reports?

PostPosted: Mon Oct 29, 2012 6:54 pm
by CallCenter702
VERSION: 2.6-373a
BUILD: 120810-1018
Install VIcibox Server

Hi all,

I noticed since the 2.6 update that the String no longer appears for the reports. (I assume to eliminate the issue of long strings for the browsers). But is there still a way to generate it easily or view it somewhere?

Reason is that I used to be able to send my managers, tech, etc. a link and say something akin to "look at the calls on these DIDs, too many drops." But now it doesn't make the links. I have over 900 TF numbers so I would say daily I send about 3-5 of those types of emails. But now I have to list the DIDs the date range, etc. for them so they can then go generate it themselves. It was also very easy to bookmark a report link when I started a new campaign and wanted to track it.

I did figure out that I can still create the strings by adding the DID record number (example below), but that is obviously very tedious.

http://192.168.1.2/vicidial/AST_DIDstat ... %5B%5D=234

Was just curious if someone had a similar issue and a work-around?

Re: URL String gone for reports?

PostPosted: Mon Oct 29, 2012 9:52 pm
by williamconley
usually there is a "download" button avaialble which will generate a csv instead of the web version of the report. it will still get the data ... and you may be able to make a simple mod to the download url to get the web version as well.

please post the VERSION of the Vicibox .iso you used (it can make a difference ...). Not a bad idea to post your asterisk version as well.

Re: URL String gone for reports?

PostPosted: Tue Oct 30, 2012 5:55 am
by DomeDan
You can do a little modification in AST_DIDstats.php on line 236 (file build 120224-0910)
set "METHOD=GET"
Code: Select all
- $MAIN.="<FORM ACTION=\"$PHP_SELF\" METHOD=POST name=vicidial_report id=vicidial_report>\n";
+ $MAIN.="<FORM ACTION=\"$PHP_SELF\" METHOD=GET name=vicidial_report id=vicidial_report>\n";

Re: URL String gone for reports?

PostPosted: Tue Oct 30, 2012 6:43 am
by mflorell
We have a client that had over 700 in-groups, and that was pretty much the reason for us changing to POST from GET for most reports, because if you tried to select too many the report wouldn't load.

Re: URL String gone for reports?

PostPosted: Wed Nov 07, 2012 5:03 pm
by CallCenter702
Thanks for the help Dan!

Makes sense on the update... I have a few hundred in-groups as well so had that issue many times. But that edit will work perfectly to flip back and forth.

Re: URL String gone for reports?

PostPosted: Wed Nov 07, 2012 5:15 pm
by williamconley
No law says you can't put two full forms in that spot and choose which one you want based on the number of ingroups you are choosing ... :) (It's a waste of landscape, but then again Vicidial pages are not meant to be pretty, they are meant to Work!)

Re: URL String gone for reports?

PostPosted: Thu Nov 08, 2012 7:35 pm
by CallCenter702
DomeDan wrote:You can do a little modification in AST_DIDstats.php on line 236 (file build 120224-0910)
set "METHOD=GET"
Code: Select all
- $MAIN.="<FORM ACTION=\"$PHP_SELF\" METHOD=POST name=vicidial_report id=vicidial_report>\n";
+ $MAIN.="<FORM ACTION=\"$PHP_SELF\" METHOD=GET name=vicidial_report id=vicidial_report>\n";



Hi Dan,

I put this in but doesn't seem to work... was there any other actions needed?

Installed with ViciBox.i686-4.0.1.iso
Asterisk 1.4.21.2

Re: URL String gone for reports?

PostPosted: Thu Nov 08, 2012 8:18 pm
by williamconley
Perhaps you could be more descriptive "put it in" and "doesn't work" ... if you use the diff (or just made the change) it "worked" and will GET instead of POST. Which is the goal. What else would you want to accomplish? :)

Re: URL String gone for reports?

PostPosted: Mon Nov 19, 2012 1:37 pm
by CallCenter702
Sorry my techs words not mine. But he said he made the change that Dan suggested:

- $MAIN.="<FORM ACTION=\"$PHP_SELF\" METHOD=POST name=vicidial_report id=vicidial_report>\n";
+ $MAIN.="<FORM ACTION=\"$PHP_SELF\" METHOD=GET name=vicidial_report id=vicidial_report>\n";

And didn't get the results we wanted. Ie,. The string is still http://64.250.228.234/vicidial/AST_CLOSERstats.php

Opposed to one that contains the search variables E.g,. http://64.250.228.234/vicidial/AST_CLOS ... .php?group[]=AAA&group[]=BBB, etc.

Are we missing something?

Re: URL String gone for reports?

PostPosted: Mon Nov 19, 2012 2:15 pm
by williamconley
probably another form on the page or a "refresh" or a "cached" page. have him check the source code of the page in the browser to be sure it actually changed.