Question
HCL Technologies Ltd
IN
Last activity: 14 Feb 2020 6:56 EST
OBj-Browse with Date condition as Equal not fetching Results
In OBj-Browse filter condition i given like this
Date IsEqual Param.Date (here i gave like this 20200210T105916)
Not fetching any Results.
Can you please help me.
Thannks,
Ravi
-
Like (0)
-
Share this page Facebook Twitter LinkedIn Email Copying... Copied!
BPM Company
NL
The string you provided (20200210T105916) is DateTime type. Check your DB column type, is it Date or DateTyme (like timestamp)
Adept view
IN
Hi Ravi,
Is the Date column which you are using in Obj-browse has only date value or date time value stored?
if Date has only date value then you need to pass only date (20200210 in the example) for Param.Date
if it is Datetime then you need to pass time stamp as yyyyMMddThhmmss.sss for Param.Date
Thanks
Jagdish
HCL Technologies Ltd
IN
It is Date Time Property both param and DB Date
HCL Technologies Ltd
IN
It is Date Time Property both param and DB Date.
I given and date and time But it's not coming results
BPM Company
NL
If it's a DateTime, then a record from DB will contain seconds and milliseconds. Definitely, you will not find anything useful with the EQUAL condition. You should use functions instead (or >=, <=)
HCL Technologies Ltd
IN
Hi Vaspoz,
Here my requirement is i have to fetch only Exactly Equal date results only.
Is there any way please let me know.
Thanks,
Ravi
BPM Company
NL
then you have to define a precision. If you use a default Equal, then the precision will be by milliseconds. So, in the majority of the cases, you will get no results.
If you choose, for example, minutes, then you need to use a function in Obj-Browse filtering
Accenture
US
Hi,
For illustration purpose, I am using pxCreateDateTime of a work object which was: 20200130T151609.516 GMT.
I defined a parameter in my activity called Param.Date and defined it as a String. And then set value for Param.Date as "20200130T151609.516 GMT"
In the Obj-Browse step, i added a condition .pxCreateDateTime <Is Equal> Param.Date and system is fetching the expected result.
Try defining you Parameter as String and try adding milliseconds as well as timezone i.e. GMT after your datetime value. For e.g. (20200210T105916.XXX GMT) and it should work.
Thanks,
Karthik
HCL Technologies Ltd
IN
Hi Karthik,
I tried as you told same thing but till not coming results, I don't know what is the issue for me.
Coforge DPA
GB
Hi
Can you share the screenshots of the configuration you have done?
Also just pick up one record from you table and try to hard code the condition for only that atleast for the debugging purpose.
Regards
Bhavya
Aaseya IT Services Pvt.Ltd
IL
Hi Ravi,
Can you share the screenshot of the Obj-Browse with filter you applied and also the column Type or Property Type you are using.
Thanks, Satish M.
Cognizant Technology Solutions
GB
Just a suggestion, can you try to use formatdatetime() before passing the date value. Check the accepted format by directly running the query in the DB.