Input the data in to the grid without saving it to the  database

<PRE lang=jsp id=pre2 style="MARGIN-TOP: 0px" nd="109"><%@ taglib uri="/WEB-INF/tags/datagrid.tld" prefix="grd" %>
<%@ page import="java.sql.Connection" %>
<%@ page import="java.sql.DriverManager" %>
<%@ page import="java.sql.SQLException" %>
<%@ page import="com.freeware.gridtag.*" %>
<%
int intCurr = 1;
int intSortOrd = 0;
String strTmp = null;
String strSQL = null;
String strSortCol = null;
String strSortOrd = "ASC";
boolean blnSortAsc = true;
strSQL = "SELECT CLICORPORATION, CLICLIENT, CLIDESCRIPTION, " +
"CLIENABLED, CLIUPDSTAMP FROM CLIENTMASTER ";
Connection objCnn = null;
Class objDrvCls = null;
objDrvCls = Class.forName("oracle.jdbc.driver.OracleDriver");
objCnn = DriverManager.getConnection("<A class=iAs style="FONT-WEIGHT: normal; FONT-SIZE: 100%; PADDING-BOTTOM: 1px; COLOR: darkgreen; BORDER-BOTTOM: darkgreen 0.07em solid; BACKGROUND-COLOR: transparent; TEXT-DECORATION: underline" href="#" target=_blank itxtdid="3346226">jdbc</A>:oracle:thin:@Host:port:sid",
"cashincpri", "cashincpri");
if (objDrvCls != null) objDrvCls = null;
strTmp = request.getParameter("txtCurr");
try
if (strTmp != null)
intCurr = Integer.parseInt(strTmp);
catch (NumberFormatException NFEx)
strSortCol = request.getParameter("txtSortCol");
strSortOrd = request.getParameter("txtSortAsc");
if (strSortCol == null) strSortCol = "CLICLIENT";
if (strSortOrd == null) strSortOrd = "ASC";
blnSortAsc = (strSortOrd.equals("ASC"));
%>
<html>
<head>
<title>Grid Tag Demonstration</title>
<link REL="StyleSheet" HREF="css/GridStyle.css">
<script LANGUAGE="javascript">
function doNavigate(pstrWhere, pintTot)
var strTmp;
var intPg;
strTmp = document.frmMain.txtCurr.value;
intPg = parseInt(strTmp);
if (isNaN(intPg)) intPg = 1;
if ((pstrWhere == 'F' || pstrWhere == 'P') && intPg == 1)
alert("You are already viewing first page!");
return;
else if ((pstrWhere == 'N' || pstrWhere == 'L') && intPg == pintTot)
alert("You are already viewing last page!");
return;
if (pstrWhere == 'F')
intPg = 1;
else if (pstrWhere == 'P')
intPg = intPg - 1;
else if (pstrWhere == 'N')
intPg = intPg + 1;
else if (pstrWhere == 'L')
intPg = pintTot;
if (intPg < 1) intPg = 1;
if (intPg > pintTot) intPg = pintTot;
document.frmMain.txtCurr.value = intPg;
document.frmMain.submit();
function doSort(pstrFld, pstrOrd)
document.frmMain.txtSortCol.value = pstrFld;
document.frmMain.txtSortAsc.value = pstrOrd;
document.frmMain.submit();
</script>
</head>
<body>
<h2>Grid Example</h2>
<form NAME="frmMain" METHOD="post">
<grd:dbgrid id="tblStat" name="tblStat" width="100" pageSize="10"
currentPage="<%=intCurr%>" border="0" cellSpacing="1" cellPadding="2"
dataMember="<%=strSQL%>" dataSource="<%=objCnn%>" cssClass="gridTable">
<grd:gridpager imgFirst="images/First.gif" imgPrevious="images/Previous.gif"
imgNext="images/Next.gif" imgLast="images/Last.gif"/>
<grd:gridsorter sortColumn="<%=strSortCol%>" sortAscending="<%=blnSortAsc%>"/>
<grd:rownumcolumn headerText="#" width="5" HAlign="right"/>
<grd:imagecolumn headerText="" width="5" HAlign="center"
imageSrc="images/Edit.gif"
linkUrl="javascript:doEdit('{CLICORPORATION}', '{CLICLIENT}')"
imageBorder="0" imageWidth="16" imageHeight="16"
alterText="Click to edit"/>
<grd:textcolumn dataField="CLICLIENT" headerText="Client"
width="10" sortable="true"/>
<grd:textcolumn dataField="CLIDESCRIPTION" headerText="Description"
width="50" sortable="true"/>
<grd:decodecolumn dataField="CLIENABLED" headerText="Enabled" width="10"
decodeValues="Y,N" displayValues="Yes,No" valueSeperator=","/>
<grd:datecolumn dataField="CLIUPDSTAMP" headerText="Last Updated"
dataFormat="dd/MM/yyyy HH:mm:ss" width="20"/>
</grd:dbgrid>
<input TYPE="hidden" NAME="txtCurr" VALUE="<%=intCurr%>">
<input TYPE="hidden" NAME="txtSortCol" VALUE="<%=strSortCol%>">
<input TYPE="hidden" NAME="txtSortAsc" VALUE="<%=strSortOrd%>">
</form>
</body>
</html>
<%
try
if (objCnn != null)
objCnn.close();
catch (SQLException SQLExIgnore)
if (objCnn != null) objCnn = null;
%>
</PRE>
by using this code we will get the gide.
but the problem is when we are inserting the new record after click to save the record first saves the data in the Db and then it appears on the grid.
Is it possible to do reverse of the above :
first it comes to the grid and then after click to save it save to the database.
please help me
Regards,
imran

Hi Yamini,
What do you mean by without query region here? Do you wish to implement the complete search/result functionality without using the Query page? Or your question already answered. Kindly confirm.
Regards
Sumit

Similar Messages

  • Reports / intranet/ In some detail,  the user will input a date range from and 2 and will out put the records in the int

    Hello there,
    I am totally green in web development.
    my goal is to, for the user will input a date range from and
    to and will out put the records in the intranet when they press a
    button.
    However, the good news is: I have experience in programming.
    I have written applications for desktop in VB>NET and I
    understand RDBMS /sql concepts .
    But CF and WEB development is new to me.
    My current projects involves in connecting to DB and testing
    it. (it works fine)
    And outputting reports by to a intranet page. (records)
    i need help on how to start this asap. I will even do some
    practice at home.
    Tools I have at work
    • Development server(test)
    • Home site.
    • Toad for db connection.
    • Html reference guide
    • Cf dummies book.
    How can start my projects.
    (ex. Create cf, outputpage?)
    seriously, I am new to this.
    Thanks.

    Well, I had a really nice response with some concepts and
    ideas for you to practise on etc, but these dumb forums timed out
    and I lost it all
    If you want to pop me an email we could probably do a few
    exercises together that way - or even by MSN Messenger if you want.

  • How to get the data from mysql database which is being accessed by a PHP application and process the data locally in adobe air application and finally commit the changes back in to mysql database through the PHP application.

    How to get the data from mysql database which is being accessed by a PHP application and process the data locally in adobe air application and finally commit the changes back in to mysql database through the PHP application.

    If the data is on a remote server (for example, PHP running on a web server, talking to a MySQL server) then you do this in an AIR application the same way you would do it with any Flex application (or ajax application, if you're building your AIR app in HTML/JS).
    That's a broad answer, but in fact there are lots of ways to communicate between Flex and PHP. The most common and best in most cases is to use AMFPHP (http://amfphp.org/) or the new ZEND AMF support in the Zend Framework.
    This page is a good starting point for learning about Flex and PHP communication:
    http://www.adobe.com/devnet/flex/flex_php.html
    Also, in Flash Builder 4 they've added a lot of remote-data-connection functionality, including a lot that's designed for PHP. Take a look at the Flash Builder 4 public beta for more on that: http://labs.adobe.com/technologies/flashbuilder4/

  • How to import the data in a .xls or .xlsx file into a oracle database table

    Hi,
    Please tell me how to import the data in a .xls or .xlsx file into a oracle database table in Oracle 10gR2 using Oracle Warehouse Builder 10gR2.

    ....can we do something through Non-Oracle->ODBC?Yes, it is possible, look at this thread
    [SQLServer access from AIX Warehouse builder|http://forums.oracle.com/forums/thread.jspa?messageID=2502982]
    If your server (with target DB and OWB runtime) is on Windows OS this configuration will be simpler - you can use single server.
    And additional link on OWB blog (with 11g transparent gateway)
    [http://blogs.oracle.com/warehousebuilder/2008/01/11g_heterogeneous_agent.html]
    (configuring nonoracle connection with 10g generic connectivity very similar to 11g gateway)
    Also look at
    http://asktom.oracle.com/pls/asktom/f?p=100:11:0::::P11_QUESTION_ID:4406709207206#18830681837358
    Regards,
    Oleg

  • HT201272 How do i see a list of the apps that have been downloaded and the dates and times and amounts?  Tried to follow the on-line thing but i want to compare what has been downloaded with my visa bill.  HELP!!

    How do i see a list of the apps that have been downloaded and the dates and times and amounts?  Tried to follow the on-line thing but i want to compare what has been downloaded with my visa bill.  HELP!!

    See this -> http://support.apple.com/kb/HT2727

  • What is the best way to export the data out of BW into a flat file on the S

    Hi All,
    We are BW 7.01 (EHP 1, Service Pack Level 7).
    As part of our BW project scope for our current release, we will be developing certain reports in BW, and for certain reports, the existing legacy reporting system based out of MS Access and the old version of Business Objects Release 2 would be used, with the needed data supplied from the BW system.
    What is the best way to export the data out of BW into a flat file on the Server on regular intervals using a process chain?
    Thanks in advance,
    - Shashi

    Hello Shashi,
    some comments:
    1) An "open hub license" is required for all processes that extract data from BW to a non-SAP system (including APD). Please check with your SAP Account Executive for details.
    2) The limitation of 16 key fields is only valid when using open hub for extracting to a DB table. There's no such limitation when writing files.
    3) Open hub is the recommended solution since it's the easiest to implement, no programming is required, and you don't have to worry much about scaling with higher data volumes (APD and CRM BAPI are quite different in all of these aspects).
    For completeness, here's the most recent documentation which also lists other options:
    http://help.sap.com/saphelp_nw73/helpdata/en/0a/0212b4335542a5ae2ecf9a51fbfc96/frameset.htm
    Regards,
    Marc
    SAP Customer Solution Adoption (CSA)

  • HT5625 I want my new iPad mini to use my new Apple ID, not the old one that pops up without seemingly giving me the choice to update the  Apple ID user name; as a result I haven't been able to update my APPS for some time.

    I want my new iPad mini to use my new Apple ID, not the old one that pops up without seemingly giving me the choice to update the  Apple ID user name; as a result I haven't been able to update my APPS for some time. I changed my apple ID when I got a new e mail address a few months ago .

    Any apps you have installed from the old AppleID will always be tied to that AppleID. You have no choice but to enter the password for the old AppleID if you want to update apps downloaded using that ID.
    The only way to stop being asked for the password for the old AppleID is to remove all apps from the device that were downloaded using that old AppleID.
    You'd then need to re-download (and re-purchase) any apps you want to keep using under the new AppleID.
    Apps cannot be transferred between AppleIDs.

  • My time machine does not want to save any more the data from my powerbook 13" Snow Leopard; i get the message "Time Machine could not suppress the disk image of saving "Volumes/Time Capsule Disk/PowerBook _2011_03_21_123627 sparsebundle" What should I do?

    My time machine does not want to save any more the data from my powerbook 13" Snow Leopard; i get the message "Time Machine could not suppress the disk image of saving "Volumes/Time Capsule Disk/PowerBook _2011_03_21_123627 sparsebundle" What is the problem? What should I do?
    Thanks !!
    Alain

    Could that read " . . . could not access . . ."?  If so, try repairing your backups, per #A5 in Time Machine - Troubleshooting.
    If not, or if that doesn't help, see #A1 there. Use the TM Buddy widget it details to copy and post the messages here.

  • On the initial set up for apple tv it just sits there trying to set the date and time . it is a wireless setup and the ipaddress and router address is correct . I can't get by this screen

    On the initial set up for apple tv it just sits there trying to set the date and time . it is a wireless setup and the ipaddress and router address is correct . I can't get by this screen. The setting is on automatic and I have picked a city in my time zone yet it still tries to set a time and date but fails.
    thanks

    Make sure router is up to date. Try ethernet to rule out any wifi issues. Reboot ATV and router.

  • HT201269 How do I transfer all the songs in my Iphone to the itunes on my new laptop without loosing any of the songs?

    How do I trans ogfer all the songs in my Iphone to the itunes on my new laptop without loosing any of the songs and to start syncing the songs on my iphone with itunes?

    You need to use a third-party program like one of those discussed here:
    Copy music from Ipod to new computer...: Apple Support Communities
    You can Google for more. Google for : iPod to computer

  • How can I add the date to my home page screen, maybe next to the time.

    mini IPAD 8.2 . I would like the date to apprear on my home screen just like the time . Is there a way to do this?

    No. However, the Calendar App always has the current Day of the week and Day of the month displaying like so:
    Tuesday
    10
    Cheers,
    GB

  • What is the data throughput in labview. I want to use the parallel as acheap digital i/o to drive a stepper motor.

    I am trying to use the parallel port on a win xp machine to send data a@ up to a 3k rate. This is for the the purpose of driving a stepper motor. I have tried the port.out vi and placed this vi in a loop and it on a scope it looks like I am limited to a a 200hz rate. What am I doing wrong??? Can labview do this or is it too slow ???
    Thanks

    snook wrote:
    > what is the data throughput in labview. I want to use the parallel as
    > acheap digital i/o to drive a stepper motor.
    >
    > I am trying to use the parallel port on a win xp machine to send data
    > a@ up to a 3k rate. This is for the the purpose of driving a stepper
    > motor. I have tried the port.out vi and placed this vi in a loop and
    > it on a scope it looks like I am limited to a a 200hz rate. What am I
    > doing wrong??? Can labview do this or is it too slow ???
    Basically the way the Port I/O VIs are implemented they call through a
    device driver for each port access. This slows down the maximum port
    accesses to something like 1000 times per second depending on the speed
    of your CPU.
    There is a way to do it faster but that is a little more trick
    y. The
    idea is to use a device driver to enable particular port addresses to be
    accessed directly from the application level instead of always going
    through the kernel.
    I have written such a VI library and accompagning DLL and device driver
    and made it available on OpenG. It is not yet part of the standard
    binary distribution packets so you will have to get it from the CVS
    repository.
    Go to:
    http://cvs.sourceforge.net/viewcvs.py/opengtoolkit/portIO/built/portio/
    and download all the files in there including the ones in the
    subdirectory "ogportio.llb" and if you like "docs"
    If you want the nitty gritty technical details you can also look at
    http://cvs.sourceforge.net/viewcvs.py/*checkout*/opengtoolkit/portIO/c_source/Description.htm?rev=1.5
    On my 866 MHz Pentium mobile I can increase the number of port accesses
    in this way from 440 ms for 4000 read byte port accesses (100us ms per
    access) to 20 ms for the same number of read accesses (5 us per access).
    Rolf Kalbermatter
    Rolf Kalbermatter
    CIT Engineering Netherlands
    a division of Test & Measurement Solutions

  • In the numbers app, using the "date and time" function, is it possible to remove the time? I need to put together a list of dates, but I don't need or want times.

    In the numbers app, using the "date and time" function, is it possible to remove the time? I need to put together a list of dates, but I don't need or want times.

    When formatting your column to date/time, pick Date & time, and then pick the letter i in the circle to the right. Then scroll down and pick "No time"
    Jason

  • Can I access the data backed up on my time capsule remotely via the Internet?

    Can I access the data backed up on my time capsule remotely via the Internet? Let us say I have all my music or photos on my time capsule at home and I want to access it while I am outside over the Internet can I do this?

    See remote access methods here.
    https://discussions.apple.com/community/wireless/airport?view=documents
    I am not sure what format these files are in.. but if they are itunes or iphoto.. have a care.. it is easy to corrupt them.

  • "The Data entered is wrong, so it will revert to the previos value" error in Smartview

    A user is receiving the error "the data entered is wrong, so it will revert to the previous value" when working in excel and having a smart-view adhoc open. it doesn't happen all the time (it is not predictable) but it does happen regularly (3-5 times per week). If the user disconnects all connections in smartview or restarts excel, it temporarily fixes the issue.
    I have seen this error references in two other threads, not no answer. Can someone pelase help?

    Hello sher,
    You must be using certain formulas in other sheets which will connect back to your retrieval sheet and get the refreshed data from there.
    Try and use "Paste Values" to the formula columns to which you have once retrieved values from adhoc retrieval sheets. Hopefully this error should not occur then.
    Also check this thread : Excel Error "Data entered is wrong" when using multiple tabs
    Cheers!

Maybe you are looking for

  • HT1339 I can't get iTunes to recognize my iPod touch. Should I completely erase it ?

    I erased my iPod Touch 2G and restored it. I'm using a Macbook Pro running Lion 10.7.4 I synched my music library in iTunes (so far so good)!!! Then I purchased an App from the iTunes store. The next thing I knew all my songs(538) and videos vanished

  • Migrating Your SAP data from 3.1H to ECC5

    Dear All, We are starting a project to upgrade to ECC5. We currently run a 3.1H system and because of the huge gap between 3.1 and ECC5, we have decided in effect to re-implement SAP, therefore migrate all config and data. Can anyone point me in the

  • Can I define an RFC with multiple desitinations?

    I am working on intergration between SAP and JAVA, I am have to call RFC to get the pricing of a each lineitem from Java instead of getting from SAP Condition types while creating as Sales order. I have defined one RFC to connect to Java server progr

  • Oem: import job error

    i get the following message when i import any object in database. couldn't open "d:\import.log" : no such file or directory please help thanks

  • Custom XMP panels in Bridge don't properly set language alternative elements

    Using the Bridge Metadata panel, when you edit a custom field that uses the "langalt" type, Bridge doesn't handle this as a language alternative property--it saves the value as a simple text property. This was an issue when I first tried it in CS3 wi