Loading a form with fields populated with report values

Loading a form with fields populated with report values

Hi all,

My application has a report in which I created a custom action (for each record) to open a form called "Add_Job". This form has, among others, a field called "Project_Number" which needs to be loaded with a value coming from the report.

The custom action in the report is something like this:

void project.add_new_job(int project_number)
{
    openUrl("#Form:Add_Job?Project_Number=" + input.project_number + "", "same window");
}

When the field "Project_Number" is of type single line, it works like a charm. However, when I change the field to be a lookup field, it does not work.

Does anyone had this problem before? How to have it working?

Thanks!