[Qgis-user] qgsRelationReferenceWidget

Andrew amcaninch at gmail.com
Thu Sep 15 12:22:19 PDT 2016


Regarding your second question, in QTDesigner you can change the default
buttonBox properties to include a "Save" or "Apply" button.


On Thu, Sep 15, 2016 at 8:17 AM, Tyler Veinot <tylerkveinot at gmail.com>
wrote:

> 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.
> 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.
> Tyler
>
> On Tue, Sep 13, 2016 at 9:35 AM, Tyler Veinot <tylerkveinot at gmail.com>
> wrote:
>
>> Matthias;
>> 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.
>> This is my relationship defined in QGIS thus far....
>>
>> 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;
>>
>> ​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.
>> Is there an example of this being done in QGIS anywhere?
>> Tyler
>>
>>
>>
>> On Tue, Sep 13, 2016 at 8:37 AM, Tyler Veinot <tylerkveinot at gmail.com>
>> wrote:
>>
>>> Matthias;
>>> 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.
>>> 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.
>>> Tyler
>>>
>>> On Tue, Sep 13, 2016 at 2:58 AM, Matthias Kuhn <matthias at opengis.ch>
>>> wrote:
>>>
>>>> Hi Tyler,
>>>>
>>>> Here is the blog post I wrote for this feature:
>>>>
>>>> http://blog.vitu.ch/10112013-1201/qgis-relations
>>>> Just configuration, no coding, I hope that helps.
>>>>
>>>> Cheers
>>>> Matthias
>>>>
>>>>
>>>> On 12/09/16 22:56, Tyler Veinot wrote:
>>>>
>>>> All;
>>>> 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;
>>>> https://medspx.fr/blog/Qgis/better_qgis_forms_part_three/
>>>> I think I need to use qgsValueRelationRefernceWidget but I cannot find
>>>> any tutorials on it.
>>>> Thanks;
>>>> Tyler
>>>>
>>>>
>>>> _______________________________________________
>>>> Qgis-user mailing listQgis-user at lists.osgeo.org
>>>> List info: http://lists.osgeo.org/mailman/listinfo/qgis-user
>>>> Unsubscribe: http://lists.osgeo.org/mailman/listinfo/qgis-user
>>>>
>>>>
>>>>
>>>> _______________________________________________
>>>> Qgis-user mailing list
>>>> Qgis-user at lists.osgeo.org
>>>> List info: http://lists.osgeo.org/mailman/listinfo/qgis-user
>>>> Unsubscribe: http://lists.osgeo.org/mailman/listinfo/qgis-user
>>>>
>>>
>>>
>>
>
> _______________________________________________
> Qgis-user mailing list
> Qgis-user at lists.osgeo.org
> List info: http://lists.osgeo.org/mailman/listinfo/qgis-user
> Unsubscribe: http://lists.osgeo.org/mailman/listinfo/qgis-user
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/qgis-user/attachments/20160915/0c88fa46/attachment.html>


More information about the Qgis-user mailing list