View Full Version : DA update record
mustang_sally_85344510
05-12-2009, 12:21 PM
Was wondering..
When using DA update single record from the server behaviors panel....
I get this result in the form field:
{rsupdate.fieldName}
But when I use DataAssist wizard I get:
<?php echo (str_replace(.....
Ray Borduin
05-12-2009, 01:00 PM
It just uses a slightly different syntax. One DW recognizes and replaces with {rsupdate.fieldName} and the other it does not recognize so it puts the raw code. The raw code is actually similar just the second example adds the str_replace function to account for double quotes in the database values.
mustang_sally_85344510
05-12-2009, 01:12 PM
So, should we all be replacing the raw code with str_replace function? Or will it still work properly in raw code?
Ray Borduin
05-12-2009, 02:15 PM
It should all work fine. If you have any problems with double quotes then you can add the str_replace function manually.
mustang_sally_85344510
05-12-2009, 02:37 PM
Your too good to me :)
Thank you for all of your help!!!
mustang_sally_85344510
05-13-2009, 03:30 PM
So,...
how much of the str_replace code do I have to use? I notice in the other wizard it gives a str_replace with WAAKT ....do I have to use this also?
Ray Borduin
05-13-2009, 03:57 PM
It is only needed when you have single quotes in your value and you are trying to display that value in a form element.
vBulletin® v3.8.1, Copyright ©2000-2012, Jelsoft Enterprises Ltd.