×
Discuss about Archiving, Close of Business, Delivery Setup, Security Management System, Global Processing etc…
Input routine at version
- safzalhussain
- Topic Author
- Offline
- Senior Member
-
Less
More
- Posts: 44
- Thank you received: 0
10 years 5 months ago #16868
by safzalhussain
Input routine at version was created by safzalhussain
i m trying to call an input routine at version to set a value in mv set of fieds related to PRICE.
but when i m validating a record input routine is not showing any impact..
i m unable to understand what i m missing.
here are my steps :
1. write a routine (PK.V.INP.BROK.PRICE)
2. compile and catalog
3. EB.API (offcourse after resetting a tcserver)
4. call this routine at version at i.e. INPUT.ROUTINE...... PK.V.INP.BROK.PRICE
5. at version EXC.INC.RTN........ YES
6. i also set CALL REBUILD.SCREEN in input routine as well.
but still not able to see the impact of this routine.
attached is snapshot and version record
below mentioned is input routine, which is been called in the version.
*
* <Rating>0</Rating>
*
SUBROUTINE PK.V.INP.BROK.PRICE
$INSERT I_COMMON
$INSERT I_EQUATE
$INSERT I_F.SC.EXE.SEC.ORDERS
Y.PRICE = 24.5
R.NEW(SC.ESO.PRICE)<1,1> = Y.PRICE
R.NEW(SC.ESO.BR.BROKER.COMM)<1,1> = 66.5
CALL REBUILD.SCREEN
RETURN
END
but when i m validating a record input routine is not showing any impact..
i m unable to understand what i m missing.
here are my steps :
1. write a routine (PK.V.INP.BROK.PRICE)
2. compile and catalog
3. EB.API (offcourse after resetting a tcserver)
4. call this routine at version at i.e. INPUT.ROUTINE...... PK.V.INP.BROK.PRICE
5. at version EXC.INC.RTN........ YES
6. i also set CALL REBUILD.SCREEN in input routine as well.
but still not able to see the impact of this routine.
attached is snapshot and version record
below mentioned is input routine, which is been called in the version.
*
* <Rating>0</Rating>
*
SUBROUTINE PK.V.INP.BROK.PRICE
$INSERT I_COMMON
$INSERT I_EQUATE
$INSERT I_F.SC.EXE.SEC.ORDERS
Y.PRICE = 24.5
R.NEW(SC.ESO.PRICE)<1,1> = Y.PRICE
R.NEW(SC.ESO.BR.BROKER.COMM)<1,1> = 66.5
CALL REBUILD.SCREEN
RETURN
END
Please Log in or Create an account to join the conversation.
- jpb
-
- Offline
- Moderator
-
- retired . . . ¯\_(ツ)_/¯
Less
More
- Posts: 2859
- Thank you received: 650
10 years 5 months ago #16872
by jpb
Replied by jpb on topic Input routine at version
The INPUT.ROUTINE is "invoked just prior to the final update of files at the unauthorised stage of a transaction"
--> Routines called at this stage may be used to update local files, or to provide additional checking or override processing. At this point of the transaction, all standard default and validation processing will have taken place.
I.E. there is no effect on calling REBUILD.SCREEN at this point, if you want to see the new field content during input you have to attach a AUT.NEW.CONTENT or VALIDATION.RTN.
But this way the changed values should be stored when you commit.
--> Routines called at this stage may be used to update local files, or to provide additional checking or override processing. At this point of the transaction, all standard default and validation processing will have taken place.
I.E. there is no effect on calling REBUILD.SCREEN at this point, if you want to see the new field content during input you have to attach a AUT.NEW.CONTENT or VALIDATION.RTN.
But this way the changed values should be stored when you commit.
The following user(s) said Thank You: safzalhussain
Please Log in or Create an account to join the conversation.
Time to create page: 0.035 seconds