Arnold Magno
18th May 2005, 06:41
Hi,

In baan IVc i used to see sections like:

choice.cont.process:
on.choice:
execute(read.main.table)

Which i believe is called when i clicked the continue button on the form.
I am just confused because i am editing an existing script in baan 5c and it does'nt have these sections instead it has 2 functions one calling the other. The 1st function is declared extern. Are the choice sections removed from baan 5c? but how would it know which function to call first? and would it call this functions automatically when i click continue? Hope u can help me on this. Thanks a lot!

Regards,
Arnold :(

v_chandra
18th May 2005, 08:38
Hi

Actually the choice sections have not been removed in Baan 5c, have you checked the form commands that are attached to the session. It should be there in Form command and the extern function might be getting called from that form command. Form command will be there in the Form attached to that session.

If possible try to send that part of script which you are mentioning.

Arnold Magno
18th May 2005, 09:38
Hi,

Here's part of the script. There are no commands under choice section
and i'd like to know if hitting the continue button on form will actually
run this script (any of the functions). Also, could this session be run in
a batch job? or in any way possible? Thanks.

|***************** FORM SECTION ***********************
form.1:
init.form:
cpcc = "002"
display("cpcc")

|***************** CHOICE SECTION **********************
|***************** FIELD SECTION ***********************
|***************** FUNCTION SECTION *******************
functions:

function extern import.rates()
{
if solar.recost = tcyesno.no then
if len(f.oprc) < 6 then
f.oprc = get.operation.rate.code(f.oprc)
endif
endif
... |* rest of codes
}

function domain tcoprc get.operation.rate.code(domain tcoprc i.oprc)
{
|* Some codes here
}

Regards,
Arnold

v_chandra
18th May 2005, 10:14
Hi

Actually i think i was not been able to convey you the proper message. Its not the form command in script, but Form command option it is something that you can add on the Form attached to the session, it is new feature in Baan Vc, it is like the user.choice we define in Baan IV. You just check it, i think it must be there. And the label for that must be "Continue".

Please check this first. And also could you say that do you want to add some more validation on this choice or only for knowledge you want to know this.

Arnold Magno
18th May 2005, 11:26
Hi,

I've already checked it and ur right a form command is defined and calling
the function import.rates(). Thanks for the info its a lot of help! :)

Regards,
Arnold