× Discuss on Template programming, jBASE programming, Enquiries, No-File enquiry, Enquiry routines, Version, Version routines, Menus, Abbriviations, Creating local reference fields, Fast path enquiries, Creating charts and graphs, Generating Reports, Deal slips, Straight through processing, Multi Company and Multi Book setup, Tabbed screens, Composite Screens, T24 API, etc...

How to avoid error when post OFS with value minus e.g -123 on field amount

  • Khinhhak
  • Topic Author
  • Offline
  • New Member
  • New Member
  • TAFJ_R18_LinuxOne
More
9 months 3 weeks ago #24400 by Khinhhak
Hi guys,

How to avoid error when post OFS with value minus e.g -123 on field amount.

Thanks for advice.

Please Log in or Create an account to join the conversation.

  • VK
  • VK's Avatar
  • Offline
  • Platinum Member
  • Platinum Member
  • Globus:G9-G13|TAFC:R05-R23|TAFJ:R19,R23,R24:test
More
9 months 3 weeks ago #24401 by VK
Hi
post here the exact message (without personal data) and which error you get in return.

Cheers
VK

Please Log in or Create an account to join the conversation.

  • Khinhhak
  • Topic Author
  • Offline
  • New Member
  • New Member
  • TAFJ_R18_LinuxOne
More
9 months 3 weeks ago #24402 by Khinhhak
====Request =====

AA.ARR.BALANCE.MAINTENANCE,EM/I/PROCESS//0/,/******/KH0010001///////////////,AA222485MRTR-BALANCE.MAINTENANCE-20220907.4,ACTIVITY:1:1="DEPOSITS-ADJUST.BALANCE-BALANCE
.MAINTENANCE",ACTION:1:1="DATA.CAPTURE",ADJ.BAL.AMT:2:1=-0.16,

=====Response =====
AA222485MRTR-BALANCE.MAINTENANCE-20220907.4/TWS222540669930408.04/-1/NO,ADJUST.PROP:1:1=INPUT OR LINE-DELETION MISSING,NEW.BAL.AMT:1:1=Atleast one balance type must be adjusted.

Please Log in or Create an account to join the conversation.

  • VK
  • VK's Avatar
  • Offline
  • Platinum Member
  • Platinum Member
  • Globus:G9-G13|TAFC:R05-R23|TAFJ:R19,R23,R24:test
More
9 months 3 weeks ago #24403 by VK
Hi
and you have this error only when the amount is negative?
 

Cheers
VK

Please Log in or Create an account to join the conversation.

  • silvergem
  • silvergem's Avatar
  • Offline
  • Elite Member
  • Elite Member
  • TAFC|R12/R13, TAFJ|R20
More
9 months 3 weeks ago #24404 by silvergem
can you enclosed it on double quotes?

Please Log in or Create an account to join the conversation.

  • Khinhhak
  • Topic Author
  • Offline
  • New Member
  • New Member
  • TAFJ_R18_LinuxOne
More
9 months 3 weeks ago #24405 by Khinhhak
Yes only when it's negative and through TWS only have this error. OFS add local request via browser is not error.

Please Log in or Create an account to join the conversation.

  • VK
  • VK's Avatar
  • Offline
  • Platinum Member
  • Platinum Member
  • Globus:G9-G13|TAFC:R05-R23|TAFJ:R19,R23,R24:test
More
9 months 3 weeks ago #24406 by VK
Yes, double quotes is a good idea... Minus as it is is a deletion of a value... maybe OFS parser is wrong here.

Cheers
VK

Please Log in or Create an account to join the conversation.

More
9 months 3 weeks ago #24407 by viseth
when we parse value in double quotes like: "-0.16", It still error with Amount is not numeric.

Please Log in or Create an account to join the conversation.

  • VK
  • VK's Avatar
  • Offline
  • Platinum Member
  • Platinum Member
  • Globus:G9-G13|TAFC:R05-R23|TAFJ:R19,R23,R24:test
More
9 months 3 weeks ago #24408 by VK
> Yes only when it's negative and through TWS only have this error. OFS add local request via browser is not error.

That's subject for Temenos to correct..

Cheers
VK

Please Log in or Create an account to join the conversation.

  • silvergem
  • silvergem's Avatar
  • Offline
  • Elite Member
  • Elite Member
  • TAFC|R12/R13, TAFJ|R20
More
9 months 3 weeks ago #24409 by silvergem
it seems an issue on temenos side. pero checking on docs.temenos.com. The negative sign is used to delete multivalue. can you try single quotes?

Please Log in or Create an account to join the conversation.

  • Khinhhak
  • Topic Author
  • Offline
  • New Member
  • New Member
  • TAFJ_R18_LinuxOne
More
9 months 2 weeks ago #24411 by Khinhhak
single or double quote were not working, we tried. Let us seek confirmation from Temenos. Thanks everyone.

Please Log in or Create an account to join the conversation.

More
9 months 2 weeks ago #24412 by kripesh
Try enclosing it with pipe symbol to open and close.. Something like this
| -0.16 |

Have a great day !

Please Log in or Create an account to join the conversation.

More
9 months 2 weeks ago #24413 by viseth
Good days,
we faced that issue too, It will convert | to " in OFS, then the error still occur with message : AMOUNT NOT NUMERIC.

Please Log in or Create an account to join the conversation.

Time to create page: 0.108 seconds