Baanboard.com

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

User login

Frontpage Sponsor

Main

Poll
Where is your Baan/LN hardware located?
On Premise
57%
Hosted Data Center
14%
Cloud (Azure/AWS - Not Infor Cloudsuite)
29%
Infor Cloudsuite
0%
Total votes: 7

Baanboard at LinkedIn


Reference Content

Reply
 
Thread Tools Display Modes
  #1  
Old 14th June 2019, 16:28
avpatil avpatil is offline
Guru
 
Join Date: Feb 2002
Posts: 735
avpatil is on a distinguished road
Baan: IVc3 - DB: SQL2000 - OS: Win 2003
Calling function from PCF contraint
Baan: Other/Unknown
C/S: None/Unknown

HI,
In Baan V I am trying to call a Baan V constraint. If the function has function declaration within body then I cannot compile constraint. e.g.

In constaint I have
! #include <itisfcc001>

In functiion itisfc001 if I have say

function tisfc001 () {
}

This will result in compilation error indicating function within function not supported.
I can though use function to define variable that can be used across the constraint without any issue.
Reply With Quote
  #2  
Old 17th June 2019, 22:21
avpatil avpatil is offline
Guru
 
Join Date: Feb 2002
Posts: 735
avpatil is on a distinguished road
Baan: IVc3 - DB: SQL2000 - OS: Win 2003
I think I figured out a way. Instead of defining the function define it as Macro and it will work. In PCF constraint I included a unction like this

!Include <itipcftest01>
!Calculate_Price(Item,Price)

Then created a function tipcftest01 and defined macro
#define Calculate_Price(item,price)
^ if item = X then ##price## = 2
^ else
^ ##price## = 4


I can also call DLL in the marco or write select qeury.
^endiif
Reply With Quote
Sponsored Links
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
How to create an AFS pralash AFS/DDC/OLE: Function servers 7 11th October 2018 16:13
Error while opening opening purchase order naga ch Tools Administration & Installation 6 17th June 2016 22:42
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 14:51.


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