Field Link using SC_link

Good afternoon,

I am trying to get the following to work:

if ({lic_Type} == ‘h’)
{
$licDetailIcon = “<IMG SRC=’…/_lib/img/scriptcase__NM__ico__NM__sc_menu_others_e.png’>”;
{licDetail}= “<button class=‘scButton_default’>”.$licDetailIcon." Detail</button>";

}

elseif ({lic_Type} == ‘u’)
{
$licDetailIcon = “<IMG SRC=’…/_lib/img/scriptcase__NM__ico__NM__sc_menu_home_e.png’>”;
{licDetail}= “<button class=‘scButton_default’>”.$licDetailIcon." Detail</button>";
sc_link(linkDetail,BETAcust_license_assignment.php, swID={idsoftware};“modal”);
}

else
{
$licDetailIcon = “<IMG SRC=’…/_lib/img/scriptcase__NM__ico__NM__sc_menu_dash_e.png’>”;
{licDetail}= “<button class=‘scButton_default’>”.$licDetailIcon." Detail</button>";
}

now the proper icon is displayed based on the record but I cannot seem to figure out the SC link portion. I have tried different variations of sending variables but right now the image/link in the field simply does nothing when clicked.

linkDetail is the field in the grid form.
idsoftware is the id on this same grid
swid in the field in the target app

I am sure once again I am missing something simple but any direction would be greatly appreciated.

… swID={idsoftware};“modal”);

should be

… swID={idsoftware},“modal”);

Good morning,

I made that change that you suggested but the result is still the same. When I click on the image nothing happens

Well, it helps if I do not have typos… All working now… thanks

well the next problem I have is how do I pass the idsoftware field in the main application to the linked application. If I try to use a global variable the main form asks for that global variable upon launch.
the swID is the field in the linked application.

Keith, Have you already uploaded the images to your application?