Populating URL with record ID

Populating URL with record ID

Hi Guys,

I am seeking your assistance, I Have two forms “FORM_A” and “FORM_B”, and need to create a function on the report of “FORM_A” to open “FORM_B” and populate one of its fields with the selected (clicked) record ID from the report of “FORM_A”

So far, I have been able to create a function to call a URL to open a form “FORM_B” and populate “FIELD_1” with a fixed value (code below); what I’m actually after is to have “FIELD_1” on “FORM_B” populated with the selected record ID from “FORM_A” report once I click it, which I’m not sure how to do.

 

Thanks in advance guys

 ---------------------------------------------------------------------------------------------

void function()

{

openUrl("#Form:FORM_B?FIELD_1="+ abc123, "New window");

}