- Forum
- T24 Technical Discussions
- T24 Development & Customization
- How to make new API Routine for API validation field
How to make new API Routine for API validation field
- budi.irianto
- Topic Author
- Offline
- New Member
- Posts: 3
- Thank you received: 0
Please help me how to make new API Routine for API validation field
I need new subroutine for validation field in Open Savings Account screen, I have 2 new fields: Charges code field and charges amount field, charge code field link to FT.COMMISSION.TYPE table (drop down field type) and I need value of charges amount inputted by default from charges amount of FT.COMMISSION.TYPE table , so please info to me how to make subroutine
Thank you so much
Please Log in or Create an account to join the conversation.
- VK
- Offline
- Platinum Member
- Globus|G09-G13 TAFC|R05-R23 TAFJ|R19,R23-test
- Posts: 1106
- Thank you received: 148
Create a routine, attach it to the field with FT.COMMISSION.TYPE drop-down.
In this routine analyse COMI (the user input), read corresponding FT.COMMISSION.TYPE record, get the default from this record and then populate R.NEW for the second field. You might need CALL REFRESH.FIELD to see its update right away.
Cheers
VK
Please Log in or Create an account to join the conversation.
- budi.irianto
- Topic Author
- Offline
- New Member
- Posts: 3
- Thank you received: 0
Thank You for your explanation before
I am still confused, i need a detailed explanation, how to write new script in routine, line by line, can you share to me the sample routine related my issue : I have 2 new fields: Charges code field and charges amount field, charge code field link to FT.COMMISSION.TYPE table (drop down field type) and I need routine for the value of charges amount inputted by default (automatically write value of charges after we choice one of charge code in charge code list box)
Thanks
Please Log in or Create an account to join the conversation.
- VK
- Offline
- Platinum Member
- Globus|G09-G13 TAFC|R05-R23 TAFJ|R19,R23-test
- Posts: 1106
- Thank you received: 148
have you ever written any T24 routine before?
Cheers
VK
Please Log in or Create an account to join the conversation.
- budi.irianto
- Topic Author
- Offline
- New Member
- Posts: 3
- Thank you received: 0
I never wrote T24 Routine befor...I am sory
Cheer
Budhy
Please Log in or Create an account to join the conversation.
- VK
- Offline
- Platinum Member
- Globus|G09-G13 TAFC|R05-R23 TAFJ|R19,R23-test
- Posts: 1106
- Thank you received: 148
would be hard to complete your task then.. you have to start with some simplest routine and then move from simple to harder...
Something like:
SUBROUTINE SOME.TEST
* T24 validation routine
$INSERT I_COMMON
$INSERT I_EQUATE
IF LEN(COMI) LT 15 THEN ETEXT = 'EB-TOO.FEW.CHARACTERS'
RETURN
END
Then create EB.API record with the same ID as the name of your routine:
KEY............... SOME.TEST
------------------------------------------------------------------------------
2 PROTECTION.LEVEL.. FULL
3 SOURCE.TYPE....... BASIC
Then you can attach your routine to a VERSION and try it.
Any questions - post here.
Cheers
VK
Please Log in or Create an account to join the conversation.
- lucaslin
- Offline
- New Member
- Posts: 5
- Thank you received: 0
Thanks for explanation.
But I face a problem when I attached a subroutine in a version.
I wrote a subroutine call "XX.FT.VALID" and create a record in the PGM.FILE.
After that, I add it in the version by Design Studio.
But it shown error as below
"Unable to deploy src/xml-t24i/Models/FUNDS.TRANSFER,AC.version.xml to t24-server. (WEB VALIDATION ROUTINE MISSING)"
do you have any idea for this?
Great thank if you can reply.
Please Log in or Create an account to join the conversation.
- silvergem
- Offline
- Elite Member
- TAFC|R12/R13, TAFJ|R20
- Posts: 246
- Thank you received: 19
Please Log in or Create an account to join the conversation.
- lucaslin
- Offline
- New Member
- Posts: 5
- Thank you received: 0
Attachments:
Please Log in or Create an account to join the conversation.
- silvergem
- Offline
- Elite Member
- TAFC|R12/R13, TAFJ|R20
- Posts: 246
- Thank you received: 19
Please Log in or Create an account to join the conversation.
- lucaslin
- Offline
- New Member
- Posts: 5
- Thank you received: 0
I created it in PGM.FILE last week. Should i restart anything?
How to create on backend? can you guide me about this?
Please Log in or Create an account to join the conversation.
- silvergem
- Offline
- Elite Member
- TAFC|R12/R13, TAFJ|R20
- Posts: 246
- Thank you received: 19
PGM.FILE is only required on AUT.NEW.CONTENT field for version routines, EB.API is required onThanks for replying.
I created it in PGM.FILE last week. Should i restart anything?
- AUTH.ROUTINE
- BEFORE.AUTH.RTN
- CHECK.REC.RTN
- ID.RTN
- INPUT.ROUTINE
- VALIDATION.RTN
- WEB.VAL.RTN
You can check On RightHoT24.pdf Section 1.9 from Vladimir Kazimirchik to access the jshell.How to create on backend? can you guide me about this
You can also request from your implementation team related to Getting started documents which normally Temenos provided. You can raise ticket at servicedesk.temenos.com/, access documentation at docs.temenos.com/ or tcsp.temenos.com/. You also check publication of VK here
Please Log in or Create an account to join the conversation.
- VK
- Offline
- Platinum Member
- Globus|G09-G13 TAFC|R05-R23 TAFJ|R19,R23-test
- Posts: 1106
- Thank you received: 148
I need to add here that situation with VERSION.CONTROL is a bit different than with VERSION. AFAIR some ones that require EB.API still require PGM.FILE in VERSION.CONTROL.
Cheers
VK
Please Log in or Create an account to join the conversation.
- Forum
- T24 Technical Discussions
- T24 Development & Customization
- How to make new API Routine for API validation field