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

Routine Skipping on version

  • richard
  • richard's Avatar Topic Author
  • Offline
  • Premium Member
  • Premium Member
More
9 years 7 months ago #16275 by richard
Routine Skipping on version was created by richard
Dear all,

Can anyone please help me to achive the below challenges.
1.
>I have an FT version in which 10+ routines are attached.
>Upon some condition (I have a local field with values yes or no) the list of routines attached to the current version need to be skipped and record has to be committed
>The attched routines should not process if local field with values is yes
>How do I achive this functionality?

2.What is the difference between Bank date , Server date and T24 date ?

3.Where can I get the values of Bank date , Server date and T24 date ? (Because I can get T24 date from TODAY variable wat about rest 2)

Best Regards,

Think green – keep this on the screen

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

  • jpb
  • jpb's Avatar
  • Offline
  • Moderator
  • Moderator
  • TAFj-R20 - 'unix'
More
9 years 7 months ago #16279 by jpb
Replied by jpb on topic Routine Skipping on version
1) There are different ways :
- code your routines in relation to the local field (e.g. attach only one routine that depending on the field will call the others or not)
- use VERSION.CONTROL to in-/ex-clude the routines depending on the fieldvalue (works only for AUT.NEW.CONT :-(

2) + 3) never came across Server date or T24 date, where have you seem this terms?
The following user(s) said Thank You: richard

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

  • richard
  • richard's Avatar Topic Author
  • Offline
  • Premium Member
  • Premium Member
More
9 years 7 months ago #16281 by richard
Replied by richard on topic Routine Skipping on version
Thank you Jpb,


Now I have wrote a routine which take the value of Local Field
IF Y.LOCAL.FIELD.VALUE EQ 'YES' THEN
//what should I code here,... coz routine is attached to a field of a version but rest routines are attached to version how do I skip
//If I remove all routines n attach it to version control, won't it affect to other versions
END ELSE
RETURN
END

Best Regards,

Think green – keep this on the screen

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

More
9 years 7 months ago #16282 by sudheep
Replied by sudheep on topic Routine Skipping on version
Richard,

Try to read VERSION APPLIOCATION and keep the condition ..
IF LOCAL.FIELD EQ YES THEN
EB.VER.VALIDATION.RTN = '' ""
END
ELSE
....
....
END
The following user(s) said Thank You: richard

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

  • richard
  • richard's Avatar Topic Author
  • Offline
  • Premium Member
  • Premium Member
More
9 years 7 months ago #16283 by richard
Replied by richard on topic Routine Skipping on version
THANK YOU

Best Regards,

Think green – keep this on the screen

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

Time to create page: 0.108 seconds