Baanboard.com

Go Back   Baanboard.com > Forum > Baan Quick Support: Functional & Technical > Tools Development

User login

Frontpage Sponsor

Main

Google search


Poll
For ERP LN feature pack upgrade, what method of install are you using?
Installation Wizard into existing VRC
36%
Installation Wizard into new VRC
36%
Manual into existing VRC
7%
Manual into new VRC
22%
Total votes: 45

Baanboard at LinkedIn


Reference Content

Reply
 
Thread Tools Display Modes
  #1  
Old 12th July 2018, 10:18
tmannais's Avatar
tmannais tmannais is offline
Member
 
Join Date: Jul 2017
Posts: 42
tmannais is on a distinguished road
Baan: LN 10.5 - DB: MySQL - OS: Windows
Is there a function or codes similar to try()...catch()?
Baan: ERP LN 6.1 FP11 (Infor ERP 10.5)
C/S: Both

Hi,

As the title says, is there a function or codes similar to try()...catch()?
I have been using a session to execute things by keeping the session running all the time (infinite loop with timer interval) and just detect when to run a specific part of codes if the conditions are met. However, there are times when something is wrong and the session just crashes and exits by itself.
I just want to know how to keep it running even though there is an error occur just like try()...catch() in other programming languages nowadays.
In summary, I want to keep a session running even if there is an error occurred.

Regards,
Thana
Reply With Quote
Sponsored Links
  #2  
Old 12th July 2018, 19:14
mark_h's Avatar
mark_h mark_h is offline
Guru
 
Join Date: Sep 2001
Location: Kentucky, USA
Posts: 7,068
mark_h will become famous soon enough
Baan: Baan 4C4 A&D1 - DB: Oracle - OS: Sun Solaris
Wait for others - what popped into my mind is you could probably write a script or code to check to see if the session is running. If it is not then kick the session off again.
__________________
Mark

GO Cards!
My latest mantra - make sure you have latest stpapi patches and the latest session object. If on LN then please explore the option of using DAL2 functionality.

Shared Solutions for Baan systems provided free by Baan Board.
Play the Google game and help Baanboard get better rankings. Do your part. Click here to find how.
Reply With Quote
  #3  
Old 13th July 2018, 14:12
bhushanchanda's Avatar
bhushanchanda bhushanchanda is offline
Guru
 
Join Date: Sep 2012
Location: India
Posts: 2,354
bhushanchanda has a spectacular aura aboutbhushanchanda has a spectacular aura aboutbhushanchanda has a spectacular aura about
Baan: LN FP 1-9, 10.4, a little bit of Baan IV - DB: SQL Server 2008, Oracle - OS: Windows Server 2008 R2, Unix
I am not aware of any exceptions handling capabilities in BaaN/LN programming. But, we do have the return values for each and every transactions also we have the retry points.

You can suppress the crashes and use the variables to detect the errors.

If possible, can you please elaborate with an example?
__________________
Regards,

Bhushan

Unless you try to do something beyond what you have already mastered, you will never grow!
Reply With Quote
  #4  
Old 13th July 2018, 22:04
NPRao's Avatar
NPRao NPRao is offline
Guru
 
Join Date: Aug 2001
Location: Pacific NW, USA
Posts: 3,059
NPRao will become famous soon enough
Baan: Baan 4-5,5.2(Reger),LN-6.1,Infor LN-10.x - DB: Oracle,MS-SQL - OS: HPUX, Linux, Windows
Quote:
Wait for others - what popped into my mind is you could probably write a script or code to check to see if the session is running. If it is not then kick the session off again.
Refer to the threads to check if the Session is in use or not.

Reload this Page CODE: Show which session a user is running

Post 3GL/4GL Script for USER TRACKING! (Windows Version)
__________________
The art of perfection does not lie in doing extraordinary things but, doing ordinary things extraordinarily well. [-N. Prashanth Rao]
How To Ask Questions The Smart Way,BaaNBoard,NPRao
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Error while opening opening purchase order naga ch Tools Administration & Installation 6 17th June 2016 22:42
tibom1213m000(Detect low level code and loop) Issue mark_h Tools Development 8 3rd December 2012 18:29
How to call AFS in sp24? PV Ramone AFS/DDC/OLE: Function servers 4 2nd September 2008 11:06
xml question steveauckly Tools Development 4 27th July 2004 10:41


All times are GMT +2. The time now is 23:40.


©2001-2017 - Baanboard.com - Baanforums.com