Baanboard.com

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

Retirement Notice

Baanboard is shutting down on 31-dec-2023. See: http://www.baanboard.com/baanboard/showthread.php?t=76043


User login

Frontpage Sponsor

Main

Poll
What do you expect from your SI Implementation partner for the success of ERP implementation.
Bring best practices - Not to offer more CR's Leveraging standard functions
20%
Need more honesty to work with the Users until their processes are fully mapped & Users are trained
40%
Focus on process automation/ integrations/ Real time data/ BI analytics
13%
Stick to basics
27%
Total votes: 15

Reference Content

Reply
 
Thread Tools Display Modes
  #1  
Old 11th June 2020, 16:18
LK-Lie LK-Lie is offline
Newbie
 
Join Date: May 2020
Posts: 2
LK-Lie is on a distinguished road
Baan: BaaN IV - DB: Informix - OS: Windows 10
Add manual UI filter - BaaN IV
Baan: Baan IVc4
C/S: Client

Hello,

I have an issue with a multi-occurrence session.
The session's main table is : tisfc001.
And I want to add a filter on the session.
The filter includes a query extension on a table which contains the fabrication order.
So this is the link between the two tables.
But in the database definition there is no indexes between the tables.
And I can't modify the database structure.
Therefore, in the query by form there is no field from the other table.

I added two text boxes which contain the filter limits.
And I tried to modify the session's script.
I wrote this part :

Code:
|%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
function display.sort()
|%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
{
	domain tcbool exist
	exist = true
	
	if  NOT ISSPACE(seri.from) AND NOT ISSPACE(seri.to) then
		exist = seri.exist()
		
		if exist then
			query.extension = "tisfc001.pdno IN (SELECT lhlmb132.pdno FROM lhlmb132 WHERE lhlmb132.seri INRANGE :seri.from AND :seri.to)"
		endif
	else
		query.extension = "tisfc001.pdno NOT IN (SELECT lhlmb132.pdno FROM lhlmb132)"
	endif
	
	if exist then
		rebuild.query()
		execute(find.data)
	endif
}
I call the function when I click on a button.

The code doesn't work properly.
Sometimes the UI is totaly blocked and there are no more occurrences.
So you need to close the session and reopen it.
This issue was reduced by using seri.exist() to ensure that there is always data to display but it doesn't seem perfect at all...

Moreover when you add a query by form filter it's well executed.
If you remove it the query by form filter will disapear.
But if you click on the button the old query by form filter will be executed.

Can someone help me on this issue ?

My goal is to filter session's records with the query by form filter and the UI filter that I have added.

Regards
Reply With Quote
  #2  
Old 12th June 2020, 10:07
bhushanchanda's Avatar
bhushanchanda bhushanchanda is offline
Guru
 
Join Date: Sep 2012
Location: India
Posts: 2,503
bhushanchanda is a jewel in the roughbhushanchanda is a jewel in the roughbhushanchanda is a jewel in the rough
Baan: LN FP 1-9, 10.4, a little bit of Baan IV - DB: SQL Server 2008, Oracle - OS: Windows Server 2008 R2, Unix
The first thing you can try is -

Code:
query.extend.where = "tisfc001.pdno IN (SELECT lhlmb132.pdno FROM lhlmb132 WHERE lhlmb132.seri INRANGE " & quoted.string(seri.from) & " AND " & quoted.string(seri.to)
__________________
Regards,

Bhushan

Unless you try to do something beyond what you have already mastered, you will never grow!
Reply With Quote
  #3  
Old 25th June 2020, 15:29
LK-Lie LK-Lie is offline
Newbie
 
Join Date: May 2020
Posts: 2
LK-Lie is on a distinguished road
Baan: BaaN IV - DB: Informix - OS: Windows 10
Hello bhushanchanda,

Thank you for your response.

I tried to use your code part.
But it gives me an error : unsolved reference.
So I have added the dll : ottdllstring.
But it doesn't change anything.

Do you have any other idea ?

Regards
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
BaanERP book J-Christ General Discussion & Chat 34 29th August 2013 12:51
Sr. Baan Administrator rstouffer Jobs and Resumes 6 15th September 2010 12:03
Interview with Jan Baan in an Indian Magazine bamnsour General Discussion & Chat 1 24th September 2007 15:11
BaaN - 114 , Baan Roles . Spain - Transacciona C. andres77 Jobs and Resumes 0 20th January 2006 01:07
BSP-US (LLC) added as a Baan Education Alliance svandenh General Discussion & Chat 1 20th August 2001 20:44


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


©2001-2023 - Baanboard.com - Baanforums.com