numero = 37687
interpreted = N
texte = Hi there,I'm trying to set up a facility so users can easily change the order of items in a search page (which is ordered on the SKU value).So I've creating a button which says MOVE UP. When the user clicks it, I want to simply move it up one place in the search order. I've done this by using [index].I've created a separate variable for each item: [text show=f][interpret]SKU[index][/interpret]=[SKU][/text]which has the value of the SKU.Then when the user clicks the button, the replace command replaces the value of the SKU, with one less than the value of the previous SKU: action=replace&eqSKUdata=[SKU]&SKU=[math][interpret][SKU[math][index]-1[/math]]-1[/interpret][/math]But it doesn't work.... the SKU value is not being replaced with the new value (therefore, no reordeing is happening).All the code is below... it's not exactly rocket science, and seems like it should be really easy ha ha ha.By the way, the SKU is automaticaly created using:[search db=Mailout.db&SKUsort=1&SKUsdir=as&geSKUdata=2&startat=[url][startat][/url]]
[/search]then on the page it goes to I have:[showif [action]=Replace][replace db=Mailout.db&eqSKUdatarq=[url][sku][/url]][formvariables name=_&exact=F][getchars start=2][name][/getchars]=[url][value][/url]&[/formvariables][/replace]Record Replaced [commitdatabase db=Mailout.db][/showif]All help greatly appreciated!! If there is a better way of doing it, I'd love to know it....Regards,TimTim RobinsonArt Directorimagine onlinetim@imagine.com.auhttp://www.imagine.com.au-------------------------------------------------------------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://search.smithmicro.com/
Associated Messages, from the most recent to the oldest:
Hi there,I'm trying to set up a facility so users can easily change the order of items in a search page (which is ordered on the SKU value).So I've creating a button which says MOVE UP. When the user clicks it, I want to simply move it up one place in the search order. I've done this by using [index].I've created a separate variable for each item: [text show=f][interpret]SKU[index][/interpret]=[SKU][/text]which has the value of the SKU.Then when the user clicks the button, the replace command replaces the value of the SKU, with one less than the value of the previous SKU: action=replace&eqSKUdata=[SKU]&SKU=[math][interpret][SKU[math][index]-1[/math]]-1[/interpret][/math]But it doesn't work.... the SKU value is not being replaced with the new value (therefore, no reordeing is happening).All the code is below... it's not exactly rocket science, and seems like it should be really easy ha ha ha.By the way, the SKU is automaticaly created using:[search db=Mailout.db&SKUsort=1&SKUsdir=as&geSKUdata=2&startat=[url][startat][/url]]
[/search]then on the page it goes to I have:[showif [action]=Replace][replace db=Mailout.db&eqSKUdatarq=[url][sku][/url]][formvariables name=_&exact=F][getchars start=2][name][/getchars]=[url][value][/url]&[/formvariables][/replace]Record Replaced [commitdatabase db=Mailout.db][/showif]All help greatly appreciated!! If there is a better way of doing it, I'd love to know it....Regards,TimTim RobinsonArt Directorimagine onlinetim@imagine.com.auhttp://www.imagine.com.au-------------------------------------------------------------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://search.smithmicro.com/
Tim Robinson
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...