Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

how to add integer field in array #1216

Open
vakilev opened this issue Aug 31, 2023 · 0 comments
Open

how to add integer field in array #1216

vakilev opened this issue Aug 31, 2023 · 0 comments

Comments

@vakilev
Copy link

vakilev commented Aug 31, 2023

[
{
"operation": "shift",
"spec": {
"ts": "msgTs",
"pk": {
"id": "muMesId",
"systemCode": "mesId"
},
"op": "materialStatusName",
"data": {
"workshopCode": "kcehId",
"werks": "werksId",
"primeId": "primeId",
"markingAcc": {
"nplv": "markingAcc.nplv",
"strand": "markingAcc.strand",
"slab": "markingAcc.slab"
},
"specifications": {
"": {
"specCode": "additionalParamsDtos[#2].code",
"specName": "additionalParamsDtos[#2].name",
"specTypeCode": "additionalParamsDtos[#2].type",
"specValue": "additionalParamsDtos[#2].value",
"specFormat": "additionalParamsDtos[#2].format",
"specMeasure": "additionalParamsDtos[#2].unitOfMeasure"
}
},
"macrostructure": {
"
": {
"requestRowId": "macrostructure[&1].requestRowId",
"sampleNum": "macrostructure[&1].sampleNum",
"sampleType": "macrostructure[&1].sampleType",
"probeCode": "macrostructure[&1].probeCode",
"distributionType": "macrostructure[&1].distributionType",
"specifications": {
"": {
"specCode": "macrostructure[&3].additionalParamsDtos[&1].code",
"specName": "macrostructure[&3].additionalParamsDtos[&1].name",
"specTypeCode": "macrostructure[&3].additionalParamsDtos[&1].type",
"specValue": "macrostructure[&3].additionalParamsDtos[&1].value",
"specFormat": "macrostructure[&3].additionalParamsDtos[&1].format",
"specMeasure": "macrostructure[&3].additionalParamsDtos[&1].unitOfMeasure"
}
}
}
},
"chemData": {
"
": {
"sampleId": "chemData[&1].sampleId",
"probeCode": "chemData[&1].probeCode",
"analysisCode": "chemData[&1].analysisCode",
"sampleNum": "chemData[&1].sampleNum",
"chemical": {
"*": {
"chemCode": "chemData[&3].additionalParamsDtos[&1].code",
"chemName": "chemData[&3].additionalParamsDtos[&1].name",
"#2": "chemData[&3].additionalParamsDtos[&1].type",
"chemValue": "chemData[&3].additionalParamsDtos[&1].value",
"chemFormat": "chemData[&3].additionalParamsDtos[&1].format",
"chemMeasure": "chemData[&3].additionalParamsDtos[&1].unitOfMeasure"
}
}
}
}
}
}
}
]

look, this "#2": "chemData[&3].additionalParamsDtos[&1].type" adds field "2",
but i need this to be 2 (int). How am i supposed to to this?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant