Dynamic Get -> Where Issue #117

Closed
opened 2017-09-07 21:19:31 +00:00 by mwweb · 4 comments
mwweb commented 2017-09-07 21:19:31 +00:00 (Migrated from github.com)

I did some testing today, as I need to have a view that will have a a where filtering by modified date.

In the dynamic get, when going to the WHERE repeatable field, if I add a new row of a.modified less than or equal to 1, JCB correctly compiles that WHERE into the model. However, if I enter a.modified less than or equal to NOW(), JCB fails to add the WHERE to the model. Or a more accurate WHERE that I was working on: a.modified less than or equal to NOW() - INTERVAL 3 DAY.

Physically adding to the model provides the desired results. But it looks like a compiler bug in not compiling WHERE if other than 1 or 0.

I did some testing today, as I need to have a view that will have a a where filtering by modified date. In the dynamic get, when going to the WHERE repeatable field, if I add a new row of a.modified less than or equal to 1, JCB correctly compiles that WHERE into the model. However, if I enter a.modified less than or equal to NOW(), JCB fails to add the WHERE to the model. Or a more accurate WHERE that I was working on: a.modified less than or equal to NOW() - INTERVAL 3 DAY. Physically adding to the model provides the desired results. But it looks like a compiler bug in not compiling WHERE if other than 1 or 0.

Can you give me a screen shot of the values, I mean exact values I could try and fix that.

I don't really think it is a bug, more like a not fully finished feature. There is a few like those around, I started building it, and left some outcomes as an open-end to return to when it becomes needed. Like if someone brings it up, or If I encounter it my self.

Can you give me a screen shot of the values, I mean exact values I could try and fix that. I don't really think it is a bug, more like a not fully finished feature. There is a few like those around, I started building it, and left some outcomes as an open-end to return to when it becomes needed. Like if someone brings it up, or If I encounter it my self.
mwweb commented 2017-09-08 08:22:58 +00:00 (Migrated from github.com)

Please see the attached.
jcb

Please see the attached. ![jcb](https://user-images.githubusercontent.com/19194012/30202702-3935ace2-9434-11e7-821f-a5132f4d746e.png)
mwweb commented 2017-09-13 07:54:08 +00:00 (Migrated from github.com)

Did that screenshot help with what I was attempting? In the end, INTERVAL 3 DAY may be changed to a param. I haven't determined that yet. I just know on this particular view there may be some that want to show records 3 days old, and some up to 7 days. I'll be playing with it more once I can compile the view, and at least have a "prototype" view in place.

Did that screenshot help with what I was attempting? In the end, INTERVAL 3 DAY may be changed to a param. I haven't determined that yet. I just know on this particular view there may be some that want to show records 3 days old, and some up to 7 days. I'll be playing with it more once I can compile the view, and at least have a "prototype" view in place.

Just pushed the fix for this, you welcome to test it... from what I tested it worked.

Just pushed the fix for this, you welcome to test it... from what I tested it worked.
Sign in to join this conversation.
No Milestone
No project
No Assignees
1 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: joomla/Component-Builder#117
No description provided.