_Ralph_
26th January 2007, 13:05
Hi Friends :)

Can someone explain me if i can compile and execute data already inserted on a table?

For example:
I have a table eucom101 named "Actions". Wich contains 3 fields:

eucom101.code - Script Code - tcorno
eucom101.dsca - Script Description - tcdsca
eucom101.scpt - Script - tctxtn


In short this gives the user a chance to program on a visual way.
In this script is just possible to call a Business Method, DLL or make an AFS.

What o need is a command that compile and execute the eucom101.scpt.

I tried the following:

extern long expr_id, x, buffer
extern domain tcmcs.str80 id.buffer(500)
extern domain tcmcs.str80 aux2
|*************************************************

buffer = text.to.buf("eucom101.scpt.o", language$, 500, id.buffer)
expr_id = expr.compile("id.buffer")
aux2 = s.expr$(expr_id)
expr.free(expr_id)



But this is not what i really want. Do you have any advice??

regards

mark_h
26th January 2007, 14:46
Well if you get the script correct I think you can run bic6.1 on the script and then just do a start session. Now that I see you are on ln I am not sure what the command would be, but in 4c4 I could use run.baan.prog on bic6.1 and then just launch the session. The only problem I see is what if you have multiple users trying to do this at once? Maybe not a problem, but thought I would mention it.

_Ralph_
26th January 2007, 17:55
Thanks for the reply Mark.

Could you give me some examples about using bic6.1 ?

mark_h
26th January 2007, 20:47
Here is just one thread (http://www.baanboard.com/baanboard/showthread.php?t=6712&highlight=bic6.1). Just do a search on bic6.1 - I have never really used it like this.