× 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...

Enrichment how to

  • monirku
  • Topic Author
  • Offline
  • New Member
  • New Member
More
9 years 7 months ago #18607 by monirku
Enrichment how to was created by monirku
When in T-24 we input an account number at the time of funds transfer or teller txn,name of that branch appear by the right side in the browser.
I want to bring account name with branch name as you can see from attachment image.Any can help me regarding the matter.
Attachments:

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

  • jpb
  • jpb's Avatar
  • Offline
  • Moderator
  • Moderator
  • retired . . . ¯\_(ツ)_/¯
More
9 years 6 months ago - 9 years 6 months ago #18624 by jpb
Replied by jpb on topic Enrichment how to
You can try to replace the standard enrichment T.ENRI(pos) / OFS$ENRI<AF,AV,AS> for the fields in a validation routine.
Last edit: 9 years 6 months ago by jpb.
The following user(s) said Thank You: monirku

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

  • monirku
  • Topic Author
  • Offline
  • New Member
  • New Member
More
9 years 6 months ago #18633 by monirku
Replied by monirku on topic Enrichment how to
Thanks JPB
My routine is like this. Please tell me where to update
SUBROUTINE NBR.NAME
$INSERT I_COMMON
$INSERT I_EQUATE
$INSERT I_F.FUNDS.TRANSFER
$INSERT I_F.ACCOUNT
$INSERT I_F.COMPANY

FN.ACC="F.ACCOUNT"
FN.COM="F.COMPANY"
F.ACC=''
F.COM=''

REC.ACC=''
REC.COM=''
COM.CODE=''

CALL OPF(FN.ACC,F.ACC)
Y.AC.ID = COMI



CALL F.READ(FN.ACC,Y.AC.ID,REC.ACC,F.ACC,ERR.ACC)

COM.CODE = REC.ACC<196>
CALL F.READ(FN.COM,COM.CODE,REC.COM,F.COM,ERR.COM)
* ETEXT = REC.COM<EB.COM.COMPANY.NAME>

* T.ENRI = REC.COM<EB.COM.COMPANY.NAME>
* REFRESH.FIELD
FIELD.ENRI = REC.COM<EB.COM.COMPANY.NAME>
*COMI.ENRI = REC.COM<EB.COM.COMPANY.NAME>

RETURN

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

  • jpb
  • jpb's Avatar
  • Offline
  • Moderator
  • Moderator
  • retired . . . ¯\_(ツ)_/¯
More
9 years 6 months ago - 9 years 6 months ago #18637 by jpb
Replied by jpb on topic Enrichment how to
You should update T.ENRI at the position of your account field.
This is for desktop/classic, as we don't use browser I don't know if it has to be chaned to using OFS$ENRI (and the setting for hot validate etc.)
SUBROUTINE NBR.NAME
 $INSERT I_COMMON
 $INSERT I_EQUATE
 $INSERT I_F.FUNDS.TRANSFER
 $INSERT I_F.ACCOUNT
 $INSERT I_F.COMPANY

 FN.ACC="F.ACCOUNT"
 FN.COM="F.COMPANY"
 F.ACC=''
 F.COM=''

 REC.ACC=''
 REC.COM=''
 COM.CODE=''

 CALL OPF(FN.ACC,F.ACC)
 Y.AC.ID = COMI
 CALL F.READ(FN.ACC,Y.AC.ID,REC.ACC,F.ACC,ERR.ACC)

 COM.CODE = REC.ACC<Account_WhatField_196>
 CALL F.READ(FN.COM,COM.CODE,REC.COM,F.COM,ERR.COM)

 LOCATE AF IN T.FIELDNO<1> SETTING ENRIPOS THEN
     T.ENRI<ENRIPOS> := ' - ' : REC.COM<EB.COM.COMPANY.NAME>
 END
 
 RETURN 
END

Instead of LOCATE ... to update the enrichment you might use
NEW.ENRI = ...
CALL REFRESH.FIELD(AF,NEW.ENRI)
Last edit: 9 years 6 months ago by jpb.
The following user(s) said Thank You: monirku

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

  • monirku
  • Topic Author
  • Offline
  • New Member
  • New Member
More
9 years 6 months ago - 9 years 6 months ago #18638 by monirku
Replied by monirku on topic Enrichment how to
Dear JPB

Thanks for your coordination. I have tried both way. ie
LOCATE AF IN T.FIELDNO<1> SETTING ENRIPOS THEN
T.ENRI<ENRIPOS> := ' - ' : REC.COM<EB.COM.COMPANY.NAME>
END

and NEW.ENRI = REC.COM<EB.COM.COMPANY.NAME>
CALL REFRESH.FIELD(AF,NEW.ENRI)

but when I am giving branch code it is showing only name as shown below. But I need name with branch_name.
Debit Account.......... 0200000177735 IFFAT JERIN

Awaiting for your valuable response

Regards
Monir
Last edit: 9 years 6 months ago by monirku.

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

  • jpb
  • jpb's Avatar
  • Offline
  • Moderator
  • Moderator
  • retired . . . ¯\_(ツ)_/¯
More
9 years 6 months ago #18639 by jpb
Replied by jpb on topic Enrichment how to
Try adding CALL REBUILD.SCREEN as last statement
The following user(s) said Thank You: monirku

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

More
7 years 4 months ago - 7 years 4 months ago #21668 by baskarjay
Replied by baskarjay on topic Enrichment Not working in Browser
Dear All

I used OFS$ENRI<FIELD.NO, VALUE.NO, SUBVALUE.NO> = MESSAGE to display enrichment to the field

This works only when validating,, Enrichment not shown at the time of see mode..
I need to show enrichment constantly

Plz Let me know if you did this before....

BR,
Baskar Jay
Last edit: 7 years 4 months ago by baskarjay.

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

More
7 years 4 months ago #21673 by baskarjay
Replied by baskarjay on topic Enrichment Not working in Browser
got solution for this...

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
7 years 4 months ago #21676 by VK
Replied by VK on topic Enrichment Not working in Browser
Hi
If you have a solution, please post it here.

Cheers
VK

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

More
7 years 2 months ago #21709 by giangvt1
Replied by giangvt1 on topic Enrichment Not working in Browser

got solution for this...


Dear Baskarjay,

I have the same issue like yours, i am glad when i see someone get it done. Could you share your solution for me and for those who have the same problem?

Your sharing will help me so much and i will appreciated that.

Best regards,

Thank you.

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

More
7 years 2 months ago #21710 by giangvt1
Replied by giangvt1 on topic Enrichment Not working in Browser

got solution for this...


Dear Baskarjay,

I have the same issue like yours, i am glad when i see someone get it done. Could you share your solution for me and for those who have the same problem?

Your sharing will help me so much and i will appreciated that.

Best regards,

Thank you.


Hi all, hi JBP,

Is there anyone who did this issue before? please guide me how to solve it.

Thank in advance!

BR,

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
7 years 2 months ago #21711 by VK
Replied by VK on topic Enrichment Not working in Browser
Hi
there was a proposition earlier in this thread to use:
CALL REFRESH.FIELD(AF,NEW.ENRI)

But I'd rather try:
CALL REFRESH.FIELD(AF : '.' : AV: '.' : AS, NEW.ENRI)

... so you specify full field number like 35.1.2 - even if it's not an MV or SV field.

Cheers
VK
The following user(s) said Thank You: giangvt1

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

More
7 years 2 months ago #21713 by giangvt1
Replied by giangvt1 on topic Enrichment Not working in Browser
Hi VK,

Thank you for your prompt reply,

Actually, my issue is about how to display the enrichment on the right side of specific field when user open a record in see mode (the same question with Mr. Baskarjay above). I tried to use OFS$ENRI<...> = 'Message' in routine but it's just show when user click on Validate mode not in the See mode (please take a look at the image below to see).

enrichment requirehttps://drive.google.com/open?id=1pYQ8G9YZgBSZ8sb5RGiV6JyjcU-K9xO1

I am sorry if i post this in the wrong topic, i am a beginner with T24 so please help me to figure it out.

Thank in advance

Best regards,

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
7 years 2 months ago #21716 by VK
Replied by VK on topic Enrichment Not working in Browser
Hi
Validation routine isn't triggered on "See" mode. I don't think anything else does.

I afraid the only way would be to create I-DESC and put it to VERSION design.

Cheers
VK
The following user(s) said Thank You: giangvt1

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

Time to create page: 0.052 seconds