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

Which routine type can I use to check if only some overrides are authorized? R21

More
3 weeks 4 days ago #24518 by lxn17
Hi,

I need to perform an operation to send an OFS only if all overrides are authorized except one override. So let's say we create an FT that raises some 3 overrides: X,Y and Z. User authorizes X and Y and Z is not needed to be authorized in order to send an OFS. If I use before auth routine, i cant check for the overrides because they aren't yet authorized, so  R.NEW(FT.OVERRIDE)<1,I,3> is empty (I is the index of the override). Authorization routine is never triggered because we don't authorize Z override. After Unau routine is triggered after the first input only, the one that creates the FT. What is the best routine type that i can use and what fields so i can achieve this?

Thanks

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

  • VK
  • VK's Avatar
  • Offline
  • Platinum Member
  • Platinum Member
  • Globus:G9-G13|TAFC:R05-R23|TAFJ:R19,R23,R24:test
More
3 weeks 4 days ago #24519 by VK
Hi
not sure about your scenario... Both OFS and user present in the same FT input. Do you create FT with OFS or you need to send an OFS when user manually proceeds FT record?

Cheers
VK

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

More
3 weeks 4 days ago #24520 by lxn17
First of all, thank you for the response.
The FT is generated via an OFS, raises some overrides, then user authorizes the overrides (except one that needs to stay unauthorized), routine is triggered that checks that the overrides are authorized (except the one that needs to stay unauthorized) and proceeds to send another OFS with the FT to an intermediate party via the routine im trying to build. Hope you understand, i can clarify further more

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

  • VK
  • VK's Avatar
  • Offline
  • Platinum Member
  • Platinum Member
  • Globus:G9-G13|TAFC:R05-R23|TAFJ:R19,R23,R24:test
More
3 weeks 4 days ago #24521 by VK
OK so FT is firstly created by OFS in INAU / INAO status.. But if user doesn't accept the 3rd OVERRIDE the transaction isn't finished?
 

Cheers
VK

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

More
3 weeks 3 days ago #24522 by lxn17
FT is created by OFS, it raises lets say 3 overrides. Two of them have to be authorised by user but the 3rd one user has no rights for it, i have to send the FT to another party that processes the FT, thats why i have to send another OFS to that party. After that, the party sends us back an OFS to authorize the third override. I need to be able to send the OFS via a routine when all the other overrides are authorized besides the third one.

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

  • VK
  • VK's Avatar
  • Offline
  • Platinum Member
  • Platinum Member
  • Globus:G9-G13|TAFC:R05-R23|TAFJ:R19,R23,R24:test
More
3 weeks 3 days ago #24523 by VK
Looks quite over-complicated to me. Who is the "other party"? Another T24 user? What's in the first OFS sent to it? Another FT? Or just a record in some application seeing which he has to react?

Cheers
VK

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

More
3 weeks 3 days ago #24525 by lxn17
The other party it's just another software we're using. It doesn't matter really. I just want to know if it's possible at any routine level to perform such task where we send an OFS if all overrides are authorized except one. I can't find any solution to check the overrides that are authorized. At before auth they're not authorized yet, at authorization routine all overrides needs to be triggered, and after unau triggers only after the first OFS input of the FT.

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

  • VK
  • VK's Avatar
  • Offline
  • Platinum Member
  • Platinum Member
  • Globus:G9-G13|TAFC:R05-R23|TAFJ:R19,R23,R24:test
More
3 weeks 3 days ago #24527 by VK
HI
I don't think it's possible. Alternatively you can set up your user to be able to accept all overrides - then you're in the AUTH rtn where you can trigger your "OFS" (still I believe the better way would be to use some other messaging mechanism) ... then - when the other party is notified - stop transaction by setting E variable.

Cheers
VK

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

Time to create page: 0.082 seconds