Baanboard.com

Go Back   Baanboard.com > Forum > Baan SIGs > Code & Utilities

User login

Frontpage Sponsor

Main

Poll
Would you like to see a separate forum on Baanboard for the ION product?
No
14%
Yes
86%
Total votes: 80

Baanboard at LinkedIn


Reference Content

Reply
 
Thread Tools Display Modes
  #46  
Old 7th May 2004, 14:53
Punitha Punitha is offline
Member
 
Join Date: Feb 2002
Location: Dayton, OH, USA
Posts: 32
Punitha is on a distinguished road
Baan: Baan IV c4 SP 14 - DB: Informix, Oracle - OS: HP-UX
Yup!

You are right Mark! "pre-select" is the idea...


Punitha
Reply With Quote
  #47  
Old 7th May 2004, 22:47
Punitha Punitha is offline
Member
 
Join Date: Feb 2002
Location: Dayton, OH, USA
Posts: 32
Punitha is on a distinguished road
Baan: Baan IV c4 SP 14 - DB: Informix, Oracle - OS: HP-UX
Pls. see attached file

I have attached here, my modifications to the template generated by "RUSH".

I have highlighted in "YELLOW" on my modifications.

Thanks everybody,

Punitha
Attached Files
File Type: htm ticst0401m000.htm (116.9 KB, 280 views)
Reply With Quote
  #48  
Old 13th July 2004, 11:16
mostrightfuture's Avatar
mostrightfuture mostrightfuture is offline
Guru
 
Join Date: Apr 2004
Location: Switzerland
Posts: 341
mostrightfuture is on a distinguished road
Baan: Baan Vc - DB: SQL Sever 7.0 - OS: Windows 2000
hi all,

All discussion looks great and really worthwile. One thing that is confusing for me. The library (4GL Programm) generated by the RUSH, how I use it? I mean where that library (4GL Program) will be add/use, with the actual session or where ? for example I want to extended the functionaliy of a print session (cisli2405m000). Can I add the generated library (4GL program) to a device script to load the print session in the bakgroud and print the report?

Thanks in advance
Mahmood
Reply With Quote
  #49  
Old 20th July 2004, 09:29
dorleta's Avatar
dorleta dorleta is offline
Senior Member
 
Join Date: Dec 2001
Location: Madrid - Spain
Posts: 126
dorleta is on a distinguished road
Baan: BaanIV - DB: All - OS: All
I never have tested it but this maybe another solution.

bic_cstub6.1 [-s] [-a] -d <library> -o <object>

this function converts a baan dll ( I suppose and program script too ) in a c source. Of this way ( if this works like help says ) let you have the source of all object of baan and changes their funcionality.

Anybody have tested something about?
Reply With Quote
  #50  
Old 27th July 2004, 13:02
goooch goooch is offline
Member
 
Join Date: Mar 2003
Posts: 74
goooch will become famous soon enough
Baan: Baan 4c4 - DB: Informix - OS: AIX
check input

Hi All!
Could you describe all problems and solutions with check.input functions and g_check_input_funcs?
I saw the one (but there are several):

The original script:

Code:
declaration:
 extern	domain tcdsca	one,two
 long error
before.program:
  error=true
choice.cont.process:
before.choice:
 check.all.input()
on.choice:
  message("Are you here? How could you manage this?")
after.choice:
  error=true
field.two:
check.input:
     error=false
field.one:
check.input:
   if error then
    message("Something wrong")
    set.input.error("")
   endif
In this case you'll see the questions

The Rush script (only part!)
Code:
before.program:
  parent.object.function.id = get_function(parent.object.dll.id,"before.program")
  parent.object.error = exec_function(parent.object.dll.id, parent.object.function)
field.one:
check.input:
  parent.object.function.id = get_function(parent.object.dll.id,"check.input.one")
  parent.object.error = exec_function(parent.object.dll.id, parent.object.function)
field.two:
check.input:
  parent.object.function.id = get_function(parent.object.dll.id,"check.input.two")
  parent.object.error = exec_function(parent.object.dll.id, parent.object.function)
choice.cont.process:
before.choice:
  parent.object.function.id = get_function(parent.object.dll.id,"before.choice.cont.process")
  parent.object.error = exec_function(parent.object.dll.id, parent.object.function)
on.choice:
  parent.object.function.id = get_function(parent.object.dll.id,"on.choice.cont.process")
  parent.object.error = exec_function(parent.object.dll.id, parent.object.function)
after.choice:
  parent.object.function.id = get_function(parent.object.dll.id,"after.choice.cont.process")
  parent.object.error = exec_function(parent.object.dll.id, parent.object.function)
In this case you'll see the message "Something wrong"

The sample is simple, but the idea was, can i recognize the check.input's order?
Maybe I did some mistakes, sorry

Last edited by ~Vamsi : 27th July 2004 at 17:46.
Reply With Quote
  #51  
Old 27th July 2004, 17:34
lbencic's Avatar
lbencic lbencic is offline
Guru
 
Join Date: Dec 2001
Location: Lisle, IL, USA
Posts: 1,146
lbencic will become famous soon enough
Baan: 2.2d - LN - DB: most - OS: most
I may be missing something too, but I think this would depend on the Form Field Order. If the field 'one' is first on the field order, it would generate this message. If it is after the field 'two', it should not.

Did not test this though, is that true? If not, maybe you can trace the calls and see when that variable is set to false.
Reply With Quote
  #52  
Old 28th July 2004, 06:55
goooch goooch is offline
Member
 
Join Date: Mar 2003
Posts: 74
goooch will become famous soon enough
Baan: Baan 4c4 - DB: Informix - OS: AIX
Hi Lisa!
The Field order is not responsible for check.input order while check.all.input works
I think the order of sections check.input in the program is responsible (if I change the order of the sections in the last sample and the result will be the same as the first).
The function g_check_input_funcs has this order, and this function is used
where check.all.input happens
Ok, I can manage the order of check.input sections
but how can I be sure that the order is true (the same as the original)?
Of course, i can follow the field order, but if the originator did not followed this way?

I met this problem with tdilc1122 program. I' ve done the rush script with the alphabet order and has an unexpected result. Restoring section in the field order I have it Ok. I (Everybody?) need the universal remedy
Thank you
Reply With Quote
  #53  
Old 10th August 2004, 17:29
hydbaan hydbaan is offline
Unconfirmed User
 
Join Date: Aug 2004
Posts: 1
hydbaan is on a distinguished road
Baan: baan 5 - DB: oracle - OS: unix
did any one try extending a DAL using rush dll

did any one try extending a DAL using rush dll
Reply With Quote
  #54  
Old 28th August 2004, 08:43
SriksAdi SriksAdi is offline
Senior Member
 
Join Date: Dec 2003
Posts: 145
SriksAdi is on a distinguished road
Baan: Baan 4 - DB: Oracle - OS: Windows NT
Hi All,
I am on BaanIVc4 - SP15.
I tried to use RUSH with Sales Orders and Display Customers List.
In both the cases, I could successfully generate the script. But on compiling the generated script, I am facing these compilation errors:
Quote:
ptccom1510010( 56): Error: Function 'before.program' already declared.
ptccom1510010( 65): Error: Missing RETURN(..) in function 'g_check_input_funcs'
ptccom1510010( 77): Error: Missing RETURN(..) in function 'library_has_maintable'
ptccom1510010( 89): Error: Missing RETURN(..) in function 'tcedi0052.get.next.btno'
ptccom151001g( 116): Error: Function 'library_has_maintable' already declared.
ptccom151001g( 121): Error: Inconsistent number of args function 'g_check_input_funcs' line ptccom1510010(61)
ptccom151001g( 122): Error: Function 'g_check_input_funcs' already declared.
ptccom151001g( 123): Error: 'count' not declared
I have commented a few functions before.program(), g_check_input_funcs(), library_has_maintable(), tcedi0052.get.next.btno and g_check_input_funcs and it went through.

Does it have a fix or shall I continue to comment the script ?
On problem I forsee in commenting is the before.program of the parent would not be executed.

Regadrs
Sriks

PS: Attached is the script generated by RUSH
Attached Files
File Type: cln tccom1510.cln (2.7 KB, 70 views)
Reply With Quote
  #55  
Old 6th March 2007, 09:35
vktonk's Avatar
vktonk vktonk is offline
Member
 
Join Date: May 2006
Posts: 61
vktonk is on a distinguished road
Baan: baan4c4 - DB: oracle, sql server - OS: NT, unix
Hi...
I tried using the extended code, I create a dll - tccomdllrushwith rushdll.bc
and 3gl program script tccomrush3gl,compiled, create run time dd.
Now when i try to run that 3gl through Run Program / Session in menu browser, message : cannot start session appears.

Please help me out.
__________________
:)
Reply With Quote
  #56  
Old 7th March 2007, 17:14
mark_h's Avatar
mark_h mark_h is offline
Guru
 
Join Date: Sep 2001
Location: Louisville, KY, USA
Posts: 5,940
mark_h will become famous soon enough
Baan: Baan 4C4 A&D1 - DB: Oracle - OS: Sun Solaris
The session script should still be a 4gl script - so I am not sure what you are referring to.
__________________
Mark

GO Cards!
My latest mantra - make sure you have latest stpapi patches and the latest session object. If on LN then please explore the option of using DAL2 functionality.

Shared Solutions for Baan systems provided free by Baan Board.
Play the Google game and help Baanboard get better rankings. Do your part. Click here to find how.
Reply With Quote
  #57  
Old 26th March 2007, 11:02
kysersoze12 kysersoze12 is offline
Junior Member
 
Join Date: Dec 2006
Posts: 26
kysersoze12 is on a distinguished road
Baan: BAAN IV - DB: Informix - OS: UNIX
Highly useful utility .Excellent work buddy .
I was confused when first time I saw your scripts .I had to think really deep to understand what you did .I now realise when we compile 4gl script .It is compiled into 3gl .In 3gl object our session choices and field sections are stored as functions .Great work .

I also wanted to inform you that I got an error "array index out of bound" while creating decompiled script of tdsls4101m000 .
Reply With Quote
  #58  
Old 12th April 2007, 14:58
david7 david7 is offline
Member
 
Join Date: Oct 2006
Posts: 96
david7 is on a distinguished road
Baan: Baan IV, V, LN6 - DB: sql - OS: Windows XP
Question bic_info on NT - LN

This part of code did not work for me :(. I am trying it on LN and my server is on NT.
Code:
temp.file = creat.tmp.file$(bse.tmp.dir$())
options = "-e " & strip$(directory) &  " -qo " & temp.file
ret = run.baan.prog("bic_info", options, RP_WAIT)
|hopefully the above works on NT!
run.baan.prog returns 1 (ret=1)

I have read some threads and understood that you have to be physically on the NT server. Is there a solution for this problem?

Any ideas?

- David
Reply With Quote
  #59  
Old 24th April 2007, 10:55
george7a's Avatar
george7a george7a is offline
Guru
 
Join Date: May 2004
Location: Nazareth
Posts: 1,432
george7a is on a distinguished road
Baan: IVc, 5.0 b, 5.0 c, LN 6.1 - DB: MS SQL, Oracle - OS: Windows 2000, 2003 & UNIX
Thumbs up RE: bic_info

Quote:
Originally Posted by david7 View Post
I have read some threads and understood that you have to be physically on the NT server. Is there a solution for this problem?

Any ideas?

- David
Hi,

The following thread solves your problem:
http://www.baanboard.com/baanboard/s...ad.php?t=34138

- George
__________________
_
George Abdo
NAZDAQ - Your Documents, Your Way.


When you have time try: escape games
Reply With Quote
  #60  
Old 24th October 2007, 21:42
Nad2006's Avatar
Nad2006 Nad2006 is offline
Junior Member
 
Join Date: Jul 2006
Location: Canada
Posts: 11
Nad2006 is on a distinguished road
Baan: Baan 4C4 - DB: Oracle9i - OS: Linux
I have problem to add a new field to a standard baan form and maintain prog script

Hi ~VAMSI,

I am copying a standard baan form into my dev VRC then I am adding a new field to it .And I am including this into the program script (Qkey).
However at the execution at the form level the field is not recognised and I get " unknown form field refb.f" error message.

The question is it possible to add new fields to the original baan session?
Then how to do it?

Thanks for your Help!

Nad
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 Off
[IMG] code is Off
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Help text code (Baan 5) spartacus Tools Development 0 1st April 2003 11:27
NEW: vbcode CODE extensions patvdv About Baanboard.com 3 13th March 2003 11:19
Baan World Users conference in Orlando chadwickh General Discussion & Chat 7 3rd November 2001 21:55
Availability of Web-Based DEM (Baan Press Release) Pierre B. General Discussion & Chat 0 5th September 2001 05:59
BSP-US (LLC) added as a Baan Education Alliance svandenh General Discussion & Chat 1 20th August 2001 19:44


All times are GMT +2. The time now is 11:58.


©2001-2013 - Baanboard.com - Baanforums.com