Issue when updating spclines using the webservice

50 views
Skip to first unread message

george thomidis

unread,
Feb 4, 2026, 12:52:17 PMFeb 4
to Softone Developers Network
Hello,

We have implemented the webservice on our application using php and laravels http facade.

We have a method that dynamically creates materials and  their specifications.

The issue is when updating them (doing the same http post method with the key field), the spclines get deleted.

I cannot understand nor find an explanation as to why. But maybe its because of a missing field on spclines?

bellow is an example of the method:
(ps. i have tried adding fields line the primary key for the Spclines table and the linenum but they result is the same behavior)
{ "service": "setData", "clientID": "9J8.........L0", "appId": 1...., "object": "SPCPRD", "key": 39182, "data": { "SPCPRD": [ { "MTRL": 1070674, "CODE": "60009-2067", "NAME": "TEST BY IT", "QTY1": 1, "ISACTIVE": 1, "ISMAIN": 1, "COMMENTS": null, "WHOUSE": 1000 } ], "SPCS": { "CODE": "60009-2067", "MTRL": 1070674, "NAME": "TEST BY IT", "QTY1": 1, "QTY2": 1 }, "SPCLINES": [ { "MTRL": 942120, "QTY1": 2, "COMPANY": 1001, "STAGE": null, "STAGELINENUM": null, "WHOUSE": 1000 } ] } } -George Thomidis

Νίκος Μάλιακκας

unread,
Feb 5, 2026, 4:50:37 AMFeb 5
to Softone Developers Network

If you want to change/add lines to an existing record, one should use it's LINENUM 

new line: LINENUM>9000000 (a big number so we asume its new, won't be stored, just an indication that is new)
edit line, provide the LINENUM of the line and the changes;
just keep the line: provide just the LINENUM

delete line: don't sent the LINENUM and will be deleted.


I thought the web page for the ws was updated , but I found it in a document (in greek) , softone send me back in 2020.
I suppose I can share it 

ΟΔΗΓΙΕΣ ΓΙΑ WEB SERVICES_gr.doc

george thomidis

unread,
Feb 5, 2026, 4:21:54 PMFeb 5
to Softone Developers Network
Καλησπέρα/μέρα,

Σας ευχαριστώ πάρα πολύ για τη βοήθεια, και ειδικά για τον οδηγό. Η μέθοδος έχει πλέον το επιθυμητό αποτέλεσμα.

Νομίζω μπορεί να κλείσει το thread.

-George Thomidis
Reply all
Reply to author
Forward
0 new messages