What does the entityfield directive in the autocomplete map do? - Printable Version +- CoreBOSBB (https://discussions.corebos.org) +-- Forum: Support (https://discussions.corebos.org/forumdisplay.php?fid=17) +--- Forum: Administrator Support (https://discussions.corebos.org/forumdisplay.php?fid=8) +--- Thread: What does the entityfield directive in the autocomplete map do? (/showthread.php?tid=1684) |
What does the entityfield directive in the autocomplete map do? - Guido1982 - 01-22-2020 If you had this in a FieldInfo map: PHP Code: <field> RE: What does the entityfield directive in the autocomplete map do? - joebordes - 01-24-2020 This was an edge case we ran into with a client He contacted us saying that he couldn't access the record detail view once he applied the map. After some typical ping-pong (I can't reproduce it) we discovered that he was hiding the "link" field, so there was no field to click on that would take him to the detail view. It seems odd, but these things happen when you create a highly configurable system. So we added this directive to the map so you could convert any of the fields that you want into the link field. That is what it should do RE: What does the entityfield directive in the autocomplete map do? - Guido1982 - 01-27-2020 So this does not pertain to autocomplete functionality? RE: What does the entityfield directive in the autocomplete map do? - joebordes - 01-27-2020 ah, sorry, that is for autocomplete. the idea is similar. As the documentation page indicates: what information we should return: there will be one main entity identifier and possibly some additional fields to support the decision of what record to select so you are indicating what is the main field we will show differentiated from the other secondary fields that support the decision. https://corebos.com/documentation/doku.php?id=en:adminmanual:businessmappings:fieldinfo:autocomplete RE: What does the entityfield directive in the autocomplete map do? - Guido1982 - 01-28-2020 Yeah the docs page was actually what raised the question. So this is purely for the visual markup of the result? RE: What does the entityfield directive in the autocomplete map do? - joebordes - 01-28-2020 yes, correct: what to show on the first line (at least that is what I understand) |