<div dir="ltr">I don't know what I am doing wrong here, I set this up multiple times using every different relationship I have. I even rebuilt the design using simpler tables. The drop down doesn't populate and when I try to use the green "plus" button all I get is a mini dump and a crash. The log file says in the exception "The thread tried to read from or write to a virtual address for which it does not have the appropriate access". I do have a virtual field but I am not writing to it, it is just there to display the table data in a more appealing way, and I am not writing or using it in the relationship so I cannot see it being an issue. I can also write data from within QGIS directly to the tables so I must have permission. <div>Any thoughts?</div><div>Tyler</div></div><div class="gmail_extra"><br><div class="gmail_quote">On Fri, Sep 16, 2016 at 7:44 AM, Tyler Veinot <span dir="ltr"><<a href="mailto:tylerkveinot@gmail.com" target="_blank">tylerkveinot@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Andrew;<div>Well that was simple, thank you. I didn't even think to look there; I was trying to add a standard push button and associate it with save.</div><div>Now I just have to solve everything else. </div><div>Thanks again.</div><span class="HOEnZb"><font color="#888888"><div>Tyler </div></font></span></div><div class="HOEnZb"><div class="h5"><div class="gmail_extra"><br><div class="gmail_quote">On Thu, Sep 15, 2016 at 4:22 PM, Andrew <span dir="ltr"><<a href="mailto:amcaninch@gmail.com" target="_blank">amcaninch@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div><div>Regarding your second question, in QTDesigner you can change the default buttonBox properties to include a "Save" or "Apply" button.<br><br></div></div></div><div><div><div class="gmail_extra"><br><div class="gmail_quote">On Thu, Sep 15, 2016 at 8:17 AM, Tyler Veinot <span dir="ltr"><<a href="mailto:tylerkveinot@gmail.com" target="_blank">tylerkveinot@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Not having much luck with this, I managed to get the qgsRelationReferenceWidget to show me a list of addresses but I cannot get it to write the wo_id and unique_id to my table.<br>On a different note, is there an ability to create a "save"? the "ok" button closes the form completely. I just want to "save" my work order to write its values to the wo_table and continue editing. <div>Tyler</div></div><div class="gmail_extra"><br><div class="gmail_quote">On Tue, Sep 13, 2016 at 9:35 AM, Tyler Veinot <span dir="ltr"><<a href="mailto:tylerkveinot@gmail.com" target="_blank">tylerkveinot@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Matthias;<div>Ooop's I forgot to add that I was building the form in Qt Designer and not from within QGIS, although with this information is really good and is showing me things I didn't quite understand before. I am a very visual person I find it hard to understand things without seeing it in a diagram or some other example. Took me forever to figure out dog gears and differential gears until I tore apart my first bicycle and rear end; as soon as I seen it I got it.</div><div>This is my relationship defined in QGIS thus far....<br> <img height="100" width="304"><br></div><div>When I add an address to the work order I need to write the wo_id of my work order and my unique_id of my address to my jtbl_cwo table. So when I, or someone, opens a work order it will show them a list of address associated to that one work order. Also need to do the same thing with primary assets, so the form will look something like this in QGIS;<br><img style="margin-right:0px" height="176" width="371"><br>​Of course the unique_id will be referencing a value from the civic_points "address" but that is that I am trying to accomplish. I did it in LibreOffice and Access but I would like to consolidate it all into one database with one interface, i.e. QGIS. That way I can edit features, add assets, and do most of my daily tasks in one application.</div><div>Is there an example of this being done in QGIS anywhere?</div><span><font color="#888888"><div>Tyler</div><div><br><br></div></font></span></div><div><div><div class="gmail_extra"><br><div class="gmail_quote">On Tue, Sep 13, 2016 at 8:37 AM, Tyler Veinot <span dir="ltr"><<a href="mailto:tylerkveinot@gmail.com" target="_blank">tylerkveinot@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Matthias;<div>Thanks, I don't know what I would do without you! Coding isn't normally an issue but that tutorial didn't quite explain where to put the coding. When I opened the UI file in IDLE it looked like XML, and there were no other files associated with the form. I also opened the "see code" option and it was the same looked like XML; it might have been C++ but I have no training or experience with C++ so I wouldn't know if it looked similar to XML from the "untrained eye" point of view.</div><div>Going to be doing some testing on the versioning bit here this week, hope to have something a little more concrete to say about it soon.</div><span><font color="#888888"><div>Tyler</div></font></span></div><div><div><div class="gmail_extra"><br><div class="gmail_quote">On Tue, Sep 13, 2016 at 2:58 AM, Matthias Kuhn <span dir="ltr"><<a href="mailto:matthias@opengis.ch" target="_blank">matthias@opengis.ch</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
  
    
  
  <div bgcolor="#FFFFFF" text="#000000">
    <p>Hi Tyler,</p>
    <p>Here is the blog post I wrote for this feature:<br>
    </p>
    <p><a href="http://blog.vitu.ch/10112013-1201/qgis-relations" target="_blank">http://blog.vitu.ch/10112013-1<wbr>201/qgis-relations</a><br>
    </p>
    Just configuration, no coding, I hope that helps.<br>
    <br>
    Cheers<br>
    Matthias<div><div><br>
    <br>
    <div>On 12/09/16 22:56, Tyler Veinot wrote:<br>
    </div>
    </div></div><blockquote type="cite"><div><div>
      <div dir="ltr">All;
        <div>Trying to make a form for QGIS that has a form within a
          form so that I can link and display entries from another table
          similar to this tuorial;</div>
        <div><a href="https://medspx.fr/blog/Qgis/better_qgis_forms_part_three/" target="_blank">https://medspx.fr/blog/Qgis/be<wbr>tter_qgis_forms_part_three/</a><br>
        </div>
        <div>I think I need to use qgsValueRelationRefernceWidget but I
          cannot find any tutorials on it.</div>
        <div>Thanks;</div>
        <div>Tyler</div>
      </div>
      <br>
      <fieldset></fieldset>
      <br>
      </div></div><pre>______________________________<wbr>_________________
Qgis-user mailing list
<a href="mailto:Qgis-user@lists.osgeo.org" target="_blank">Qgis-user@lists.osgeo.org</a>
List info: <a href="http://lists.osgeo.org/mailman/listinfo/qgis-user" target="_blank">http://lists.osgeo.org/mailman<wbr>/listinfo/qgis-user</a>
Unsubscribe: <a href="http://lists.osgeo.org/mailman/listinfo/qgis-user" target="_blank">http://lists.osgeo.org/mailman<wbr>/listinfo/qgis-user</a></pre>
    </blockquote>
    <br>
  </div>

<br>______________________________<wbr>_________________<br>
Qgis-user mailing list<br>
<a href="mailto:Qgis-user@lists.osgeo.org" target="_blank">Qgis-user@lists.osgeo.org</a><br>
List info: <a href="http://lists.osgeo.org/mailman/listinfo/qgis-user" rel="noreferrer" target="_blank">http://lists.osgeo.org/mailman<wbr>/listinfo/qgis-user</a><br>
Unsubscribe: <a href="http://lists.osgeo.org/mailman/listinfo/qgis-user" rel="noreferrer" target="_blank">http://lists.osgeo.org/mailman<wbr>/listinfo/qgis-user</a><br></blockquote></div><br></div>
</div></div></blockquote></div><br></div>
</div></div></blockquote></div><br></div>
<br>______________________________<wbr>_________________<br>
Qgis-user mailing list<br>
<a href="mailto:Qgis-user@lists.osgeo.org" target="_blank">Qgis-user@lists.osgeo.org</a><br>
List info: <a href="http://lists.osgeo.org/mailman/listinfo/qgis-user" rel="noreferrer" target="_blank">http://lists.osgeo.org/mailman<wbr>/listinfo/qgis-user</a><br>
Unsubscribe: <a href="http://lists.osgeo.org/mailman/listinfo/qgis-user" rel="noreferrer" target="_blank">http://lists.osgeo.org/mailman<wbr>/listinfo/qgis-user</a><br></blockquote></div><br></div>
</div></div></blockquote></div><br></div>
</div></div></blockquote></div><br></div>