pjohns
4th January 2002, 10:37
Can you help me with a problem.

I have a Baan table that I created a while ago where I have a field tdsls945.dino which uses the tc.dino domain. This domain is a "long" type and I now want the tdsls945.dino field to use a new "string" domain that I have created. I have changed the field domain in Maintain Table Fields and then Converted the changed table def to runtime. I have gone into ttaad4500 and can see that the tdsls945.dino field has a type of string. When I go into my session and add a record into the dino field I get the attached BW Error message, I get the same error when saving the record. The record seems to save OK.

Could it be that this particular field is linked to by "Related Label" in Maintain Table Defs to tdsls045.dino?

I have attached the session script and error message.

What do you think is causing this?

Thanks

PJ

Han Brinkman
4th January 2002, 11:36
It says that the assignment of sls945.dino is going wrong, expected string, however that's already a string. I couldn't find the assignment statement or is that field not updated?

I guess you compiled the program again after changing the domain/convert to runtime?

If you are using NT it could be that the old dd is still in shm.

Regards,
Han

grzegorz
4th January 2002, 13:02
IMO you forget to recreate runtime DD for forms used in your sessions, so in form object your field is still long, not string.
You have also to recompile reports using changed field.

pjohns
4th January 2002, 13:31
I did re-compile the program after changing domain and CTRT

I dumped and create RT on form.

But still the same problem.

Regards

PJ

P.S. I'm on HP-UX11

norwim
4th January 2002, 13:49
I think your problem is the line where you say:
where tdsls045.dino=:tdsls945.dino
long----------^ ^-----------string

that shouldn't work, should it?

hth
Norbert

MariaC
4th January 2002, 22:07
I would expect the field.tdsls945.dino: section may cause a problem. If you run your session in debug mode I think it will give you a clearer view of where the programmay be going wrong.