If record exists bring up edit records with openurl in same window not working?

If record exists bring up edit records with openurl in same window not working?

In the date field's(named TYDate)-> "On User input" event  I am checking to see if their is a record with the same as input.TYDate if so use openUrl with "/record-edit/", the result is not nearly as useful as going to the report and selecting edit on given record?  It will open the correct record in a "new window or pop-up' and no header labels such as "Edit Record", but not in "Same window" as expected when I use the "edit " link from the report for the same record.


if (Fat_Daddy_s_Destin[TYDate == input.TYDate].count()  >  0)
{
    rec  =  Fat_Daddy_s_Destin  [TYDate == input.TYDate];
    openUrl("http://creator.zoho.com/michaeldc/fat-daddy-locations/Fat_Daddy_s_Destin/record-edit/Fat_Daddy_s_Destin_Report/" + rec.ID + "/", "Same window");
    reload;
}


Thank you,
Michael