Filter Code implementation

131 views
Skip to first unread message

mosa.gh...@gmail.com

unread,
Oct 15, 2014, 4:22:40 AM10/15/14
to suppor...@runmyprocess.com
Hello Support,

Yesterday , I created a report with date columns and I implemented a filter on it , but it was not working. anyway I escalated it to RMP Support and They told me that the RMP platform had a bug on filter option, They helped me and deployed a code as workaround in my Web Interface as below , but it's not working now

var date_1 = parseInt(RMPApplication.get("date_1"));
var date_2 = parseInt(RMPApplication.get("date_2"));
var query_as_a_string = '{"$and":[{"CreationDate":{"$gte":'+date_1+'}},{"CreationDate":{"$lte":'+date_2+'}}]}'
id_report.setQuery(query_as_a_string);
id_report.refresh();

Would You Please Help Me


Best Regards,

Mousa Gharaibeh
Analyst , Business Process Automation
Corporate & Technology Services
Office :  +962 6 5800936
Mobile: +962 796579097          
Email: mousa.g...@sita.aero

Richard Manga

unread,
Oct 15, 2014, 4:55:30 AM10/15/14
to suppor...@runmyprocess.com
Good Afternoon Mousa,

This is the rigth syntax:

var query_as_a_string ={};
var date_1=RMPApplication.get("date_1");
var date_2 =RMPApplication.get("date_2");
var query_as_a_string={"$and":[{"CreationDate":{"$gte":date_1}},{"CreationDate":{"$lte":date_2}}]};
id_report.setQuery(query_as_a_string);
id_report.refresh();

Regards,

Richard


--
Fujitsu - RunMyProcess
---
You received this message because you are subscribed to the Google Groups "RunMyProcess Support Forum" group.
To unsubscribe from this group and stop receiving emails from it, send an email to supportforum...@runmyprocess.com.
To post to this group, send email to suppor...@runmyprocess.com.
Visit this group at http://groups.google.com/a/runmyprocess.com/group/supportforum/.
To view this discussion on the web visit https://groups.google.com/a/runmyprocess.com/d/msgid/supportforum/573c0666-0f18-4aeb-94ec-6068e9c36a00%40runmyprocess.com.
For more options, visit https://groups.google.com/a/runmyprocess.com/d/optout.

mosa.gh...@gmail.com

unread,
Oct 15, 2014, 5:06:33 AM10/15/14
to suppor...@runmyprocess.com
Good Afternoon Richard,

I have implemented your script , and also with no luck.

Richard Manga

unread,
Oct 15, 2014, 5:08:55 AM10/15/14
to suppor...@runmyprocess.com
Good afternoon Mousa,

"date_1" and "date_2" are RMP date fields or they are strings?

If they are strings ("10/12/2014" for exemple) you should transform them in Timestamp for the query.

Regards,

Richard



--
Fujitsu - RunMyProcess
---
You received this message because you are subscribed to the Google Groups "RunMyProcess Support Forum" group.
To unsubscribe from this group and stop receiving emails from it, send an email to supportforum...@runmyprocess.com.
To post to this group, send email to suppor...@runmyprocess.com.
Visit this group at http://groups.google.com/a/runmyprocess.com/group/supportforum/.

mosa.gh...@gmail.com

unread,
Oct 15, 2014, 5:11:36 AM10/15/14
to suppor...@runmyprocess.com
Good Afternoon ,

I defined them as a Date input widgets.

mosa.gh...@gmail.com

unread,
Oct 15, 2014, 5:15:15 AM10/15/14
to suppor...@runmyprocess.com, mosa.gh...@gmail.com
Hello Richard,

I already defined them as a date widget .

Richard Manga

unread,
Oct 15, 2014, 5:27:38 AM10/15/14
to suppor...@runmyprocess.com, mosa gharaibeh
Good afternoon Mousa,

Please can you give me the following info in private message: account email + project name + interface + report you are filtering?

I would like to make some tests.

Regards,

Richard

--
Fujitsu - RunMyProcess
---
You received this message because you are subscribed to the Google Groups "RunMyProcess Support Forum" group.
To unsubscribe from this group and stop receiving emails from it, send an email to supportforum...@runmyprocess.com.
To post to this group, send email to suppor...@runmyprocess.com.
Visit this group at http://groups.google.com/a/runmyprocess.com/group/supportforum/.

mosa.gh...@gmail.com

unread,
Oct 15, 2014, 5:39:21 AM10/15/14
to suppor...@runmyprocess.com, mosa.gh...@gmail.com
Good Afternoon Richard,

Done, Already sent Please check your private email

mosa gharaibeh

unread,
Oct 15, 2014, 8:24:27 AM10/15/14
to RunMyProcess Support Forum, mosa gharaibeh
Hello Richard,

Please Let me know if you have any update?

Best Regards,

Mousa Gharaibeh
Analyst , Business Process Automation
Corporate & Technology Services
Office :  +962 6 5800936
Mobile: +962 796579097          
--
 
 
 
 
Regrads,
Mousa Gharaibeh

Richard Manga

unread,
Oct 15, 2014, 8:26:14 AM10/15/14
to suppor...@runmyprocess.com, mosa gharaibeh
Hello Mousa:

This is the right query:


var query_as_a_string ={};
var date_1=RMPApplication.get("date_1");
var date_2 =RMPApplication.get("date_2");
var query_as_a_string={"$and":[{"CreationDate":{"$gte":date_1}},{"CreationDate":{"$lte":date_2}}]};

id_report.setQuery(JSON.stringify(query_as_a_string));
id_report.refresh();

I check it in you interface, and it works.

If you have any question, please contact me.

regards,

Richard

--
Fujitsu - RunMyProcess
---
You received this message because you are subscribed to the Google Groups "RunMyProcess Support Forum" group.
To unsubscribe from this group and stop receiving emails from it, send an email to supportforum...@runmyprocess.com.
To post to this group, send email to suppor...@runmyprocess.com.
Visit this group at http://groups.google.com/a/runmyprocess.com/group/supportforum/.

mosa.gh...@gmail.com

unread,
Oct 16, 2014, 1:44:36 AM10/16/14
to suppor...@runmyprocess.com, mosa.gh...@gmail.com
Thanks a lot , it's working fine

mosa gharaibeh

unread,
Oct 29, 2014, 2:20:30 AM10/29/14
to RunMyProcess Support Forum, mosa gharaibeh
Hello Support ,

I have received an email from your newsletter that says that you have released a new version with date filter correction , but I have tested it from your side and it's still not working properly.

Best Regards,

Mousa Gharaibeh
Analyst , Business Process Automation
Corporate & Technology Services
Office :  +962 6 5800936
Mobile: +962 796579097          

On Thu, Oct 16, 2014 at 8:44 AM, <mosa.gh...@gmail.com> wrote:
Thanks a lot , it's working fine



--
 
 
 
 
Regrads,
Mousa Gharaibeh

Jeremy Le Pré

unread,
Oct 29, 2014, 5:53:08 AM10/29/14
to suppor...@runmyprocess.com
Hello,

We're pleased to hear you succeeded in your tests.

I received the following informations about this subject:

Dev team added a Process Id filter on Interface reports and corrected abug on the Current Year filter.
Date filters are supposed to work well. But sometimes, it happens that people forget to select an operator like 'less than' or 'greater than', without it it can't work.

Regards,

______________________________________
Jérémy LE PRÉ

PreSales Engineer at RunMyProcess

WebsiteFujitsu RunMyProcess

mosa gharaibeh

unread,
Oct 29, 2014, 6:49:19 AM10/29/14
to RunMyProcess Support Forum
I have tested between and it's still not working , you can test on my project that already sent to you in previous email.

Please let the team test again , and let me know the progress.

Awaiting for your response.

Best Regards,

Mousa Gharaibeh
Analyst , Business Process Automation
Corporate & Technology Services
Office :  +962 6 5800936
Mobile: +962 796579097          


--
Fujitsu - RunMyProcess
---
You received this message because you are subscribed to a topic in the Google Groups "RunMyProcess Support Forum" group.
To unsubscribe from this topic, visit https://groups.google.com/a/runmyprocess.com/d/topic/supportforum/B4EEiOeAxXI/unsubscribe.
To unsubscribe from this group and all its topics, send an email to supportforum...@runmyprocess.com.

To post to this group, send email to suppor...@runmyprocess.com.
Visit this group at http://groups.google.com/a/runmyprocess.com/group/supportforum/.



--
 
 
 
 
Regrads,
Mousa Gharaibeh

Richard Manga

unread,
Oct 29, 2014, 11:08:40 AM10/29/14
to suppor...@runmyprocess.com
Good Morning Mousa,

Please can you tell me exactly doesn't work?

My script was tested in your interface, and it worked. Are you talking about the default filters in the report date column?

Regards,

Richard

You received this message because you are subscribed to the Google Groups "RunMyProcess Support Forum" group.
To unsubscribe from this group and stop receiving emails from it, send an email to supportforum...@runmyprocess.com.

To post to this group, send email to suppor...@runmyprocess.com.
Visit this group at http://groups.google.com/a/runmyprocess.com/group/supportforum/.

mosa gharaibeh

unread,
Oct 29, 2014, 11:09:23 AM10/29/14
to RunMyProcess Support Forum

Richard Manga

unread,
Oct 29, 2014, 11:17:44 AM10/29/14
to suppor...@runmyprocess.com
Hi Mousa,

Please, can you tell me if you are using collection/process/web interface report?

If it's collection report, how do you insert data inside youir collection?

Regards,

Richard

mosa gharaibeh

unread,
Oct 30, 2014, 2:23:46 AM10/30/14
to RunMyProcess Support Forum
Hi Richard,

it's a collection and I defined the date as recommended from RMP support ${timestamp('SECOND')?number}

Then defined it in report as date.


Best Regards,

Mousa Gharaibeh
Analyst , Business Process Automation
Corporate & Technology Services
Office :  +962 6 5800936
Mobile: +962 796579097          



--
 
 
 
 
Regrads,
Mousa Gharaibeh

mosa gharaibeh

unread,
Nov 3, 2014, 6:49:12 AM11/3/14
to RunMyProcess Support Forum
Any Update?
--
 
 
 
 
Regrads,
Mousa Gharaibeh
Reply all
Reply to author
Forward
0 new messages