Changes to recording management:
- "Condensed" display for recorded programs.
- Multi-Select for deleting recorded programs.
To use this feature, check the "Use multi-select for managing recordings" box on the appearance page on the manager...
Feedback please, as this was not a small re-write on the code.
Kev
Updated to new version but still getting this error:
Error: [AnyDAC][Phys][ODBC][Microsoft][SQL Native Client][SQL Server]Cannot insert the value NULL into column 'directory', table 'TvLibrary.dbo.Schedule'; column does not allow nulls. INSERT fails.
That would do it... I will update to the latest SVN and check it out...Updated to new version but still getting this error:
Error: [AnyDAC][Phys][ODBC][Microsoft][SQL Native Client][SQL Server]Cannot insert the value NULL into column 'directory', table 'TvLibrary.dbo.Schedule'; column does not allow nulls. INSERT fails.
Big_kev,
wasn't there some changes to the database over the last month or so on contraints on fields. Maybe this is what is causing the error?
Updated to new version but still getting this error:
Error: [AnyDAC][Phys][ODBC][Microsoft][SQL Native Client][SQL Server]Cannot insert the value NULL into column 'directory', table 'TvLibrary.dbo.Schedule'; column does not allow nulls. INSERT fails.
R->Close();
R->SQL->Clear();
R->SQL->Add("insert into Schedule (idChannel, scheduleType, programName, startTime, endTime, maxAirings, quality, directory, priority, keepDate, preRecordInterval, postRecordInterval, canceled, recommendedCard, keepMethod) values (:IDCHANNEL, :SCHEDULETYPE, :PROGRAMNAME, :STARTTIME, :ENDTIME, :MAXAIRINGS, :QUALITY, :DIRECTORY, :PRIORITY, :KEEPDATE, :PRERECORDINTERVAL, :POSTRECORDINTERVAL, :CANCELED, :RECOMMENDEDCARD, :KEEPMETHOD)");
TDateTime *Temp = new TDateTime(2000, 1, 1);
int TChannel = Q->FieldByName("idChannel")->AsInteger;
R->ParamByName("IDCHANNEL")->AsInteger = TChannel;
R->ParamByName("PROGRAMNAME")->AsString = Q->FieldByName("title")->AsString;
R->ParamByName("STARTTIME")->AsDateTime = Q->FieldByName("startTime")->AsDateTime;
R->ParamByName("ENDTIME")->AsDateTime = Q->FieldByName("endTime")->AsDateTime;
R->ParamByName("MAXAIRINGS")->AsInteger = 5;
R->ParamByName("QUALITY")->AsInteger = 0;
[COLOR="Red"][B]R->ParamByName("DIRECTORY")->AsString = " ";[/B][/COLOR]
R->ParamByName("PRIORITY")->AsInteger = 0;
R->ParamByName("PRERECORDINTERVAL")->AsInteger = FixedPreRecord;
R->ParamByName("POSTRECORDINTERVAL")->AsInteger = FixedPostRecord;
R->ParamByName("SCHEDULETYPE")->AsInteger = SchedType.ToIntDef(0);
R->ParamByName("CANCELED")->AsDateTime = *Temp;
R->ParamByName("KEEPDATE")->AsDateTime = *Temp;
delete Temp;
Q->Close();
Q->SQL->Clear();
Q->SQL->Add("select * from channelmap a, card b where idChannel = :Channel and a.idCard = b.idCard");
Q->ParamByName("Channel")->AsInteger = TChannel;
Q->Open();
Q->First();
if (!Q->Eof)
{
R->ParamByName("RECOMMENDEDCARD")->AsInteger = Q->FieldByName("idCard")->AsInteger;
R->ParamByName("PRIORITY")->AsInteger = Q->FieldByName("priority")->AsInteger;
[COLOR="Red"][B]R->ParamByName("DIRECTORY")->AsString = Q->FieldByName("recordingFolder")->AsString;[/B][/COLOR]
if (R->ParamByName("DIRECTORY")->AsString.[COLOR="Red"][B]IsEmpty[/B][/COLOR]())
{
NonFatalMessage += Trans->Trans[[COLOR="Red"][B]"No recording folder has been set for this channel"[/B][/COLOR]] + "<br>";
}
}
else
{
R->ParamByName("RECOMMENDEDCARD")->AsInteger = -1;
NonFatalMessage += Trans->Trans["[COLOR="Red"][B]No recommended card has been set for this channel[/B][/COLOR]"] + "<br>";
}
if (R->ParamByName("DIRECTORY")->AsString.IsEmpty())
{
Q->Close();
Q->SQL->Clear();
Q->SQL->Add("select * from card");
Q->Open();
Q->First();
while (!Q->Eof)
{
if (!Q->FieldByName("recordingFolder")->AsString.IsEmpty())
{
R->ParamByName("DIRECTORY")->AsString = Q->FieldByName("recordingFolder")->AsString;
NonFatalMessage += Trans->Trans["[COLOR="Red"][B]The recording file has been set to[/B][/COLOR]"] + " " + Q->FieldByName("recordingFolder")->AsString + " " + Trans->Trans["[COLOR="Red"][B]as no recording file has been assigned to this card[/B][/COLOR]"] + "<br>";
break;
}
Q->Next();
}
}
That would indicate that a null entry for the directory field is being saved...Tried new version and latest SVN still get the same error?
To get it to work I needed to open SQL Server Management Studio Express and find the entry which refers the directory column and change it to allow nulls and it works fine then.