<div dir="ltr">Hi List, we've been doing some work on <span class="" style="background-image:initial;background-color:yellow"><span class="" style>OrbUI</span></span> project, trying to make what we think could be a little improvement in the way to manage relations in "edition" view.<div>
<br></div><div>We have already push some code in case you want to take a look.</div><div><a href="https://bitbucket.org/crealibre/orbui">https://<span class="" style="background-image:initial;background-color:yellow"><span class="" style>bitbucket</span></span>.org/<span class="" style="background-image:initial;background-color:yellow"><span class="" style>crealibre</span></span>/<span class="" style="background-image:initial;background-color:yellow"><span class="" style>orbui</span></span></a>, I am almost sure that we have left some things "<span class="" style="background-image:initial;background-color:yellow"><span class="" style>untighten</span></span>", but will be fixing little by little.</div>
<div><br></div><div>Our next step is to change the "<span class="" style="background-image:initial;background-color:yellow"><span class="" style>relationSelectionRow</span></span>" for an <span class="" style="background-image:initial;background-color:yellow"><span class="" style>autocomple</span></span> widget, we'd like to keep the "Pending Insert" part of the original <span class="" style="background-image:initial;background-color:yellow"><span class="" style>functionallity</span></span>, though.</div>
<div><br></div><div>In order to do so I have found the next questions to see if someone could give me some orientation:</div><div><br></div><div>1.- There is a method called "cw_unrelated_<span class="" style="background-image:initial;background-color:yellow"><span class="" style>rql</span></span>" in Entity class, same one that  I'd like to use to return the matching criteria for the <span class="" style="background-image:initial;background-color:yellow"><span class="" style>autocomplete</span></span> widget, but one thing to need to fix is to add one more restriction that would be the <span class="" style="background-image:initial;background-color:yellow"><span class="" style>ILIKE</span></span> restriction for the main attribute of the entity we are searching for.</div>
<div><br></div><div>2.- The second question is about the way to find the main <span class="" style="background-image:initial;background-color:yellow"><span class="" style>attribute's</span></span> name we need to make the search in the <span class="" style="background-image:initial;background-color:yellow"><span class="" style>autocomplete</span></span> widget. For instance, something like the <span class="" style="background-image:initial;background-color:yellow"><span class="" style>incontext</span></span>, <span class="" style="background-image:initial;background-color:yellow"><span class="" style>oneline</span></span>, etc views do, they always show this value.</div>
<div><br></div><div>We need to have an <span class="" style>RQL</span> sentences similar to this:</div><div><br></div><div>Any S,AA <span class="" style>ORDERBY</span> AA <span class="" style>DESC</span> WHERE NOT S works_for_company O, O <span class="" style>eid</span> %(x)s, S is Person, S modification_date AA, S <span class="" style>ILIKE</span> %%(<span class="" style>inputvalue</span>)%%%s MAINATTRIBUTEOFS'</div>
<div><br></div><div>I hope I explained myself right about what I'd like to do.</div><div><br></div><div>Any help will be very appreciated.</div><div><div>Best Regards</div>-- <br><div>Carlos <span class="" style="background-image:initial;background-color:yellow"><span class="" style>Balderas</span></span></div>

</div></div>