× 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 display account name along with category in enrichment of version

  • sailen
  • Topic Author
  • Offline
  • Premium Member
  • Premium Member
More
1 month 2 weeks ago #23952 by sailen
Hi,

I want to display category name along with account name as enrichment in the version. I had written a routine to display the enrichment. It shows correctly as per my requirement while validating the records. However, once all the errors in the validation are cleared, the default account name is shown automatically rather than the account name along with category name. But I want to display the account name along with category name while committing and in see mode as well.

Please suggest me how can I achieve my requirement.

Thanks & Regards,
 

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

  • VK
  • VK's Avatar
  • Offline
  • Platinum Member
  • Platinum Member
  • TAFC/J|R19/R22
More
1 month 2 weeks ago #23953 by VK
Hi
what's in your routine and where have you attached it?

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
1 month 2 weeks ago #23959 by silvergem
try to use COMI.ENRI when you are using COMI. might work

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

  • sailen
  • Topic Author
  • Offline
  • Premium Member
  • Premium Member
More
1 month 2 weeks ago #23961 by sailen
I am using R18 browser based version and routine is as follows.

$INSERT I_EQUATE
$INSERT I_COMMON
$INSERT I_TEC.COMMON
$INSERT I_F.ACCOUNT
$INSERT I_F.CATEGORY
$INSERT I_GTS.COMMON

FN.AC = 'F.ACCOUNT'
F.AC = ''
CALL OPF(FN.AC, F.AC)

FN.CAT = 'F.CATEGORY'
F.CAT = ''
CALL OPF(FN.CAT, F.CAT)
Y.ACNO = COMI
CALL F.READ(FN.AC, Y.ACNO, R.AC.LIST, F.AC, Y.ERR)
Y.CATEGORY = R.AC.LIST<AC.CATEGORY>
Y.NAME = R.AC.LIST<AC.ACCOUNT.TITLE.1>

CALL F.READ(FN.CAT, Y.CATEGORY, R.CAT.LIST, F.CAT, Y.ERR1)
Y.CAT.DESC = R.CAT.LIST<EB.CAT.DESCRIPTION>
Y.ENRI = Y.NAME:'(':Y.CAT.DESC:')'
IF AF = '2' THEN
IF COMI THEN
OFS$ENRI<2> = Y.ENRI
END
END ELSE
IF AF = '11' THEN
IF COMI THEN
OFS$ENRI<11> = Y.ENRI
END
END
*LOCATE AF IN T.FIELDNO<1> SETTING Y.POS THEN
*OFS$ENRI<Y.POS> = Y.NAME:'(':Y.CAT.DESC:')'
END

END

I have attached this routine as validation routine.

Thanks in advance,

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

  • sailen
  • Topic Author
  • Offline
  • Premium Member
  • Premium Member
More
1 month 2 weeks ago #23962 by sailen
COMI.ENRI didn't work.

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
1 month 2 weeks ago - 1 month 2 weeks ago #23963 by silvergem
this is attached on validation field or input validation? 

im assuming this is on input validation since it has conditional statement of AF
Last edit: 1 month 2 weeks ago by silvergem.

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
1 month 2 weeks ago - 1 month 1 week ago #23964 by silvergem
COMI is best used on validation routine. since you will attached this on field validation with attribute hot field

R.NEW<field name> is used on input routine with attribute hot validate

Ref: tcsp.temenos.com/HowTo/Enrichment.aspx 
Last edit: 1 month 1 week ago by silvergem.

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

  • sailen
  • Topic Author
  • Offline
  • Premium Member
  • Premium Member
More
1 month 1 week ago #23967 by sailen
Hi,
I have attached the screenshots where an enrichment is shown as per my requirement when there is a validation error (Validation_1.jpg). However, when there is no any validation error, default enrichment is shown (Validation_2.jpg).
I need to show the enrichment as in Validation_1.jpg forever and in see mode as well.

Thanks in advance,
Attachments:

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

  • VK
  • VK's Avatar
  • Offline
  • Platinum Member
  • Platinum Member
  • TAFC/J|R19/R22
More
1 month 1 week ago #23968 by VK
Hi
if there wasn't validation error, the core redraws the default enrichment.

Also: in "See mode" no routines are triggered (maybe only ID.RTN)...

So you can't have it in S function.

You can try to create an I-descriptor (that will hold all that is necessary to show) and then add it to your VERSION to appropriate position (suppressing the showing of default enrichment).

 

Cheers
VK

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

  • sailen
  • Topic Author
  • Offline
  • Premium Member
  • Premium Member
More
1 month 3 days ago #23972 by sailen
Hi,

Can you please provide an example 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
  • TAFC/J|R19/R22
More
1 month 1 day ago - 1 month 1 day ago #23974 by VK
Hi
I don't have ready examples but I believe any T24 developer can do that.

Cheers
VK
Last edit: 1 month 1 day ago by VK.

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

Time to create page: 0.157 seconds