Forms-2 actions

This WebDNA talk-list message is from

2003


It keeps the original formatting.
numero = 51894
interpreted = N
texte = I have the below .tpl file with a .inc file which is a form. There is one form field that does not update unless I hit the button twice. Can anyone see anything wrong with this? The field is called "sections". It relates to categories in the store builder, I would like the form to automatically specify a category without going to the Cat. Selection Page. Here is the text for the tpl file: [SETMIMEHEADER name=Pragma&value=no-cache] [SETMIMEHEADER name=Expires&value=Thu, 01 Dec 1994 16:00:00 GMT] [SETMIMEHEADER name=Cache-Control&value=max-age=0] [Text]SelectOne=No Graphic[/Text] [include body_tag.inc] [showif [action]=New] [math show=f]sku=[search db=products.db&neSKUdatarq=find_all&deSKUsort=1&SKUtype=number&max=1][foundi tems][SKU][/founditems][/search]+1[/math] [/showif] [!]---------------------------------------------------------------------[/!] [!] Coming from Pick Category [/!] [!]---------------------------------------------------------------------[/!] [showif [FromPickCategory]=Yes] [Text]selectedCategory=+[/Text] [formvariables name=CatID_&exact=f] [Text]selectedCategory=[selectedCategory][value]+[/Text] [/formvariables] [Replace db=products.db&eqSKUdata=[sku]]sections=[Url][selectedCategory][/Url][/Repla ce] [Search db=related.db&eqR_SKUdatarq=[sku]&eqR_CTYPEdatarq=S] [Showif [numFound]=0] [text]related_id=[/text] [/Showif] [Showif [numFound]!0] [Founditems] [Text]related_id=[R_ID][/Text] [/Founditems] [/Showif] [/Search] [Showif [related_id]=] [Search db=related.db&neR_IDdata=Find_All&deR_IDsort=1&R_IDtype=num&max=1] [Showif [numFound]=0] [text]NewID=1[/text] [/Showif] [Showif [numFound]!0] [Founditems] [math show=f]NewID=[R_ID]+1[/math] [Text]related_id=[NewID][/Text] [/Founditems] [/Showif] [/Search] [/Showif] [Replace db=related.db&eqR_IDdata=[related_id]&append=T]R_ID=[related_id]&R_SKU=[sku] &R_NAME=[Url][selectedCategory][/Url]&R_CTYPE=S[/Replace] [/showif] [showif [action]=New] [text]page_title=Add New Product[/text] [text]helpid=product_add[/text] [include banner.inc] [include file=products.inc&SKU=[url][sku][/url]&[listfields db=products.db][fieldname]=&[/listfields]] ---------------------------------------------------------------------------- ---- [/showif] [showif [action]=Edit] [search db=products.db&eqSKUdatarq=[url][SKU][/url]] [showif [numfound]=0] SKU "[SKU]" not found in database. [/showif] [founditems] [text]page_title=Edit Product[/text] [text]helpid=product_edit[/text] [include banner.inc] [include file=products.inc] ---------------------------------------------------------------------------- ---- [!] Protection needs to be fixed [hideif [include file=protection.inc&owner=[url][OWNER][/url]]^N] [/hideif][/!] [/founditems][/search] [/showif] Thank You, Dan Braley Thank You, Dan Braley Graphics Art Manager Fabri-Kal Corporation 570-454-6672 ext.5375 dbraley@hazleton.f-k.com ------------------------------------------------------------- This message is sent to you because you are subscribed to the mailing list . To unsubscribe, E-mail to: To switch to the DIGEST mode, E-mail to Web Archive of this list is at: http://webdna.smithmicro.com/ Associated Messages, from the most recent to the oldest:

    
  1. Forms-2 actions ( Dan Braley 2003)
I have the below .tpl file with a .inc file which is a form. There is one form field that does not update unless I hit the button twice. Can anyone see anything wrong with this? The field is called "sections". It relates to categories in the store builder, I would like the form to automatically specify a category without going to the Cat. Selection Page. Here is the text for the tpl file: [SETMIMEHEADER name=Pragma&value=no-cache] [SETMIMEHEADER name=Expires&value=Thu, 01 Dec 1994 16:00:00 GMT] [SETMIMEHEADER name=Cache-Control&value=max-age=0] [text]SelectOne=No Graphic[/Text] [include body_tag.inc] [showif [action]=New] [math show=f]sku=[search db=products.db&neSKUdatarq=find_all&deSKUsort=1&SKUtype=number&max=1][foundi tems][SKU][/founditems][/search]+1[/math] [/showif] [!]---------------------------------------------------------------------[/!] [!] Coming from Pick Category [/!] [!]---------------------------------------------------------------------[/!] [showif [FromPickCategory]=Yes] [text]selectedCategory=+[/Text] [formvariables name=CatID_&exact=f] [text]selectedCategory=[selectedCategory][value]+[/Text] [/formvariables] [Replace db=products.db&eqSKUdata=[sku]]sections=[url][selectedCategory][/Url][/Repla ce] [Search db=related.db&eqR_SKUdatarq=[sku]&eqR_CTYPEdatarq=S] [Showif [numFound]=0] [text]related_id=[/text] [/Showif] [Showif [numFound]!0] [founditems] [text]related_id=[R_ID][/Text] [/Founditems] [/Showif] [/Search] [Showif [related_id]=] [Search db=related.db&neR_IDdata=Find_All&deR_IDsort=1&R_IDtype=num&max=1] [Showif [numFound]=0] [text]NewID=1[/text] [/Showif] [Showif [numFound]!0] [founditems] [math show=f]NewID=[R_ID]+1[/math] [text]related_id=[NewID][/Text] [/Founditems] [/Showif] [/Search] [/Showif] [Replace db=related.db&eqR_IDdata=[related_id]&append=T]R_ID=[related_id]&R_SKU=[sku] &R_NAME=[url][selectedCategory][/Url]&R_CTYPE=S[/Replace] [/showif] [showif [action]=New] [text]page_title=Add New Product[/text] [text]helpid=product_add[/text] [include banner.inc] [include file=products.inc&SKU=[url][sku][/url]&[listfields db=products.db][fieldname]=&[/listfields]] ---------------------------------------------------------------------------- ---- [/showif] [showif [action]=Edit] [search db=products.db&eqSKUdatarq=[url][SKU][/url]] [showif [numfound]=0] SKU "[SKU]" not found in database. [/showif] [founditems] [text]page_title=Edit Product[/text] [text]helpid=product_edit[/text] [include banner.inc] [include file=products.inc] ---------------------------------------------------------------------------- ---- [!] Protection needs to be fixed [hideif [include file=protection.inc&owner=[url][OWNER][/url]]^N] [/hideif][/!] [/founditems][/search] [/showif] Thank You, Dan Braley Thank You, Dan Braley Graphics Art Manager Fabri-Kal Corporation 570-454-6672 ext.5375 dbraley@hazleton.f-k.com ------------------------------------------------------------- This message is sent to you because you are subscribed to the mailing list . To unsubscribe, E-mail to: To switch to the DIGEST mode, E-mail to Web Archive of this list is at: http://webdna.smithmicro.com/ Dan Braley

DOWNLOAD WEBDNA NOW!

Top Articles:

Talk List

The WebDNA community talk-list is the best place to get some help: several hundred extremely proficient programmers with an excellent knowledge of WebDNA and an excellent spirit will deliver all the tips and tricks you can imagine...

Related Readings:

emailer (1997) Help! WebCat2 bug (Ben's input) (1997) New public beta available (1997) [append] problem (1997) plugin-acgi, different results (1997) Re:no template caching (1997) Security Tip (1996) [WebDNA] [WSC] WebDNA Development Summit (2014) Calculate UnitShipCost in Formulas.db (1999) European Convention (2004) WebDNA 4.5 (2004) email bounce check (2002) Problems with cybercash (2000) [WriteFile] problems (1997) [url] (1997) Botched cart numbers in webmerchant 2.1x email with webcat 3 (1998) View Source from cache (1997) PSC recommends what date format yr 2000??? (1997) There's no belittling going on here ... (2000) Just Testing (1997)