When using FRX, if there is any Null value in the DataSet passed, it results in hanging of the application.
What is the way out ?
TIA
Milan.
FRX : Null Value in DataSet
-
- Mensajes: 134
- Registrado: Dom Dic 27, 2009 9:54 am
Re: FRX : Null Value in DataSet
There is a method inside FR for this purpouse
////////////////////////////////////////////////////////////////////////
// SetConvertNulls() - Converts the "Null" value of the DB field into
// "0", "False," or empty string, depending on the
// field type. Default - True
////////////////////////////////////////////////////////////////////////
METHOD SetConvertNulls(lConvert) class frEngineOptions
Call_Proc_I(::_SetConvertNulls, IF(lConvert <> NIL, IF(lConvert, 1, 0) , 1))
RETURN self
Only activate it SetConvertNulls(.T.)
////////////////////////////////////////////////////////////////////////
// SetConvertNulls() - Converts the "Null" value of the DB field into
// "0", "False," or empty string, depending on the
// field type. Default - True
////////////////////////////////////////////////////////////////////////
METHOD SetConvertNulls(lConvert) class frEngineOptions
Call_Proc_I(::_SetConvertNulls, IF(lConvert <> NIL, IF(lConvert, 1, 0) , 1))
RETURN self
Only activate it SetConvertNulls(.T.)
BiSoft Desarrollo de software profesional
http://www.bisoft.es
http://www.bisoft.es
-
- Mensajes: 134
- Registrado: Dom Dic 27, 2009 9:54 am
Re: FRX : Null Value in DataSet
My following code is giving me error : "No Exported Variable lConvertNulls"
WITH OBJECT oReport := TFastReport():New(self)
:oEngineOptions:lConvertNulls := .T.
END WITH
What am I doing wrong ?
TIA
Milan
WITH OBJECT oReport := TFastReport():New(self)
:oEngineOptions:lConvertNulls := .T.
END WITH
What am I doing wrong ?
TIA
Milan
Re: FRX : Null Value in DataSet
WITH OBJECT oReport := TFastReport():New(self)
:oEngineOptions:SetConvertNulls(.T.)
END WITH
:oEngineOptions:SetConvertNulls(.T.)
END WITH
BiSoft Desarrollo de software profesional
http://www.bisoft.es
http://www.bisoft.es