Hello !
Description of the problem :
I got a problem with a GET request.
I created a screen to display notes of students, in this screen I have a first list with each matiere and inside this list I have a nested list with each notes of this matiere. (This is my main problem, display each notes of each matiere.)
My second list is a list of “Student Marks” (external collection) and I need to put 4 Query parameters. At this point everything is OK.
If I put parameters without magic words, I can get a result, BUT I will have notes the same matiere everywhere ! (The request is working, this is the important point. For exemple you can test with values of User1)
Now I need to have the marks relative to matere indicated before the list of marks, which is displayed by the previous list. In this case, I use magic words on the Query parameter “matiere”. (Path of the magic word = More… => Current Constante Matiere => matiere)
Now, after using magic word I just have no result. So, i writed inside my database the parameters passed by adalo (firstname - lastname and matiere) and the result is strange, I have a result for firstname and lastname BUT i have a NULL value for matiere !) I’ve tested to put Query value without magic word and inside the nested list (List of marks) i created a new text area with the same magic word than the Query (Path of the magic word = More… => Current Constante Matiere => matiere) … And I have a result. Magic word just don’t work properly for Query parameter of nested list.
If you have an alternative solution or if you know how to solve this, i’m very interested and we can help each others if you need some modification on my side (API for exemple)
HOW TO FAST REPRODUCE:
You can clone it or follow next information to integrate it inside an other app.
Cloneable app : Test bug list nested
-
Create a new app
-
Add a new external collection :
- Collection name : School Matiere
- API base URL : https://adaloapiecl.azurewebsites.net//ConstantsManagement/Matiere
-
Add a new external collection :
- Collection name : StudentMarks
- API base URL : https://adaloapiecl.azurewebsites.net//StudientData
-
Create a new custom list :
- What is this a list of ? => Select “School 0”
- delete the text component “subtitle”
- Edit the text component “title”, Text = Magic text with path => (Current SchoolMatiere => matiere)
-
Create a new custom list and put it inside the previous list :
- What is this a list of ? => Select “Studentmarks”
- delete the text component “subtitle”
- delete the Shape component “Rectangle2”
- Edit the text component “title”, Text = Magic text with path => (Current StudentMark => mark)
Time to add Query parameters !
Select your second list (list of mark) :
- Add filter =>
Query parameter name = firstname
Query parameter value = AaA_firstname
- Add filter =>
Query parameter name = lastname
Query parameter value = AaA_lastname
- Add filter =>
Query parameter name = dateOfBirth
Query parameter value = 08/25/2002
- Add filter =>
Query parameter name = matiere
Query parameter value = Commerce Distribution
Nice job ! You re created my page of students with User 1 data !
You can change Query parameter to user 2 or 3 and you can change Query parameter of matiere with everything inside the list “List of matiere for each users”.
As you can see, all marks are the same, because we do not used magic words on the Query matiere.
Now the goal is to change the values of marks for each nested list with the right matiere !
If you find a solution, share it with us !
USEFUL DATA :
External collection used :
- School Matiere (Get matiere names inside a list)
- Student Marks (Get a list of marks. You need 4 Query parameters, firstname, lastname, dateOfBirth and matiere)
Test value on Query Student Marks (if you want to test my API with Postman or things like that.)
firstname - lastname - dateOfBirth - matiere (each users have many matieres, you can test with others matieres present inside the list under the users )
User 1 : AaA_firstname - AaA_lastname - 08/25/2002 - Commerce Distribution
User 2 : BbB_firstname - BbB_lastname - 05/10/2000 - RH-Management
User 3 : CcC_lastname - CcC_lastname - 01/14/2002 - Affaires Internationales
List of matiere for each users :
Commerce Distribution
Comptabilité Gestion Finance
Digitalisation
Affaires Internationales
RH-Management
Economie
Qualité Achat Logistique
Banque et Finance
Droit
Marketing-Communication
Thx a lot for reading me, sorry for my poor english and have a nice day ! =)