mast_aadmi
3rd April 2010, 10:32
hi,

i have created a session for printing delivery challan which is a requirement in this industry. What i'm trying to do is to import values from the sales order:-

The user will select the sales order and when he clicks on the import button address code, contact code, customer order and reference a will be copied into the session based on the sales order.

But i face a problem... when i try to change the contact code and then save it sometimes it doesn't get saved. Can u give me a reason for this....

can anyone please help me out on this front..

thanks in advance.

baan1234
3rd April 2010, 13:52
Hi,

Can you just explain a litter more step by step what exactly happening.

By seeing the code everything looks fine.

You just said that sometimes it is not saved. Are you getting any messge? Explain!

Best Regards,
BaaN1234.

mast_aadmi
4th April 2010, 09:18
Hi,
What i want is for the values which are entered in the sales order to be imported into this session. I found the problem with the contact code.

say the following contact code was inserted in the field : C0000017, it is saved with this value. After clicking on the import button the value of the contact code changes to C00000009. Now i close this session, the standard functionality should ask me before closing the session whether to save the record or not. First of all it doesn't do that. I confirm that by opening the same record again ... and that value is not changed... i don't understand why being a table field it is not getting saved once i close the session...

maybe it's not going into the main.table.io session.....

baan1234
6th April 2010, 00:10
Hi,

In the session form commands, for the form command "exec.import_so" can you just remove the flags "Refresh Parent" and "Save before execution".

I hope it could solve your problem.

Best Regards,
BaaN1234.

wiggum
6th April 2010, 15:05
Execute function update.occ() after importing new values as the standard logic doesn't detect script-internal changes on table fields.