added form ordering and validation for s78

This commit is contained in:
2022-04-06 16:52:22 +01:00
parent c485559b22
commit 093cba5d70
21 changed files with 2093 additions and 1058 deletions
+2 -1
View File
@@ -34,8 +34,9 @@ export default async function ApiProxy(req, res) {
var token = await getToken();
var queryUrl =
"stringmaps?$filter=objecttypecode eq 'incident' and attributename eq 'pinswg_appealcasetype' and value ne 'LDP' and value ne 'Misc Casework'&$count=true&$select=value,stringmapid,organizationid,attributevalue&$orderby=value asc";
"stringmaps?$filter=objecttypecode eq 'incident' and attributename eq 'pinswg_appealcasetype' and value ne 'Developments of National Significance' and value ne 'LDP' and value ne 'Misc Casework'&$count=true&$select=value,stringmapid,organizationid,attributevalue&$orderby=value asc";
console.log(queryUrl);
return axios
.get(
WEBAPI_URL + queryUrl + hashAPIPath(queryUrl),
@@ -29,6 +29,7 @@ export default async function ApiProxy(req, res) {
whichForm +
"')/Attributes?$count=true&$select=LogicalName,RequiredLevel";
console.log(WEBAPI_URL + queryUrl + hashAPIPath(queryUrl));
return axios
.get(
WEBAPI_URL + queryUrl + hashAPIPath(queryUrl),
+3 -3
View File
@@ -50,8 +50,8 @@ export default async function ApiProxy(req, res) {
.then(({ data }) => {
res.status(200).json(data);
})
.catch(({ err }) => {
console.log(err);
res.status(400).json(err);
.catch((error) => {
console.log("is it", error);
res.status(400);
});
}