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
20%
Total votes: 44

Baanboard at LinkedIn


Reference Content

Reply
 
Thread Tools Display Modes
  #1  
Old 19th January 2018, 13:47
pralash pralash is offline
Senior Member
 
Join Date: Feb 2017
Posts: 208
pralash is on a distinguished road
Baan: 9.0 - DB: SQL Server - OS: Windows 2012R2
Property Hook
Baan: Other/Unknown
C/S: None/Unknown

Hi,

I have created a proper hook in my DAL script in order to validate a particular field value (tcemp103.mar1)... Here the validation is executed successfully with proper error message as shown in the attachment... But I want to display the validation error message as a message dialog box.... So can you please assist me that how to display the error message as a message box like in visual basic....
My DAL script is as follows....

|******************************************************************************
|* tcemp103 0 VRC B61C a cust
|* DAL for Student
|* baan
|* 18-01-10 [17:32]
|******************************************************************************
|* Script Type: DAL
|******************************************************************************

table ttcemp103 |

#include <bic_dal2>

|A property hook programmed

function extern long tcemp103.mar1.check(long has_changed)
{
if (tcemp103.mar1 >100 or tcemp103.mar1<0) then
dal.set.info.message("@%1s","Range between 1 to 100")
show.dal.messages(MSG.INFO)
return(DALHOOKERROR)
endif
return(0)
}

Can you please find the attachment and also please let me know about how to display the validation error message as a message dialog box....

Thanks in advance....
Regards,
Pralash
Attached Images
File Type: png DAL2.PNG (12.5 KB, 24 views)
Reply With Quote
  #2  
Old 19th January 2018, 14:59
JaapJD's Avatar
JaapJD JaapJD is offline
Guru
 
Join Date: Sep 2002
Location: Netherlands
Posts: 756
JaapJD will become famous soon enoughJaapJD will become famous soon enough
Baan: BaanIV, BaanERP, ERP LN 6.1 - DB: Oracle, SQL Server - OS: Unix, Windows
Use Interactive Message Mode. In session select Tools>Options.
Reply With Quote
Sponsored Links
  #3  
Old 22nd January 2018, 06:36
pralash pralash is offline
Senior Member
 
Join Date: Feb 2017
Posts: 208
pralash is on a distinguished road
Baan: 9.0 - DB: SQL Server - OS: Windows 2012R2
Hi,

As you suggested, I have selected the interactive message mode from the "options" in Tools menu... Even I got the previous result only. So can you please tell me is there any other methods for display the error validation message as a message box...

Thanks in advance...
Regards,
Pralash
Reply With Quote
  #4  
Old 12th February 2018, 09:46
v_kewl v_kewl is offline
Member
 
Join Date: Dec 2008
Posts: 58
v_kewl is on a distinguished road
Baan: LN 6.1 - DB: MS SQL - OS: Windows 2003
trying using show.dal.message or dal.peek.error.message with mess() in UI script.

Regards,
Gaurav
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
Capture Login & Time stamp in Text Field sahil318 Tools Development 3 27th June 2017 20:37
Not able to disable standard command using hook standard.command.is.allowed nehagarg Tools Development 4 19th December 2016 13:10
Programming Question mr_suleyman Tools Development 37 11th November 2016 08:14
Using DAL Property Hooks without dal.update dbclark79 Tools Development 10 15th August 2002 08:26
Validation for input h3nry_99 Tools Development 9 26th April 2002 13:44


All times are GMT +2. The time now is 15:57.


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