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

Change enrichment for a mult value local field in associated version

  • alexp2005
  • Topic Author
  • Offline
  • New Member
  • New Member
More
5 years 5 months ago #22549 by alexp2005
Hi All,

I have a main version with some associated versions linked to it. In one specific associated version, I have a local value (multivalue field) containin a list of documents. This list is populated by a subroutine linked to a field A in the main version. So, at the end I have the following:

1) Main version containing a field A (I defined field A as a hot field) that will trigger a subroutine to populate the list of documents in the associated version.

2) Associated version containing a local field (multivalue field) that contains a list of documents populated from main version (subroutine). Each document contains a default enrichment as below:

Document.1..... XXXXXX Default Enrichment XXXXXX
Document.2..... YYYYYY Default Enrichment YYYYYY
Document.3...... ZZZZZZ Default Enrichment ZZZZZZ
...
Document.N ..... NNNNNN Default Enrichment NNNNNN

What I need to do is to redefine the Default Enrichment text from the main version.

I am using R16.

Can you help me on how to resolve it? Any example yould be greatly appreciated.

Thanks in advance,
Alex

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
5 years 5 months ago #22554 by silvergem
You can use the T.ENRI or COMI.ENRI or OFS$ENRI. sample code below

LOCATE YENRI.FLD IN T.FIELDNO<1> SETTING YPOS THEN
T.ENRI<YPOS> = V.ENRI
OFS$ENRI<TFS.NARRATIVE,AV,AS> = V.ENRI
COMI.ENRI = ACC.SHORT.TITLE
END

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

Time to create page: 0.025 seconds