baan_fun
15th August 2003, 15:25
Hi,

I'm working in ERP5c with the configurator and I'm trying to create a constraint before the input. Here i need to import the sales order number to search further on for some features.

I do :

string order global

table ttdsls401

import("tdsls401.orno",order)

This field "order" is always empty. Seems that the import function doesn't bring anything. Could someone please help me by letting me know if there is in 5C an equivalent function to import the value of a table field?

Thanks a lot in advance.

Andreas
19th August 2003, 19:17
Hi Baan_fun,
i did a little testing on your problem and have the following results:
sure the import function works in 5c, but not on your special problem.
It seems that import will only work on variables of the parent process.
I think you want to import the order number while starting tipcf5120m000 from session tdsls4101s000.
Your configurator script is started by tipcf5120m000 so the configurator session is the parent process of your script and tdsls4101s000 is the parent process to tipcf5120.
I did a test whith the following construct:

string order global
get.var(get.pgrp(pid), "tdsls401.orno",order)
message("%s",order)

This worked for me because tdsls4100s000 is the 'starter' where the process group has the same number as the process and tipcf5120 and your script belongs to the same process group.
with get.var you can get the variable from the specified process.

But this only works for configuration from tdsls4101.
What about configuration from tdsls1101s000 or even from tipcf5501m000 or tipcf5101s000?

Hope this helps.

Andreas