Hi Brian,

This mail is going through the -devel@ mailing list as that's the
appropriate forum to discuss changes to the LedgerSMB software - just
letting you know.

On Tue, Jul 24, 2012 at 3:49 AM, Brian Wolf <[email protected]> wrote:

>  Everyone:
>
> I'd like to add a field to the parts table and display it when editing a
> part.  I'm new to LedgerSMB, and even newer to Perl.  I've added the column
> to the database and added a field to the HTML form.  But, can someone give
> me some guidance on adding code to save updated values to the database ?
>
>
Unfortunately, the bit you're trying to change is located in "old code":
code that's still inherited from SQL Ledger, which means you probably need
a few extra rounds to make it work in all cases. But from what I found out
so far is that you're looking to change the query in IC.pm:435 to include
your new column and the $dbh->execute() line right below to include the
value of the column to be set. That value is held in
$form->{<name-of-the-entry-field-in-the-form>}.

HTH,


Erik.
------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
Ledger-smb-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/ledger-smb-devel

Reply via email to