Baanboard.com

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

User login

Frontpage Sponsor

Main

Google search


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

Baanboard at LinkedIn


Reference Content

Reply
 
Thread Tools Display Modes
  #1  
Old 6th August 2008, 10:35
rajeev2012's Avatar
rajeev2012 rajeev2012 is offline
Member
 
Join Date: Nov 2005
Location: Mumbai, India
Posts: 48
rajeev2012 is on a distinguished road
Baan: Baan V, ERP LN - DB: Oracle, SQL - OS: UNIX and Windows
The 'disable.command' for standard command (DELETE) doesn't work
Baan: ERP LN 6.1
C/S: Server

Hi

We want to disable standard command, based on a condition. Hence, the following code has written (it is a satellite sessions)but it doesn't work.

Quote:
choice.mark.occur:
after.choice:
if xiext321.altp = xiext.altp.new.model or
xiext321.altp = xiext.altp.collab then
enable.commands(mark.delete)
endif
else
disable.commands(mark.delete)

endif
In debug, we have noticed,

- Though we have marked a single record, the "choice.mark occur" gets executed as many time as the number of records (filled occurrences)
- The line "disable.commands(mark.delete)" gets hit but it the delete option gets enabled.

Please let me know your views, suggestions.

Thanks
Rajeev
Reply With Quote
  #2  
Old 6th August 2008, 19:41
NirajKakodkar's Avatar
NirajKakodkar NirajKakodkar is offline
Guru
 
Join Date: May 2006
Location: Finland
Posts: 339
NirajKakodkar is on a distinguished road
Baan: BAAN4C4 , BAAN 5c , LN - DB: MS SQL SERVER, ORACLE, Informix, HP Unix, AIX - OS: Windows, UNIX
Hi Rajeev ,

First thing i noticed in your below code is your if statement , its wrong , howz the code got compiled ?
Quote:
choice.mark.occur:
after.choice:
if xiext321.altp = xiext.altp.new.model or
xiext321.altp = xiext.altp.collab then
enable.commands(mark.delete)
endif
else
disable.commands(mark.delete)

endif
There is endif before else .
the syntax is

if <condition> then

statement

else

statement

endif

Regards,
Niraj
__________________

Niraj N. S. Kakodkar |Linkedin
Reply With Quote
  #3  
Old 7th August 2008, 12:48
rajeev2012's Avatar
rajeev2012 rajeev2012 is offline
Member
 
Join Date: Nov 2005
Location: Mumbai, India
Posts: 48
rajeev2012 is on a distinguished road
Baan: Baan V, ERP LN - DB: Oracle, SQL - OS: UNIX and Windows
Syntax is correct

Hi Neeraj

Thanks for your reply.

In the actual code, the syntax is correct.

Regards
Rajeev
Reply With Quote
  #4  
Old 7th August 2008, 16:13
NirajKakodkar's Avatar
NirajKakodkar NirajKakodkar is offline
Guru
 
Join Date: May 2006
Location: Finland
Posts: 339
NirajKakodkar is on a distinguished road
Baan: BAAN4C4 , BAAN 5c , LN - DB: MS SQL SERVER, ORACLE, Informix, HP Unix, AIX - OS: Windows, UNIX
Hello Rajeev ,

First of all , sorry for the hasty reply ..

Try changing the TIV version , this should help you solve the problem .

or in extreme case , try to use the predefined variables "marked" and "actual.occ" .

This should definitely help you .

Regards,
Niraj
__________________

Niraj N. S. Kakodkar |Linkedin
Reply With Quote
Sponsored Links
  #5  
Old 26th September 2018, 05:11
Zakir Hussain Zakir Hussain is offline
Newbie
 
Join Date: Jul 2018
Posts: 1
Zakir Hussain is on a distinguished road
Baan: Baan ERP 5 to LN 10.5 - DB: Oracle, SQL - OS: Linux, Solaris, Windows
disable standard commands

Hello Rajeev,

Can u #include <bic_4gl2> in your script and try again.

Thanks..
zakir
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
Main and sub work center setup FransG Manufacturing & Supply Chain 4 20th September 2006 11:56
ALternative item & Work Center Jennyadr Manufacturing & Supply Chain 2 31st March 2006 04:20
work center and prod planning benito Manufacturing & Supply Chain 1 8th August 2002 10:40
Work center & calendar setup issue Bryan Manufacturing & Supply Chain 1 28th June 2002 09:51


All times are GMT +2. The time now is 06:09.


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