close ad
Databridge V2 with MySQLi support IS Now Available!
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

New Details field

Thread began 6/02/2011 10:29 am by biz295654 | Last modified 6/08/2011 1:57 pm by biz295654 | 3062 views | 9 replies |

biz295654

New Details field

Using PowerStore 4.5. Inserted a new field in the details. All good except for one thing. When updating the second product, ie, different color, , the new field and the productgroup goes blank on second, third etc. product update. So then the new field has to be filled in again, and so does the product group field.

Any ideas where to look to keep the entered information in the update page? Thanks much.

Sign in to reply to this post

Jason ByrnesWebAssist

Is the initial value of the new filed set to use the corresponding column from WADAProcuts recordset?

Sign in to reply to this post

biz295654

<!-- productfabric add -->
<p>
<label for="ProductFabric">Fabric: <font color="#FF0000">*</font></label>
<span id="sprytextfield2">
<input type="text" name="ProductFabric" id="ProductFabric" value="<?php echo str_replace('"',"&quot;",isset($_GET['valid'])?ValidatedField("ProductsUpdate","ProductFabric"):$row_WADAProducts['ProductFabric']) ?>" size="32" onBlur="if (document.getElementById('ProductFabricServerValidation')) document.getElementById('ProductFabricServerValidation').style.display='none';" />
<span class="textfieldRequiredMsg">Please enter a product fabric.</span></span>
<?php
if (ValidatedField('ProductsUpdate','ProductsUpdate')) {
if ((strpos((",".ValidatedField('ProductsUpdate','ProductsUpdate').","), "," . "3" . ",") !== false || "3" == "")) {
if (!(false)) {
?>
<span class="textfieldServerError" id="ProductFabricServerValidation"> Please enter a product fabric. </span>
<?php //WAFV_Conditional products_update.php ProductsUpdate(3:)
}
}
}
?>
</p>

Sign in to reply to this post

biz295654

I see a space in one line, but looking again at code, I don't see an actual space

if ((strpos((",".ValidatedField('ProductsUpdate','ProductsUpdate').","), "," . "3" . ",") !== false || "3" == "")) {


Put in a text cleaner to see if it removes space when pasting here

if ((strpos((",".ValidatedField('ProductsUpdate','ProductsUpdate').","), ",". "3". ",")!== false || "3" == "")) {

Sign in to reply to this post

biz295654

Zipped page if you have time to look at it for me. Thanks much.

Attached Files
products_updateTEST.php.zip
Sign in to reply to this post

biz295654

Jason: Would this thread be a fix for this?

showthread.php?t=19887

Thanks much

Sign in to reply to this post

Jason ByrnesWebAssist

is the actual page name in the site products_updateTEST.php?


if so, make sure you change the forms action:
<form action="products_update.php?ProductID=<?php echo($row_WADAProducts['ProductID']); ?>" method="post" enctype="multipart/form-data" name="WADAUpdateForm" id="WADAUpdateForm" >


so that it is posting to the correct page:
<form action="products_updateTEST.php?ProductID=<?php echo($row_WADAProducts['ProductID']); ?>" method="post" enctype="multipart/form-data" name="WADAUpdateForm" id="WADAUpdateForm" >

Sign in to reply to this post

biz295654

No... I added TEST so as not to break anything while trying to troubleshoot.

Sign in to reply to this post

Jason ByrnesWebAssist

all of the code on the page looks correct, I could not see why it is not working.

We do not offer support for making this sort of modification to power store.

If you would like us to look into the issue with you, I would suggest signing up for a Premiere ticket.

Sign in to reply to this post

biz295654

OK... I may have to do that. Trying one more thing first.

Sign in to reply to this post
loading

Build websites with a little help from your friends

Your friends over here at WebAssist! These Dreamweaver extensions will assist you in building unlimited, custom websites.

Build websites from already-built web applications

These out-of-the-box solutions provide you proven, tested applications that can be up and running now.  Build a store, a gallery, or a web-based email solution.

Want your website pre-built and hosted?

Close Windowclose

Rate your experience or provide feedback on this page

Account or customer service questions?
Please user our contact form.

Need technical support?
Please visit support to ask a question

Content

rating

Layout

rating

Ease of use

rating

security code refresh image

We do not respond to comments submitted from this page directly, but we do read and analyze any feedback and will use it to help make your experience better in the future.

Close Windowclose

We were unable to retrieve the attached file

Close Windowclose

Attach and remove files

add attachmentAdd attachment
Close Windowclose

Enter the URL you would like to link to in your post

Close Windowclose

This is how you use right click RTF editing

Enable right click RTF editing option allows you to add html markup into your tutorial such as images, bulleted lists, files and more...

-- click to close --

Uploading file...