× Discuss on T24 Installation, Setting up the environment, TC Server, jBOSS, Package & Deployment, etc…

EDIT FIELD DATA IN ENQUIRY

  • safzalhussain
  • Topic Author
  • Offline
  • Senior Member
  • Senior Member
More
11 years 1 month ago #15994 by safzalhussain
EDIT FIELD DATA IN ENQUIRY was created by safzalhussain
if i place a field as FIELD.DISPLAY.TYPE = EDIT in a fast path enquiry. this field is an input field to take reason of reversal of order. at the event of reversing this order, i need to write this reason field with this reverse record and beside it i need to place a file at FTP with this order id and with this reason of rejection text.

i succeed to write a file and id in this file
but value of reason of rejection field is not coming in the file. also i m not been able to write the reason of rejection field with reverse order

IF V$FUNCTION = 'R' THEN
Y.FILE.NAME = "REV.ORD.":Y.ORDER.ID:".txt"
Y.TEXT = Y.ORDER.ID
Y.TEXT := '|'
Y.TEXT := R.NEW(MF.ORD.ORDER.DATE)
Y.TEXT := '|'
Y.TEXT := R.NEW(MF.ORD.ORDER.AMOUNT)
Y.TEXT := '|'
Y.TEXT := R.NEW(MF.ORD.TRANS.TYPE)
Y.TEXT := '|'
Y.TEXT := R.NEW(MF.ORD.REASON.REJECTION)
Y.TEXT := '|'
Y.TEXT := R.NEW(MF.ORD.DATE.TIME)
OPENSEQ Y.FOLDER.NAME,Y.FILE.NAME TO FILE.POINTER THEN
END
WRITESEQ Y.TEXT ON FILE.POINTER THEN
END

RETURN

END

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

  • armin
  • armin's Avatar
  • Offline
  • Elite Member
  • Elite Member
  • “So long - and thanks for all the fish!”
More
11 years 1 month ago #15995 by armin
Replied by armin on topic EDIT FIELD DATA IN ENQUIRY
As you can't update any field with function "R" I would try to use "I" and in the used VERSION attach a routine to Reverse the record when MF.ORD.REASON.REJECTION is updated (and write out your sequential file).

using R11 on Unix

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

  • safzalhussain
  • Topic Author
  • Offline
  • Senior Member
  • Senior Member
More
11 years 1 month ago #16009 by safzalhussain
Replied by safzalhussain on topic EDIT FIELD DATA IN ENQUIRY
i tried to use 2 routines with a version.
1 is for writing sequential file
and other is for reversal order..
but unable to achieve the desired results and get this error message when completing this order
Error Sending T24 Request.

below mentioned are the event at which i had attach routines:
Auth Routine.1 : PK.WRITE.FILE
Auth Routine.2 : PK.REVERSE.ORDER

If i only use seq file writing routine then i didnt get any errror, and its write the record . but when i attach reverse order routine its giving this error.

I also tried to attach reversal routine with field validation level but error is same.

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

  • armin
  • armin's Avatar
  • Offline
  • Elite Member
  • Elite Member
  • “So long - and thanks for all the fish!”
More
11 years 1 month ago #16011 by armin
Replied by armin on topic EDIT FIELD DATA IN ENQUIRY
How do you try to R everse the record?
I suppose it will only work using OFS (i.e. OFS.POST.MESSAGE)

using R11 on Unix

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

  • safzalhussain
  • Topic Author
  • Offline
  • Senior Member
  • Senior Member
More
11 years 1 month ago #16012 by safzalhussain
Replied by safzalhussain on topic EDIT FIELD DATA IN ENQUIRY
I m using below mentioned code in routine that is called from version.

OFS.MSG = Y.VER:"/R,":Y.OFS.USER:"/":Y.OFS.USER.PWD:"/":YCOMPANY:",":Y.ORDER.ID
CALL OFS.GLOBUS.MANAGER(OFS.TYPE,OFS.MSG)

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

  • armin
  • armin's Avatar
  • Offline
  • Elite Member
  • Elite Member
  • “So long - and thanks for all the fish!”
More
11 years 1 month ago #16013 by armin
Replied by armin on topic EDIT FIELD DATA IN ENQUIRY
Try with OFS.POST.MESSAGE.

See User Guide "OFS"

Using OFS from API Code
Do not use OFS.GLOBUS.MANAGER, OFS.REQUEST.MANAGER or OFS.PROCESSOR.MANAGER directly. These routines are internal routines and do NOT form part of the T24 public API (and transaction boundaries will become corrupt if these routines are invoked directly). Instead, the routine OFS.POST.MESSAGE should be used.


using R11 on Unix
The following user(s) said Thank You: safzalhussain

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

  • safzalhussain
  • Topic Author
  • Offline
  • Senior Member
  • Senior Member
More
11 years 1 month ago #16014 by safzalhussain
Replied by safzalhussain on topic EDIT FIELD DATA IN ENQUIRY
DONE.....thanks alot....

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

Time to create page: 0.040 seconds