<![CDATA[ Modx - Relation between TVs or something to calculate and sort and search data ? - My Forums]]> https://forums.modx.com/thread/?thread=104882 <![CDATA[Modx - Relation between TVs or something to calculate and sort and search data ?]]> https://forums.modx.com/thread/104882/modx---relation-between-tvs-or-something-to-calculate-and-sort-and-search-data?page=2#dis-post-563957 I created a resource to tree like this -
Session year > Classes > (collections Extra for each class) > Students entry.
And I have created many Tvs for Students entry like name, class, father's name, form date, fees etc.

Client want to search for particular list of student by fees due, form completed or not (which is added by TV with radio button yes/no)

And Client want to automatic calculate the amount like adding fees in installment of 3 so total fees is 15000 and there is 3 installments for 500 each. So when student submit 1st installment, it should show remaining amount and when 2nd installment submit, it should add and calculate amount.

Client also want to search data by selecting year and student's class. He also want to add data from front end. How to process tv's with resource ?

I dont know how to achieve all this with modx .. Please suggest me proper extra or guide me how it can be done.

Thanks. smiley]]>
Mayanktaker Feb 04, 2019, 10:35 PM https://forums.modx.com/thread/104882/modx---relation-between-tvs-or-something-to-calculate-and-sort-and-search-data?page=2#dis-post-563957
<![CDATA[Re: Modx - Relation between TVs or something to calculate and sort and search data ?]]> https://forums.modx.com/thread/104882/modx---relation-between-tvs-or-something-to-calculate-and-sort-and-search-data?page=2#dis-post-564319 Quote from: nuan88 at Mar 06, 2019, 04:00 PM
are the users logged in to see this? or would they be

No. Its actually totally offline system which will be installed on an offline computer of school. And there will be no user system. They only want to maintain records easily for every year. I am also trying to use this CMP in Collections Extra.

So there is no permission or security or user login related requirements. Its just like opening a website and browse normally.]]>
Mayanktaker Mar 06, 2019, 06:37 PM https://forums.modx.com/thread/104882/modx---relation-between-tvs-or-something-to-calculate-and-sort-and-search-data?page=2#dis-post-564319
<![CDATA[Re: Modx - Relation between TVs or something to calculate and sort and search data ?]]> https://forums.modx.com/thread/104882/modx---relation-between-tvs-or-something-to-calculate-and-sort-and-search-data?page=2#dis-post-564318 Quote from: lkfranklin at Mar 06, 2019, 08:13 AM
ah okay becbecause you said migx cmp I thought you wanted this in the backend:) in that case there's a few ways you could do it. I've seen you play around with the modx api before so that is one way to get and post data from your custom package. the other way would be to use formit hooks to get and post the data.


Let me play with formit this time. smiley
I'll get back to you..
Thanks smiley]]>
Mayanktaker Mar 06, 2019, 06:34 PM https://forums.modx.com/thread/104882/modx---relation-between-tvs-or-something-to-calculate-and-sort-and-search-data?page=2#dis-post-564318
<![CDATA[Re: Modx - Relation between TVs or something to calculate and sort and search data ?]]> https://forums.modx.com/thread/104882/modx---relation-between-tvs-or-something-to-calculate-and-sort-and-search-data?page=2#dis-post-564315 nuan88 Mar 06, 2019, 04:00 PM https://forums.modx.com/thread/104882/modx---relation-between-tvs-or-something-to-calculate-and-sort-and-search-data?page=2#dis-post-564315 <![CDATA[Re: Modx - Relation between TVs or something to calculate and sort and search data ?]]> https://forums.modx.com/thread/104882/modx---relation-between-tvs-or-something-to-calculate-and-sort-and-search-data#dis-post-564309 lkfranklin Mar 06, 2019, 08:13 AM https://forums.modx.com/thread/104882/modx---relation-between-tvs-or-something-to-calculate-and-sort-and-search-data#dis-post-564309 <![CDATA[Re: Modx - Relation between TVs or something to calculate and sort and search data ?]]> https://forums.modx.com/thread/104882/modx---relation-between-tvs-or-something-to-calculate-and-sort-and-search-data#dis-post-564308 Quote from: lkfranklin at Mar 05, 2019, 04:53 PM
Try checking this tutorial out particularly the part where it filters dates.

https://docs.modx.com/extras/revo/migxdb/migxdb.tutorials/migxdb.manage-events-resources-in-a-cmp-with-help-of-migxdb

I tried that and its working in backend. But my client want this to be in front end.
They want to find data of students by class or roll number etc.. in the front end.

I found an example which exactly my client want in student management system. It is available in wordpress with a plugin. I want this in Modx. What is the best solution ?

http://sandbox.wpdatatables.com/

=====
Please check this link and demo also there. This is exactly what I want to do in Modx. As in the above link, the data will be in Modx custom database table tables with the help of Migx and then client can see the list of students in frontend. and there, they also can filter results. All in of his work in frontend. (link in above demo link )

How can I achieve this in Modx ? IS there any other way than MIGX ? Or I am going to right path ? If yes then please guide me more to the right direction.
Update :
Thank you all! smiley

]]>
Mayanktaker Mar 05, 2019, 08:08 PM https://forums.modx.com/thread/104882/modx---relation-between-tvs-or-something-to-calculate-and-sort-and-search-data#dis-post-564308
<![CDATA[Re: Modx - Relation between TVs or something to calculate and sort and search data ?]]> https://forums.modx.com/thread/104882/modx---relation-between-tvs-or-something-to-calculate-and-sort-and-search-data#dis-post-564307 Quote from: nuan88 at Mar 05, 2019, 03:47 PM
It seems to me you would be best to use a simple custom php call to the db for this, but I could be wrong

In modx its not too hard, just query the db and use the inputs to do it, then organize the output.
I dont know how to do this. sad]]>
Mayanktaker Mar 05, 2019, 07:59 PM https://forums.modx.com/thread/104882/modx---relation-between-tvs-or-something-to-calculate-and-sort-and-search-data#dis-post-564307
<![CDATA[Re: Modx - Relation between TVs or something to calculate and sort and search data ?]]> https://forums.modx.com/thread/104882/modx---relation-between-tvs-or-something-to-calculate-and-sort-and-search-data#dis-post-564305
https://docs.modx.com/extras/revo/migxdb/migxdb.tutorials/migxdb.manage-events-resources-in-a-cmp-with-help-of-migxdb
]]>
lkfranklin Mar 05, 2019, 04:53 PM https://forums.modx.com/thread/104882/modx---relation-between-tvs-or-something-to-calculate-and-sort-and-search-data#dis-post-564305
<![CDATA[Re: Modx - Relation between TVs or something to calculate and sort and search data ?]]> https://forums.modx.com/thread/104882/modx---relation-between-tvs-or-something-to-calculate-and-sort-and-search-data#dis-post-564304
In modx its not too hard, just query the db and use the inputs to do it, then organize the output.]]>
nuan88 Mar 05, 2019, 03:47 PM https://forums.modx.com/thread/104882/modx---relation-between-tvs-or-something-to-calculate-and-sort-and-search-data#dis-post-564304
<![CDATA[Re: Modx - Relation between TVs or something to calculate and sort and search data ?]]> https://forums.modx.com/thread/104882/modx---relation-between-tvs-or-something-to-calculate-and-sort-and-search-data#dis-post-564297 Sorry for late reply..
I want advance search filter from MIGX CMP database tables ..
I want like this but I dont know from where to start to achieve this ? .. sad
I never used formit or anything related to form.
How can I do this ? Please check the image -

http://tinypic.com/r/27ymoed/9

]]>
Mayanktaker Mar 04, 2019, 10:21 PM https://forums.modx.com/thread/104882/modx---relation-between-tvs-or-something-to-calculate-and-sort-and-search-data#dis-post-564297