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

Field Validation Routine Executing Twice

  • manjunath7862
  • Topic Author
  • Offline
  • New Member
  • New Member
  • Posts: 18
  • Thank you received: 1

manjunath7862 created the topic: Field Validation Routine Executing Twice

Hi All,

In our development area we are facing an issue where the field validation routines are getting executed twice Continuously the movement we input the value in the field that is set as HOT FIELD and TAB button is pressed. [Note: i am aware that the field validation routine gets executed again when the record is committed but here its not the case]

Its only happening in BROWSER

Please help me out.........!!!!!


Thanks
#12840

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

  • praveenb.chennai
  • praveenb.chennai's Avatar
  • Offline
  • Senior Member
  • Senior Member
  • Posts: 57
  • Karma: 1
  • Thank you received: 4

praveenb.chennai replied the topic: Field Validation Routine Executing Twice

Hi Manjunath,

Do you mean routines are getting triggered thrice ? field validation routines will be triggered twice only.. one for hot field and other while committing. I think thats how it works.

Have I understood the problem correctly ?
#12848

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

  • manjunath7862
  • Topic Author
  • Offline
  • New Member
  • New Member
  • Posts: 18
  • Thank you received: 1

manjunath7862 replied the topic: Field Validation Routine Executing Twice

Hi,

Thanx for your reply....

Ya its executing getting thrice............!!!!

twice during inputting & once during commit...........!!!!

Generally it should execute only once during the Input. & once during Commit.


Thanx.....
#12849

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

  • praveenb.chennai
  • praveenb.chennai's Avatar
  • Offline
  • Senior Member
  • Senior Member
  • Posts: 57
  • Karma: 1
  • Thank you received: 4

praveenb.chennai replied the topic: Field Validation Routine Executing Twice

What is the T24 version? can you trace the path from the field validation routine using j -g from debug mode?
#12851

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

  • Posts: 2843
  • Karma: 512
  • Thank you received: 645

jpb replied the topic: Field Validation Routine Executing Twice

Any change when you disable hot fields in BROWSER.PREFERENCES ?

Some people feel the rain - others just get wet (Bob Marley)
#12893

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

  • manjunath7862
  • Topic Author
  • Offline
  • New Member
  • New Member
  • Posts: 18
  • Thank you received: 1

manjunath7862 replied the topic: Field Validation Routine Executing Twice

Hi Jpb,

Thanks for replying....


Actually we not using "BROWSER.PREFERENCES" for this.

and can you explain about "BROWSER.PREFERENCES" ???? which purpose we are using it?????

Thanks,
#12897

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

  • Posts: 2843
  • Karma: 512
  • Thank you received: 645

jpb replied the topic: Field Validation Routine Executing Twice

I think the useage of BROWSER.PREFERENCES is self explanating in the helptext :

This file defines a user's preferences for the appearance and behaviour of the Browser product screens. The application is keyed on the user's Id.

This allows the user to define various parameters, such as, which 'skin' the user would like to run the Browser with thus determine the 'look and feel' of the Browser windows, as well as a number of optional attributes defining whether they wish to see Hot Fields and Auto Launch Enquiries in their Browser.


Some people feel the rain - others just get wet (Bob Marley)
#12903

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

  • manjunath7862
  • Topic Author
  • Offline
  • New Member
  • New Member
  • Posts: 18
  • Thank you received: 1

manjunath7862 replied the topic: Field Validation Routine Executing Twice

Hi Jpb,

Thank you so much for your information regarding "BROWSER.PREFERENCES".

As i used for Browser.Preference "Print Location" - [Local, Server] for Printing the Deal-Slip as it before set "SERVER", i changed it as "Local" so its printing locally, and popup while commit the particular transaction where i attached the Deal-Slip in version.


But for this Subjected topic, Browser.Preference will not come into picture. becz its for particular user rite.
[Its not only for me, but every one also who is working under the area they are facing same problem]

So pls. if you/anybody found any Technical Solution to this.... Kindly Share it.

Thanks
#12920

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

  • Posts: 2843
  • Karma: 512
  • Thank you received: 645

jpb replied the topic: Field Validation Routine Executing Twice

I completely understand, but my questions was just intended to know if there is a change in behaviour when you disable Hot... using BROWSER.PREFERENCES or if the routine is stll triggered (or only once...)

Some people feel the rain - others just get wet (Bob Marley)
#12921

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

  • manjunath7862
  • Topic Author
  • Offline
  • New Member
  • New Member
  • Posts: 18
  • Thank you received: 1

manjunath7862 replied the topic: Field Validation Routine Executing Twice

Hi Jpb,

NO..!.I am not Disable HOT.FIELDS in "BROWSER.PREFERENCES".


BUT Still its triggering twice @ the time of pressing the Tab after the enter the data in particular text box [Browser.]

Thanks
#12922

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

  • Posts: 31
  • Karma: 1
  • Thank you received: 0

T24power replied the topic: Field Validation Routine Executing Twice

Hi,

In your validation routine, can you please include the below lines which will help us to trace the routine flow.

BP.ID = 'TRACE-':ID.NEW:SYSTEM(12)
FN.BP = 'LOCAL.BP'
F.BP = ''
CALL OPF(FN.BP,F.BP)
STORE.TXT<-1> = SYSTEM(1029)
CALL LOG.WRITE(FN.BP,BP.ID,STORE.TXT,'')
END
#12924

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

  • Posts: 3
  • Thank you received: 0

sourav1986 replied the topic: Field Validation Routine Executing Twice

if u r in R8
Insert I_EB.TRANS.COMMON and try to check cTxn_CommitRequests variable value, based on this variable u can skip generating twice
#12985

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

  • Posts: 2
  • Thank you received: 0

Garakishiyev replied the topic: Field Validation Routine Executing Twice

Hi, You can check variable MESSAGE. It should be 'VAL'.
Regarding on this value you can skip this routine.
#22160

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

  • VK
  • VK's Avatar
  • Offline
  • Platinum Member
  • Platinum Member
  • R13|TAFC|jBASE|windoze
  • Posts: 609
  • Thank you received: 88

VK replied the topic: Field Validation Routine Executing Twice

Hi
you're an optimist :))) expecting somebody to wait for 6 years for an answer :)))

Cheers
VK
#22205

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

Time to create page: 0.313 seconds