1

Report Execution Access denied

Topic: Report Execution Access denied

Hello Guys,

I have problem with report execution.. I have all access that i need but when I`m sending report execution request it returns error: 7 (Access denied).

Request string:

var Request = "svc=report/exec_report&sid=" + sid +
        "&params={\"reportResourceId\":174,\"reportTemplateId\":2,\"reportObjectId\":3970,\"reportObjectSecId\":0,\"interval\":{\"flags\":0,\"from\":1359921600,\"to\":1360699199}}";

Please tell me what I`m doing wrong?
Thank you in advance

2

Report Execution Access denied

Re: Report Execution Access denied

daveyeson wrote:

I`m sending report execution request it returns error: 7

It means that reportResourceId or reportTemplateId or reportObjectId are wrong.

Mobile Development
Gurtam
3

Report Execution Access denied

Re: Report Execution Access denied

kopa wrote:
daveyeson wrote:

I`m sending report execution request it returns error: 7

It means that reportResourceId or reportTemplateId or reportObjectId are wrong.

How can I get reportResourceId or reportTemplateId or reportObjectId? what type of request i should send??
I have web access and I got this parameters by caching request sent from firebug.. can any body  give me a right request to got correct report parameters?

thank you

4

Report Execution Access denied

Re: Report Execution Access denied

To get units you should to call svc=core/search_items wiht itemsType="avl_unit". See http://docs.gurtam.com/en/hosting/sdk/w … rch_items.
Flag 0x1 of unit contains "id":<uint> and there is reportObjectId for your report request. http://docs.gurtam.com/en/hosting/sdk/w … asic_props
To get resources you should to call svc=core/search_items with itemsType="avl_resource". Flag 0x1 of resource also contains id=reportResourceId and flag 0x2000 contains object of report templates, where id of some report =reportTemplateId.
http://docs.gurtam.com/en/hosting/sdk/w … asic_props
http://docs.gurtam.com/en/hosting/sdk/w … _templates

Mobile Development
Gurtam
5

Report Execution Access denied

Re: Report Execution Access denied

I am having the same problem except that I am using driver_group.

By Selecting:
https://hst-api.wialon.com/wialon/ajax.html?svc=core/search_items&sid=322ff7db58f889cea43ea384ce69af77&params={"spec":{"itemsType":"avl_resource","propName":"driver_groups","propValueMask":"*","sortType":"driver_groups","propType":"propitemname"},"force":1,"flags":0x00008000,"from":0,"to":1}

I get a driver group ID of 1:
{
    "searchSpec":
    {
        "itemsType": "avl_resource",
        "propName": "driver_groups",
        "propValueMask": "*",
        "sortType": "driver_groups",
        "propType": "propitemname",
        "or_logic": "0"
    },
    "dataFlags": 32768,
    "totalItemsCount": 2,
    "indexFrom": 0,
    "indexTo": 1,
    "items":
    [
        {
            "drvrsgr":
            {
            },
            "drvrsgrmax": -1
        },
        {
            "drvrsgr":
            {
                "1":
                {
                    "id": 1,
                    "n": "All ALC Drivers",
                    "d": "",
                    "drs":
                    [

But still get the 7 error... I suspect this is not the correct objectID for a drivers Group, any idea on how to get it?