Delete Record issue with clearlocks

View: New views
2 Messages — Rating Filter:   Alert me  

Delete Record issue with clearlocks

by Steve Piercy :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

In the Knop demo files, when one tries to delete a record in the
Customers Advanced section:

No tag, type or constant was defined under the name string->clearlocks.
at: /_library/lib_advanced_list.inc on line: 34 at position: 13
at: include with params: '/_library/lib_advanced_list.inc'
at: include with params: 'library'
at: /index.lasso on line: 42 at position: 10
at: include with params: '/index.lasso'
at: /urlhandler.inc on line: 13 at position: 20
at: include with params: '/urlhandler.inc'
at: _at_begin
Error Code:     -9948

This is the June 27, 2009 version.

It's as if the user type is not really a type, but a string???

--steve

-- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
-- --
Steve Piercy               Web Site Builder              
Soquel, CA
<web@...>                  <http://www.StevePiercy.com/>


--
#############################################################
This message is sent to you because you are subscribed to
the mailing list <knop@...>.
To unsubscribe, E-mail to: <knop-off@...>
Send administrative queries to  <knop-request@...>
List archive http://www.nabble.com/Knop-Framework-Discussion-f29076.html
Project homepage http://montania.se/projects/knop/
Google Code has the latest downloads at http://code.google.com/p/knop/

Re: Delete Record issue with clearlocks

by Steve Piercy :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Commenting out this line in /_library/lib_advanced_list.inc
removes the error when deleting the record.

     $s_user -> clearlocks;

So to prevent the issue when deleting a record with locks,
either Knop should check for the existence of the record OR the
developer needs to wrap it with a conditional:

     if(action_param('deletebutton') != '');
         $s_user -> clearlocks;
     /if;

Or maybe I'm misunderstand something fundamental to how Knop works.

--steve


On 10/29/09 at 10:16 AM, Web@... (Steve Piercy - Web
Site Builder) pronounced:

>In the Knop demo files, when one tries to delete a record in
>the Customers Advanced section:
>
>No tag, type or constant was defined under the name string->clearlocks.
>at: /_library/lib_advanced_list.inc on line: 34 at position: 13
>at: include with params: '/_library/lib_advanced_list.inc'
>at: include with params: 'library'
>at: /index.lasso on line: 42 at position: 10
>at: include with params: '/index.lasso'
>at: /urlhandler.inc on line: 13 at position: 20
>at: include with params: '/urlhandler.inc'
>at: _at_begin
>Error Code:     -9948
>
>This is the June 27, 2009 version.
>
>It's as if the user type is not really a type, but a string???
>
>--steve
>
>-- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
>Steve Piercy               Web Site Builder               Soquel, CA
><web@...>                  <http://www.StevePiercy.com/>
>
>

-- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
-- --
Steve Piercy               Web Site Builder              
Soquel, CA
<web@...>                  <http://www.StevePiercy.com/>


--
#############################################################
This message is sent to you because you are subscribed to
the mailing list <knop@...>.
To unsubscribe, E-mail to: <knop-off@...>
Send administrative queries to  <knop-request@...>
List archive http://www.nabble.com/Knop-Framework-Discussion-f29076.html
Project homepage http://montania.se/projects/knop/
Google Code has the latest downloads at http://code.google.com/p/knop/