Hi,
testing this out, looks really good so far.
regarding http://www.scriptcase.net/siteen/samples/tutoriais/form/form56.php
I have a details form but its only valid if the record pertains to “solid” not “liquid” how can I hide the detail application based on this
column? I have this which kind of works, but I get a “unauth user” error which is untidy.
thanks in advance
$sqlcmd = “select count(*) from SERV where SERVID=’”.{SERVID}."’ and Measure=‘mg’;";
sc_lookup(dataset, $sqlcmd , “clinic”);
/* Error in Lookup /
if (FALSE === {dataset}) {
sc_error_message(“An error occurred in access to the database.<BR>”);
}
elseif (empty({dataset})) { / EOF */
sc_error_message(“No value was returned by the bank<BR>”);
}
else {
if ({dataset[0][0]} == 0) {
sc_apl_status ('form_tablets_maintainance, ‘off’);
sc_error_message(“cant edit table.”);
} else {
sc_apl_status ('form_tablets_maintainance, 'on');
sc_error_message("edit table.");
}
/* Includes your routine processing here */
}