在我的水晶报告中,我实际上是根据开始日期和结束日期过滤数据.但我没有从固定范围(1-1-1985到31-12-2009)获取数据.我得到的数据直接来自数据库表,我没有调用任何程序.
我检查了所有可能的方法来限制/过滤数据,我找不到他们在报告中过滤的任何地方.我将从1985年到2009年获得数据.
我正在使用Crystal Report 8.0.知道如何以及在何处过滤数据?
在此先感谢您的时间.
我正在使用Camera.getPicture()API来捕获图像或从GALLERY中选择图像.当我使用相机拍摄照片时,它会返回FileEntry,其中包含带有文件名和扩展名的正确URL.但是当我从Gallery中选择一个文件时,它会将"FileEntry.fullPath"返回为/com.android.providers.media.documents/document/image%3A322,有时还会返回/ media/external/images/media/319
我想要的是,我想验证支持的文件类型(即jpg/jpeg)和实际文件名.
有没有办法获得带有扩展名的文件名,该文件名已被选中.
提前致谢.
代码片段:
var data = {};
if( type === CAMERA){
data = {
quality: quality,
destinationType: FILE_URI,
encodingType: JPEG, targetWidth: 1200, targetHeight: 1200,
saveToPhotoAlbum: true
};
}
else
{
data = {
destinationType: FILE_URI,
sourceType: PHOTOLIBRARY,
mediaType: ALLMEDIA
};
}
navigator.camera.getPicture(
successCallback, errorCallback, data
);
//The success callback method is :
successCallback: function(imageURI, param)
{
//HERE THE imageURI value is coming with different format if selected from GALLERY
window.resolveLocalFileSystemURI(imageURI,
function(fileEntry) {fileEntry.file(onSuccess,onError);},
function(evt) {onError.call(this,evt.target.error);} );
}
Run Code Online (Sandbox Code Playgroud)