Baanboard.com

Go Back   Baanboard.com > Blogs > jayasree's blog

User login

Frontpage Sponsor

Main

Poll
As a Customer What would do to keep your ERP Implementation intact
Proactively define Business Process-- Take the Project Ownership
50%
Handover everything to System Integrator from drawing BP till implementation of ERP
13%
Hire more inhouse skilled & capable IT Resource to work directly with SI
38%
Rely on SI Architects/Consultants
0%
Total votes: 8

Baanboard at LinkedIn


Reference Content

 
Beginner BaaN IV
By jayasree at 18 Oct 2019 - 19:36

Hi

I am a beginner in BaaN IV. i got error at runtime when trying to display multi occ session  by checking enum values in query.extension

query.extension="xxxx.yyy<>domainnme.segment domain.1.procr"

Is there any other way to do...

Thanks 

 

0
No votes yet

by bdittmar on October 20, 2019 - 9:57am
bdittmar's picture
Hello,

try one of these, i.g. query.extend.where.
Code:
BaanERP Programmers Guide

Send feedback about the online Help to Baan Development 
Query extensions 
--------------------------------------------------------------------------------
Query extensions define conditions that the 4GL engine adds to the SELECT, FROM, and/or WHERE clauses of a database query in order to minimize the number of fields read from the main table and in order to retrieve all reference table fields required by the UI and/or DAL scripts. 

BaanERP provides the following functions for constructing query extensions: 

query.extend.select() 
query.extend.select.from.in.zoom() 
query.extend.from() 
query.extend.from.in.zoom() 
query.extend.where() 
query.extend.where.in.zoom() 
You can program query extensions in the UI script and/or the DAL script. In the UI script, you program the extensions in the before.program or before.zoom sections. In the DAL script, you program the extensions in the before.open.object.set() hook. 

For a full discussion of query extensions, see SQL Query extensions.
Example:
Code:
query.extend.where(" (tisfc001.osta = tcosta.in.prod or tisfc001.osta = tcosta.active)", EXTEND_APPEND)
Regards


All times are GMT +2. The time now is 02:55.


©2001-2020 - Baanboard.com - Baanforums.com