Pre-entered Data

A place to discuss and receive support for the Web Auction application.

Pre-entered Data

Postby sauden » Wed Oct 21, 2009 10:11 am

Where would I go to put Pre-entered data into the item description field when adding a new product? All items will have a particular link that just needs a number to be edited manully and I'd like to have the auction manager just edit the number and not have to enter the whole url by hand each time a product is added.

Thanks!
sauden
 
Posts: 4
Joined: Wed Oct 21, 2009 10:01 am

Postby shannah » Thu Oct 22, 2009 9:19 am

You can set the default value for any field by adding a method to the products delegate class using the naming conventions

<fieldname>__default()

e.g.

If you wanted to set the default value of the minimum_bid field you would have something like

function minimum_bid__default(){
return 100;
}
shannah
 
Posts: 4457
Joined: Wed Dec 31, 1969 5:00 pm

Postby sauden » Thu Oct 22, 2009 10:24 am

awesome, thank you!
sauden
 
Posts: 4
Joined: Wed Oct 21, 2009 10:01 am


Return to Web Auction Discussion

Who is online

Users browsing this forum: Bing [Bot] and 1 guest

cron
Powered by Dataface
© 2005-2007 Steve Hannah All rights reserved