passing value to combobox from a form to report

Good morning,
I need to pass the value(convert from Inventlocationid to name) from the combobox present in my form the header of the report.
I tried to do that but i can’t convert the variable from Inventlocationid to the name and then to pass the name in the header of the report.
If someone can do that o can help me give me an answer.
Thanks a lot!
Andrea

Hello again,

Try using the find() method in InventLocation table. Ex -

  • InventLocation::find(inventLocationId.valueStr()).name.

Where “InventLocationId” is name of your combobox control.

Regards,