How to pass a "object" as a prameter from one java class to another java

hi experts, I want to know "How to pass and get object as a parameter from one java class to another java class". I tried follwoing code just check it and give suggetions..
import Budget.src.qrybean;
public class ConfirmBillPDF extends HttpServlet
qrybean db = new qrybean();
SimplePDFTable pdfTable = new SimplePDFTable();
pdfTable.simplePDFTableShow("2010","2011","1","2","1","131","102");
}Here i want to pass db with simplePDFTableShow method. simplePDFTableShow is in another java class. So how can i do this.
And also i want to know, how this obj will get.
please help me.
Edited by: andy_surya on Jul 14, 2010 7:51 AM

Hi andy_surya
what is this i am not understand
pdfTable.simplePDFTableShow("2010","2011","1","2","1","131","102");but i am try to solve your problem try this
qrybean db = new qrybean();
SimplePDFTable pdfTable = new SimplePDFTable();
pdfTable.simplePDFTableShow(db);and access like this in SimplePDFtable class update your method
simplePDFTable(qrybean tempDB)
// write your code
}

Similar Messages

  • How to pass column name as a   values from one page  to another

    hi
    i have created a report(pivot) from a table
    SQL> SELECT * FROM T;
    C1  C2          C3 D                SEQ
    A   AA           2                    1
    A   AB           3                    2
    A   AC           2                    3
    B   AB           5                    4
    B   AC           6                    5
    SQL> SELECT C1
      2  ,NVL(MAX(CASE WHEN C2='AA' THEN C3 END),'') AA
      3  ,NVL(MAX(CASE WHEN C2='AB' THEN C3 END),'') AB
      4  ,NVL(MAX(CASE WHEN C2='AC' THEN C3 END),'') AC
      5  ,SUM(C3) FROM T GROUP BY C1;
    C1          AA         AB         AC    SUM(C3)
    A            2          3          2          7
    B                       5          6         11
    SQL>
    my requirement in Apex is like this(reverse)
    eg-
    when i click on cell values '2' then,it should return
    C1  C2          C3 D                SEQ
    A   AA           2                    1
    {quote}how to pass column name as a  values from one page to another
    for example i have to pass 'c2' as a value to next page{quote}for report pivot you can reffer below link
    Report
    Amu

    thanks for your reply
    i 'm doing what exactly you mention here .
    my problem here is
    i have 15 columns
    i am executing a query based on the values of the column(column name)  in the target page
    1)here i am passing(all) the column values to the next page-but  i want to pass only one column values(column name)
    when i click on any cell of that  column
    OR
    2)i can pass all column name to target page -there(in the target page) i can filter out
    i think option 1 would good if you filter out the unwanted columns
    Regards
    Amul

  • HT204053 how do i move page and numbers documents from one icloud login to another?

    how do i move page and numbers documents from one icloud login to another?
    I had to change my email address whcih meant new apple login.
    I have a number of docs in iwork/pages and iwork/numbers.  How do I transfer them to my new login?

    There's a couple of ways but my tip backing up your documents in the cloud is as good as any.

  • How can I copy a time machine backup from one Time Capsule to another ?

    How can I copy a time machine backup from one Time Capsule to another ? I bought a 1 Tb Time Capsule to replace my 512Mb Time Capsule. Now, I like to copy my time machine backup from the old Time Capsule to the new one so I can keep using my backup.

    from this support article: 
    (click on image to enlarge)

  • How to export a user and their schema from one 10g database to another?

    Hi,
    I would like to export a user and their entire schema from one 10g database to another one. How do I do this?
    thx
    adam

    If you want to export a user and the schema owned to the user, and import to the same user in a different database, or a different user in the same database, you can use the exp and imp commands as described in the Utilities manual.
    These commands are very versatile and have a lot of options - well worth learning properly. To give you a simplistic shortcut, see below - I create a user 'test_move', create some objects in the schema, export, create a new user in the database 'new_move' and import.
    oracle@fuzzy:~> sqlplus system/?????
    SQL*Plus: Release 10.2.0.1.0 - Production on Sat Mar 11 21:46:54 2006
    Copyright (c) 1982, 2005, Oracle.  All rights reserved.
    Connected to:
    Oracle Database 10g Express Edition Release 10.2.0.1.0 - Production
    SQL> create user test_move identified by test_move;
    User created.
    SQL> grant create session, resource to test_move;
    Grant succeeded.
    SQL> connect test_move/test_move
    Connected.
    SQL> create table test (x number);
    Table created.
    SQL> insert into test values (1);
    1 row created.
    SQL> exit
    Disconnected from Oracle Database 10g Express Edition Release 10.2.0.1.0 - Production
    oracle@fuzzy:~> exp system/????? file=exp.dmp owner=test_move
    Export: Release 10.2.0.1.0 - Production on Sat Mar 11 21:48:34 2006
    Copyright (c) 1982, 2005, Oracle.  All rights reserved.
    Connected to: Oracle Database 10g Express Edition Release 10.2.0.1.0 - Production
    Export done in AL32UTF8 character set and AL16UTF16 NCHAR character set
    About to export specified users ...
    . exporting pre-schema procedural objects and actions
    . exporting foreign function library names for user TEST_MOVE
    . exporting PUBLIC type synonyms
    . exporting private type synonyms
    . exporting object type definitions for user TEST_MOVE
    About to export TEST_MOVE's objects ...
    . exporting database links
    . exporting sequence numbers
    . exporting cluster definitions
    . about to export TEST_MOVE's tables via Conventional Path ...
    . . exporting table                           TEST          1 rows exported
    . exporting synonyms
    . exporting views
    . exporting stored procedures
    . exporting operators
    . exporting referential integrity constraints
    . exporting triggers
    . exporting indextypes
    . exporting bitmap, functional and extensible indexes
    . exporting posttables actions
    . exporting materialized views
    . exporting snapshot logs
    . exporting job queues
    . exporting refresh groups and children
    . exporting dimensions
    . exporting post-schema procedural objects and actions
    . exporting statistics
    Export terminated successfully without warnings.
    oracle@fuzzy:~> sqlplus system/?????
    SQL*Plus: Release 10.2.0.1.0 - Production on Sat Mar 11 21:49:23 2006
    Copyright (c) 1982, 2005, Oracle.  All rights reserved.
    Connected to:
    Oracle Database 10g Express Edition Release 10.2.0.1.0 - Production
    SQL> create user new_move identified by new_move;
    User created.
    SQL> grant create session, resource to new_move;
    Grant succeeded.
    SQL> exit
    Disconnected from Oracle Database 10g Express Edition Release 10.2.0.1.0 - Production
    oracle@fuzzy:~> imp system/????? file=exp.dmp fromuser=test_move touser=new_move
    Import: Release 10.2.0.1.0 - Production on Sat Mar 11 21:50:12 2006
    Copyright (c) 1982, 2005, Oracle.  All rights reserved.
    Connected to: Oracle Database 10g Express Edition Release 10.2.0.1.0 - Production
    Export file created by EXPORT:V10.02.01 via conventional path
    import done in AL32UTF8 character set and AL16UTF16 NCHAR character set
    . importing TEST_MOVE's objects into NEW_MOVE
    . . importing table                         "TEST"          1 rows imported
    Import terminated successfully without warnings.
    oracle@fuzzy:~>                                                       If moving between databases, remember to set the SID properly before the import. If keeping the same userid, skip the from/to stuff in the import.
    There are many variations on the theme ...
    You can simplify this. You can select tables individually. You can use a parameter file. You can transport all the constraints and data. You can skip the data and only move the definitions. You can get some help (imp/exp help=yes).
    And, if it's all 10g, there is a new and improved facility called expdp/impdp (dp = data pump) which has a lot more capability as well, including direct transfer (no intermediate file) together with suspend/restart. Also documented in the Utilities manual.

  • How do you transfer contacts and other info from one gmail address to another?

    Somebody screwed up my gmail so I created another account which does synch with my android phone which the other does not. But I lost all my contacts from the phone. The contacts still exist but they are on the old gmail account which does not synch with my cellphone. How do I transfer my addresses and phone numbers from one gmail address to another?

    That is a question for Gmail support.
    https://support.google.com/mail/?hl=en

  • How to keep Itunes playing music when switching from one user account to another?

    On my old pc, that running XP, itunes would continue playing when I was switching from one user account to another.
    Now I have a new PC running win8 and the music stops playing when I switch from one user account to another. I think Itunes is still running on the user that is not active, but the music is not coming out of the speekers.
    Does anyone know how I can get the win8 pc to do as the old XP machine?

    Hello over here,
    The steps below detail how to place an input chooser that will allow for the adjustment of your keyboard layout while on the login screen.
    From the Apple menu, choose System Preferences.
    Click Users & Groups to display the pane (or choose User & Groups from the View menu).
    If the lock icon in the lower-left corner of the window is closed, click it, then enter the name and password of an administrator to unlock it.
    Click Login Options.
    Select the "Show Input menu in login window" checkbox.
    From the Apple menu, choose Log Out.
    At the login window, click the Input menu (shows the name of the currently selected input source next to a keyboard icon) in the upper-right corner of the screen, then select the desired input source or keyboard layout. If you don't see the input source you are looking for, move the pointer over Other Input Sources, then select the input source from the complete list that appears.
    OS X: How to change the keyboard layout at the login window
    http://support.apple.com/kb/HT4099
    Cheers,
    Allen

  • How do I move or copy a page from one pages doc to another?

    I used to frequently move or copy a page from one multiple-page Pages document to another just but dragging and dropping the thumbnail.  Since I upgraded I can't do this anymore.  How can I do it now?

    Rhosh18 wrote:
    I used to frequently move or copy a page from one multiple-page Pages document to another just but dragging and dropping the thumbnail.  Since I upgraded I can't do this anymore.  How can I do it now?
    It never worked that way in Pages '09. You have to copy and paste the Thumbnails.
    That no longer works in Pages 5. Sounds like you are not copying and pasting content because that certainly works. Read what VikingOS wrote and do precisely what he said.
    Peter

  • How i can open a new command prompt from one java from

    hi
    can any one help me that how i can open a command prompt by using the java program file .
    regards,
    ukbasak

    http://java.sun.com/j2se/1.5.0/docs/api/java/lang/Runtime.html#exec(java.lang.String)
    and several overloads.
    Also
    http://java.sun.com/j2se/1.5.0/docs/api/java/lang/ProcessBuilder.html

  • How to pass dynamic params to Transaction iView from webdynpro java app

    Hi Experts,
    I am trying to call a transaction iview in PCD from my Dynpro application with a dynamic param.
    Can somebody help me generating the URL for transaction iView and passing the dynamic params???
    Thanks in advance
    biroj...

    Hi,
    Generating the URL:
    StringBuffer strBuff = new StringBuffer("/webdynpro/dispatcher/xyz.com/xx~xxxx~xxxxx/xxxxxApp");
              strBuff.append("?");
              strBuff.append("TCODE=");
    strBuff.append("" + WDProtocolAdapter.getProtocolAdapter().getRequestObject().getParameter("TCODE"));
    IWDWindow window = wdComponentAPI.getWindowManager().createNonModalExternalWindow(strBuff.toString(), "TCODEWindow");
    window.show();
    Please try the above code snippet helps you to create a TCode iView in a new window.
    or
    We can include URL parameters in a portal URL that calls a Web Dynpro page and these parameters can be forwarded to the otehr iVIews on the page.
    Example:
    http://xxxxxxxxx.com/irj/servlet/prt/portal/prtroot/com.sap.portal.appintegrator.sap.WebDynpro?System=SAP_XXXXXXXX&WebDynproNamespace=xxxxx.com&WebDynproApplication=xx~xxxx~xxxx/xxxxApp&DynamicParameter=u201DTCODE=VA02u201D
    For more information Please go through this:
    http://help.sap.com/saphelp_nw04s/helpdata/en/c3/235a428a1e9041e10000000a1550b0/frameset.htm
    Thanks
    Krishna

  • How can I move an e mail account from one family pack to another

    I have an e mail address (not main family pack e mail address) and I would like to move it to another family pack. Is this possible and if so how?
    Thanks

    Caroline12, Welcome to the discussion area!
    I believe that your question is about a Mobile Me family pack account. If that is true, I believe that the answer is no.
    But your probably should post your question in the Apple.com > Support > Discussions > MobileMe discussion area.

  • How do I transfer an Acrobat serial number from one adobe account to another?

    I've installed Adobe DC Pro on one of our user's computers. When it asked for an Adobe ID I entered the ID I used to purchase the serial number. Unfortunately now acrobat always starts on the new computer and displays my name instead of the end user name. So I'm wondering how to either transfer the serial number to the end user's adobe account, or alternatively re-associate the acrobat on the end user machine with the end user's own adobe account.

    contact adobe support by clicking here and, when available, click 'still need help', https://helpx.adobe.com/contact.html

  • How can I transfer purchases I've made from one Apple ID to another so I can update and download my new music?

          I had to get my own Apple ID after using my mom's for years. I can't update my apps now because they were downloaded on her ID. I have access to all settings on both accounts for now. How can I transfer them so I can update all my stuff and download the new music I bought on my new ID?

    How about transferring total ownership of apple id?

  • I need to figure out how to tell Organizer that photos have moved from one hard drive to another

    I have PSE 10 on my laptop and used Organizer to tag and view images on my laptop and on my PC via a wireless network.  My PC died but I had all the photos backed up on an external hard drive.  I want to tell Organizer to look for those photos (hundreds of them) on my external hard drive instead of trying to find them on the PC drive.  Any idea how to do this?

    If you have recovered your catalog folder, which was probably on your C: drive, you can try to reconnect:
    http://kb2.adobe.com/cps/333/333358.html
    However, you have probably lost your catalog, so your only solution is to import your files again in a new empty catalog. If you had 'written metadata to files', you'll recover tags and ratings, but not albums, stacks or version sets.

  • How to copy an album in iPhoto 6 from one drive volume to another?

    I downloaded some photos into three albums in a drive volume which I later archived for various reasons. How do I import those albums to my primary drive volume with the same iPhoto 6 vers. 6.0.6?
    Is it as easy as:
    File/ Import to Library/ Archive drive-volume/ Users/ Shared/ Pictures/
    iPhoto Library/ Originals/ folder year/ Roll#. Select photos to import.
    I've not done this before and would hate to run into some "potholes" and unintended consequences.
    Thanks.

    I downloaded some photos into three albums
    Are you talking about albums or rolls? They are vastly different. The rest of your post sounds like you want to transfer photos from rolls not albums
    Basically the safe and correct way is to open the library in iPhoto (if it is not the current library launch iPhoto while depressing the option (alt) key and use the select library option and export the photos then switch back to the other library and import them
    But depending on what you really mean and what you really want to do it may be different
    LN

Maybe you are looking for

  • Best way to update a PRA file with changes to P6 schedule?

    Hello, I've spent some time looking at user manuals and video tutorials to try and become familiar with how to use Primavera Risk Analysis. I come from an @RISK user background so there were some concepts that were a little different between the two

  • Problem Saving Forms Created

    I created multiple forms inside of Acroba Professional 8.0 and I have not securities set on the file. For some reason when a user fills out the form, they can't save the completed form. Any ideas? TR

  • Source list mandatory only for scheduling Agreement

    Hi Gurus, My client wants to make source list mandatory only for scheduling agreement. While creating scheduling agreement for a particular type and saving it should be mandatory. But for Purchase orders and contracts this is not required. If i do it

  • 100's of titles in my iTunes music folder say streaming..

    100's of titles in my iTunes music folder say streaming.. this is the folder that holds the music for the iphone, it shows me this when it (iphone) is connected to the mac. Thing is, there are the same songs in the folder, but with a size listed. How

  • What's a good printer for iMac 10.5.6?

    I need a printer for my new iMac. My old printer doesn't work on it. It considers it Classic. Message was edited by: citrine