#4185 (Human link, "Create relationship as ... Brother but Lino sets it to Father.")
by Sharif Mehedi · in Developers · assigned to Sharif Mehedi
Résumé
Concepts sous-jacents
Commentaires
- 5 ans, 4 mois ago by Luc Saffre about #4185 (Human link, "Create relationship as ... Brother but Lino sets it to Father.") : Done. See [url luc.lino-framework.org/blog/2021/0605.html my blog].
- 5 ans, 4 mois ago by Luc Saffre about #4185 (Human link, "Create relationship as ... Brother but Lino sets it to Father.") : I will now try whether this fixes the problem.
- 5 ans, 4 mois ago by Luc Saffre about #4185 (Human link, "Create relationship as ... Brother but Lino sets it to Father.") : Ha! I understood (maybe !) : we need to call BaseRequest.clear_cached_status() before rendering each button. Read [url dev.lino-framework.org/api/lino.core.requests.html#lino.core.requests.ActorRequest.clear_cached_status the docs] and explore. Maybe you understand. Ask questions if it isn't clear.
- 5 ans, 4 mois ago by Sharif Mehedi about #4185 (Human link, "Create relationship as ... Brother but Lino sets it to Father.") : Basically they all have the same: "type": "Father(Mother)" in the href. Even if the type were correct, it wouldn't still work because react weren't acknowledging these values. So, we need to look at both the back and the front end and see what's going on.
javascript:window.App.runAction({ "actorId":...