Dynamicsget Custom Where Clause Issue #1182
Labels
No Milestone
No project
No Assignees
2 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: joomla/Component-Builder#1182
Loading…
Reference in New Issue
Block a user
No description provided.
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Steps to reproduce the issue
he admin views work fine at the side bar. I have two site views. They have no extensive code, just a var_dump of the custom dynamicsget.
I create main menus for the site views and each one generate the following errors:
I looked debug all over, but I cannot fine anything there almost no coding of my own.
Expected result
Dump of raw data of the custom dynamicsget
Actual result
0 syntax error, unexpected single-quoted string "fatherstrees"
0 syntax error, unexpected single-quoted string "motherstrees"
after the above error:
sqldataf as $item): ?>I changed from var_dump in my Site View to:
"sqldataf" is a Dynamicget Custom Get
On the Dynamicget
while on "Editing the Dynamic Get"
under "Tweak" tab
and under "Where" clause, there are, "Table Key*", "Comparison Operators*" and "Value Key*" input sections
in the "Table Key*" I selected a field named "a.tree_type",
in the ""Table Key*", "Comparison Operators*" I selected the choice"equal",
in the "Value Key*" I believe that here is what my issue is since the value of a.tree_type Table Key is a text equal to "F".
I have tried numerous combinations. Can someone tell me what is the syntax expected in the "Value Key*" section if the value is text or numeric?
Note: if I clear the "Tweak" tab I get the rows in the table which tells that I am entering the wrong syntax in the "Value Key*" section.
System information (as much as possible)
Additional comments
Can you tell what is the syntax? 'F', "F", $this->{value} or something to enter. I know that $this->userId works but I do not know what to enter if the value is a text or numeric. I watched the instruction videos, but I cannot find a reference
you can not add strings in that area like 'F' or 'Root', this must be done with variables, I explained it in this issue #1181 as well.
Please read my comment there and let me know it that does not help...
Llewellyn,
$cftree = array("cffname" => "ROOT", "cfmtree_type" => "M", "cfftree_type" => "F");
$cftree["cffname"]
$cftree["cfmtree_type"]
$cftree["cfftree_type"]
I view the #1181
Can you give me a quick sample of what should be in the "Value Key*. Tried several things and I cannot get it to work.
Like this (getListQuery):
Like this (getItem):
Then add them like this:
The tutorial about the dynamicGet area is very helpful, you can either search it here or you can view it here
While these tutorials are old, the area has not changed and the features are only more stable.
Thank you, Llewellyn
Your examples helped me greatly. Excellent work!
The filter recommendation for the filtering-based on logged user did not work. I was getting records by the thousands. I used the "Where Clause" (see enclosed pictures) to filter the records for the logged user instead and the records pulled went from the thousands to 123. The system did not get stuck, and results displayed in about 3 seconds That is what I was looking for. Since I know the data, I was able to validate.
Now, I will continue to build the Site Views.
Thank you once again.
Elias
Now