hougaard / ToolBox-Issues

Support Repository for Erik's ToolBox
1 stars 0 forks source link

Error Modifying Record #6

Closed bdgjope closed 1 year ago

bdgjope commented 1 year ago

Hi

I was trying to modify some records on an OnPrem Installation. Toolbox version is 1.0.0.178. I tried the following

  1. Assign Record first. I got this error: bild

  2. TransferFields, apparently not supported (yet?). Got "Unknown member transferfields".

  3. Get Records first, with the following error: bild

  4. I decided the the Validation code was not absolutely necessary so used ModifyAll instead. That worked with this code: bild

Thanks

hougaard commented 1 year ago

Rec := Rec doesn't work, but Rec.Copy(fromRec) does in 1.0.0.178.

What is the primary key of the "LSC Periodic Discount" table, the .Get() command in your second screenshot seems to indicate that the first field is a boolean?

bdgjope commented 1 year ago

With Rec.Copy(fromRec) I get the same error as with my Get Command. I double checked the Primary Key now and it is a Code field image

hougaard commented 1 year ago

Hang on, aren't you missing () on PerDisc.next?

bdgjope commented 1 year ago

Yep. Sorry that was it. Thanks.

hougaard commented 1 year ago

Well, it should give you a better compile error....

hougaard commented 1 year ago

Next version will give a proper error.