×
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...
Error on Specific Field
- mrul3s
- Topic Author
- Offline
- User is blocked
Less
More
- Posts: 103
- Thank you received: 0
7 years 6 months ago - 7 years 6 months ago #20270
by mrul3s
Error on Specific Field was created by mrul3s
Hi all,
I have written input routine and attached in version. its generate Error message on first field i.e, FUND.ID but my requirement is to generate error on second last field i.e, PAYMENT.OPTION field. Kindly help me how can i do this
SUBROUTINE PK.V.VAL.SAVING.ORDER.CHK
$INSERT I_COMMON
$INSERT I_EQUATE
$INSERT I_F.MF.ORDER
GOSUB INIT
GOSUB OPEN.FILES
GOSUB PROCESS
RETURN
INIT:
FN.MF.ORDER = "F.MF.ORDER"
F.MF.ORDER = ""
RETURN
OPEN.FILES:
CALL OPF(FN.MF.ORDER,F.MF.ORDER)
RETURN
PROCESS:
CALL GET.LOC.REF("MF.ORDER","PAYMENT.OPTION",Y.PAYMENT.OPTION.POS)
PAYMENT.OPTION = R.NEW(MF.ORD.LOCAL.REF)<1,Y.PAYMENT.OPTION.POS>
AGENT = R.NEW(MF.ORD.AGENT)
IF (AGENT EQ '100123') THEN
IF PAYMENT.OPTION EQ ' ' THEN
ETEXT = "Saving Plan Agent, must input values on PAYMENT.OPTION "
CALL STORE.END.ERROR
END
END
RETURN
END
I have written input routine and attached in version. its generate Error message on first field i.e, FUND.ID but my requirement is to generate error on second last field i.e, PAYMENT.OPTION field. Kindly help me how can i do this
SUBROUTINE PK.V.VAL.SAVING.ORDER.CHK
$INSERT I_COMMON
$INSERT I_EQUATE
$INSERT I_F.MF.ORDER
GOSUB INIT
GOSUB OPEN.FILES
GOSUB PROCESS
RETURN
INIT:
FN.MF.ORDER = "F.MF.ORDER"
F.MF.ORDER = ""
RETURN
OPEN.FILES:
CALL OPF(FN.MF.ORDER,F.MF.ORDER)
RETURN
PROCESS:
CALL GET.LOC.REF("MF.ORDER","PAYMENT.OPTION",Y.PAYMENT.OPTION.POS)
PAYMENT.OPTION = R.NEW(MF.ORD.LOCAL.REF)<1,Y.PAYMENT.OPTION.POS>
AGENT = R.NEW(MF.ORD.AGENT)
IF (AGENT EQ '100123') THEN
IF PAYMENT.OPTION EQ ' ' THEN
ETEXT = "Saving Plan Agent, must input values on PAYMENT.OPTION "
CALL STORE.END.ERROR
END
END
RETURN
END
Last edit: 7 years 6 months ago by mrul3s.
Please Log in or Create an account to join the conversation.
- jpb
- Offline
- Moderator
- TAFj-R20 - 'unix'
Less
More
- Posts: 2854
- Thank you received: 649
7 years 6 months ago #20276
by jpb
Replied by jpb on topic Error on Specific Field
Setting AF / AV / AS should show the error on correct field.
AF = MF.ORD.LOCAL.REF
AV = Y.PAYMENT.OPTION.POS
AS = 0
AF = MF.ORD.LOCAL.REF
AV = Y.PAYMENT.OPTION.POS
AS = 0
The following user(s) said Thank You: mrul3s
Please Log in or Create an account to join the conversation.
- mrul3s
- Topic Author
- Offline
- User is blocked
Less
More
- Posts: 103
- Thank you received: 0
7 years 6 months ago #20278
by mrul3s
Replied by mrul3s on topic Error on Specific Field
Thank you. its working fine
Please Log in or Create an account to join the conversation.
- mrul3s
- Topic Author
- Offline
- User is blocked
Less
More
- Posts: 103
- Thank you received: 0
7 years 4 months ago #20722
by mrul3s
Replied by mrul3s on topic Error on Specific Field
Kindly explain the function of
AF = MF.ORD.LOCAL.REF
AV = Y.PAYMENT.OPTION.POS
AS = 0
if i want to generate error on Core field ORDER.AMOUNT so what function i should use.
AF = MF.ORD.LOCAL.REF
AV = Y.PAYMENT.OPTION.POS
AS = 0
if i want to generate error on Core field ORDER.AMOUNT so what function i should use.
Please Log in or Create an account to join the conversation.
- VK
- Offline
- Platinum Member
- Globus:G09-G13|TAFC:R05-R23|TAFJ:R19,R23:test
Less
More
- Posts: 1116
- Thank you received: 150
7 years 4 months ago #20723
by VK
Cheers
VK
Replied by VK on topic Error on Specific Field
Hi
easy:
AF = MF.ORD.ORDER.AMOUNT
AV = 1
AS = 1
With these 3 lines you set the position of field, value and subvalue where the error message should appear.
easy:
AF = MF.ORD.ORDER.AMOUNT
AV = 1
AS = 1
With these 3 lines you set the position of field, value and subvalue where the error message should appear.
Cheers
VK
Please Log in or Create an account to join the conversation.
- mrul3s
- Topic Author
- Offline
- User is blocked
Less
More
- Posts: 103
- Thank you received: 0
7 years 3 months ago #20744
by mrul3s
Replied by mrul3s on topic Error on Specific Field
Thank you so much for your reply VK. its working fine.
But kindly explain me the function of AF, AV and AS.
But kindly explain me the function of AF, AV and AS.
Please Log in or Create an account to join the conversation.
- VK
- Offline
- Platinum Member
- Globus:G09-G13|TAFC:R05-R23|TAFJ:R19,R23:test
Less
More
- Posts: 1116
- Thank you received: 150
7 years 3 months ago #20745
by VK
Cheers
VK
Replied by VK on topic Error on Specific Field
Hi
It's in T24_BP, file I_RULES. not very explanatory, in brief: AF - current field number, AV - current value number, AS - current subvalue number. In your case you have to set these variables so your error would appear in the place where you wanted it to be.
* AF = (Attached) physical Field.no within a sequence
* Example: Field no.s are 1, 2, 3, 4, 5
* When record will be authorised and field no. 3 and
* 4 are empty and therefore not displayed
* A-sequence is 1, 2, 3 but
* AF-sequence is 1, 2, 5
* AV = multi Value field no.
* Example: Fields to be displayed are no.
* 1, 2, 3.1 (first subfield), 3.2 (2nd subfield), 5
* Values of A, AF, AV are
* within 1st line: A = 1, AF = 1; AV = ""
* within 2nd line: A = 2, AF = 2; AV = ""
* within 3rd line: A = 3, AF = 3; AV = 1
* within 4th line: A = 4, AF = 3; AV = 2
* within 5th line: A = 5, AF = 5; AV = ""
* (AS in this example always 0)
* = value number of R.VERSION(EB.VER.TEXT) for AF = '*'
* when Single mode
* AS = Sub value field no.
* Example: Field no. = 3.1.5 = Value
* AF = 3, AV = 1, AS = 5
It's in T24_BP, file I_RULES. not very explanatory, in brief: AF - current field number, AV - current value number, AS - current subvalue number. In your case you have to set these variables so your error would appear in the place where you wanted it to be.
* AF = (Attached) physical Field.no within a sequence
* Example: Field no.s are 1, 2, 3, 4, 5
* When record will be authorised and field no. 3 and
* 4 are empty and therefore not displayed
* A-sequence is 1, 2, 3 but
* AF-sequence is 1, 2, 5
* AV = multi Value field no.
* Example: Fields to be displayed are no.
* 1, 2, 3.1 (first subfield), 3.2 (2nd subfield), 5
* Values of A, AF, AV are
* within 1st line: A = 1, AF = 1; AV = ""
* within 2nd line: A = 2, AF = 2; AV = ""
* within 3rd line: A = 3, AF = 3; AV = 1
* within 4th line: A = 4, AF = 3; AV = 2
* within 5th line: A = 5, AF = 5; AV = ""
* (AS in this example always 0)
* = value number of R.VERSION(EB.VER.TEXT) for AF = '*'
* when Single mode
* AS = Sub value field no.
* Example: Field no. = 3.1.5 = Value
* AF = 3, AV = 1, AS = 5
Cheers
VK
Please Log in or Create an account to join the conversation.
- mrul3s
- Topic Author
- Offline
- User is blocked
Less
More
- Posts: 103
- Thank you received: 0
7 years 3 months ago #20753
by mrul3s
Replied by mrul3s on topic Error on Specific Field
Thanks alot VK.
Please Log in or Create an account to join the conversation.
Time to create page: 0.166 seconds