× 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
  • Posts: 3
  • Thank you received: 0

budi.irianto created the topic: How to make new API Routine for API validation field

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
#21698

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

  • VK
  • VK's Avatar
  • Offline
  • Platinum Member
  • Platinum Member
  • R13|TAFC|jBASE|windoze
  • Posts: 573
  • Thank you received: 85

VK replied the topic: How to make new API Routine for API validation field

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
#21700

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

  • budi.irianto
  • Topic Author
  • Offline
  • New Member
  • New Member
  • Posts: 3
  • Thank you received: 0

budi.irianto replied the 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
#21735

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

  • VK
  • VK's Avatar
  • Offline
  • Platinum Member
  • Platinum Member
  • R13|TAFC|jBASE|windoze
  • Posts: 573
  • Thank you received: 85

VK replied the topic: How to make new API Routine for API validation field

Hi
have you ever written any T24 routine before?

Cheers
VK
#21740

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

  • budi.irianto
  • Topic Author
  • Offline
  • New Member
  • New Member
  • Posts: 3
  • Thank you received: 0

budi.irianto replied the topic: How to make new API Routine for API validation field

Hi VK

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

Cheer
Budhy
#21750

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

  • VK
  • VK's Avatar
  • Offline
  • Platinum Member
  • Platinum Member
  • R13|TAFC|jBASE|windoze
  • Posts: 573
  • Thank you received: 85

VK replied the topic: How to make new API Routine for API validation field

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
#21751

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

Time to create page: 0.226 seconds