× 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 create a new record in AC.LOCKED.EVENTS

  • sailen
  • Topic Author
  • Offline
  • Premium Member
  • Premium Member
More
6 years 11 months ago #21867 by sailen
Hi,
I want to insert a data in AC.LOCKED.EVENTS while creating a new account. Can anyone please suggest how to achieve this?
Can I attach a routine in Authorize routine of a version? If so, how can I get the account number of the newly created account so as to insert into AC.LOCKED.EVENTS.


Thanks in advance,

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

  • sailen
  • Topic Author
  • Offline
  • Premium Member
  • Premium Member
More
6 years 11 months ago #21870 by sailen
Hi,

Can anyone please update on this?

Thanks in advance

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
6 years 11 months ago #21873 by VK
Hi
To create a new record in another application was always a bit tricky with T24. For "L" applications (especially local ones) all is easy but for H / U...

In standard way, you use CALL OFS.POST.MESSAGE but it's asynchronous so you are not sure if the record would be created successfully...

You can also use CALL EB.SET.NEXT.TASK so your user will have AC.LOCKED.EVENTS screen after committing ACCOUNT record. Again, you are not sure that user commits the new record.

I would stick to CALL OFS.POST.MESSAGE and written an online service that would check if all related data was successfully created. If not - do something for account not be used until all is done correctly.

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
6 years 9 months ago - 6 years 9 months ago #21939 by silvergem
Replied by silvergem on topic How to create a new record in AC.LOCKED.EVENTS
I found at TCSP that aside from OFS.POST.MESSAGE. you can also used ofs.addLocalRequest that is attached at BEFORE.AUTH.RTN. I came to explore as I have a requirement of creation of New account and debit the source account using our online banking

TCSP Ref
Last edit: 6 years 9 months ago by silvergem.

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

Time to create page: 0.031 seconds