dynamic table of cluster creation
Hello
Is it possible that labview acknowledges the size of the table and it automatically ungroup in groups as many as number of items in the table?
PS. I'm using labview 8.2
Who would simply use a default cluster of 9 elements. What happens if the table is larger than 9?
@ravi:
You don't need to convert a table to a cluster and unbundle then the cluster to get the individual items. Index picture is resizable. Better yet: use a loop for with autoindexing. On the real graph being created I do not understand it. You use the same X value with different values of Y. It is just a vertical line. As altenbach likes to say, your code can be simplified to fit on a small stamp:
Tags: NI Software
Similar Questions
-
I have a problem with a CS6 dynamic table creation
I have 2 tables, 1 of them is caled 'user', the other a "cars" they are inked with a foreign key in the table of cars there is a column called UserID and takes the value of "user", so my question is I tried to make it dynamic table when the user is connected to display its cars that have his Userid on them only unfortunetly when I do this I get a blank table with nothing in it anyone can help me solve this problem. This is the code I use:
<? php require_once('Connections/MyConnection.php');? >
<? PHP
initialize the session
If (! isset {})
session_start();
}
* Log out the current user. **
$logoutAction = $_SERVER ['PHP_SELF']. » ? doLogout = true;
If ((isset & & ($_SERVER ['QUERY_STRING']! = "")) {})
$logoutAction. = '& '. htmlentities($_SERVER['QUERY_STRING']);
}
{If ((isset($_GET['doLogout'])) & & ($ {_GET ['doLogout'] == "true"))}
to completely disconnect a visitor, you must delete the session varialbles
$_SESSION ['MM_Username'] = NULL;
$_SESSION ['MM_UserGroup'] = NULL;
$_SESSION ['PrevUrl'] = NULL;
unset($_SESSION['MM_Username']);
unset($_SESSION['MM_UserGroup']);
unset($_SESSION['PrevUrl']);
$logoutGoTo = "/ cars/LogOut.php";
If {($logoutGoTo)
Header ("Location: $logoutGoTo");
"exit";
}
}
? >
<? PHP
If (! isset {})
session_start();
}
$MM_authorizedUsers = '1', 2;
$MM_donotCheckaccess = "false";
Restrict access to Page: grant or deny access to this page
Function isAuthorized ($strUsers, $UserGroup, $strGroups, $UserName) {}
For safety, first assuming that the visitor is NOT allowed.
$isValid = false;
When a visitor is connected to this site, the MM_Username of Session variable value equal to their username.
So, we know that a user is NOT logged if this Session variable is empty.
If (! empty ($UserName)) {}
In addition to being connected, you can restrict access to only certain users based on a created ID when they connect.
Analyze the channels in the tables.
$arrUsers = explode (",", $strUsers);
$arrGroups = explode (",", $strGroups);
If (in_array ($UserName, $arrUsers)) {}
$isValid = true;
}
Or, you can restrict access to only certain users based on their user name.
If (in_array ($UserGroup, $arrGroups)) {}
$isValid = true;
}
If (($strUsers == "") & & false) {}
$isValid = true;
}
}
return $isValid;
}
$MM_restrictGoTo = "/ cars/Home.php";
If (!) {(((isset($_SESSION['MM_Username']))) & & (isAuthorized ("", $MM_authorizedUsers, $_SESSION ['MM_Username'], {$_SESSION ['MM_UserGroup']})))}
$MM_qsChar = ';?
$MM_referrer = $_SERVER ['PHP_SELF'];
If (strpos ($MM_restrictGoTo, "?")) $MM_qsChar = "&";
If (isset($_SERVER['QUERY_STRING']) & & strlen($_SERVER['QUERY_STRING']) > 0)
$MM_referrer. = « ? ». $_SERVER ['QUERY_STRING'];
$MM_restrictGoTo = $MM_restrictGoTo. $MM_qsChar. "accesscheck =". UrlEncode ($MM_referrer);
Header ("Location:".) $MM_restrictGoTo);
"exit";
}
? >
<? PHP
If (! function_exists ("GetSQLValueString")) {}
function GetSQLValueString ($theValue, $theType, $theDefinedValue = "", $theNotDefinedValue = "")
{
If (via 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 "set":
$theValue = ($theValue! = "")? $theDefinedValue: $theNotDefinedValue;
break;
}
Return $theValue;
}
}
If (! function_exists ("GetSQLValueString")) {}
function GetSQLValueString ($theValue, $theType, $theDefinedValue = "", $theNotDefinedValue = "")
{
If (via 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 "set":
$theValue = ($theValue! = "")? $theDefinedValue: $theNotDefinedValue;
break;
}
Return $theValue;
}
}
$maxRows_cars = 10;
$pageNum_cars = 0;
If (isset($_GET['pageNum_cars'])) {}
$pageNum_cars = $_GET ['pageNum_cars'];
}
$startRow_cars = $pageNum_cars * $maxRows_cars;
$colname_cars = "-1";
If (isset($_SESSION['MM_Username'])) {}
$colname_cars = $_SESSION ['MM_Username"];
}
@mysql_select_db ($database_MyConnection, $MyConnection);
$query_cars = sprintf ("" SELECT * FROM cars WHERE UserID = %s ", GetSQLValueString ($colname_cars,"int")");
$query_limit_cars = sprintf ("%s LIMIT %d, %d", $query_cars, $startRow_cars, $maxRows_cars);
$cars = mysql_query ($query_limit_cars, $MyConnection) or die (mysql_error ());
$row_cars = mysql_fetch_assoc ($cars);
If (isset($_GET['totalRows_cars'])) {}
$totalRows_cars = $_GET ['totalRows_cars'];
} else {}
$all_cars = mysql_query ($query_cars);
$totalRows_cars = mysql_num_rows ($all_cars);
}
$totalPages_cars = ceil($totalRows_cars/$maxRows_cars)-1;
$colname_user = "-1";
If (isset($_SESSION['MM_Username'])) {}
$colname_user = $_SESSION ['MM_Username"];
}
@mysql_select_db ($database_MyConnection, $MyConnection);
$query_user = sprintf ("SELECT * FROM 'user' WHERE Email = %s", GetSQLValueString ($colname_user, "text") ");
$user = mysql_query ($query_user, $MyConnection) or die (mysql_error ());
$row_user = mysql_fetch_assoc ($user);
$totalRows_user = mysql_num_rows ($user);
$colname_user = "-1";
If (isset($_SESSION['MM_Username'])) {}
$colname_user = $_SESSION ['MM_Username"];
}
@mysql_select_db ($database_MyConnection, $MyConnection);
$query_user = sprintf ("SELECT FirstName, LastName FROM 'user' WHERE Email = %s", GetSQLValueString ($colname_user, "text") ");
$user = mysql_query ($query_user, $MyConnection) or die (mysql_error ());
$row_user = mysql_fetch_assoc ($user);
$colname_User = "-1";
If (isset($_SESSION['MM_Username'])) {}
$colname_User = $_SESSION ['MM_Username"];
}
@mysql_select_db ($database_MyConnection, $MyConnection);
$query_User = sprintf ("SELECT * FROM 'user' WHERE Email = %s", GetSQLValueString ($colname_User, "text") ");
$User = mysql_query ($query_User, $MyConnection) or die (mysql_error ());
$row_User = mysql_fetch_assoc ($User);
$colname_User = "-1";
If (isset($_GET['MM_Username'])) {}
$colname_User = $_GET ['MM_Username"];
}
@mysql_select_db ($database_MyConnection, $MyConnection);
$query_User = sprintf ("SELECT * FROM 'user' WHERE Email = %s", GetSQLValueString ($colname_User, "text") ");
$User = mysql_query ($query_User, $MyConnection) or die (mysql_error ());
$row_User = mysql_fetch_assoc ($User);
$colname_User = "-1";
If (isset($_SESSION['MM_Username'])) {}
$colname_User = $_SESSION ['MM_Username"];
}
@mysql_select_db ($database_MyConnection, $MyConnection);
$query_User = sprintf ("SELECT * FROM 'user' WHERE Email = %s", GetSQLValueString ($colname_User, "text") ");
$User = mysql_query ($query_User, $MyConnection) or die (mysql_error ());
$row_User = mysql_fetch_assoc ($User);
$colname_User = "-1";
If (isset($_SESSION['MM_Username'])) {}
$colname_User = $_SESSION ['MM_Username"];
}
@mysql_select_db ($database_MyConnection, $MyConnection);
$query_User = sprintf ("SELECT * FROM 'user' WHERE UserID = %s", GetSQLValueString ($colname_User, "int") ");
$User = mysql_query ($query_User, $MyConnection) or die (mysql_error ());
$row_User = mysql_fetch_assoc ($User);
? >
< ! DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional / / IN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd" > ""
" < html xmlns =" http://www.w3.org/1999/xhtml ">
< head >
< link href = "CSS/Layout.css" rel = "stylesheet" type = "text/css" / > "
< link href = "CSS/Menu.css" rel = "stylesheet" type = "text/css" / > "
"< link href="/Cars/CSS/VerticalMenu.css "rel ="stylesheet"type =" text/css"/ >
< meta http-equiv = "Content-Type" content = text/html"; charset = utf-8 "/ >"
< title > Untitled Document < /title >
< / head >
< body >
< div id = 'Holder' >
< div id = "Header" >
< div id = "HeaderContentRight" >
< table width = "0" border = "0" align = "right" >
< b >
< td > logged in as: <? PHP echo $row_user ["FirstName"];? > <? PHP echo $row_user ['name'];? > < table >
< td > < a href = "<?" PHP echo $logoutAction? > "> sign out < /a > < table >"
< /tr >
< /table >
< / div >
< / div >
< div id = "NavBar" >
< nav >
< ul >
"< li > < a href="/Cars/HomeAccount.php "> home < /a > < /li >
< /ul >
< / nav >
< / div >
< div id = "Content" >
< div id = "PageHeading" >
Welcome < h1 >, <? PHP echo $row_user ["FirstName"];? > <? PHP echo $row_user ['name'];? >! < / h1 >
< / div >
< div id = "ContentLeft" >
Control Panel < h6 > < / h6 >
< p > < / p >
< ul id = "MyMainMenu" >
< li > < a href="/Cars/Account.php" > account < /a > < /li > ".
< li > < a href="/Cars/UpdateAccount.php" > update account < /a > < /li > ".
< li > < a href="/Cars/CarManagment.php" > car management < /a > < /li > ".
< /ul >
< / div >
< div id = "ContentRight" >
< table border = "1" align = "center" >
< b >
CarBrand < td > < table >
CarModel < td > < table >
YearOfProduction < td > < table >
< /tr >
<? PHP {? >}
< b >
< td > <? PHP echo $row_cars ["CarBrand'];? > < table >
< td > <? PHP echo $row_cars ["CarModel'];? > < table >
< td > <? PHP echo $row_cars ["YearOfProduction"];? > < table >
< /tr >
<? PHP} while ($row_cars = mysql_fetch_assoc ($cars));? >
< /table >
< / div >
< / div >
< div id = "Footer" > < / div >
< / div >
< / body >
< / html >
<? PHP
mysql_free_result ($CARS);
mysql_free_result ($User);
? >
Thank you for your time!
Nowhere on this page I see that you have found the "UserID" variable that is used to query the database of cars everywhere.
You must get that table "user" when a successful connection occurred.
Go to your login page and find the code which queries the database (it will look something like the below, your request will be slightly different)
$LoginRS__query = sprintf ("SELECT username, password loginUsers WHERE username = %s AND password is %s",
MAKE SURE YOU add to THE QUERY "UserID" (see below.) This is the column of your 'user' table and the foreign key record unique identifier in your table 'cars')
$LoginRS__query = sprintf ("SELECT UserID, username, password AND password loginUsers WHERE username = %s is %s",
Then, find the lines of code below:
$LoginRS = mysql_query ($LoginRS__query, $MyConnection) or die (mysql_error ());
$loginFoundUser = mysql_num_rows ($LoginRS);
Include these two lines of code directly after the above code:
$row = mysql_fetch_assoc ($LoginRS);
$UserID = $row ['UserID']
Can find these lines of code:
If {($loginFoundUser)
$loginStrGroup = "";
Declare two session variables and assign them
$_SESSION ['MM_Username"] = $loginUsername;
$_SESSION ["MM_UserGroup"] = $loginStrGroup;
Add this line of code directly after the above code:
$_SESSION ['username'] = $UserID;
Now, go to the login page of success (whatever you call that)
Find the code at the top of the page below:
If (! isset {})
session_start();
}
Add the line of code below:
If (! isset {})
session_start();
$userID = $_SESSION ['username'];
}
Look for the query:
@mysql_select_db ($database_MyConnection, $MyConnection);
$query_cars = sprintf ("" SELECT * FROM cars WHERE UserID = %s ", GetSQLValueString ($colname_cars,"int")");
$query_limit_cars = sprintf ("%s LIMIT %d, %d", $query_cars, $startRow_cars, $maxRows_cars);
$cars = mysql_query ($query_limit_cars, $MyConnection) or die (mysql_error ());
$row_cars = mysql_fetch_assoc ($cars);
and replace with:
@mysql_select_db ($database_MyConnection, $MyConnection);
$query_query_cars = "SELECT * FROM cars WHERE userID ="$userID "";
$query_cars = mysql_query ($query_query_cars, $MyConnection) or die (mysql_error ());
$row_query_cars = mysql_fetch_assoc ($query_cars);
$totalRows_query_cars = mysql_num_rows ($query_cars);
Now, you can pass the details of the car associated with the user ID in the 'user' table and a foreign key in the table "cars."
You probably want to use a / while loop to get all the information from the database. With a DW repeat region behavior.
-
Table of Cluster size cluster controller?
I often use the table VI of Cluster to change quickly to a data table in a cluster of data I can then connect to a waveform graph. Sometimes, the number of parcels can be different which translates (full of zeros) additional plots on the chart, or missing parcels if the array is larger than the current cluster size. I know that I can right-click on the node and manually set the size of cluster (up to 256). I could also use a structure dealing with several table of Cluster nodes that I need, set them individually and a table of wire to the switch structure size case but this is the kind of a PITA.
My question is if someone knows a way to control the size of cluster programmatically value. It seems that if I do a right click and do it manually there must be a way to automate it, but I of course can't understand. Would be nice if you can just wire your right desired value in an optional entry on the node itself. Any ideas would be very appreciated.
I feel that it is impossible. See this idea of related discussion.
-
Hello
I use a table of cluster to allow the incoming user in different
But in some cases, I want to adjust the display to hide certain parameters or displaying 0 or a null field
My problem is when you create a ref on the control in the list how to know wich line aims to change the right
here an example vi
When the case 1 is the first column sΘlectionnΘe another ctl may include choice
When case 2 is selected, I would the mofify two others at 0 and no
y at - he saw another way to play with and the size of the items about which line is the current?
Concerning
Tinnitus
I was able to simplify this VI to the point where I can post the code to demonstrate the idea. Here it is in 8.6 and 9 (he seems to have lost some fonts, formatting when recording to 8.6). I have not used XControls but it seems that the kind of thing that could be converted into one easily if I had the time and means.
-
AF:dynamic table Concept
Scenario is,
The Image above is of form 6i, which I am to convert ADF file.
You can see above, there are two attributes of no and no contract Plan, both are LOVs. they are cascade LOVs. Plan of LOV values depends on the value of selected LOV contract. A single contract can have multiple Plans. and a plan can have many more details.
When the user select A contract North, then Plan No. After this detail table fills with data of this Plan. as I said a contract can have a lot of Plans, when the user returned to Plan LOV and select other lines of this plan a plan then detail fills too, but this does not remove the previous lines of populated areas. This means selecting a plan add up rows in detail.
How can I accomplish this? Is dynamic table suitable?
J Dev Version: 11.1.2.4
Are saying you that you need to recover a table based on the selection of data Plan and have the data be inserted into another table when recording?
If Yes, you can view the lines feature the EO according to VO. Once you select a Plan, run the readonly VO and insert lines in the EO based VO dynamically.
-
How to add a dynamic table in DW CC?
I'm relatively new to DW. I am trying to set up a database where I can enter an area code and returns an array with the associated data (diseases in this area, for example). I need a dynamic table for this, but DW CC does not have an object dynamic link in the "Insert" menu Any help? I am running on a Mac
- Click on the button "+" on the databases tab and create a database connection
- Under the links tab, create a recordset object
- In Design view, create a table
- Drag the names of the fields in the Bindings tab in a table cell
- At the bottom of the view Design make sure that 'table' is highlighted
- In the server behaviors tab, click the plus sign and the repeating region
- Click OK, save your work, and you have finished creating your first dynamic table.
-
How to identify the last instance of a dynamic table row
Hi all
I'm trying to figure out how to create an action for my form in Livecycle Designer ES2, which will affect the last instance of a dynamic table row. I have a table with a repeatable row where the user will enter information about a part purchased and I have buttons that allow the user to add and remove the lines. I need to create a line extra addition button which will add a new instance of the repeatable table line (this is not a problem) and disable and change the background color of the first cell in the row added. The problem I have is how to have an action that affects the last instance of a line.
If anyone knows how to do this in Javascript, I would appreciate some advice/help.
Hello
I think that it is beyond providing an action. You will have a need to write JavaScript directly. When you call the addInstance method it returns the new line, if you can do something like;
var line = Table1._Row1.addInstance ();
line. TextField1.border.fill.color.value = "255,0,0";
line. TextField1.access = 'protected ';
To find the last line and do the same thing, you can do something like;
var line = Table1.resolveNode ("Row1 [" + (Table1._Row1.count - 1) + "" "]" ");
line. TextField1.border.fill.color.value = "255,0,0";
line. TextField1.access = 'protected ';
Concerning
Bruce
-
Data does not save in the dynamic table
My form has been active player and all the information can be recorded with the exception of the data entered by the user in the dynamic table.
Should I change the binding of data?
https://Acrobat.com/#d=SWkT2mrJBJbxk * QJGmN0Ng
Appreciate any help!
Tracy
Hello
OK, I found the root of all evil.
To resolve this problem, you need to replace the script that caculates the dates in the dynamic table by another.
Go to table calculate a remove the event script.
Then, select the Date field in the first row of the table and add this script to its change event.
var StartDate = $event.newText var DateFormat = "MM/DD/YY" if (StartDate ne $event.prevText) then var selectedDate = Date2Num(StartDate, DateFormat) var selectedDay = Num2Date(selectedDate, "DD") var selectedMonth = Num2Date(selectedDate, "MM") var selectedYear = Num2Date(selectedDate, "YY") var firstDay = Date2Num(Concat(selectedMonth, "/", "01/", selectedYear), DateFormat) var lastDay = 0 var dayNumber = firstDay $event.change = Num2Date(firstDay, DateFormat) for i = 0 upto 30 step 1 do if (Num2Date(firstDay, "MM") eq Num2Date(dayNumber, "MM")) then dayNumber = dayNumber + 1 lastDay = dayNumber Table._Row.addInstance(1) Table.Row[i].Date = Num2Date(dayNumber - 1, DateFormat) Table.Row[i].Day = Num2Date(dayNumber - 1, "EEE") endif endfor Table._Row.removeInstance(Table._Row.count - 1) endif
-
Dynamic table not displaying not data
First of all, I have searched high and low and have not been able to find a lot of help.
That said, I tried to create a simple search/results page in Dream Weaver, I'm using ASP and sql express. Ive been following the adobe tutorial and everything works like it says it should be, except that when in reality, you do a search and click on submit, the results page shows that dynamic table headers, but no data.
On the results page, when I create the Recordset, if I am controlled, the data is displayed correctly. However, on the page itself, nothing shows upward.
Here are some example screenshots:
You populate your variable with the value of querystring:
Request.QueryString ("frmUserSearch"). Is the name of the shape, not the form with the user name field.
Your form field's "name ="username"
Replace all references in your 'frmUserSearch' script 'username '.
-
Number of item in the dynamic Table Quirk
I am a new user of LC, ramping up the speed on this package, thanks to all for the useful information here and elsewhere.
By using the tips and info here,
http://www.assuredynamics.com/wp-content/uploads/2010/11/assure-Dynamics-building-dynamic-tables.PDF
I added a dynamic array of a form, I've worked on that. Mostly, everything works, except the legend on the number of line/article. So I yanked on the subform with the table top to create a single copy of the form to post here. Get this... it works on the simple form. So there is something to do in my not so simple form which prevents my line/workstation number.
I hope if I post here the two forms, can someone help me solve this thing.
It's the form that works:
http://inthequeue.com/adobeLC/Template_excerpt.PDF
It's the shape that doesn't work:
http://inthequeue.com/adobeLC/Template_std.PDF
Thanks in advance
John Q.
Hi John,.
Try to change the code in the layout event: ready to go;
This.Caption.Value.Text = (this.parent.index + 1) m:System.NET.SocketAddress.ToString ();
TO;
This.Caption.Value.Text.Value = (this.parent.index + 1) m:System.NET.SocketAddress.ToString ();
It's adding another "value".
Your form that works target Reader 8.0 or later and who only targets Reader 9.0 or later, I guess that's the difference.
Concerning
Bruce
-
dynamic table overlap other objects!
Hello world
I created a dynamic table with button to add a line
Please can someone tell me how to avoid the overlapping of dynamic array objects below when several lines are created?
what I wish is that the table bumps everything on its way like MSWord packaging option
Please provide a flash tutorial if you can train a lot of people ask this topic
Hello
Use fluid page layout to avoid overlapping of table on other objects. This fluid layout must be set on the container parent (form/subform) of the table. Put also other objects in the same container. It results in dynamic container resizing, whenever the new row is added.
Thank you.
-
Afonso
-
xfa.host.gotoURL () in Adobe Reader / dynamic Tables to AcroForms?
Hi all
I have a dynamic array in my form of life cycle. Each row in the table contains a button that connects to an external PDF file (using xfa.host.gotoURL). The links work fine in Acrobat Pro 8, so far, so good... But when you click on the buttons in Reader 8, nothing happens. No error message or a security warning, nothing...
I searched on the web and some forums for this problem and read between the lines of some posts, I came to guess that my lifecycle of the form will not work in Adobe Reader unless I have purchase the license of life cycle of the respective Extensions... :-/
What exactly are my options now? I cannot get the buttons to work in Adobe Reader somehow (using JS) without having to buy the Reader Extensions? Or can I somehow to recreate the dynamic table of the form of the lifecycle using AcroForms in Acrobat 8 Pro to avoid the problem I have? If so, how can I add such a table using Acrobat form... Tools?
Thanks for your help,
MarcusYou can use:
app.openDoc (FilePath.rawValue);
to open another form of Adobe.
-
Dynamic table returns only a line
Hello world
I try to use a Recordset:
"SOME concerts. EventDate, concerts. Location, concerts. Notes
CONCERTS
WHERE the concerts. "EventDate > = CURRENT_DATE.
When I test the Recordset, I get 3 of the 5 records returned, which is exactly as it should.
However, when I try to create a dynamic table to display the results - if I choose to show all records, or the default of 10 at a time, it shows the first line results from the Recordset.
When I try to create a master-detail table and ask him to show one record at a time, it's there for that, but using the next/back navigation links, it takes me to other records, though one at a time. That tells me that he doesn't know that there should be three records, but it only shows one.
What am I doing wrong with the dynamic table, here?
Thank you!
I suggest that you start the page completely from scratch, because it seems that you made the rookie mistake classic to remove a dynamic object in Design view without realizing that any other PHP code is connected with it. When you work with dynamic objects, keep an eye on what is listed in the server behaviors panel. To remove a server behavior, select the referencing in the Panel and click the button "-" to remove it properly.
In fact, you have two sets of records on the same page, that do the same thing. One is called to come, the other is called UpcomingShows. You get only a line showing in your table is because you use the recordset "to come". The Dreamweaver recordset code automatically retrieves the first record and then uses a do... while loop to create the region repeated in the table. What has happened is that your changes to the page have resulted in this line who appear before the repeat region:
mysql_free_result($upcoming);
This destroys the rest of the result of database before using it again. Therefore, only trace never appears.
Dreamweaver always puts mysql_free_result() after the closing tag. Thus, it seems that your changes caused Dreamweaver to lose track of all the relevant parts of the server behavior. If you move this line to the bottom of the page, your table should work. However, as I said before, I think that it is better to start from scratch.
One last thing: your SQL query contains the following WHERE clause:
WHERE gigs.EventDate >= CURRENT_DATE
It is an incorrect syntax for MySQL. It should be like this:
WHERE gigs.EventDate >= CURRENT_DATE()
CURRENT_DATE() is a MySQL function, not a constant.
If all goes well, a little less head banging.
-
Alternatives to the dynamic tables for the display of dynamic data
What methods are available for the display of the data to MySQL with PHP on a web page? Is there an alternative to a dynamic table when him varies the amount of data? whatever it is the basis of CSS?
Thank you very muchMay 27, 2006 to macromedia.dreamweaver, mother of Pingus wrote:
> if I could just output a div for example?
Or a paragraph, or a
, an unordered list, or any other container
Tag, or the attribute src on a tag, or a combination any of the
above. Consider the case where the database includes press releases-
date, title, body. You might, say, do the repeat as this region:Press releases
<& headlinefromdatabase="" &="">&>
<& datefromdatabase="" &="">-<& bodyfromdatabase="" &="">
Contact Information
--
&>&>
Joe Makowiec
http://Makowiec.NET/
E-mail: http://makowiec.net/email.php -
Problem with the name of the dynamic Table
Hi all
I can't using a dynamic table name. I have the following code...
When I try to execute it I get an errordeclare l_cur sys_refcursor; l_ID int; l_tableName varchar(30); BEGIN open l_cur for select hkc.ColumnID, mapping from &HKAPPDB_Schema_Name..doctablemapping ddm inner join &HKDB_Schema_Name..HKColumns hkc on hkc.doctablemappingid = ddm.id where ddm.id > 0; LOOP FETCH l_cur into l_ID, l_tableName; EXIT WHEN l_cur%notfound; -- update missing VerbID in DocumentDocMapping table UPDATE &HKAPPDB_Schema_Name..IndexedDocument SET VerbID = (SELECT t.VerbID FROM (SELECT DocRef, VerbID, DateUpdated FROM &HKAPPDB_Schema_Name..l_tableName dd - this is where the dynamic table name is used WHERE dd.VerbID is not NULL)) WHERE HKColumnID = l_ID AND VerbID is NULL; END loop; end; /
ORA-00942: table or view does not exist
What I am doing wrong?
Kind regards
TobyYou cannot use a variable instead of a table name. You must build the dynamic SQL. Search for IMMEDIATE EXECUTION or DBMS_SQL in Document Oracle.
Maybe you are looking for
-
Is Thatcher email Thunderbird for Android?
-
I did a writing style that I need is no longer can not work out how to remove it
-
How to remove a group of contacts iCloud
Hello I have one child (sharing family) with an iPad and an iPhone who, for some reason, sharing all my contacts. How to remove a group/folder of its aircraft within the section iCloud "Groups" under "Contacts"? Thanks much for any help! Brad
-
Selection of Inspection based on the attributes of the image
I'm processing the stored images and must choose an inspection based on attributes of the image as the name and the size (length in pixels). Currently, I do all this in only one inspection, but since I'm inspecting several product families (different
-
Windows Mail doesn't connect keeps security in. Center ask username and password and when correctli entered, he appears to back up again. problem started after the updates.