Found error in deluge script

Found error in deluge script

HI

I am evaluating a ZOHO creator application and stuck here in given code.

There are two form:
1)job
2)Service partner

once click on link which is at Job form it will go to Services partner form and those job id is appended to url as you can see in given link

https://creator.zoho.com/fbriod/copy-of-copy-8-of-job-management/#View:Service_partners_View?Job_ID=1111408000001264149

Problem :Not able to fetch job_id from url please advice

Custom Action function Code:

void service_partner.JobOffering(Service_partners SP)
{
    x = getUrl("#Script:page.reload");
    idOfJob = x.remove("https://creator.zoho.com/fbriod/copy-of-copy-8-of-job-management/#View:Service_partners_View?Job_ID=");
    idOfJob1 = idOfJob.toLong();
    jobsp  =  Job  [ID == idOfJob1];
    if (((((jobsp.Potential_SP_1  ==  null)  ||  (jobsp.Potential_SP_2  ==  null))  ||  (jobsp.Potential_SP_3  ==  null))  ||  (jobsp.Potential_SP_4  ==  

null))  &&  (jobsp.Potential_SP_5  !=  null))
    {
        if (jobsp.Potential_SP_1  ==  null)
        {
            jobsp.Potential_SP_1 = SP.SP_id;
        }
        if (jobsp.Potential_SP_2  ==  null)
        {
            jobsp.Potential_SP_2 = SP.SP_id;
        }
        if (jobsp.Potential_SP_3  ==  null)
        {
            jobsp.Potential_SP_3 = SP.SP_id;
        }
        if (jobsp.Potential_SP_4  ==  null)
        {
            jobsp.Potential_SP_4 = SP.SP_id;
        }
        if (jobsp.Potential_SP_5  ==  null)
        {
            jobsp.Potential_SP_5 = SP.SP_id;
        }
    }
}


Please advice and modify red colored code to fetch job_id from url.

Thanks.