[Geomoose-users] Feature editor, error missing required field

Brent Fraser bfraser at geoanalytic.com
Mon Jun 20 13:09:34 EDT 2011


What does your ini file contain?

Best Regards,
Brent Fraser


On 6/20/2011 10:57 AM, Dara Olson wrote:
> After making the suggested edits, I can successfully add a feature.  I 
> am unable to edit the point or delete an existing point.  If I attempt 
> to edit the point, it gives the same prior error of "Missing required 
> field:" and if I try to delete an existing point it gives me an error 
> of, "No Feature ID specified to delete."  Below is the information 
> contained within the HTML.
> <tr>
> <td><a 
> href="javascript:GeoMOOSE.startService('modify_permit_comments', 
> {'feature:gid' : '[gid]','feature:label' : 
> '[label]','feature:permit_number' : '[permit_number] 
> ','feature:file_name' : '[file_name]','feature:type_of_permit' : 
> '[type_of_permit]', 'feature:wbic' : '[wbic]', 'feature:description' : 
> '[description]', 'feature:pdf_name' : '[pdf_name]', 
> 'feature:document_link' : '[document_link]', 'feature:georef_protocol' 
> : '[georef_protocol]'})">Edit</a></td>
> <td><a href="javascript:if(confirm('Are you sure you want to delete 
> this?')){GeoMOOSE.startService('delete_permit_comments',{'feature:gid':'[gid]'});}">Delete</a></td>
> </tr>
> I am assuming that there must be something incorrect somewhere. Has 
> anyone ran into this or have any additional suggestions.  Thank you in 
> advance for your time!
> Dara
>
>     ----- Original Message -----
>     *From:* Brent Fraser <mailto:bfraser at geoanalytic.com>
>     *To:* dolson at glifwc.org <mailto:dolson at glifwc.org>
>     *Cc:* geomoose-users at lists.sourceforge.net
>     <mailto:geomoose-users at lists.sourceforge.net>
>     *Sent:* Thursday, June 16, 2011 11:03 AM
>     *Subject:* Re: [Geomoose-users] Feature editor, error missing
>     required field
>
>     It shouldn't be required.  I'll file a ticket.
>
>     Best Regards,
>     Brent Fraser
>
>
>     On 6/16/2011 9:45 AM, dolson at glifwc.org <mailto:dolson at glifwc.org>
>     wrote:
>     > It worked!  I added it to the INI file and it added successfully.
>     > Thank you so very much!
>     > Dara
>     >
>     >> Hmm.  You could try adding
>     >>
>     >> required_for_create=permit_number
>     >> required_for_update=permit_number
>     >>
>     >> to your Layer.ini file...  I can't see anything obvious in your
>     files or
>     >> in editor.php...
>     >>
>     >> Best Regards,
>     >> Brent Fraser
>     >>
>     >>
>     >> On 6/15/2011 2:43 PM, Dara Olson wrote:
>     >>> Greetings.
>     >>> I am having some problems with the feature editor setup.  When
>     I go to
>     >>> add a point feature it says, "Missing required field:", but no
>     field
>     >>> is listed after the error.  There seems to be no errors
>     showing up in
>     >>> any of the logs either.  Does anyone know why I might be
>     getting this
>     >>> error?  Below is the setup for the feature and editor.  We are
>     running
>     >>> GeoMoose 2.2.
>     >>> Any help or suggestions would be greatly appreciated.
>     >>> Miigwech!
>     >>> Dara
>     >>> _Table:_
>     >>> CREATE TABLE permits.glifwc_permit_comments_points
>     >>> (
>     >>>    gid serial NOT NULL,
>     >>>    file_name character varying,
>     >>>    description character varying,
>     >>>    georef_protocol character varying,
>     >>>    pdf_name character varying,
>     >>>    document_link character varying,
>     >>>    permit_number character varying,
>     >>>    the_geom900913 geometry,
>     >>>    date_lm date,
>     >>>    wbic character varying,
>     >>>    type_of_permit character varying,
>     >>>    CONSTRAINT glifwc_prior_acoe_comments_pkey PRIMARY KEY (gid),
>     >>>    CONSTRAINT enforce_dims_the_geom900913 CHECK
>     >>> (st_ndims(the_geom900913) = 2),
>     >>>    CONSTRAINT enforce_srid_the_geom900913 CHECK
>     >>> (st_srid(the_geom900913) = 900913)
>     >>> )
>     >>> _Sequence and register:_
>     >>> A sequence was set up,
>     permits.glifwc_permit_comments_points_gid_seq
>     >>> and an entry in the "geometry_columns" table for field
>     >>> "the_geom900913", 900913, POINT.
>     >>> _Mapfile definition:_
>     >>> LAYER # GLIFWC Permit Comments
>     >>>       NAME "glifwc_permit_comment_points"
>     >>>       TYPE POINT
>     >>>       STATUS ON
>     >>>       CONNECTIONTYPE postgis
>     >>>       CONNECTION "host=localhost dbname=xxxxx user=xxxxx
>     password=xxxxx"
>     >>>       PROCESSING "CLOSE_CONNECTION=DEFER"
>     >>>       DATA "the_geom900913 FROM (SELECT *,
>     ASTEXT(the_geom900913) AS
>     >>> wkt_geometry
>     >>>       FROM permits.glifwc_permit_comment_points) AS
>     >>> glifwc_permit_comment_points using unique gid using srid=900913"
>     >>>       PROJECTION
>     >>>            "init=epsg:900913"
>     >>>       END
>     >>>       TOLERANCE 6
>     >>>       CLASS
>     >>>            NAME "GLIFWC Permit Comments"
>     >>>            SYMBOL "..\..\icons\comments.gif"
>     >>>            TEMPLATE "identify.html"
>     >>>       END
>     >>>       METADATA
>     >>>            "identify_record" "identify.html"
>     >>>       END
>     >>> END # GLIFWC Permit Comments
>     >>> The layer was successfully added to the project and displays
>     correctly.
>     >>> _Layer INI file:_
>     >>> host=localhost
>     >>> dbname=xxxxx
>     >>> username=xxxxx
>     >>> password=xxxxx
>     >>> tablename=permits.glifwc_permit_comment_points
>     >>> geometry_column=the_geom900913
>     >>> primary_key_column=gid
>     >>> primary_key_sequence=permits.glifwc_permit_comment_points_gid_seq
>     >>> srid=900913
>     >>> layerpath=glifwc_permit_comment/glifwc_permit_comment_points
>     >>> _Service:_
>     >>> <service name="add_permit_comment">
>     >>> <url>php/editor.php</url>
>     >>> <step type="spatial" name="feature:the_geom900913" line="false"
>     >>> polygon="false" point="true" default="point">
>     >>> </step>
>     >>> <step type="input">
>     >>> <input type="hidden" name="op" value="create"/>
>     >>> <input type="hidden" name="table"
>     value="glifwc_permit_comment_points"/>
>     >>> <input type="user" name="feature:permit_number" title="Permit
>     Number:"
>     >>> />
>     >>> <input type="user" name="feature:file_name" title="File Name:" />
>     >>> <input type="select" name="feature:type_of_permit" title="Type of
>     >>> Permit:">
>     >>> <option value="APM Permit">APM Permit</option>...
>     >>> </input>
>     >>> <input type="user" name="feature:wbic" title="WBIC if
>     applicable:"/>
>     >>> <input type="user" name="feature:description"
>     title="Description:"/>
>     >>> <input type="user" name="feature:pdf_name" title="PDF Name:"/>
>     >>> <input type="user" name="feature:document_link" title="Link to
>     >>> Document:"/>
>     >>> <input type="select" name="feature:georef_protocol"
>     >>> title="Georeference Protocol:">
>     >>> <option value="digitized by hand">Digitized by Hand</option>...
>     >>> </input>
>     >>> </step>
>     >>> </service>
>     >>>
>     >>>
>     >>>
>     ------------------------------------------------------------------------------
>     >>> EditLive Enterprise is the world's most technically advanced
>     content
>     >>> authoring tool. Experience the power of Track Changes, Inline
>     Image
>     >>> Editing and ensure content is compliant with Accessibility
>     Checking.
>     >>> http://p.sf.net/sfu/ephox-dev2dev
>     >>>
>     >>>
>     >>> _______________________________________________
>     >>> Geomoose-users mailing list
>     >>> Geomoose-users at lists.sourceforge.net
>     <mailto:Geomoose-users at lists.sourceforge.net>
>     >>> https://lists.sourceforge.net/lists/listinfo/geomoose-users
>     >
>     >
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/geomoose-users/attachments/20110620/98f4273e/attachment.html


More information about the Geomoose-users mailing list