Hi Steve,
I am trying your recommended
direction of using the XMPL REST API and am following your video instruction in
Campus. All was working with the first couple of ADOR’s, values were
coming over and I could place them on the page. However when I added a
couple more ADOR’s which are ones that I created in uPlan because they are
calculated values from a SQL query I started getting the error shown
below. It is saying that the “Type is not defined”, yet I can see that
the values are getting pulled as highlighted below. The only differences
are that these ADOR’s are not fields in my data but ADOR’s added that calculate
a value and they are numeric though I just want them as plain text.
Can you help me to determine
what I’m missing to trigger the error?
THIS IS THE ERROR MESSAGE
TEXT FROM ABOVE SCREENSHOT:
results_v2.html?rid=clark.theriot:34 Uncaught
ReferenceError: Type is not defined
at Object.success (results_v2.html?rid=clark.theriot:34)
at c (jquery-3.4.1.min.js:2)
at Object.fireWith [as
resolveWith] (jquery-3.4.1.min.js:2)
at l (jquery-3.4.1.min.js:2)
at
XMLHttpRequest.<anonymous> (jquery-3.4.1.min.js:2)
- Request
URL: https://print.cathedralcorporation.com/XMPieXMPL_REST_API/v1/projects/...[token info removed]…/adorvalues/context?adors=fname&adors=lname&adors=role&adors=Movie-Type-Action&adors=Movie-Type-Comedy&rid=clark.theriot
- Request
Method: GET
- Status
Code: 200
- Remote
Address: 64.9.87.3:443
- Referrer
Policy: strict-origin-when-cross-origin
- Response
Headers
- access-control-allow-origin:
*
- cache-control:
no-cache
- content-length:
279
- content-type:
application/json;
charset=utf-8
- date: Thu,
09 Sep 2021 16:21:13 GMT
- expires:
-1
- pragma:
no-cache
- server:
Microsoft-IIS/10.0
- x-aspnet-version:
4.0.30319
- x-powered-by:
ASP.NET
- Request
Headers
- :authority:
print.cathedralcorporation.com
- :method:
GET
- :path:
/XMPieXMPL_REST_API/v1/projects/…[token info removed]…/adorvalues/context?adors=fname&adors=lname&adors=role&adors=Movie-Type-Action&adors=Movie-Type-Comedy&rid=clark.theriot
- :scheme:
https
- accept:
*/*
- accept-encoding:
gzip,
deflate, br
- accept-language:
en-US,en;q=0.9
- origin:
null
- sec-ch-ua:
"Google
Chrome";v="93", " Not;A Brand";v="99",
"Chromium";v="93"
- sec-ch-ua-mobile:
?0
- sec-ch-ua-platform:
"Windows"
- sec-fetch-dest:
empty
- sec-fetch-mode:
cors
- sec-fetch-site:
cross-site
- user-agent:
Mozilla/5.0
(Windows NT 6.2; WOW64) AppleWebKit/537.36 (KHTML, like Gecko)
Chrome/93.0.4577.63 Safari/537.36
- Query
String Parametersview sourceview URL-encoded
- adors:
fname
- adors:
lname
- adors:
role
- adors:
Movie-Type-Action
- adors:
Movie-Type-Comedy
- rid: clark.theriot
VALUES FROM THE BROWSER
TOOL HEADER INFO:
{
"recipientID": "clark.theriot",
"serviceToken": "[token info removed]"
}
{
"fname": "Clark",
"lname": "Theriot",
"role": "Development",
"Movie-Type-Action":
"3",
"Movie-Type-Comedy":
"6"
}
Thanks for your help,
Clark