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.
Tags: Java
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.
-
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.
-
Dynamic table with random records
What I'm trying to do is to select random records from a table and display them in a dynamic table with columns maximum equal to 3 and the 4th record to be on a new line. Here is what I have at the moment and he strives to select random records, but has no function to define the columns of a table. If there is a easier way feel free to let me know. I tried different ways to do it, but none seem not to work.
< CFQUERY NAME = "getItems" DATASOURCE = "absi" >
SELECT catfit.*, modcats.*, prodmat.*, prod.* FROM catfit, modcats,.
prodmat, prod WHERE prodmat.prodid = catfit.prodid and catfit.catid is modcats.catid
ORDER BY ASC modl < / cfquery >
< cfif getItems.recordCount >
< cfset showNum = 3 >
< cfif showNum gt getItems.recordCount >
< cfset showNum = getItems.recordCount >
< / cfif >
< cfset itemList = "" > "".
< cfloop to = "#getItems.recordCount # '1' = ' index 'i' = >"
< cfset itemList = ListAppend (itemList, i) >
< / cfloop >
< cfset randomItems = "" > "".
< cfset itemCount = ListLen (itemList) >
< cfloop from = "1" = "" #itemCount # "index 'i' = >"
< cfset random = ListGetAt (itemList, plageAleatoire (1, itemCount)) >
< cfset randomItems = ListAppend (randomItems, random) >
< cfset itemList = ListDeleteAt (itemList ListFind (itemList, randomly)) >
< cfset itemCount = ListLen (itemList) >
< / cfloop >
< cfloop from = "1" = "" #showNum # "index 'i' = >"
< cfoutput >
< table width = "205" border = "0" align = "left" cellpadding = "0" cellspacing = "0" >
< b >
' (< td largeur = «235» height = «116» >< div align = «center» >< img src =»... /Products/ProductPictures/#GetItems.pic[ListGetAt(randomItems, i)] # "width ="100"> < / div > < table >
< /tr >
< b >
< class td = "ProdTitle" > #getitems.brand [ListGetAt (randomItems,
(i)] # #getitems.modl [ListGetAt (randomItems, i)] # < table >
< /tr >
< b >
< class td 'paragraph' = > $# getitems.prc [ListGetAt (randomItems,
(i)] # < table >
< /tr >
< b >
"< td > < A href =".. /Products/details.cfm? ' ProdID = #GetItems.ProdID [ListGetAt (randomItems, i)] # "class ="linkcontact"> more
Info < /a > < table >
< /tr >
< b >
< td > < table >
< /tr >
< /table >
< / cfoutput >
< / cfloop >
< / cfif >To start a new line after 3 disks, do something like this.
#data #.
You should also know that your approach is very inefficient in what you bring to cold fusion more data that you need. First you select all fields from 3 tables when you don't seem to use all the. Then, you select all the records and you only want to use 3. There are better ways out there, but they are specific db and you didn't say what you use.
-
How to view the last element in a dynamic table 1 d
Hello..
I want to display the value of the last element in a dynamic array 1 d... / I mean... If I stop the vi race, I need to display the last element of the array... How can I do this?
and is it possible to use a button to start the vi... instead of using the Run button on the face before of the vi?
An array of index!. Size of table allows to determine the size of your array, subtract 1, that feed into the terminal array of Index index.
You start the VI running somehow. It can be assigned to run when opening. Assuming that what you want is a way to type values in a front panel, press a GO button you created on the front panel, then have the real part of the VI to run. You can use a structure of the event. Or put a while loop at the beginning with a small wait next statement which basically just asks the GO button. When you press this button, the Boolean value true stops the whole loop and allows the program to move on the main body of your program.
-
Full screen of a (dynamic) table
Hello.
I need to automatically display all the values of an array.
For example: consider the following table:
After running, I have a matrix of 5 x 5, but because of the default options of tables, all that I can see is the first element (Array [0] [0])
at least I have intentionally extend to 5 X 5.In addition, table should normally be dynamic (here I did static with 5 x 5 loops, for illustration); so if the number of lines increase, I have to extend a second time to display the full picture.
In order to follow-up, how can I do this automatic?
Thank you in advance.
AlainKabs wrote:
Thank you all for all the contributions.
Now, things get more complicated.
Thanks to your responses, I am now able to display my table in its entirety; but when I bring my table with something else (here), the display does not apply within the cluster of result.
...
That's because in your code, you set the properties of indicators to display sizes, but then you provided the data of indicators in a cluster and put this in a new indicator. You must define the properties of this new cluster indicator now to display the size you want.
You can use the Controls property of the cluster indicator [] to get references to all of the controls in the cluster, and then set their properties NumRows and NumCols appropriate.
Maybe you are looking for
-
FPGA programming depends on the time
I think my problem is simple, but I need help... In an FPGA VI, I acquire an entry and compare it to a control (if the input is greater than the order, the contiues code with an error response). What I want to do is to add a condition of time. I want
-
OfficeJet 6700 cut my scan when sending to the Cougar 10.8
I just got a new mac with mountain lion 10.8 and when scanning the glass my scanner (or mac) cut the scan into small pieces and many scans. any suggestions?
-
I was in the middle of the download to a cd in Itunes and tube of ejection by mistake. Now, it will not download anything.
-
Unable to print double-sided on Win 7. 'Install' duplex unit is not available
Printer Photosmart C6280. System Win 7 64 bit Ultimate Duplex printing worked great on Windows XP. Bought a new computer, Win 7 and installed the drivers and software on HP website. So far I can only do manual duplex printing. I tried following the s
-
Why libraries folder opens at startup?
Why libraries folder opens at startup? I don't want this opening folder at startup. So please help and give me a solution to my problem.