× 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 find using statement for applications?

  • JAPHARIDZE
  • Topic Author
  • Offline
  • New Member
  • New Member
More
3 months 2 weeks ago - 3 months 2 weeks ago #24559 by JAPHARIDZE
Hello, after upgrade from R14 to R22 my team started writing subroutines in different ways for examle:
while we were using 
    $INSERT I_F.ACCOUNT statement to get all field values from account application, it was easy because we were able to find I_F.ACCOUNT file and there were descriptions and indexes for all field for example there was written AC.ACCOUNT.OFFICER TO 11  and after opf and fread you were able to get account officer by this way: 
ACC.OFFICER = R.ACCOUNT<AC.ACCOUNT.OFFICER> or ACC.OFFICER = R.ACCOUNT<11>

after upgrade I have to use $USING AC.AccountOpening statement instead of $INSERT (even if it works ) to get account officer details by these way:
ACCOUNT.OFFICER = R.ACCOUNT<AC.AccountOpening.Account.AccountOfficer> 

I have problem because i dont know how to find correct description for $USING statement 

for example now I have to use AC.LOCK.EVENTS description but I dont know which app i have to use there is so big black box in my head. 

Can anybody help me?

p.s sorry for any ambiguous 
Last edit: 3 months 2 weeks ago by JAPHARIDZE.

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
3 months 2 weeks ago #24560 by VK
Hi
firstly, why rewriting things that work?

For the effect of "$USING AC.AccountOpening" look into T24_BP/AC.AccountOpening.h

You're including almost 2000 lines in your code, most of which you'll never use...
 

Cheers
VK

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

  • JAPHARIDZE
  • Topic Author
  • Offline
  • New Member
  • New Member
More
3 months 2 weeks ago - 3 months 2 weeks ago #24561 by JAPHARIDZE
Replied by JAPHARIDZE on topic How to find using statement for applications?
Hi,

We dont rewriting things when we have to write new subroutines we dont want to use old $INSERT statements we have to use $USING and I dont know where to find what we have to write after $USING that's all.

T24_BP directory is empty...

what do you mean "You're including almost 2000 lines in your code, most of which you'll never use..."


I am so newbie for that sphere even I don't know where to start learning...
Last edit: 3 months 2 weeks ago by JAPHARIDZE.

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
3 months 2 weeks ago #24562 by VK
Do you have TAFC or TAFJ?
 

Cheers
VK

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

  • JAPHARIDZE
  • Topic Author
  • Offline
  • New Member
  • New Member
More
3 months 2 weeks ago #24563 by JAPHARIDZE
Replied by JAPHARIDZE on topic How to find using statement for applications?
yes we have TAFJ

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
3 months 1 week ago #24565 by VK
I'm not sure where TAFJ compiler takes target file for USING (TAFC has something like T24_BP/AC.AccountOpening.h) ...

> what do you mean "You're including almost 2000 lines in your code, most of which you'll never use..."

When you use INSERT or USING you add target file contents to your compiled code. INSERT operates with much smaller files. AccountOpening.h on my R19 TAFC has 1800+ lines. I believe it's not a good practice.

TAFJ stores insert files in T24\bnk\t24lib - inside jars. As an example, I_F.AC.LOCKED.EVENTS is in AC_AccountOpening.jar/INSERTS.

To me it's much easier to keep working with INSERT statement. But it's up to you what you choose... Good luck!
 

Cheers
VK

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

Time to create page: 0.083 seconds