Binding Beans and Data in a Desktop Application

Hi
I have a problem when binding a date field(database) with swing component
I have build a database desktop application by next and next and next
and when I run a program I have a problem that class casting exception
by using Persistence
help me please ...

Hi,
Can you just try the below code:
XDIM_MEMBERSET ENTITY=E1
*DESTINATION_APP = BUDGET
*WHEN CATEGORY
*IS ACTUAL
*REC(EXPRESSION=1)
*ENDWHEN
Does this send the value of 1 to the BUDGET application?
I remember there was a problem in sending the data of 0. To rectify that problem, you might have to upgrade to BPC NW 7.5 SP08 Patch2 or BPC NW 7.5 SP10.
Hope this helps.

Similar Messages

  • Managed Beans and Data Access Object

    I have a question / need help understanding how to configure backing bean and model objects so that memory and object creation/deletion is done as efficiently as possible.
    1. I have a .jsf page with a form and a commandbutton that submits the form inputs to a backing bean (enrollispbean is backing bean)
    <h:commandButton value="Enter" action="#{enrollispbean.insert}"/>
    2. The backing bean is used for form handling - the insert() method is used to read the data fields from the form and create a SQL string that will be submitted to a model object, DbInsert, that is used as a generic data access object that connects to the database and insert the SQL string:
    public class EnrollIspBean {
    private String beanvar1="";
    private String beanvar2= "";
    // DbInsert is data access object
    private DbInsert dbinsert = new DbInsert();
    public String insert (){
    String sqlstmt;
    sqlstmt = "INSERT INTO ispmain VALUES(beanvar1, beanvar2,..)"
    dbinsert.insert(sqlstmt);
    return "success"; }
    3. DbInsert is the data access object that contains a method, insert(), that accepts a sql string to insert into the database. This method contains the code to obtain a connection from the database connection pool and then execute the sql statement (note: error checking code not shown):
    public class DbInsert {
    public void insert(String sqlstmt) throws SQLException {
    Connection conn = null;
    GetDBConnection getdbconnection = new GetDBConnection();
    PreparedStatement stmt = null;
    conn = getdbconnection.getdbconn();
    stmt = conn.prepareStatement(sqlstmt);
    stmt.executeUpdate();
    stmt.close();
    conn.close();
    return;
    Where I need help understanding is how to set up the scope for the managed beans and data access object. Currently, I have the backing bean within the session scope (using the facesconfig.xml file). My main question is how to set up the scope for the Data Access Object - currently I do not have it as a managed bean within facesconfig.xml. Instead I am creating a new instance within the backing bean:
    private DbInsert dbinsert = new DbInsert();
    Is this the best way to do this? Will the DBInsert object now be tied to the session scope of the backing bean (i.e., when backing bean is deleted, the DbInsert object will be deleted from session scope as well.)
    Ideally I would like the data access object to be available as a shared object throughout the life of the application. When I was programming using a servlet approach, I would have created a servlet to load on startup. Now that I'm using java server faces, I'm confused about the scope / how to efficiently set up a data access object that I want to be available to all backing beans in the application.
    tnanks for any help understanding this.
    Tom

    I was thinking about setting the data access object as application scope so that it can be used by an backing bean to execute sql statements.
    If I do set it as application scope, however, if I do this, do I still need to declare a new instance of the object from within each bean that uses the object?
    For example do I need to declare a new instance of the data access object from within the bean? or, should I assume that there is always an instance of the bean available in the application scope, and if so, how do I reference it from within the bean?
    Bean Code:
    public class EnrollIspBean {
    // DbInsert is data access object
    private DbInsert dbinsert = new DbInsert();
    Finally, I understand performance may be an issue if I have one instance of the data access object available in the application scope - is there a way to make multiple instances available in the application scope?
    thanks

  • How to disable auto header and footer from firefox desktop Application

    I build a Firefox desktop application for my company. i need to print some page from that application using JS window.print(). It Works Perfectly in my application. But the problem is when it printing my document it prints a header and a footer automatically. I Want to remove this. I can remove this on Firefox browser , but i cant remove this on my application. Please Somebody Help Me.
    here is my application link: https://marketplace.firefox.com/app/hmspro
    User Login : admin / Password: 123
    if you want to get into printing page navigate invoice > paid invoice > print button.
    I also tryed from about:config and disable all default header footer. but it wont worked.

    Hi saaiful,
    Thank you for posting your question. window. will print header and footer.
    Here are some solutions I found after researching your issue:
    *[http://forums.mozillazine.org/viewtopic.php?f=12&t=216810]
    *[http://stackoverflow.com/questions/8228088/remove-header-and-footer-from-window-print]
    *[http://www.dreamincode.net/forums/topic/22598-using-windowprint-without-printing-header-and-footer/]
    *take a screenshot and create a page that is printable [http://www.webdeveloper.com/forum/showthread.php?210947-Using-window-print-without-printing-header-and-footer]
    *Target to another window then print: [http://www.liferay.com/community/forums/-/message_boards/view_message/3401817]
    Hope this helps.

  • How to clear documents and data for third party applications

    Anyone can help me how to clear the documents and data for apps like facebook , i tried to delete the app and re-install but there is no change , please advise ,
    thank you.

    Manage the data on the device via iTunes.

  • Entity beans and data synchronization

    I want to use a BMP to represent information about a database entity where the BMP "fields" are actually statistical summaries (e.g., an Account bean where the "field" num_transactions is calculated using a query rather than stored). I want to do this because the queries that generate the summary statistics are costly and I want to cache the results in memory. Since these are "read-only" statistics, I could use DAOs and a Fast Track Reader but I want to make use of the caching and lookup facilities of J2EE for finding accounts that are already cached.
    I only refresh the back end database nightly, so I need to flush all of the values in all cached Account beans nightly. Is there a facility for this type of thing, or do I need to manually control it (e.g., using a "version" number on the data that is checked periodically).
    Thx,
    John H.

    John,
    You might also check your application server's documentation. Weblogic provides a read-only entity bean, whereby you can specify a timeout parameter in your descriptor file. The container will then only call ejbLoad() when the ejb is accessed and the timeout has been passed. This, in effect, provides a caching mechanism.
    Best of luck,
    Richard

  • ITunes keeps saving my library and data to my desktop

    I can't get I tunes to quit saving to my desktop. I have already gone to Preferences-> Advanced and have My Music folder chosen from My Documents.
    I've deleted the saved libraries, data files, album cover artwork from the desktop and started over many times. It keeps saving it back to the desktop.
    I tried consolidating my library.
    I've even uninstalled Itunes and installed a previous version. I'm now back to the latest version.
    Help would be appreciated!

    Okay, I found out for myself what the problem was:
    Somehow iTunes decided to no longer knowing where I store my ituneslibrary.itl and switched back to default (users/mymusic/itunes).
    I needed to start iTunes with pressed SHIFT in order to define the old folder on the external drive as the new one.
    http://www.ilounge.com/index.php/articles/comments/recovering-itunes-from-an-ext ernal-hard-drive/

  • I lost My Data from Plam Desktop application while updating the software Plzz HELP

    I am a Volunteer here, not employed by HP.
    You too can become an HP Expert! Details HERE!
    If my post has helped you, click the Kudos Thumbs up!
    If it solved your issue, Click the "Accept as Solution" button so others can benefit from the question you asked!

    I am a Volunteer here, not employed by HP.
    You too can become an HP Expert! Details HERE!
    If my post has helped you, click the Kudos Thumbs up!
    If it solved your issue, Click the "Accept as Solution" button so others can benefit from the question you asked!

  • Use of Shared Variables for data transfer from a RT traget to a desktop application

    Hi,
    I want to adopt the shared variables to share data in an existing distributed application comparable with the T3 Benchmark configuration in this document:
    [1] http://zone.ni.com/devzone/conceptd.nsf/webmain/5B4C3CC1B2AD10BA862570F2007569EF
    The current implementation uses a well tuned solution with RT FIFOs and TCP/IP communication with a desktop-PC which monitors and stores the data.
    The desktop application runs with a much slower execution rate than the TCL. So the TCP/IP packets are used to buffer the data with a package size dependent on the data send rate.
    To use the shared variables instead of this RT FIFO + TCP/IP implementation I need to read the shared vairable buffer at once each time the desktop application reads the shared variable.
    But according to this quotation from [1]:
    "With buffering, you can account for temporary fluctuations between read/write rates of a variable. Readers that occasionally read a variable slower than the writer can miss some updates."
    this seems to be impossible. Am I right?
    Are there any suggestions to circumvent this problem? Or are shared variables not made to share data between unsynchronized processes without data loss?
    Regards Till

    You can use the error-cluster to detect the end of your queue. The erroroutput of the shared variable will return a -2220 Warning, if it reads a value it has read already before. I attached a modified example and saved it for 8.2 I hope you can open it.
    Attachments:
    readbuffered82.zip ‏51 KB

  • APEX application  version, author name and date  (history)

    Hello,
    I have created few application in APEX ,I want to add version, author name and date for that application's.
    Please help wherein I can enter in APEX like in Oracle form (pre-form trigger we can add.)
    Thank you in advance.
    Regards,
    Gaurav Nagpal.

    Hi,
    I have never used Forms, so I'm not exactly know what you mean.
    But APEX application definition have version attribute that you can use.
    http://docs.oracle.com/cd/E37097_01/doc/doc.42/e35125/bldr_attr.htm#CHDGJHDC
    And you can add author and date to e.g. application comment
    http://docs.oracle.com/cd/E37097_01/doc/doc.42/e35125/bldapp_comment.htm#CHDBGHJG
    Regards,
    Jari
    My Blog: http://dbswh.webhop.net/htmldb/f?p=BLOG:HOME:0
    Twitter: http://www.twitter.com/jariolai

  • Need help on making desktop application to web application having individual controls for users at the same time

    Hi,
    I have an desktop application and the following are the functionalities of the same.
    1. User inputs the data file with path (log file) to parse the required data.
    2. Once the user enters the path and starts the tool with start button, the tool parse the required data in terms of records and gives the records (creates output file containing all the useful records).
    3. Have popup window to display a group of data.
    4. Have popup to Plot graph. When a button is pressed in main GUI, the popup is opened giving scroll bar menus to choose the data for the graph. User after selecting the data (multiple Y axis) press another button to plot the graph. The input to this popup is the output file generated by this tool.
    5. The main GUI has buttons (play, step forward, step backward, reverse play, pause, stop, 1st record, last record - like tape recorder buttons) to play the records one by one.
    This application is used by many people and since its a desktop application (created in labview 2009), the user every time has to manually install the newer version.
    "So it is required to make the application into web based so that, the user can individually access the tool at the same time (different instances same as desktop app) and run their own data files from their system. The output files to be stored in the respective user's system."
    Can this be done using Web Publishing or Web Services present in LabView?
    I tried using Web Publishing but it gives control to only one user at a time and loading the files from the client path to run the tool is not possible.

    Simple. 
    If all you are worried about are updates, just put the EXE on a shared network drive and have your users launch it from there.

  • I lost My Data from Plam Desktop applicatio​n while updating the software Plzz HELP

    Hello
    I Lost all my Data that was in Palm Desktop applicaton on my PC. I no Longer have my Palm device BUT data was in desktop application. Today I tried to upgrade my Palm Desktop version from 4.2 to 6 and I lost all my files is there a way to recover them.
    Thanks,
    Sat
    Post relates to: Palm V

    You can recover the data from your user folder provided you have only sync'ed once with the PC when you discovered the data missing. When you sync to the PC there are files created for each PIM category in your user folder. For Example; datebook.dat or datebook (Depending on the version of Palm Desktop) and datebook.bak. Using 6.2 the file names are .mdb and mdb.bak. For 6.2, the files are located in the username folder in PalmOSdesktop in my documents.
    The files are named .dat and .bak. When you sync, the current data is stored in .dat. The next time you sync the data in the .dat file is copied to the .bak file. You can rename the .dat to .old. then rename the .bak to .dat. If the data in the .bak file is intact, it will now be in palm desktop when you reopen Palm desktop. I have included a link to show you how to find the userfolder on the PC.
    http://www.palm.com/cgi-bin/cso_kbURL.cgi?ID=26674
    Here is another link regarding data loss;
    http://www.palm.com/cgi-bin/cso_kbURL.cgi?ID=39503
    The best way to backup your data is to use the export feature in Palm Desktop. Make a new folder on the PC desktop named Palm Desktop Backup data. Next, select the category you want to export. You will get a window that asks where you want to save the file, save in the folder created on the desktop. There is a button that allows you to select currently selected record or all, select all. If you don't select all, then only the record highlighted is exported. You will then need to name the file for export, I suggest the name of the category, eg: datebook (With current date). Do this for all critical data in each category. With the data exported to the folder on the PC desktop, you can save this data to a flash drive, external hard drive or a CD-RW. With this method you will have your data in a seperate place than Palm desktop and the device. If you "Lose" data again, you can import the data back into palm desktop.
    Make sure that when you make changes in palm desktop or the device to export the data to the folder created for the backup.
    Here is a link for other options for backing up your data;
    http://www.palm.com/cgi-bin/cso_kbURL.cgi?ID=28751
    If you can find your missing files, you will need to install the version of PD you previously had installed and paste the files in that version. Any palm files previous to 6.2 will not work in 6.2. The files in 6.2 are in a different file format.
    One caveat here, since you do not sync a device, the files are not rotated as they would be during the sync process. The only option you may have avail. is the data in the .dat files.
    The best way to preserve your data is to export the data in each category in Palm Desktop to a seperate folder on your PC.
    Create a new folder on your PC somewhere that is convenient. Name it something like Palm Desktop Data. Click on the link below and follow the instructions on that page for the export procedure.
    http://www.palm.com/cgi-bin/cso_kbURL.cgi?ID=28734
    Make sure you select all for the range in the export window.
    With the data saved in the folder you created, make a copy of that folder and save to a flash drive, cd-rw or external hard drive.
    Anytime you make a change in Palm Desktop, export the data that was changed to that folder and save again to the external media.
    With this process you can always import the data back into Palm Desktop anytime you have a problem with the data in Palm Desktop or if your computer/hard drive/device crashes.

  • Error Installing Adobe Air from Story Desktop Application Installer

    This is truly driving me nuts already.
    Every time I try to install the Desktop Application from the Story website, it says I must install Adobe Air. So I click Install, it shows the progress bar to 100%, then errors out with a window. The window header reads "Adobe AIR Installer" and the main section of the window reads "Couldn't write the application to the hard disk. Please verify the hard disk is available and try again." - There is a Retry and Cancel. Retry does it all again with same results.
    No, I had no previous versions of Adobe Air. So I tried installing AIR direct from the Adobe website, and it installs fine. So I go back to the Story webpage and try installing the Desktop Application again and the exact same set of events as described above happens. I uninstalled the AIR install, tried again, same result.
    I had Production Premium CS3 previously, and installed Production Premium CS5 UPGRADE. All the programs in the suite work like a charm!
    I'm running Windows 7 64 bit with 208 Gig free on my C drive, as well as over 500 gig free spread out over two other drives. 8 Gig memory, and two Nvidia Qadro FX 3500 video cards (If that matters at all). Full admin rights to the PC, not limited in any way.
    A quick Google search shows plenty of other people having the same problem,  just no known fixes I've found!
    HELP!!!
    PS- I have a picture of the error message, but the insert picture link is greyed out and won't let me add anything to this post.

    Here is the installer log entries as requested:
    9/3/10 11:34:54 AM /Applications/Utilities/Adobe AIR Application Installer.app/Contents/MacOS/Adobe AIR Application Installer[344] Starting app install of file:///Users/Shared/Downloads/AdobeStory.air
    9/3/10 11:34:54 AM /Applications/Utilities/Adobe AIR Application Installer.app/Contents/MacOS/Adobe AIR Application Installer[344] UI SWF load is complete
    9/3/10 11:34:55 AM /Applications/Utilities/Adobe AIR Application Installer.app/Contents/MacOS/Adobe AIR Application Installer[344] UI initialized
    9/3/10 11:34:55 AM /Applications/Utilities/Adobe AIR Application Installer.app/Contents/MacOS/Adobe AIR Application Installer[344] beginning UI styling
    9/3/10 11:34:55 AM /Applications/Utilities/Adobe AIR Application Installer.app/Contents/MacOS/Adobe AIR Application Installer[344] UI styling complete
    9/3/10 11:34:55 AM /Applications/Utilities/Adobe AIR Application Installer.app/Contents/MacOS/Adobe AIR Application Installer[344] Unpackaging to /private/var/folders/dJ/dJl0jNt6GK4MiC2esOh-GU+++TM/TemporaryItems/FlashTmp0
    9/3/10 11:34:58 AM /Applications/Utilities/Adobe AIR Application Installer.app/Contents/MacOS/Adobe AIR Application Installer[344] unpackaging/validation is complete
    9/3/10 11:34:58 AM /Applications/Utilities/Adobe AIR Application Installer.app/Contents/MacOS/Adobe AIR Application Installer[344] application is bound to this version of the runtime
    9/3/10 11:34:58 AM /Applications/Utilities/Adobe AIR Application Installer.app/Contents/MacOS/Adobe AIR Application Installer[344] app id com.adobe.AdobeStory
    9/3/10 11:34:58 AM /Applications/Utilities/Adobe AIR Application Installer.app/Contents/MacOS/Adobe AIR Application Installer[344] pub id 4875E02D9FB21EE389F73B8D1702B320485DF8CE.1
    9/3/10 11:34:58 AM /Applications/Utilities/Adobe AIR Application Installer.app/Contents/MacOS/Adobe AIR Application Installer[344] Application located at /Applications
    9/3/10 11:34:58 AM /Applications/Utilities/Adobe AIR Application Installer.app/Contents/MacOS/Adobe AIR Application Installer[344] The certificate of the installed app fails to match either the signature or migration signature of the AIR file
    9/3/10 11:35:01 AM /Applications/Utilities/Adobe AIR Application Installer.app/Contents/MacOS/Adobe AIR Application Installer[344] starting cleanup of temporary files
    9/3/10 11:35:02 AM /Applications/Utilities/Adobe AIR Application Installer.app/Contents/MacOS/Adobe AIR Application Installer[344] application installer exiting
    9/3/10 11:35:02 AM /Applications/Utilities/Adobe AIR Application Installer.app/Contents/MacOS/Adobe AIR Application Installer[344] application installer exiting
    9/3/10 11:35:02 AM com.apple.launchd[223] ([0x0-0x40040].com.adobe.air.ApplicationInstaller[344]) Exited with exit code: 9
    Thank you for your help.

  • Does not complete processing of "Home" of the Creative Cloud desktop application

    Someone know the way to fix the following issue?
    After installed some Creative Cloud Software, I had uninstalled Adobe application manager manually and installed Creative Cloud desktop application manually.  because automatic upgrade of creative cloud desktop application from adobe application manager does not work.
    The creative cloud desktop application setup had been completed successfully.  but,  seems that  it does not complete processing of displaying the history if I chose "Home".   The progress Icon will stay in continuity.  And any contents does not show on it.
    Regards,

    I'm posting this in a few threads to try to catch everyone having the problem.
    The good news is that I found a way to fix this.
    The bad news is that it involves uninstalling everything.  (Note that reinstalling over the old installs won't cover it, I'd tried that one once too. You'll have to fully uninstall each program before redownloading/reinstalling.)
    I spent many hours with tech support yesterday running through options unsuccessfully, and can very thoroughly assure you that uninstalling the desktop app, renaming any number of folders, and new user accounts all will not help you.  From doing a lot of research on various similar problems, it appears that it's possible for this to spontaneously resolve within a couple of hours.  If it doesn't, though, you're stuck with fixing it yourself.
    The best theory I found was that it's caused by updating or installing a program without doing it through CC.  If you've downloaded an installer and run that or clicked "Check for updates" in the help menu inside one of the other apps, this is you.  Other people have noted that if you know which app you did this with, you can uninstall that one to fix it.  If you have no idea, the simplest path is to just uninstall everything.  You can try doing things one at a time, but you'll need to reboot every time the uninstaller tell you to do so and then see if it's fixed.  (Personally, I got sick of that by the second time through.)  I do remember clicking "Check for updates" right around the time this started for me, but I don't know which program it was in, just that I knew it would trigger the updates I knew existed but CC wasn't acknowledging.
    I will also note that once I had everything uninstalled, I ran the Cleaner Tool and did a "Clean All". If you're going to or need to do that, make sure you've backed up all of your preferences, customizations, plugins, and so forth as needed.

  • How to get current time and date??

    How to get current time and date from my PC time and date to the java application??
    i use java.util.* package but got error, that is:
    - java.util.* and java.sql.* class are match
    - abstract class cannot be instantiated
    so what can i do, pls guide...thanks...

    There is a method in the System class that will return the current system time. You could also instantiate a Date, Time, Timestamp, or Calendar object, all of which get created with the system time by default.
    Don't import *. Import the specific classes you need.
    Next time, post the actual text of the exceptions/compile errors. If you make people guess, most just won't bother.

  • Transferring one of my two Creative Cloud desktop applications to a new computer

    I am upgrading to a new laptop. Can I transfer one of my two student and teacher Creative Cloud desktop applications to a new computer

    Hi Oncdocgreen,
    Welcome to Adobe Forums.
    Yes, you just need to download the application from creative.adobe.com and
    use your Adobe Id and password to activate the product.
    Thanks

Maybe you are looking for