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

How to Introduce new button in version

  • manoj@1993
  • manoj@1993's Avatar Topic Author
  • Offline
  • New Member
  • New Member
  • t24 CONSULTANT
More
6 years 8 months ago #21966 by manoj@1993
How to Introduce new button in version was created by manoj@1993
Hello,

My requirement is to link a routine to a button in version screen, In which the routine must be executed while clicking the button.

Is this require to modify the version.js file in standalone?

Can any one share your ideas ?

Thanks,
Manoj

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
6 years 8 months ago #21970 by silvergem
Replied by silvergem on topic How to Introduce new button in version
You can attached the button created at BROWSER.TOOLS on Version>HYPERLINK field. the button will show on right next on field. IVe never try to attached an routine here. just javascript. May I know why do need to attached routine here?

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

  • manoj@1993
  • manoj@1993's Avatar Topic Author
  • Offline
  • New Member
  • New Member
  • t24 CONSULTANT
More
6 years 8 months ago #21971 by manoj@1993
Replied by manoj@1993 on topic How to Introduce new button in version
Hi silvergem,

Purpose of the routine is to post an OFS msg, when the user click the button. As you said the button will be displayed in right side of the fields.

Do you got any example screen shots?...

Thanks,
Manoj

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
6 years 8 months ago #21972 by silvergem
Replied by silvergem on topic How to Introduce new button in version
How will you managed to attached the ofs string routine on button?

Ive never tried to attached an routine on customize button, only javascript. Im thinking its possible to call the routine via javascript. its like what fastpath enquiry do.

So far. This is what Ive tried below
1. Ive attached an routine that execute ofs upon authorization. Ive found this on T24 User guide at Tcsp portal (Ex. While authorizing the money market. it will create an ft transaction)
2. Attached a JavaScript on button. This can pass the data on another server or application(Ex. Upon cliking the button. it will pass the account number, currency and amount to another server and it will return the signature image on new tab window)
The following user(s) said Thank You: manoj@1993

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

  • manoj@1993
  • manoj@1993's Avatar Topic Author
  • Offline
  • New Member
  • New Member
  • t24 CONSULTANT
More
6 years 8 months ago #21974 by manoj@1993
Replied by manoj@1993 on topic How to Introduce new button in version
Thanks for sharing your knowledge.

Can you give the javascript code to invoke a jbase routine ? Hope you have done this setup in Version.js or custom.js...

rgds,
Manoj

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
6 years 8 months ago #21975 by silvergem
Replied by silvergem on topic How to Introduce new button in version
I dont have that. it is just passing data to another server. like REST API or SOAP concept. Why do you need to add an ofs on button? Why dont you add it when the transaction was authorized?

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

  • manoj@1993
  • manoj@1993's Avatar Topic Author
  • Offline
  • New Member
  • New Member
  • t24 CONSULTANT
More
6 years 8 months ago #21976 by manoj@1993
Replied by manoj@1993 on topic How to Introduce new button in version
Well money market app will allow verify function. So i need to post this ofs message as soon as the user verify the record.

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
6 years 8 months ago #21977 by silvergem
Replied by silvergem on topic How to Introduce new button in version
Verify or Commit?

So when the user click the Validate button it will send an ofs string? even he didnt commit the contract?

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

  • manoj@1993
  • manoj@1993's Avatar Topic Author
  • Offline
  • New Member
  • New Member
  • t24 CONSULTANT
More
6 years 8 months ago #21978 by manoj@1993
Replied by manoj@1993 on topic How to Introduce new button in version
In Money market application (V)verify function is allowed only after authorizing the contract. While the user will click the play button or verify button, we need to post the ofs string.

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
6 years 8 months ago #21979 by silvergem
Replied by silvergem on topic How to Introduce new button in version
You can use the OFS.localaddrequest function. you can find relevant materials at current release of your T24 at tcsp portal. This is the example on this guide. Creating FT while authorosing Money Market via OFS

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

  • manoj@1993
  • manoj@1993's Avatar Topic Author
  • Offline
  • New Member
  • New Member
  • t24 CONSULTANT
More
6 years 8 months ago #21980 by manoj@1993
Replied by manoj@1993 on topic How to Introduce new button in version
But my scenario is to post ofs after the user Verify the contract. So no version routine can handle this logic... :)

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
6 years 8 months ago - 6 years 8 months ago #21982 by silvergem
Replied by silvergem on topic How to Introduce new button in version
Nope. Because your scenario is the same example here 1drv.ms/b/s!AtMswBrKeLWklVtxtdAJTeFpX-h_. Do you have access on TCSP Portal?
Last edit: 6 years 8 months ago by silvergem.

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

  • manoj@1993
  • manoj@1993's Avatar Topic Author
  • Offline
  • New Member
  • New Member
  • t24 CONSULTANT
More
6 years 8 months ago #21983 by manoj@1993
Replied by manoj@1993 on topic How to Introduce new button in version
My bad no..:(

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
6 years 8 months ago #21984 by silvergem
Replied by silvergem on topic How to Introduce new button in version
You can click the link. Ive already save it on pdf.
The following user(s) said Thank You: manoj@1993

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
6 years 8 months ago - 6 years 8 months ago #21985 by silvergem
Replied by silvergem on topic How to Introduce new button in version
You need also to add the Attribute>.BLK on Money market PGM.FILE. There is similar topic regarding that here you just search fot it

You may also check my code here github.com/silvergem/t24localapi. Ive parameterized the OFS attributes and retrieve the data on Version>AUT.NEW.CONTENT which came from enquiry drilldown
Last edit: 6 years 8 months ago by silvergem.

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

Time to create page: 0.051 seconds