× 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 make new API Routine for API validation field

  • budi.irianto
  • Topic Author
  • Offline
  • New Member
  • New Member
More
5 years 11 months ago #21698 by budi.irianto
Dear All

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
  • VK's Avatar
  • Offline
  • Platinum Member
  • Platinum Member
  • Globus|G09-G13 TAFC|R05-R23 TAFJ|R19,R23-test
More
5 years 11 months ago - 5 years 11 months ago #21700 by VK
Hi
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
Last edit: 5 years 11 months ago by VK.

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

  • budi.irianto
  • Topic Author
  • Offline
  • New Member
  • New Member
More
5 years 10 months ago #21735 by budi.irianto
Replied by budi.irianto on topic How to make new API Routine for API validation field
Hi VK

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
  • VK's Avatar
  • Offline
  • Platinum Member
  • Platinum Member
  • Globus|G09-G13 TAFC|R05-R23 TAFJ|R19,R23-test
More
5 years 10 months ago #21740 by VK
Hi
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
  • New Member
More
5 years 10 months ago #21750 by budi.irianto
Replied by budi.irianto on topic How to make new API Routine for API validation field
Hi VK

I never wrote T24 Routine befor...I am sory

Cheer
Budhy

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

  • VK
  • VK's Avatar
  • Offline
  • Platinum Member
  • Platinum Member
  • Globus|G09-G13 TAFC|R05-R23 TAFJ|R19,R23-test
More
5 years 10 months ago #21751 by VK
Hi
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.

More
2 years 4 months ago #23492 by lucaslin
Hi VK,

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
  • silvergem's Avatar
  • Offline
  • Elite Member
  • Elite Member
  • TAFC|R12/R13, TAFJ|R20
More
2 years 4 months ago #23494 by silvergem
Did you create an EB.API Record?

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

More
2 years 4 months ago - 2 years 4 months ago #23495 by lucaslin
Hi silvergm,

I tried to create it in the EB.API. But it shown an error when I choose "Basic" for Source Type.
It shown "PROGRAM DOES NOT EXIST".

Do you have an suggestion?

Thanks for helping. 

 
 
Attachments:
Last edit: 2 years 4 months ago by lucaslin.

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
2 years 4 months ago - 2 years 4 months ago #23496 by silvergem
That is normal when you try to create the record on browser (it takes time for the browser to check whether the routine is already compiled), it is recommended to create on backend since it recognize the compiled routine right away
Last edit: 2 years 4 months ago by silvergem.

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

More
2 years 4 months ago #23497 by lucaslin
Thanks for replying.

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
  • silvergem's Avatar
  • Offline
  • Elite Member
  • Elite Member
  • TAFC|R12/R13, TAFJ|R20
More
2 years 4 months ago - 2 years 4 months ago #23502 by silvergem

Thanks for replying.

I created it in PGM.FILE last week. Should i restart anything?



 

PGM.FILE is only required on AUT.NEW.CONTENT field for version routines, EB.API is required on 
  1. AUTH.ROUTINE
  2. BEFORE.AUTH.RTN
  3. CHECK.REC.RTN
  4. ID.RTN
  5. INPUT.ROUTINE
  6. VALIDATION.RTN
  7. WEB.VAL.RTN

How to create on backend? can you guide me about this  

You can check On RightHoT24.pdf Section 1.9 from  Vladimir Kazimirchik  to access the jshell.

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 

 
Last edit: 2 years 4 months ago by silvergem.

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

  • VK
  • VK's Avatar
  • Offline
  • Platinum Member
  • Platinum Member
  • Globus|G09-G13 TAFC|R05-R23 TAFJ|R19,R23-test
More
2 years 4 months ago #23504 by VK
Hi
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.

Time to create page: 0.169 seconds