Server Behavior (Building a simple recordset)
Hi DW friends, I'm working on the
Building your first dynamic website – Part 2: Developing the back end by David Powers
and up to the part "Building a simple recordset". My problem is from inside the server behavior panel when I cliick the plus button at the top left of the Server Behaviors panel, the drop-down menu appears but there is no option of "Recordset"
Anyone have a suggestion how I can get the Recordset option to appear so I can setup my Recordset????
Details:
Windows Vista
CS5
thanks in advance for help and consideration.
marc
If the servers are running and the connection is OK, I don't see any reason why you can't see Recordset listed. It should be at the top of the menu when you click the plus button in the Server Behaviors panel. It should also be listed in the Bindings panel.
If it's not there in either panel, try shutting down Dreamweaver and restarting. If that still doesn't work, you might need to dump your personal configuration folder (see http://forums.adobe.com/thread/494812).
After that, I'm out of ideas.
Similar Messages
-
Dreamweaver CS5 not showing all recordsets in databases/bindings/server behaviors windows
Dreamweaver CS5 is not showing all recordsets created on a page in the databases/bindings/server behaviors windows.
I'm on XP, DW version 11.5 build 5344.
Any idea of how I fix that?
Thanks,
BettyDreamweaver CS5 is not showing all recordsets created on a page in the databases/bindings/server behaviors windows.
I'm on XP, DW version 11.5 build 5344.
Any idea of how I fix that?
Thanks,
Betty -
i get this error whenever i open pages created in CS4. ive tried deleting the cache file... deleting the entire configuration folder and letting DW re build it.. nothing... error still there. how can i turn it off? i also cant seem to find the "edit server behaviors" button.. double click? well DW freaks out with that aswell... yes i know i have some insanely hand edited code.. basically use DW as notepad replacement.. with extra features like having the option of "add recordset" then going and editing it to my liking.
the error
[quote]
The server behavior panel cannot determine whether "command" or "recordset (Query)" is applied to your page. Please select edit Server Behaviors and change one of the two behaviors to ensure that each is uniquely identifiable.
[/quote]
this is a total show stopper for me.. im going to have to go back to a previous version cant click "ok" every time i open a page.. and every time i follow a include file.
development ASP
Dreamweaver CS5
Question.. how to disable the error message from popping up? i'll take my chances with hand editing the recordset / command by hand if i need it changed.this is bleh... having to resort back to CS4..
is there any way to legaly go back to cs4 dreamweaver but still use the other cs5 applications? -
Suddenly getting this goofball message in DW5.5 on Win7:
"The Server Behavior panel cannot determine whether "Command" or "Recordset (Query)" is applied to your page. Please select Edit Server Behaviors and change one of the two behaviors to ensure that each is uniquely identifiable."
Crazy thing is, it only happens on my workstation.
DW5.5 on my laptop opens the same .asp pages without this crazy message popping up.
Anybody know what the issue is?I'd suggest that no answer means no answer yet. The person who can help may not have been on the forum the day the post was made.
That said, I'm starting to suspect that the cause must be an extension. Both boxes have the same version of DW and the same OS but both don't have the exact same extensions installed. Will play around and see what happens. -
Building a simple J2ME chat client (for own J2SE-based server) Threading Qs
Hi!
I am making my own simple chat / messenger service to use between a couple of friends over GPRS.
On the server side i have made a multi threaded TCP server that opens a new thread for each connecting client and stores these socket connections in a hashtable for access to send data between each thread.
So when a client logs on to the server, the server sends a printwriter message to all other clients informing them of what client connected, and the clients can put the username in its out-database. then the clients can send messages to each others using a simple, self build protocol.
All connection between clients/server happens over a simple printwriter on in/out streams.
Problem is: it works perfectly most of the time.... However, sometimes a message is mysteriously lost when transferred from the server to a client. Transfer from client to server works flawlessly. I am thinking that it might have something to do with the client side threading, or slow network transfer casuing a TCP read error.
Client structure is as following:
start-> Midlet class -> (press connect to server) -> new Client class (impl runnable) -> new thread(this) -> void run() sets up all connections and writers, waits in a while loop for messages from server and takes action according to message type. -> Button(send) uses output stream to send a message to server.
Do anyone have any suggestions on what I must consider when making a client that will simultaniously be able to listen for data from server as well as send data to server over 1 socket and slow mobile connection without causing any trouble?
More info can be provided if necessary.
Thank you!Building a simple J2ME chat client (for own J2SE-based server)a. i would like to say that this is a bl00dy brilliant idea. i mean ~ its been done before but building one yourself is quite thrilling.
b. are u using java 4 or java 5. ?
sometimes a message is mysteriously lost when transferred from the server to a client. Transfer from client to server works flawlessly.are you using push registry to recieve incoming connections.
i recommend using a StreamConnectionNotifier connection instead of just a socket connection. you could send your data (xml/plain text) just like a stream (tcp ofcourse). if you want to know how to use a StreamConnectionNotifier connection, here's how
try{
// listen at local port 789
StreamConnectionNotifier notify = (StreamConnectionNotifier) Connector.open(http://:789);
// infinite loop to get incoming connections
for(;;)
StreamConnection stream = notify.acceptandOpen(); // return a stream connection when a connection is made
InputStrean mystream = stream.openInputStream();
while(mystream!=-1)
mystream.read();
....cheers -
Is there any way to add dynamic parameter in sql without breaking Server Behavior
Hello, i'm building multiple language site.. i would like to know if there is possible way to add dynamic parameter in my query, without break the server behavior.
For example:
mysql_select_db($database_dxc_conn, $dxc_conn);
$query_Recordset1 = "SELECT article.articleName, article.articleDesc FROM article";
$Recordset1 = mysql_query($query_Recordset1, $dxc_conn) or die(mysql_error());
$row_Recordset1 = mysql_fetch_assoc($Recordset1);
$totalRows_Recordset1 = mysql_num_rows($Recordset1);
will become something like this:
$additionalSQL=", article.articleName_en";
mysql_select_db($database_dxc_conn, $dxc_conn);
$query_Recordset1 = "SELECT article.articleName, article.articleDesc $additionalSQL FROM article";
$Recordset1 = mysql_query($query_Recordset1, $dxc_conn) or die(mysql_error());
$row_Recordset1 = mysql_fetch_assoc($Recordset1);
$totalRows_Recordset1 = mysql_num_rows($Recordset1);
this is just an example, my real scenarion is far more complicated than this... however this kind of approach break the server behavior and force to do hand-coding...
i would like to know if there's better way to do such thing like this...viktor.iwan wrote:
Hello, i'm building multiple language site.. i would like to know if there is possible way to add dynamic parameter in my query, without break the server behavior.
Server behaviors are simply bits of boilerplate code automatically generated by Dreamweaver. Editing the code doesn't "break" it (unless your edits are badly written). However, once you edit the code, Dreamweaver no longer recognizes it, so you lose the ability to drag recordset results from the Bindings panel.
If you want to edit server behavior code, the best way to handle it is to lay out your page as you want, using the Bindings panel. Once everything has been done, only then edit the server behavior code. -
I'm using windows DW 2014.1 cc. I'm following lynda.com tutorials to build a website database with PHP and MySQL. I learned I have to download Adobe Extension Mngr to active DATABASE, BINDING, SERVER BEHAVIOR panels, which I've done. BUT NOW I'VE BEEN ADVISED NOT TO USE THESE TOOLS for new development. If this is the truly the case, then WHAT TOOLS DO I USE to develop a website that has a database?
then WHAT TOOLS DO I USE to develop a website that has a database?
Besides the tools you would already need for a system using server behaviors (web server, PHP, MySQL, phpMyAdmin) the only extra tool you need is your own brain.
A lot of people are disappointed by the lack of database tools in DW now, but really it's much better this way. You can never achieve better than a rinky-dink dynamic website using server behaviors. The code Dreamweaver dynamic behaviors create is really terrible. (I'm not insulting the fine folks who wrote the feature. It's just a consequence of automated code.) You can write better, simpler, more maintainable code yourself, and over time you will improve. With server behaviors you cannot improve. you get stuck in database kindergarten. -
Difference between two dates into server behaviors
Good morning all,
I'm trying to create a recordset using server behaviors and as I'm not an expert using php I'm completely lost...
The problem is the following : I want to find into a table all the records where the difference between today date and their creation date (stored in that table of course) is greater than, let's say 30days. How can I indicate that into the variables field ?
Many thanks in advance for your help !Many thanks !
I was ignoring the DATE_SUB function and it does work in such a simple way… (with a closing parenthesis at the end)
Thanks again !
Best regards
De : osgood_ [email protected]
Envoyé : lundi 16 septembre 2013 15:59
À : Berurier75
Objet : Difference between two dates into server behaviors
Re: Difference between two dates into server behaviors
created by osgood_ <http://forums.adobe.com/people/osgood_> in Dreamweaver support forum - View the full discussion <http://forums.adobe.com/message/5685549#5685549 -
Locked Regions & Server Behaviors
Hi:
Any help to resolve this problem
making this change would require changing code that is locked
by a template or a translator
I use templates in all of my projects along with server
behaviors, and i frequently get this error.
I have worked around this by adding necessary recordset
behaviors before applying template but sometimes you don't know
always what you would be requiring at the end and even if i do know
the Recordset pagination invokes this error which I actually use
after applying template to my page.
Sometimes i would apply a recordset in a temporary file and
will copy the pertinent code from there to the page i am working
on.
I want an efficient approach to use server behaviors without
any conflict with templates. I usually have simple templates with a
single editable field for recordset display.
Is it something wrong with the way I am creating template or
what should be the approach to avoid this error. Further sometimes
I do have server behaviors inside templates (not always).
P.S. Post earlier to General Category but I believe this is
the right one.The page validates without adding the SB?
I can see nothing wrong with your markup as posted.
Murray --- ICQ 71997575
Adobe Community Expert
(If you *MUST* email me, don't LAUGH when you do so!)
==================
http://www.projectseven.com/go
- DW FAQs, Tutorials & Resources
http://www.dwfaq.com - DW FAQs,
Tutorials & Resources
==================
"Saad Shams" <[email protected]> wrote in
message
news:[email protected]...
> Still I am unable to track the problem. To avoid future
problems, where
> exactly
> do you suggest me to place code within head section. I
doubt that it may
> happened due to code in head section at arbitrary
places.
>
> I have checked with creating a simple template with few
tables in it,
> adding
> server behaviors works fine, as a result of increase in
design/code may be
> due
> to addition of code in head section, i believe it
happens due to that.
>
> Here is a pattern of dreamweaver head section of a
template, suggest me a
> safest place within this region.
>
> <head>
> <meta http-equiv="Content-Type" content="text/html;
charset=utf-8" />
> <!-- TemplateBeginEditable name="doctitle" -->
> <title>Untitled Document</title>
> <!-- TemplateEndEditable -->
> <!-- TemplateBeginEditable name="head" --><!--
TemplateEndEditable -->
> </head>
>
> Well at this point, i added some SB and the error
appears again on further
> SBs, check it yourself.
>
> <head>
> <meta http-equiv="Content-Type" content="text/html;
charset=utf-8" />
> <!-- TemplateBeginEditable name="doctitle" -->
> <title>Untitled Document</title>
> <!-- TemplateEndEditable -->
> <!-- TemplateBeginEditable name="head" --><!--
TemplateEndEditable -->
> <?php mysql_select_db($database_connBalanaa,
$connBalanaa);
> $query_Recordset1 = "SELECT * FROM advertise";
> $Recordset1 = mysql_query($query_Recordset1,
$connBalanaa) or
> die(mysql_error());
> $row_Recordset1 = mysql_fetch_assoc($Recordset1);
> $totalRows_Recordset1 =
mysql_num_rows($Recordset1);?>
> </head>
>
> Can't add any further Recordset after that on CHILD
Pages.
>
> Looking forward to your kind suggestions.
> -
I'm trying to create a dynamic drop down menu. I've been
going through a tutorial but my trouble began when I was instructed
to create a show-hide layers in the behaviors. The "+" sign wasn't
available because I had to set up the 1)site 2) document type
3)testing server so I did. I used doc type ASP. The "+" now shows,
but no option to choose show-hide layers. Where are all my
roll-over, pop-up message, play a sound, etc. options??
Then, since I'm working on Cold Fusion documents, I changed
the doc type to CF and I have to answer addition settings questions
such as RDS login & data source. I'm working via ftp but it's
only me and my little computer in the meantime.
So now can I not only get to the behaviors I need, I have no
idea how to set the settings. I've searched and searched for the
answers. P P P Pleeeeaaase help!!!!
Thanks in advance for anyones response :)I'm not sure exactly what you're trying to build. Show-Hide
layers is a Behavior (not Server Behavior) and only requires that
you be working in an HTML document. You would have to apply a
Behavior to a particular HTML element, like a link, because it
needs an event, like onClick, to trigger the behavior. Behaviors
are Javascript scripts, which can be in plain old HTMl web pages.
A Dynamic Drop-Down menu, on the other hand, requires that
you be working with dynamic web pages, like Coldfusion or ASP, and
that you have created a Recordset from a database to populate the
drop-down box. -
Sequel Search Server Behaviors Problem
This code was made with php-msql server behaviors - recordset
pull down's....
I have a form to search for firstname or lastname or both but
I'm not getting the right results
SELECT * FROM phonebook WHERE firstname LIKE %s and lastname
LIKE %s
problem 1 - if I have NOTHING in the form then *all* records
get returned
I guess the problem is with blank form fields?
Q: How can I fix this?
full query below...still curious about this - thanks in advance
-
Asp server behavior in dreamweaver 5
HI
Is there any way to get extentions for recordset server behavior and insert record behavior for asp for dreamweaver 5Yes it is the current version. Any help would be greatly appreciated.
Thank you -
OT: Bindings panel, Databases, and Server behaviors in Dreamweaver CC
Hi all,
There was a query on the Dreamweaver Facebook page about using server behaviors in Dreamweaver going forward. The product team replied to the post, and I am posting it on this forum for the benefit of users not on our Facebook page.
In Dreamweaver cc release server behaviors will be available as an extension. Once you install the extension server behaviors feature will be enabled and extensions dependent on it will work as before. In the CC release, you can find the extension at the location
* Vista/Windows 7: C:\Program Files (x86)\Adobe\Adobe Dreamweaver CC\Configuration\DisabledFeatures
* Mac OS X: /Applications/Adobe Dreamweaver CC/Configuration/DisabledFeatures
Additional documentation is available at
http://helpx.adobe.com/x-productkb/policy-pricing/dreamweaver-cc-server-extensions.html
Also, check out this video created by Silas http://www.youtube.com/watch?v=cB2vmNfcq7A
The Dreamweaver team has posted their view about the latest changes in Dreamweaver in their blog post http://blogs.adobe.com/dreamweaver/2013/06/a-look-at-the-modernized-dreamweaver-cc.html
Thanks,
PreranI am sorry to say so, but your disappointing blog post just tells us two things:
You claim that you are listening to your users, but you have just proved you don’t. Despite the high volume of disappointment expressed through the comments to previous posts of this blog, through comments in Dreamweaver Help or through the Community Forum, you show no change of direction, nor any will to cater for the disrupted workflow that Dreamweaver CC is introducing. Instead, you are just producing blog posts that desperately try to prove us that you are “streamlining” and “modernizing” Dreamweaver. An extension that brings back half of the features is not a strong-enough signal that you have taken into account our needs. Extensions written by third parties which you claim are alternatives but are not resemble more leg-pulling than anything else. Will you reduce Dreamweaver’s price for the removal of killer features that were sold with the software before?
You do not seem to know how Dreamweaver users use the software or at least, to be fair, how a large number of users do. I thought the aim of software makers was to sell a tool that aids its clients in, and brings value to, their work.
As an extension writer, I can tell that the vast majority of my users are either DIY guys or professionals working on their own. Not big companies with teams of developers. The majority of those never have been Dreamweaver users and will never be, having different needs and ways of working.
As responses to your “streamlining” and “modernization” of Dreamweaver have shown, for a large number of users, the strength of Dreamweaver lies in its extensibility, of which server behaviors are the most advanced feature. I am not talking about the code they write, which we all agree has to be updated (and we have been waiting this for a number of releases, now…), I am talking about their very mechanism, which allow us to write our code and use Dreamweaver to speed up our job by helping us to write it again, faster, without errors, visually.
No other tool offers this possibility. Without server behaviors and database support, Dreamweaver is simply not worth its price…
Obviously, you are the ones with the real figures and only you can tell if it is a strategic decision or a big mistake. I was a bit surprised though by the number of voices that rose after the Dreamweaver CC release, so I tend to think that Mr. Adobe would not be that pleased by the loss of a good number of faithful clients. But then at least, be honest enough to tell us if you intend to drop a part of long-term users, and stop serving us your commercial soup…
Now, what will happen?
You still refuse to listen to the numerous voices who have called against your decision to remove useful features to us, and in this case, we will act accordingly: we are big enough, we do not need your blatant propaganda even by the product manager himself to decide whether Dreamweaver CC will still be worth its high price into our workflow, if the new features will outweigh the loss of server behaviors and database support. If not, of course, we will not upgrade just because you are marketing the supposedly wonderful new features, and we will turn to other tools, with features that will help us improve our workflow in other ways. And goodbye Adobe, we do not trust you anymore… It is as simple as that.
You show us you really are listening to your customers and you bring back updated server behaviors and database support. In this case, we will know that we can trust Adobe again, that you do listen to us, and will applaud with both hands.
And, more important to you, we will have a valid reason to upgrade and we will. Come on guys, our productivity is at stake, but your jobs may be in the line too… -
How to make server behaviors repeat region vertical?
I have done many "Server Behavior, Repeat Region" showing vertical list without any other setup, now I’m doing a new one and is showing horizontal which doesn't make any sense. Does anybody know why and how to fix this “bad behavior”?
This is very simple page no external or internal css is for internal use only to retrieve data base information. I currently have to more from different sites working fine without any third party app or any extra coding effort. here are codes.
Thank you guys for your prompt response.
<?php require_once('Connections/customers.php'); ?>
<?php
if (!function_exists("GetSQLValueString")) {
function GetSQLValueString($theValue, $theType, $theDefinedValue = "", $theNotDefinedValue = "")
if (PHP_VERSION < 6) {
$theValue = get_magic_quotes_gpc() ? stripslashes($theValue) : $theValue;
$theValue = function_exists("mysql_real_escape_string") ? mysql_real_escape_string($theValue) : mysql_escape_string($theValue);
switch ($theType) {
case "text":
$theValue = ($theValue != "") ? "'" . $theValue . "'" : "NULL";
break;
case "long":
case "int":
$theValue = ($theValue != "") ? intval($theValue) : "NULL";
break;
case "double":
$theValue = ($theValue != "") ? doubleval($theValue) : "NULL";
break;
case "date":
$theValue = ($theValue != "") ? "'" . $theValue . "'" : "NULL";
break;
case "defined":
$theValue = ($theValue != "") ? $theDefinedValue : $theNotDefinedValue;
break;
return $theValue;
$maxRows_Recordset1 = 10;
$pageNum_Recordset1 = 0;
if (isset($_GET['pageNum_Recordset1'])) {
$pageNum_Recordset1 = $_GET['pageNum_Recordset1'];
$startRow_Recordset1 = $pageNum_Recordset1 * $maxRows_Recordset1;
mysql_select_db($database_customers, $customers);
$query_Recordset1 = "SELECT * FROM customers";
$query_limit_Recordset1 = sprintf("%s LIMIT %d, %d", $query_Recordset1, $startRow_Recordset1, $maxRows_Recordset1);
$Recordset1 = mysql_query($query_limit_Recordset1, $customers) or die(mysql_error());
$row_Recordset1 = mysql_fetch_assoc($Recordset1);
if (isset($_GET['totalRows_Recordset1'])) {
$totalRows_Recordset1 = $_GET['totalRows_Recordset1'];
} else {
$all_Recordset1 = mysql_query($query_Recordset1);
$totalRows_Recordset1 = mysql_num_rows($all_Recordset1);
$totalPages_Recordset1 = ceil($totalRows_Recordset1/$maxRows_Recordset1)-1;
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="viewport" content="width=device-width" />
<title>Untitled Document</title>
</head>
<body>
<table width="158%" border="1">
<tr>
<th scope="col">ID</th>
<th scope="col">Name</th>
<th scope="col">Last Name</th>
<th scope="col">Address</th>
<th scope="col">City</th>
<th scope="col">State</th>
<th scope="col">Zip Code</th>
<th scope="col">E-mail</th>
<th scope="col">Phone</th>
<th scope="col">Username</th>
<th scope="col">Password</th>
<th scope="col">Role</th>
</tr>
<tr>
<?php do { ?>
<td align="left"><?php echo $row_Recordset1['id']; ?></td>
<td align="left"><?php echo $row_Recordset1['name']; ?></td>
<td align="left"><?php echo $row_Recordset1['lname']; ?></td>
<td align="left"><?php echo $row_Recordset1['address']; ?></td>
<td align="left"><?php echo $row_Recordset1['city']; ?></td>
<td align="left"><?php echo $row_Recordset1['state']; ?></td>
<td align="left"><?php echo $row_Recordset1['zip']; ?></td>
<td align="left"><?php echo $row_Recordset1['email']; ?></td>
<td align="left"><?php echo $row_Recordset1['phone']; ?></td>
<td align="left"><?php echo $row_Recordset1['username']; ?></td>
<td align="left"><?php echo $row_Recordset1['password']; ?></td>
<td align="left"><?php echo $row_Recordset1['role']; ?></td>
<?php } while ($row_Recordset1 = mysql_fetch_assoc($Recordset1)); ?>
</tr>
</table>
</body>
</html>
<?php
mysql_free_result($Recordset1);
?> -
Using Dreamweaver MX 2004. I have a recordset created, and
need to update a table. When I select the Update Record server
behavior I get the following message "before using this behavior,
please create a recordset". However the recordset has already been
created, and it tests fine, I can see the data in the tables, and I
am able to insert a record, delete a record, but not update...
Using ASP JavaScript Server model with Access databse. Any help is
much appreciated.
Thanks! :Hi
Have you already made the binding? - it's not obvious from
your posting - but you should have a form with the initial data you
want to update bound to it before you can update.
I won't bang on about this because maybe you did it already.
bfn
Maybe you are looking for
-
I downloaded my sons ipod 5g with the latest iOS and now when we try to sync it says we have no space, but there is nothing but a few apps on his ipod and he has plenty of space. The messege says that most of is space is taken up by video but there
-
How do you get canoscan lide 110 scanner to display in "file import" menu?
I have several older versions of Photoshop Elements running on various computers. In ALL of them, if you go to "File>Import" you see "Canoscan LIDE xx". when you choose it, there is a great scanning application that runs. On a newer computer, i had
-
OSS Note and Management of Global Employee Customizing
Hello you all! I've being having trouble with the customizing. When I perform the standard actions all the specific infotypes are skipped (i.e. 706, 710, 715). We are working with the 4.7 release and SP 53. Do I need to modify something on table t77s
-
Captivate 4 - unable to bookmark content slides with a Quiz and maintain Incomplete status
When creating a presentation that has content slides before a quiz the Captivate content is recorded as Failed when exited early in the LMS. I am trying to allow the user to view content pages that bookmark when they ahve to exit the course. This sho
-
I am novice here. I just installed oracle designer and when I try to open it, a dialoague box appears asking me the user name , password and connect string. For the username, password I entered "scott", "tiger" which I believe is universal across all