MikeKD Posted September 4, 2014 Posted September 4, 2014 Hi folks, It's a few months since I last played with portals and I'm now dosed with pain-killers, suffering brain-fade and struggling!! I'm using three tables: Day - DayClassJoin - Class I have DayClassJoin records created on the class layout, but the classes don't show up on the Day layout portal. As far as I can see, the relationships are all OK (linking the appropriate UIDs) The portal shows related records from DayClassJoin. The fields on the portal are from the class table. I've missed something stupid - any idea what? Cheers! Mike
gpicard1 Posted September 4, 2014 Posted September 4, 2014 If I'm understanding your problem correctly, shouldn't the fields from within the portal be from the DayClassJoin table?
MikeKD Posted September 4, 2014 Author Posted September 4, 2014 Thanks! I've tried with all / some fields in the portals from DayClassJoin table and still nothing shows up.... :-(
eos Posted September 4, 2014 Posted September 4, 2014 If you have Day -< DayClassJoin >- Class then on a Days layout, a portal based on DayClassJoin should display the correct number of related join table records, and the field Class::name the correct class name for each of these records; and of course any field from DayClassJoin the correct value(s) from the join table itself. I've missed something stupid - any idea what? Show us your relationship Graph, and/or post a file.
LaRetta Posted September 5, 2014 Posted September 5, 2014 Also make sure that the keys in the relationships are all of the same data type and that they are stored.
MikeKD Posted September 5, 2014 Author Posted September 5, 2014 Thanks guys! They are the same data type. How do i check they're stored please? I'll post the file / graph after work today. Cheers, Mike
LaRetta Posted September 5, 2014 Posted September 5, 2014 well if they are all uuids then they are stored so that wouldn't be it. We'll need to see your zipped file. :-)
MikeKD Posted September 5, 2014 Author Posted September 5, 2014 Hi there, here you are! I've had to take all the data out as it's confidential - hope there's enough for you to see the problem. Many thanks, Mike PupilGradeV062Clone.fmp12.zip
MikeKD Posted September 7, 2014 Author Posted September 7, 2014 Ah; haven't quite figured it, but I'm doing something wrong with the key field from the class end - investigating further.....
LaRetta Posted September 7, 2014 Posted September 7, 2014 I just saw you attached a file and I'm looking now. What layout are we talking about? I do not understand why you even have a Day table; I suspect it is completely unnecessary. Your Day field is also text whereas, even if you DID need it, I would think it should be a date field. But that can all be handled with a global field. I need you to point out the portal with the problem please. :-)
MikeKD Posted September 7, 2014 Author Posted September 7, 2014 It's the portal on the HOME layout. I've now got the portal showing - I'd done something stupid with the DayID. I think I used a Day table so I could join to it; I'm a bit of a novice & had previously made it work this way!! TBH, I still can't think of another way to do it! The problem I've now got is that I can't seem to be able to filter by academic year on the home layout portal. - I'm filtering using the $$CurrentAcademicYear. (I've now set the a script trigger to set the variable from the gAcedemicYear drop down on the Home layout. Thanks so much for your help!!
LaRetta Posted September 7, 2014 Posted September 7, 2014 The problem I've now got is that I can't seem to be able to filter by academic year on the home layout portal. - I'm filtering using the $$CurrentAcademicYear. (I've now set the a script trigger to set the variable from the gAcedemicYear drop down on the Home layout. If the trigger sets the global variable and the portal should adjust accordingly then my guess would be, in version 11, you will need to force the refresh of the portal by adding at the end of the trigger, Refresh Window[] and possibly including 'flush cache'. In version 13 we can now refresh just a specific object. To test it, after you select the academic year, go to up to Window - Refresh Window and see if it resolves it. But wait ... the academic year is a global. Why not filter simply by that? I have to leave for vacation. I wish you well on your project. :-)
MikeKD Posted September 7, 2014 Author Posted September 7, 2014 Thanks so much - that's "sorted" it! Have a lovely holiday :-) Cheers, Mike
Recommended Posts
This topic is 3730 days old. Please don't post here. Open a new topic instead.
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now