Get current value of page control and past it using GETRECORD

DamjanDamjan Posts: 20Member
Hi All,
I have multicompany database and I need to write the code to get (currently users' logged in compnay) record of table: "Job: and copy it to the same table of different company.
I just can't get the GETRECORD working as it should.
CopyJob is a record link to the Page="Copy Job"
Company is a Page Control on the Copy Job page.

I have created new Codeunit object and I can't get the code to work...
Code looks like this:
IF CopyJob.RUNMODAL=ACTION::LookupOK THEN
CopyJob.GETRECORD(CopyJob.Company)
-> error at compiling: Type conversion is not possible because 1 of the operators contains an invalid type Record :=PageControl.

Can you please advice on best solution?
Thank you
BR Damjan

Best Answer

  • DamjanDamjan Posts: 20
    Accepted Answer
    Hi,

    I have resolved that issue. it was a typo in the variables, I set the incorrect data type on the variable.
    Thanks

Answers

  • DamjanDamjan Posts: 20Member
    Accepted Answer
    Hi,

    I have resolved that issue. it was a typo in the variables, I set the incorrect data type on the variable.
    Thanks
Sign In or Register to comment.