Re: How can I add php command to custom view Query as parameter? Reply #15 – November 03, 2019, 01:18:16 PM @machobymb yes, you can. Quote Selected
Re: How can I add php command to custom view Query as parameter? Reply #16 – November 03, 2019, 11:50:55 PM @machobymb after going through the project you sent me, I found out that the cause of your error is the "ORDER BY tbl1.hname, tbl2.kname". This is because phprad has a created PHP function to handle the ORDER BY. When you add yours to the custom query, it clashes with the one generated by the phprad function which makes the query un-executable. And the option to select the columns you want to order the items by, like that of the Database Tables->List Page Properties->Order By is not available for the Custom Views. In summary, remove the "ORDER BY tbl1.hname, tbl2.kname" from the query and the error should be gone. Quote Selected
Re: How can I add php command to custom view Query as parameter? Reply #17 – November 04, 2019, 10:22:36 AM THX Willvin!It's work. When will the sorting option come in? (Even if I set the ascending order by the first column, it has no effect.) Quote Selected Last Edit: November 04, 2019, 12:44:16 PM by machobymb
Re: How can I add php command to custom view Query as parameter? Reply #18 – November 04, 2019, 03:38:05 PM @machobymb I currently don't know Quote Selected
Re: How can I add php command to custom view Query as parameter? Reply #19 – April 29, 2020, 11:21:53 PM Hi WillVin! I'd like to know, that can I to add Query parameters to Custom View in 2.7.3? Quote Selected
Re: How can I add php command to custom view Query as parameter? Reply #20 – April 30, 2020, 02:13:48 AM @machobymb currently you can't, it has an issue. Quote Selected
Re: How can I add php command to custom view Query as parameter? Reply #21 – May 04, 2020, 11:28:26 PM Thx!Can I in the PHPHrad this: I create a List page and in Where clouse I add a subquery.Example query to List page : SELECT * FROM table1 WHERE attr1=(SELECT attr2 FROM table2 WHERE attr3=USER_ID)The WHERE clouse: "attr1=(SELECT attr2 FROM table2 WHERE attr3=".USER_ID.")" (to Where field)ORI create 1-1 Custom View to every campany? Quote Selected
Re: How can I add php command to custom view Query as parameter? Reply #22 – May 05, 2020, 01:39:28 AM @machobymb yes you can add subquery. Quote Selected