How can it be that only the RESOURCE time ranges show up? What am I not seeing?
Or is it not possible to have regular timeRanges AND resourceTimeRanges in one scheduler??
Any help would be greatly appreciated.
Re: [INFO REQ] resourceTimeRanges are shown, but normal timeRanges not, what am I doing wrong?
Posted: Tue Dec 12, 2023 6:45 am
by tasnim
Hi,
The code looks correct to me. Please check in your network tab if the data is correct or not.
Or could you please send the data (from the network tab) here so we can check what's wrong?
Re: [INFO REQ] resourceTimeRanges are shown, but normal timeRanges not, what am I doing wrong?
Posted: Tue Dec 12, 2023 10:54 am
by lxxrxns
Hi Tasnim,
Thanks for helping!
It seems that the read.php for the timeRangeStore is not being loaded...
It loads 3 different read.php's (events, resources, resourceTimeRanges), but not the timeRanges one, even though all FOUR stores are loaded:
I don't understand why the php/schedule/timerange/read.php is not being loaded.
By "data" do you mean the SESSION data (i.e. the timeranges and events themselves)? Is there any way to show that in the Network tab?
Kind regards,
Laurens
Re: [INFO REQ] resourceTimeRanges are shown, but normal timeRanges not, what am I doing wrong?
Posted: Tue Dec 12, 2023 11:00 am
by lxxrxns
When I call the read.php directly, it DOES return the JSON, so it must be something in the javascript that is not calling/loading the timeRangeStore...
Is there some additional module I need to load to make timeRanges work? (I tried "TimeRangeStore" and "TimeRangeModel" -because there is also a ResourceTimeRangeModel and a ResourceTimeRangeStore- but these don't exist):