How to remove data from user type?

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

How to remove data from user type?

by Steve Piercy :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Is there a method to remove a specific data pair from a user type?

    $u -> setdata('field'='value');
    $u -> removedata('field'='value');

It's not super important, but more of my style of keeping things tidy.

--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: How to remove data from user type?

by Johan Solve-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

No built in way currently but a reasonable suggestion, although it seems a little far fetched.

But the syntax should probably be
    $u -> removedata('field');


At 04.25 -0700 2009-07-21, Steve Piercy - Web Site Builder wrote:

>Is there a method to remove a specific data pair from a user type?
>
>    $u -> setdata('field'='value');
>    $u -> removedata('field'='value');
>
>It's not super important, but more of my style of keeping things tidy.
>
>--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/


--
     Johan Sölve    [FSA Member, Lasso Partner]
     Web Application/Lasso/FileMaker Developer
     MONTANIA SOFTWARE & SOLUTIONS
http://www.montania.se   mailto:joh-n@...
 (spam-safe email address, replace '-' with 'a')

--
#############################################################
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/