Seeking script generator
I'm looking for an XML script generator using an editor. I'd like to present input fields for XML attributes and values, with a title, without any XML decorations. Basically I'd like to provide a template for presentation of user input fields coupled with a template for generating an XML script from user inputs. I'm new to XML. Is there anything like this out there or do I have to build it?
thanks
art
Well yeh, I've looked at some of them briefly Remembering I'm a novice, what I'm look for is a customizable tool which will display attributes and values on the screen with my custom layout. I'm starting to look at Stylus Studio and they mention using an XSLT Style Sheet, and I will be looking at that now. I'd rather not spend much of the rest of my short life reading documents, they begin to get overwhelming. What I was hoping for was a visual construction tool (as in the swing tools or in Microsoft's Visual Sturdio) or a way of tailoring the displays so that unneeded output is removed.
Any ideas? Most particularly, anything in the open software marketplace?
art
Similar Messages
-
Confusion over DBCA script generated for manual RAC DB creation
Version:11.2.0.4/RHEL 6.3
We would like to create our 3-node RAC DB manually. DBCA cannot meet our requirement because our redo log files, datafiles, tempfiles and control files are placed in a complicated manner . If we use DBCA , we will have to spend a lot of time configuring to our requirements after the DB creation.
I generated the DB creation scripts from DBCA (DB Name = BRCFPRD )
DBCA placed the db creation scripts in the specified directory in all the 3 nodes !!
They all have almost the same contents . The only difference being the instance name (BRCFPRD12.sql for Node2, ... etc).
Scripts in each node have the createDB.sql statement which has CREATE DATABASE "BRCFPRD" statement. Why is this ? The database need to be created only from one node. Then why did DBCA place createDB.sql in all nodes ?
I just want to run the script from just one node , say Node1 and it should create the 3-Node RAC DB. How can I do this manually?
-- The scripts genereated by DBCA in Node1
apex.sql
BRCFPRD1.sh
BRCFPRD1.sql
context.sql
CreateClustDBViews.sql
CreateDB.sql
CreateDBCatalog.sql
CreateDBFiles.sql
cwmlite.sql
emRepository.sql
init.ora
interMedia.sql
JServer.sql
lockAccount.sql
ordinst.sql
owb.sql
postDBCreation.sql
spatial.sql
xdb_protocol.sql
-- The contents of the main shell script BRCFPRD1.sh
$ cat BRCFPRD1.sh
#!/bin/sh
OLD_UMASK=`umask`
umask 0027
mkdir -p /optware/product/admin/BRCFPRD/adump
mkdir -p /optware/product/admin/BRCFPRD/dpdump
mkdir -p /optware/product/admin/BRCFPRD/hdump
mkdir -p /optware/product/admin/BRCFPRD/pfile
mkdir -p /optware/product/cfgtoollogs/dbca/BRCFPRD
umask ${OLD_UMASK}
ORACLE_SID=BRCFPRD1; export ORACLE_SID
PATH=$ORACLE_HOME/bin:$PATH; export PATH
echo You should Add this entry in the /etc/oratab: BRCFPRD:/optware/product/oracle/11.2.0:Y
/optware/product/oracle/11.2.0/bin/sqlplus /nolog @/optware/product/BRCFPRD1.sql
-- Contents of BRCFSPRD1.sql
$ cat BRCFPRD1.sql
set verify off
ACCEPT sysPassword CHAR PROMPT 'Enter new password for SYS: ' HIDE
ACCEPT systemPassword CHAR PROMPT 'Enter new password for SYSTEM: ' HIDE
ACCEPT sysmanPassword CHAR PROMPT 'Enter new password for SYSMAN: ' HIDE
ACCEPT dbsnmpPassword CHAR PROMPT 'Enter new password for DBSNMP: ' HIDE
host /optware/product/oracle/11.2.0/bin/orapwd file=/optware/product/oracle/11.2.0/dbs/orapwBRCFPRD1 force=y
host /grid/product/11.2.0/bin/setasmgidwrap o=/optware/product/oracle/11.2.0/bin/oracle
host /optware/product/oracle/11.2.0/bin/srvctl add database -d BRCFPRD -o /optware/product/oracle/11.2.0 -p +DATA/BRCFPRD/spfileBRCFPRD.ora -n BRCFPRD -a "DATA,ARCH_DG"
host /optware/product/oracle/11.2.0/bin/srvctl add instance -d BRCFPRD -i BRCFPRD1 -n cimprd175
host /optware/product/oracle/11.2.0/bin/srvctl add instance -d BRCFPRD -i BRCFPRD3 -n cimprd177
host /optware/product/oracle/11.2.0/bin/srvctl add instance -d BRCFPRD -i BRCFPRD2 -n cimprd176
host /optware/product/oracle/11.2.0/bin/srvctl disable database -d BRCFPRD
@/optware/product/CreateDB.sql
@/optware/product/CreateDBFiles.sql
@/optware/product/CreateDBCatalog.sql
@/optware/product/JServer.sql
@/optware/product/context.sql
@/optware/product/xdb_protocol.sql
@/optware/product/ordinst.sql
@/optware/product/interMedia.sql
@/optware/product/cwmlite.sql
@/optware/product/spatial.sql
@/optware/product/emRepository.sql
@/optware/product/apex.sql
@/optware/product/owb.sql
@/optware/product/CreateClustDBViews.sql
host echo "SPFILE='+DATA/BRCFPRD/spfileBRCFPRD.ora'" > /optware/product/oracle/11.2.0/dbs/initBRCFPRD1.ora
@/optware/product/lockAccount.sql
@/optware/product/postDBCreation.sql
-- Contents of CreateDB.sql in Node1
$ cat /optware/product/CreateDB.sql
SET VERIFY OFF
connect "SYS"/"&&sysPassword" as SYSDBA
set echo on
spool /optware/product/CreateDB.log append
startup nomount pfile="/optware/product/init.ora";
CREATE DATABASE "BRCFPRD"
MAXINSTANCES 32
MAXLOGHISTORY 1
MAXLOGFILES 192
MAXLOGMEMBERS 3
MAXDATAFILES 3000
DATAFILE SIZE 700M AUTOEXTEND ON NEXT 10240K MAXSIZE UNLIMITED
EXTENT MANAGEMENT LOCAL
SYSAUX DATAFILE SIZE 600M AUTOEXTEND ON NEXT 10240K MAXSIZE UNLIMITED
SMALLFILE DEFAULT TEMPORARY TABLESPACE TEMP TEMPFILE SIZE 20M AUTOEXTEND ON NEXT 640K MAXSIZE UNLIMITED
SMALLFILE UNDO TABLESPACE "UNDOTBS1" DATAFILE SIZE 200M AUTOEXTEND ON NEXT 5120K MAXSIZE UNLIMITED
CHARACTER SET AL32UTF8
NATIONAL CHARACTER SET AL16UTF16
LOGFILE GROUP 1 SIZE 28672M,
GROUP 2 SIZE 28672M
USER SYS IDENTIFIED BY "&&sysPassword" USER SYSTEM IDENTIFIED BY "&&systemPassword";
set linesize 2048;
column ctl_files NEW_VALUE ctl_files;
select concat('control_files=''', concat(replace(value, ', ', ''','''), '''')) ctl_files from v$parameter where name ='control_files';
host echo &ctl_files >>/optware/product/init.ora;
spool offIf you look at scripts generated in Node2 and Node3 , you can see all scripts except the instance specific ones are commented using REM .
REM host /u01/product/oracle/11.2.0.3/dbhome_1/bin/srvctl add instance -d STOMPER -i STOMPER1 -n ugxtlprd186
REM host /u01/product/oracle/11.2.0.3/dbhome_1/bin/srvctl add instance -d STOMPER -i STOMPER2 -n ugxtlprd187
REM host /u01/product/oracle/11.2.0.3/dbhome_1/bin/srvctl disable database -d STOMPER
REM @/u01/product/CreateDB.sql
REM @/u01/product/CreateDBFiles.sql
REM @/u01/product/CreateDBCatalog.sql
REM @/u01/product/JServer.sql
REM @/u01/product/context.sql
<snipped > -
Any body has any idea where i can download the WLST Script Generator?
It used to be under codesamples of BEA where it is no longer available after the oracle aquisition of bea.
the name of the jar file is: wlstScriptGenerator.jar for WLS 9.x and 10.xThe number '1129323703654' is a stringified time stamp. If you convert that number to a date you will get,
from java.util import Date
d = Date(1129323703654L)
print d
Fri Oct 14 17:01:43 EDT 2005
Right now there is no way to control the names, the script generator uses the stringified timestamp for each script that it creates (to make the script names unique).
Thanks,
-satya
BEA Blog: http://dev2dev.bea.com/blog/sghattu/ -
Cannot save script generated web page
I found that safari cannot save a script generated page by (File -> Save as). I've written a simple test page as follow:
<html>
<body>
<script>
function OpenPopUpWin()
var generator=window.open('','save_win', 'width=645,height=600,resizable=yes,menubar=yes,toolbar=no,directories=no,locat ion=no,scrollbars=yes,status=yes');
generator.document.write('testing');
generator.document.close();
</script>
test (<-this link call the OpenPopUpWin() function)<br>
</body>
</html>
Does anyone have similar problem before? Is it a bug in safari? Are there any workarounds if I want to save the page?I guess I'm still not understanding your problem. I took your original script, made the one change as mentioned in my earlier post, and it worked.
It's quite likely/possible that Apple filter javascript embedded in posts - all sorts of nasty things could happen if they didn't, but you're not using Safaro to create your pages, are you?
Just as an example, this seems to do what you describe - copy and paste it into a new text document and see what happens:
<pre class=command><html>
<body>
<script>
function OpenPopUpWin()
var generator=window.open('','save_win', 'width=645,height=600,resizable=yes,menubar=yes,toolbar=no,directories=no,locat ion=no,scrollbars=yes,status=yes');
generator.document.write('testing');
generator.document.close();
</script>
<a href="#" OnClick="OpenPopUpWin()'>test</a> (<-this link call the OpenPopUpWin() function)
</body>
</html>
</pre> -
Error in MView script generated by DBMS_ODM.CREATEFACTMV_GS
Hello,
I run the package (connected with OLAPSYS),DBMS_ODM.CREATEFACTMV_GS, in order to generate DDL script to create materialized view for a cube. When I look the script, I can't see that the quality of the code is not good, here is an example:
This has been run on the cube ANALYTIC_CUBE, that comes with BI Beans demo:
create materialized view
ANALYTIC_CUBE_4_OLAP
pctfree 5 pctused 40
parallel
build immediate
using no index
refresh force
enable query rewrite
AS
SELECT
GROUPING_ID() gid,
SUM(BIBDEMO_ANALYTIC_FACTS.COSTS) SUM_OF_COSTS,
SUM(BIBDEMO_ANALYTIC_FACTS.PROMO) SUM_OF_PROMO,
SUM(BIBDEMO_ANALYTIC_FACTS.QUOTA) SUM_OF_QUOTA,
SUM(BIBDEMO_ANALYTIC_FACTS.SALES) SUM_OF_SALES,
SUM(BIBDEMO_ANALYTIC_FACTS.UNITS) SUM_OF_UNITS,
COUNT(*) COUNT_OF_STAR,
FROM
BIBDEMO.BIBDEMO_CHANNEL BIBDEMO_CHANNEL,
BIBDEMO.BIBDEMO_GEOGRAPHY BIBDEMO_GEOGRAPHY,
BIBDEMO.BIBDEMO_PRODUCT BIBDEMO_PRODUCT,
BIBDEMO.BIBDEMO_TIME BIBDEMO_TIME,
BIBDEMO.BIBDEMO_ANALYTIC_FACTS BIBDEMO_ANALYTIC_FACTS
WHERE
(BIBDEMO_GEOGRAPHY.GEOG_STD_CITY = BIBDEMO_ANALYTIC_FACTS.GEOG_LEAVES) AND
(BIBDEMO_PRODUCT.PROD_STD_PRODUCT = BIBDEMO_ANALYTIC_FACTS.PROD_LEAVES) AND
(BIBDEMO_TIME.TIME_STD_MONTH = BIBDEMO_ANALYTIC_FACTS.TIME_LEAVES) AND
(BIBDEMO_CHANNEL.CHAN_STD_CHANNEL = BIBDEMO_ANALYTIC_FACTS.CHAN_LEAVES)
GROUP BY GROUPING SETS (
As you can see the group_id () function is wrong, because it miss the dimensions of the cube. Group by is also wrong.
I am running Oracle 9.2.0.3 on Win2000.
Any idea ?
Thanks.
Claude-AlainI downloaded this patch ,
but after execute on olapodm.pls & olapodm.plb I got an error :
Errors for PACKAGE BODY DBMS_ODM:
LINE/COL ERROR
4226/7 PL/SQL: Statement ignored
4226/21 PLS-00302: component 'HIERNAME' must be declared
Which is the problem ? -
Speeding up LabVIEW scripts generated by IMAQ Vision Builder
Hi,
I am an experienced c++ software developer, I have mainly used Microsoft's Visual Studio for development. Now, I am developing a real time application using LabView and IMAQ Vision Builder. The LabView application I developed calls a script that was generated by IMAQ vision builder...the application works, but it is too slow for the processing I need to do. In C++ I wouldn't have any trouble speeding the application up, but I am still learning how labview handles threads etc. Does anyone have any ideas?Your question is very difficult to answer. Without knowing anything about the processing you are doing, I can't suggest anything to increase the speed.
Vision Builder does not produce the most efficient code possible. It is likely that the algorithm could be improved, but this really depends on what you are doing. It is also possible that your acquisition could be what is slowing you down, especially if you are using Snap.
Perhaps if you post the code generated by Vision Builder it will be possible to help you more.
Bruce
Bruce Ammons
Ammons Engineering -
Error in SQL script generated from OWB 10.1.0.4.0 Metadata Export Bridge
Hi... maybe i´m abusing this forum .. but .. when you have questions .. you have to look for answers
I use OWB 10.1.0.4 to buid some dimensions and one cube. I validate and generate this object and the result was successful.
I made the deployment and everithing goes OK !!!.
The problem appears when i want to generate metadata over this objects. I use the option Project > Metadata > Export > Gridge and use the option "Oracle 9i OLAP" like the product where i want to transfer the metadata .. and i got the SQL script without any errors. I suppose that i take the sql script i run it into SQL*plus ... so i do it.. and i got this errors:
declare
ERROR at line 1:
ORA-06501: PL/SQL: program error
ORA-06512: at line 119
ORA-06510: PL/SQL: unhandled user-defined exception
The same error for any dimension in script..
Any help .. will be fully valued for me ..
best regards
Lisandro.But how did you identify that there are no runtime records in all_rt_audit_executions for your PL/SQL procedure?
I guess you tried to search by procedure name... (but what column you used for searching)
In my case all_rt_audit_executions and wb_rtv_audit_executions contains the same number of records, so they should be always in sync.
Oleg -
Generate-Script generates only create package not create or replace package
Hello,
I try do work with the Oracle Developer Tools for Visual Studio 2010 to include my PL/SQL-code in TFS. I have include all my PL/SQL-code in a Oracle-Projekt and check it in. Than I'm working with Visual Studio to update my packages. I open a package from the Server-Explorer, debug and compile it. When finished, I want to check in the new code. For this I call Generate Create-Script in the Server-Explorer and save the code my project. This code starts with CREATE PACKAGE ...
If I start this script on our production-system I get the error ORA-00955: Es gibt bereits ein Objekt mit diesem Namen (There is a object with this name ...). So it would be better the Create-Script would start with CREATE OR REPLACE PACKAGE .... Is there a way to do this? When not, what is the recommended workflow for coding, debugging, compiling and checking in TFS?
Thanks
PeterSame remark here...
-
Database Development, how to create a drop script generated by JDeveloper
Hi to all,
JDeveloper generates a "create script" for an offline database or a real one. But, I can not see a drop script generation for that. Is there any practical way to generate one? Or do we need to use data dictionary and write something customized?
Also, is there a way to avoid generation of the tablespace information in create script? Even though I'm disabling the tablespace information from the table definition, it gets created to the "create script" anyway. That is nice, but it degrades the portability.
Thank you for your time.Hi Susan,
1. A drop script would be a script to reverse the creation of the create script. Of course, this would be in somehow intelligent way, such as dropping constraints and foreign keys first, and then removing the tables etc. This was a feature in another product that I have abandoned before switching to Oracle JDeveloper. I'm missing this feature because : Me and my colleagues are working on one single schema, with some part is production ready and some is not and each part is assigned to different people. So, it would be nice if we could have a chance to load the creation script of the part which is under development next to the production ready part, test it, and drop only the newer(development) one without affecting production ready tables which are under production test. The database modeler is very useful, and the offline database concept is great, but I would be very happy if we had this feature too.
2. "Remember to remove the storage options from Indexes (properties - storage options)" Aaahh, that was I missing. Also, the reason I want to remove the storage options from the generation script was also related with the scenario I stated in 1. The production machine has more detailed, optimized and advanced storage properties that we can not mimic on our test/development machines.
Your answer was very useful, thank you for your time.
Caglar Toklu -
Scripts generated post deployment in OWB
Hi,
I have a query regarding the sccripts generated after deployment of any object in OWB.
When we create a map in OWB and deploy it, two scripts are generated. one is the package which physically create the mappning process in target schema. The other script is a ddl script e.g. map_name_drop.ddl.
Can you provide me an understanding why this ddl script is generated.
Many ThanksNothing specific at the moment but would like to know if its possible and to what level its possible to interact via scripts or other methods with the applications in CS6 after deployment
Can projects be opened in Captivate via script?
Can publishing settings be set for labs of captivate installs so all have a common set of custom settings?
Can projects be published via scripting? -
Developers Toolbox: MX Send Email php script generator
Hi,
I read Foundation PHP for Dreamweaver 8 (I have CS4
Dreamweaver but it’s still a good book).
In it, the author claims, that InterAKT has a product called
“MX Send Email” in the MX Kollection 3 suite of
Dreamweaver extensions, which automates the process of writing the
php script to process and send web email form data from forms
created in Dreamweaver, to the mail server. I went to their site
and it re directs to Adobe, and Adobe claims that they acquired
InterAKT a few years ago and included the above product in the
Developers Toolbox.
I downloaded the developers toolbox yesterday and for the
life of me I can’t figure out where I could find it or how it
works, it's very frustrating. Which makes me wonder if I should
plunk down an extra 300 bucks for the developers toolbox,
documentation is spotty at best – I can’t find any
books or discussion forums on the developers toolbox on how to use
this feature in the dev toolbox. No one seems to know anything
about it on the Extensions forum. Can someone give me some info
about this?
It seems to me there should be a simple way to generate some
PHP script for feedback forms created in Dreamweaver, especially
with the Developers toolkit.My other alternative is to buy a third
party extension to generate the scripts for 30 bucks, but if the
toolkit has it somewhere, where is the documentation or tutorial on
the adobe web site (which I dug for almost all day yesterday?
The Dev Toolkit has an option to insert a Captcha image so I
assume it's possible to do that too...
Or, Are there any on line tutorials which instruct on how to
create an email "Contact Us" form with Dreamweaver 4, which
includes info on writing the php script to process form data and
send it to mail server? If so can anyone direct me to it? Adobe has
one for Dreamweaver CS 3 on their site - but even that section of
the adobe site is not updated for CS4 and the tutorial even claims
that the Developers toolbox is not yet compatible with DW CS4 yet,
which contradicts the system requirements for the Dev Toolbox when
one downloads it.Mr. Powers,
Thanks for the info! BTW I really enjoyed reading your book a
few years ago, it really helped me to learn Dreamweaver back then.
I’m quite rusty now and trying to get back up to speed after
not using it for a few years. Sorry to hear about the ADDT thingy.
Thanks for the thread DWFAQ.info, I bookmarked the threads
and will read them over the weekend. Thanks for the Dreamweaver
Developer Toolbox link too! I had no idea that there was a Dev
toolbox forum I was looking for it on the adobe site for two days,
now I just noticed it has been included on the main index page, I
don’t think it was posted there yesterday but maybe I missed
it.
Does anyone know if there are any books possibly in the works
or being planned for the toolbox?
Also I’m kind of curious now, are the mixed feelings
about the toolbox because it (appears but I’m no expert), to
be a bit less user friendly for the average web designer? Either
that or just not enough documentation yet?
I had never heard about the toolbox until I bought my CS4
suite a few weeks ago. From above -
quote:
"what has now become Adobe Dreamweaver Developer Toolbox"
- what
was the toolbox? Is the toolbox the former InterAKT suite or
extensions? Or was it a mix of theirs and/or other extension
authors stuff? Did adobe buy up a few companies and add their own
stuff to it and market it as the toolbox?
When was the toolbox first released? Recently? Did Adobe
create it out of the merger with InterAkt? I’ve been out of
the web design loop for a few years, just trying to catch up on
what’s been going on lately. -
COMMAND TO EXECUTE SCRIPT GENERATED BY OWB TO EXPORT METADATA
Sorry but I'm trying to execute the script to export metadata to OLAP like is descripbed in the Oracle Warehouse Builder User's Guide, but it doesn't function it give the usege:
TARGET is the schema where is data:
sqlplus OLAPDBA/[email protected] TARGET
Usage: SQLPLUS [ [<option>] [<logon>] [<start>] ]
where <option> ::= -H | -V | [ [-C <v>] [-L] [-M <o>] [-R <n>] [-S] ]
<logon> ::= <username>[<password>][@<connect_identifier>] | / | /NOLOG
<start> ::= @<URL>|<filename>[.<ext>] [<parameter> ...]
"-H" displays the SQL*Plus version banner and usage syntax
"-V" displays the SQL*Plus version banner
"-C" sets SQL*Plus compatibility version <v>
"-L" attempts log on just once
"-M <o>" uses HTML markup options <o>
"-R <n>" uses restricted mode <n>
"-S" uses silent mode
Thanks in advance.Simth,
Since you use the OWB framework, you would deploy the generated script using the deployment manager and then you can execute using the deployment manager also.
Please refer to the quick guide:
http://otn.oracle.com/products/warehouse/pdf/92QuickStartGuide.pdf
You also may want to check out the deployment and execution section of the user's guide:
http://otn.oracle.com/documentation/warehouse.html
Thanks,
Mark. -
Help downgrade a php script generated by FB back to the old Mysql way
hey all
i am a Flex developer who has written server side stuff with php scripts that were auto-generated by Flash Builder. These scripts use the Mysqli extention, which is not avilable on my shared hosting server. These scripts implement simple CRUD functions to a MySql database. Anyone who has used the data wizard will recognize these scripts.
Just before i pay more bucks and move to a VPS server in order to enable Mysqli, is there anyone out there who can help me translate this script BACK to the old mysql way?
much appriciated, Saar
<?php
class ClientService {
var $username = "******";
var $password = "******";
var $server = "localhost";
var $port = "3306";
var $databasename = "rtdbcbx_saar";
var $tablename = "clients";
var $connection;
* The constructor initializes the connection to database. Everytime a request is
* received by Zend AMF, an instance of the service class is created and then the
* requested method is invoked.
public function __construct() {
$this->connection = mysqli_connect(
$this->server,
$this->username,
$this->password,
$this->databasename,
$this->port
$this->throwExceptionOnError($this->connection);
* Returns all the rows from the table.
* Add authroization or any logical checks for secure access to your data
* @return array
public function getAllClient() {
$stmt = mysqli_prepare($this->connection, "SELECT * FROM $this->tablename");
$this->throwExceptionOnError();
mysqli_stmt_execute($stmt);
$this->throwExceptionOnError();
$rows = array();
mysqli_stmt_bind_result($stmt, $row->ClientID, $row->First, $row->Last, $row->Phone, $row->Email, $row->Chain, $row->Branch, $row->Kiosk, $row->SubmitDate);
while (mysqli_stmt_fetch($stmt)) {
$row->SubmitDate = new DateTime($row->SubmitDate);
$rows[] = $row;
$row = new stdClass();
mysqli_stmt_bind_result($stmt, $row->ClientID, $row->First, $row->Last, $row->Phone, $row->Email, $row->Chain, $row->Branch, $row->Kiosk, $row->SubmitDate);
mysqli_stmt_free_result($stmt);
mysqli_close($this->connection);
return $rows;
* Returns the item corresponding to the value specified for the primary key.
* Add authorization or any logical checks for secure access to your data
* @return stdClass
public function getClientByID($itemID) {
$stmt = mysqli_prepare($this->connection, "SELECT * FROM $this->tablename where ClientID=?");
$this->throwExceptionOnError();
mysqli_stmt_bind_param($stmt, 'i', $itemID);
$this->throwExceptionOnError();
mysqli_stmt_execute($stmt);
$this->throwExceptionOnError();
mysqli_stmt_bind_result($stmt, $row->ClientID, $row->First, $row->Last, $row->Phone, $row->Email, $row->Chain, $row->Branch, $row->Kiosk, $row->SubmitDate);
if(mysqli_stmt_fetch($stmt)) {
$row->SubmitDate = new DateTime($row->SubmitDate);
return $row;
} else {
return null;
* Returns the item corresponding to the value specified for the primary key.
* Add authorization or any logical checks for secure access to your data
* @return stdClass
public function createClient($item) {
$stmt = mysqli_prepare($this->connection, "INSERT INTO $this->tablename (First, Last, Phone, Email, Chain, Branch, Kiosk, SubmitDate) VALUES (?, ?, ?, ?, ?, ?, ?, ?)");
$this->throwExceptionOnError();
mysqli_stmt_bind_param($stmt, 'ssssssss', $item->First, $item->Last, $item->Phone, $item->Email, $item->Chain, $item->Branch, $item->Kiosk, $item->SubmitDate->toString('YYYY-MM-dd HH:mm:ss'));
$this->throwExceptionOnError();
mysqli_stmt_execute($stmt);
$this->throwExceptionOnError();
$autoid = mysqli_stmt_insert_id($stmt);
mysqli_stmt_free_result($stmt);
mysqli_close($this->connection);
return $autoid;
* Updates the passed item in the table.
* Add authorization or any logical checks for secure access to your data
* @param stdClass $item
* @return void
public function updateClient($item) {
$stmt = mysqli_prepare($this->connection, "UPDATE $this->tablename SET First=?, Last=?, Phone=?, Email=?, Chain=?, Branch=?, Kiosk=?, SubmitDate=? WHERE ClientID=?");
$this->throwExceptionOnError();
mysqli_stmt_bind_param($stmt, 'ssssssssi', $item->First, $item->Last, $item->Phone, $item->Email, $item->Chain, $item->Branch, $item->Kiosk, $item->SubmitDate->toString('YYYY-MM-dd HH:mm:ss'), $item->ClientID);
$this->throwExceptionOnError();
mysqli_stmt_execute($stmt);
$this->throwExceptionOnError();
mysqli_stmt_free_result($stmt);
mysqli_close($this->connection);
* Deletes the item corresponding to the passed primary key value from
* the table.
* Add authorization or any logical checks for secure access to your data
* @return void
public function deleteClient($itemID) {
$stmt = mysqli_prepare($this->connection, "DELETE FROM $this->tablename WHERE ClientID = ?");
$this->throwExceptionOnError();
mysqli_stmt_bind_param($stmt, 'i', $itemID);
mysqli_stmt_execute($stmt);
$this->throwExceptionOnError();
mysqli_stmt_free_result($stmt);
mysqli_close($this->connection);
* Returns the number of rows in the table.
* Add authorization or any logical checks for secure access to your data
public function count() {
$stmt = mysqli_prepare($this->connection, "SELECT COUNT(*) AS COUNT FROM $this->tablename");
$this->throwExceptionOnError();
mysqli_stmt_execute($stmt);
$this->throwExceptionOnError();
mysqli_stmt_bind_result($stmt, $rec_count);
$this->throwExceptionOnError();
mysqli_stmt_fetch($stmt);
$this->throwExceptionOnError();
mysqli_stmt_free_result($stmt);
mysqli_close($this->connection);
return $rec_count;
* Returns $numItems rows starting from the $startIndex row from the
* table.
* Add authorization or any logical checks for secure access to your data
* @return array
public function getClient_paged($startIndex, $numItems) {
$stmt = mysqli_prepare($this->connection, "SELECT * FROM $this->tablename LIMIT ?, ?");
$this->throwExceptionOnError();
mysqli_stmt_bind_param($stmt, 'ii', $startIndex, $numItems);
mysqli_stmt_execute($stmt);
$this->throwExceptionOnError();
$rows = array();
mysqli_stmt_bind_result($stmt, $row->ClientID, $row->First, $row->Last, $row->Phone, $row->Email, $row->Chain, $row->Branch, $row->Kiosk, $row->SubmitDate);
while (mysqli_stmt_fetch($stmt)) {
$row->SubmitDate = new DateTime($row->SubmitDate);
$rows[] = $row;
$row = new stdClass();
mysqli_stmt_bind_result($stmt, $row->ClientID, $row->First, $row->Last, $row->Phone, $row->Email, $row->Chain, $row->Branch, $row->Kiosk, $row->SubmitDate);
mysqli_stmt_free_result($stmt);
mysqli_close($this->connection);
return $rows;
* Utility function to throw an exception if an error occurs
* while running a mysql command.
private function throwExceptionOnError($link = null) {
if($link == null) {
$link = $this->connection;
if(mysqli_error($link)) {
$msg = mysqli_errno($link) . ": " . mysqli_error($link);
throw new Exception('MySQL Error - '. $msg);
?>hello derekmosdell, in case this question isn't related to volume of media content in firefox in particular, we probably won't be able to answer that. please refer to apple's support resources or discussion fora instead.
thank you for your understanding! -
Bug: "COMMENT ON COLUMN" script generated incorrectly
SQL developer can generate table script when select SQL tab from a Table.
I set the Tool->Preferences->Database->ObjectViewer Parameters->Uncheck "Show Schema". I expected no any schema prefix in any script, but I still got schema prefix show in "COMMENT ON COLUMN" statement.
a bug?
TaoHello Joop,
thanks for the update. I'm looking forward to the final release, then.
Best regards,
Blama -
EEM scripting generating commands
Hello,
I am trying to generate an EEM script that will send some message to all terminal lines, but I am having the next problem: I cannot get the script to use the action "send *" and to write something in the box, then to simulate the CTRL+Z keywords in order to confirm + exit.
Could someone please help me out ?
Thanks !Hey Joseph,
I am not familliar with TCL scripting so I was just trying to make a small applet, I see the guys there are using TCL scripts for this...
You think that what I am trying to make is not possible using applets ?
Thanks !
Maybe you are looking for
-
How to create the report in given format???
Hi there, My table view gets the report in this format. Unit -----Report-----Sum u1----------A---------s1 u1----------B---------s2 u2----------A---------s3 u2----------B---------s4 U3----------A---------s5 U3----------B---------s6 I need report in th
-
Problem in opening Travel expense form
Hi All, We are using standard workflow (task ID : TS20000118 )for Approve Trip,Approve Travel Request and Approve Travel Expense. User (Manager) get all the task related to travel request and travel expense in MSS through work flow. When user click o
-
10.10.2 wifi bluetooth conflict
Hello My MBPR 2014 mid 13" updated 10.10.2, but my wifi problem as before. Each time when turn on Bluetooth, wifi speed become very slow. then if i turn off bluetooth, the wifi speed back to normal. how can fix it ??? Thanks !!!
-
Use of loop node in smartforms
Hi , Can anyone explain me in detail what is the use of the loop node in smartforms. I want to repeat the two successor nodes alone until the loop ends .after the loop ends then only the third successor node should be executed.can we do this by usin
-
when FF 3.6.8 loads it loads everything except the the classic window buttons (minimize, maximize and exit ) do not appear in the top right hand corner as the normally would. it seems as though the page has been cut off or the monitor screen is to li