Baanboard.com

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

User login

Frontpage Sponsor

Main

Poll
How big is your Baan-DB (just Data AND Indexes)
0 - 200 GB
18%
200 - 500 GB
30%
500 - 800 GB
3%
800 - 1200 GB
6%
1200 - 1500 GB
8%
1500 - 2000 GB
12%
> 2000 GB
23%
Total votes: 66

Baanboard at LinkedIn


Reference Content

Reply
 
Thread Tools Display Modes
  #1  
Old 3rd May 2019, 11:05
tmannais's Avatar
tmannais tmannais is offline
Senior Member
 
Join Date: Jul 2017
Posts: 175
tmannais is on a distinguished road
Baan: LN 10.5 - DB: MySQL - OS: Windows
How to hide report selection by condition?
Baan: ERP LN 6.1 FP11 (Infor ERP 10.5)
C/S: Both

Say, I have a standard print session.
Execute the print command in the session.
After that, there are 3 reports displayed for selection to be printed on.
One is a standard report. Another 2 are customized reports.
The question is how to hide report(s) by some conditions using any available methods? so that the user can only select the available report(s) after my customized validation.
Reply With Quote
Sponsored Links
  #2  
Old 3rd May 2019, 15:54
VishalMistry's Avatar
VishalMistry VishalMistry is offline
Guru
 
Join Date: Dec 2004
Location: India, Gujarat
Posts: 639
VishalMistry has a little shameless behaviour in the past
Baan: Baan IV, ERPLn - DB: SQL Server 2000 / 2008 - OS: Windows Server 2003 / 2008
Red face Use Report Group

Here is a relevant post for your requirement.

http://www.baanboard.com/baanboard/s...ad.php?t=22810

Other option is not to link any report with print session and based on some conditions, you can call specific report using brp series of functions. Here is a simple comparision of rprt and brp report functions.

brp.open() = rprt_open()
brp.ready() = rprt_send()
brp.close() = rprt_close()

if you search the forum, you may find relevant threads with examples.

Hope this helps,

Vishal
Reply With Quote
  #3  
Old 6th May 2019, 11:35
JaapJD's Avatar
JaapJD JaapJD is offline
Guru
 
Join Date: Sep 2002
Location: Netherlands
Posts: 827
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
In a session extension you can hide reports conditionally. This is available as of LN tools 10.6.
Reply With Quote
  #4  
Old 10th May 2019, 11:26
tmannais's Avatar
tmannais tmannais is offline
Senior Member
 
Join Date: Jul 2017
Posts: 175
tmannais is on a distinguished road
Baan: LN 10.5 - DB: MySQL - OS: Windows
Quote:
Originally Posted by JaapJD View Post
In a session extension you can hide reports conditionally. This is available as of LN tools 10.6.
I tried adding Standard Linked Report -> standard report -> Is Visible hook
return(false)
and then commit.
The report is still visible and printable in the session just like nothing has been done to it.
I think the hook has a bug because I have tried something (not related to this) with Menu Extension using this very same hook "Is Visible" to return(false). It did not work as well.
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
Invoices printing issue-display last record with 2 lines tracylee Tools Development 7 20th October 2017 10:51
Report Selection of STD Session in AFS bpanda AFS/DDC/OLE: Function servers 2 26th March 2015 13:16
report print condition Elrodyn Tools Development 3 18th March 2009 10:13
default report selection in session joepte Tools Development 1 22nd October 2007 04:08
solving recursion problems rmarles Tools Development 2 25th January 2005 21:23


All times are GMT +2. The time now is 01:24.


©2001-2018 - Baanboard.com - Baanforums.com