smaller environment for testing Java BB applications

I wrote a few apps for a client

I do my testing using simulators to inside the Eclipse

and on actual devices, too ;-)

my client wants to submit apps in 2 weeks at an event

We will demonstrate on real devices and also using simulators

to have a bigger screen

My question: what is the smallest necessary for environment

use a simulator without installing all the Eclipse environment

on these non-developer-PC so I have to copy the files .alx as well as cod etc.

thx for the advice

You can install the Simulator.   Need not JDE or Eclipse.

To run the application, you should be able to simply place the alx/cod in the proper in the Simulator file directory.

Tags: BlackBerry Developers

Similar Questions

  • Set up test environment for EBS

    Hi all!
    We have r12 of installation on RHEL 5.7 servers with SAN storage and 11.1.0.7 database. What are best practices for the implementation of test environment to test patches, patches, etc. ? The test env to be an exact replica of the production facility? What happens if we can not longer get the same material as our env prod now (because of improvements in the technology of sellers, etc.)?
    Thanks in advance!

    Kind regards
    Vinod

    VinodNagpure wrote:
    Hi all!
    We have r12 of installation on RHEL 5.7 servers with SAN storage and 11.1.0.7 database. What are best practices for the implementation of test environment to test patches, patches, etc. ? The test env to be an exact replica of the production facility? What happens if we can not longer get the same material as our env prod now (because of improvements in the technology of sellers, etc.)?
    Thanks in advance!

    Kind regards
    Vinod

    Your TEST/Patch instance has not necessarily need match your production in terms of the hardware specification. You must, however, make sure that you run on the same OS and updates. Instance of the UAT is one that should run on hardware identical (or very similar) to the production.

    Please see old topics for similar topic/debate.

    Re: How many lower levels of the Oracle Applications?
    https://forums.Oracle.com/forums/search.jspa?threadID=&q=+instances+and+UAT+and+development&objid=C3&DateRange=all&userid=&NumResults=15&rankBy=10001

    Thank you
    Hussein

  • Set up test environment for 8.6 CUCM

    We currently have CUCM 6.1.5 and it is expandable to 8.6.  I want to set up a test environment for our 6.1.5 of the migration on the database to 8.6 for the test.  However, when I go to download/order the product upgrade tool software it states that the software upgrade.  I guess I can't install a stand-alone installation 8.6 because it would take me install 6.1.5 and then upgrade.  Is this correct?

    Hi Eric,.

    The media may say 'upgrade', but on the DVD .iso image file can be used for the construction

    a standalone 8.6 so version

    See you soon!

    Rob

    "Always Movin' 'advance and never Lookin' back '-Springsteen

  • What is the reason for the error. weblogic.application.ModuleException: java.sql.SQLException: ORA-28001: the password has expired

    Mr President

    Make me a mistake for an adf application.

    Running application ElizaSoft on IntegratedWebLogicServer...] 
    [06:38:05 PM] Web Module ViewControllerWebApp.war recognized in project ViewController.jpr
    [06:38:07 PM] ----  Deployment started.  ----
    [06:38:07 PM] Target platform is  (Weblogic 12.x).
    [06:38:10 PM] Retrieving existing application information
    [06:38:11 PM] Running dependency analysis...
    [06:38:11 PM] Deploying 2 profiles...
    [06:38:20 PM] Wrote Web Application Module to C:\Users\TANVIR\AppData\Roaming\JDeveloper\system12.2.1.0.42.151011.0031\o.j2ee\drs\ElizaSoft\ViewControllerWebApp.war
    [06:38:22 PM] Wrote Enterprise Application Module to C:\Users\TANVIR\AppData\Roaming\JDeveloper\system12.2.1.0.42.151011.0031\o.j2ee\drs\ElizaSoft
    [06:38:23 PM] Deploying 3 data source(s) to the server...
    [06:38:24 PM] Deploying Application...
    <Jan 3, 2016 6:38:35 PM PKT> <Error> <Deployer> <BEA-149265> <Failure occurred in the execution of deployment request with ID "2192494870412" for task "0" on [partition-name: DOMAIN]. Error is: "weblogic.application.ModuleException: java.sql.SQLException: ORA-28001: the password has expired
    "
    weblogic.application.ModuleException: java.sql.SQLException: ORA-28001: the password has expired
    
    
      at weblogic.jdbc.module.JDBCModule.prepare(JDBCModule.java:402)
      at weblogic.application.internal.flow.ModuleListenerInvoker.prepare(ModuleListenerInvoker.java:100)
      at weblogic.application.internal.flow.ModuleStateDriver$1.next(ModuleStateDriver.java:196)
      at weblogic.application.internal.flow.ModuleStateDriver$1.next(ModuleStateDriver.java:191)
      at weblogic.application.utils.StateMachineDriver.nextState(StateMachineDriver.java:45)
      Truncated. see log file for complete stacktrace
    Caused By: java.sql.SQLException: ORA-28001: the password has expired
    
    
      at oracle.jdbc.driver.T4CTTIoer.processError(T4CTTIoer.java:466)
      at oracle.jdbc.driver.T4CTTIoer.processError(T4CTTIoer.java:399)
      at oracle.jdbc.driver.T4CTTIoer.processError(T4CTTIoer.java:391)
      at oracle.jdbc.driver.T4CTTIfun.processError(T4CTTIfun.java:1126)
      at oracle.jdbc.driver.T4CTTIoauthenticate.processError(T4CTTIoauthenticate.java:507)
      Truncated. see log file for complete stacktrace
    > 
    <Jan 3, 2016 6:38:36 PM PKT> <Warning> <Deployer> <BEA-149004> <Failures were detected while initiating deploy task for application "ElizaSoft".> 
    <Jan 3, 2016 6:38:36 PM PKT> <Warning> <Deployer> <BEA-149078> <Stack trace for message 149004
    weblogic.application.ModuleException: java.sql.SQLException: ORA-28001: the password has expired
    
    
      at weblogic.jdbc.module.JDBCModule.prepare(JDBCModule.java:402)
      at weblogic.application.internal.flow.ModuleListenerInvoker.prepare(ModuleListenerInvoker.java:100)
      at weblogic.application.internal.flow.ModuleStateDriver$1.next(ModuleStateDriver.java:196)
      at weblogic.application.internal.flow.ModuleStateDriver$1.next(ModuleStateDriver.java:191)
      at weblogic.application.utils.StateMachineDriver.nextState(StateMachineDriver.java:45)
      Truncated. see log file for complete stacktrace
    Caused By: java.sql.SQLException: ORA-28001: the password has expired
    
    
      at oracle.jdbc.driver.T4CTTIoer.processError(T4CTTIoer.java:466)
      at oracle.jdbc.driver.T4CTTIoer.processError(T4CTTIoer.java:399)
      at oracle.jdbc.driver.T4CTTIoer.processError(T4CTTIoer.java:391)
      at oracle.jdbc.driver.T4CTTIfun.processError(T4CTTIfun.java:1126)
      at oracle.jdbc.driver.T4CTTIoauthenticate.processError(T4CTTIoauthenticate.java:507)
      Truncated. see log file for complete stacktrace
    > 
    [06:38:36 PM] Deployment cancelled.
    [06:38:37 PM] ----  Deployment incomplete  ----.
    [06:38:37 PM] Remote deployment failed (oracle.jdevimpl.deploy.common.Jsr88RemoteDeployer)
    #### Cannot run application ElizaSoft due to error deploying to IntegratedWebLogicServer.
    [06:38:37 PM] Cancel requested
    [Application ElizaSoft stopped and undeployed from IntegratedWebLogicServer]
    
    

    But I got back to the top of the same request for the same user and password but it works and do not give the error.

    Help, please.

    Concerning

    Mr President

    I just want to remove the old conn ide and create a new ide conn and add to the application and it works

    Concerning

  • EPM 11.1.2.3: deployment of java web applications on environment Mix Linux and windows

    Hi all

    I intend to install and configure EMP 11.1.2.3.

    We have 2 of linux and windows server 1.

    on linux, I am planning to install foundation, Essbase and planning.

    and in windows I intend to install HFM and FDMEE.

    now my question is when you perform the configuration for HFM and FDMEE, I need to deploy the java web application for HFM and FDMEE on windows.

    so everything by deploying web applications in java on windows that I put a different name for "domain name".

    as linux domain name will be 'EPMSystem', so for windows it would be different as 'EPMSystem1'.

    There will be no problem if the domain names are the same for both linux and windows?


    and for weblogic server port must be different as 7001 on linux and 7002 on HFM?


    Kind regards

    Dattatray Mate

    Untitled.jpg

    Yes, please keep another domain name...

    Port is not a problem, you can use the same port as well

    See you soon!

    SH! going

  • Hello. Recently, I buy the suite adobe for students. I also paid for two months. But in my profile it says I have a free plan for testing applications. And I can't get the entire application. How can I solve this?

    Hello. Recently, I buy the suite adobe for students. I also paid for two months. But in my profile it says I have a free plan for testing applications. And I can't get the entire application. How can I solve this?

    Your subscription to cloud shows correctly on your account page?

    https://www.adobe.com/account.html for subscriptions on your page from Adobe

    If you have more than one email, you will be sure that you use the right Adobe ID?

    .

    If Yes

    Sign out of your account of cloud... Restart your computer... Connect to your paid account of cloud

    -Connect using http://helpx.adobe.com/x-productkb/policy-pricing/account-password-sign-faq.html

    -http://helpx.adobe.com/creative-cloud/kb/sign-in-out-creative-cloud-desktop-app.html

    -http://helpx.adobe.com/x-productkb/policy-pricing/activation-network-issues.html

    -http://helpx.adobe.com/creative-suite/kb/trial--1-launch.html

    -ID help https://helpx.adobe.com/contact.html?step=ZNA_id-signing_stillNeedHelp

    -http://helpx.adobe.com/creative-cloud/kb/license-this-software.html

    .

    If no

    This is an open forum, Adobe support... you need Adobe personnel to help

    Adobe contact information - http://helpx.adobe.com/contact.html

    Chat/phone: Mon - Fri 05:00-19:00 (US Pacific Time)<=== note="" days="" and="">

    -Select your product and what you need help with

    -Click on the blue box "still need help? Contact us. "

  • DPS 2015 cannot launch the application for testing in my iphone via itunes

    HI everyone the recruit again! Cannot start the application for testing in my iphone via itunes version 12.2.2 IOS 8.4 6! the test application is displayed on the screen of my iphone but there is installation and gray forever?

    Any ideas? perhaps update iphone with a new 8.4.1 version?  Thanks to everyone in advance!

    https://helpx.Adobe.com/Digital-Publishing-Suite/KB/unable-install-developer-IPA.html

    Neil

  • Test a web application that uses the emulator of the Blackberry, is - it possible?

    Hello everyone,

    I have a small java web application running on Apache Tomcat on a local computer. It works fine on my PC, but it is meant for Blackberry devices. Before I put in our web server, I want to test it on a Blackberry 8300 and 8900 emulators. Is this possible? I developed this web application using spring on Netbeans IDE, i.e. no special tool Blackberry.

    I appreciate every tip and trick!

    Thank you.

    Mazen.

    Thanks again for your response,

    I did the Simulator works well, but in another installation of Tomcat and Eclipse-Tomcat-Blackberry Simulator running the port. ELL, it works unless I have some JavaScript problems, so :-)

    Thanks again

    Mazen

  • Icons of drop-in customized for packaging stand-alone application on Mac OS x

    I can't add icons customized to a standalone package built on MacOSX.

    JDK1.7.0_06 with JavaFX 2.2.

    Directory structure:
    TestFX
    -bin
    -(update of class files)
    -build
    -Test.jar
    -deploy
    -package
    -macosx
    -Test.icns
    -Test - volume.icns

    From the Terminal:
    CD TestFX
    deploy - native - title "TestApp" - seller 'James Clément' - description "Quick Test Application" appclass - edu.marshall.denvir.tests.fx.TestFX - width 400 - height 400 - name 'Test' - outdir javafxpackager - deploy - Test - build srcdir - v outfile

    This creates the natives and DMG packages and they work, but there is no custom icons for file DMG installer or .app (just gray coffee cup icon).

    Here is the result. What confuses me is the 4th line and similar, with 'add package/macosx/Test.icns to the classpath to customize. " This file is relative to the current directory, but for some reason any is not picked up. If I switch to Windows (via VMWare) and add some windows/Test.ico in the package and run the same command, the custom .ico file is recognized.

    Looking for price for type = all = any format
    Prepare the Info.plist file: /var/folders/sd/8_vhkpzj539bxcjgp27wb75r0000gn/T/build6438886407189596362.fxbundler/macosx/Info.plist
    Using the default package [config file] resource (add package/macosx/Info.plist to the classpath to customize)
    Using the default package resource (add package/macosx/Test.icns to the classpath to customize) [icon]
    Creation bundle app: /Users/jdenvir/Documents/workspace/TestFX/deploy/bundles/Test.app
    Running [rm,-f, Users/jdenvir/Documents/workspace/TestFX/deploy/bundles/Test.app/Contents/PlugIns/jdk1.7.0_06.jdk/Contents/MacOS/libjli.dylib]
    Running [ln,-s... / Home/jre/lib/jli/libjli.dylib,.] in deploy/bundles/Test.app/Contents/PlugIns/jdk1.7.0_06.jdk/Contents/MacOS
    Configuration files are saved in var/folders/sd/8_vhkpzj539bxcjgp27wb75r0000gn/T/build6438886407189596362.fxbundler/macosx. Use them to customize the package.
    Package building for Test DMG
    Prepare the Info.plist file: /var/folders/sd/8_vhkpzj539bxcjgp27wb75r0000gn/T/build6438886407189596362.fxbundler/macosx/Info.plist
    Using the default package [config file] resource (add package/macosx/Info.plist to the classpath to customize)
    Using the default package resource (add package/macosx/Test.icns to the classpath to customize) [icon]
    Running [ln,-s... / Home/jre/lib/jli/libjli.dylib,.] in /var/folders/sd/8_vhkpzj539bxcjgp27wb75r0000gn/T/build6438886407189596362.fxbundler/images/dmg.image/Test.app/Contents/PlugIns/jdk1.7.0_06.jdk/Contents/MacOS
    Configuration files are saved in var/folders/sd/8_vhkpzj539bxcjgp27wb75r0000gn/T/build6438886407189596362.fxbundler/macosx. Use them to customize the package.
    Using the default package [dmg background] resource (add package/macosx/Test-background.png to the classpath to customize)
    Using the default package [volume icon] resource (add package/macosx/Test-volume.icns to the classpath to customize)
    Using the default package resource [script to run after the application image is filled] (add package/macosx/Test-post-image.sh to the classpath to customize)
    Preparation of installation dmg: /var/folders/sd/8_vhkpzj539bxcjgp27wb75r0000gn/T/build6438886407189596362.fxbundler/macosx/Test-dmg-setup.scpt
    Using the default package [DMG configuration script] resource (add package/macosx/Test-dmg-setup.scpt to the classpath to customize)
    DMG file creation: /Users/jdenvir/Documents/workspace/TestFX/deploy/bundles/Test.dmg
    Running [usr/bin/hdiutil create - quiet, - srcfolder, var/folders/sd/8_vhkpzj539bxcjgp27wb75r0000gn/T/build6438886407189596362.fxbundler/images/dmg.image, - volname, Test, - ov, var/folders/sd/8_vhkpzj539bxcjgp27wb75r0000gn/T/build6438886407189596362.fxbundler/images/Test-tmp.dmg -, format, UDRW]
    Running [usr/bin/hdiutil, attach, var/folders/sd/8_vhkpzj539bxcjgp27wb75r0000gn/T/build6438886407189596362.fxbundler/images/Test-tmp.dmg, - quiet -, mountroot, var/folders/sd/8_vhkpzj539bxcjgp27wb75r0000gn/T/build6438886407189596362.fxbundler/images]
    Running [osascript, var/folders/sd/8_vhkpzj539bxcjgp27wb75r0000gn/T/build6438886407189596362.fxbundler/macosx/Test-dmg-setup.scpt]
    Running [developer/tools/then-a, C, var/folders/sd/8_vhkpzj539bxcjgp27wb75r0000gn/T/build6438886407189596362.fxbundler/images/Test]
    Running [usr/bin/hdiutil detach,-quiet, var/folders/sd/8_vhkpzj539bxcjgp27wb75r0000gn/T/build6438886407189596362.fxbundler/images/Test]
    Running [usr/bin/hdiutil, convert, var/folders/sd/8_vhkpzj539bxcjgp27wb75r0000gn/T/build6438886407189596362.fxbundler/images/Test-tmp.dmg,-calme,-UDZO, - o, format Users/jdenvir/Documents/workspace/TestFX/deploy/bundles/Test.dmg]
    Installer DMG of Test result: /Users/jdenvir/Documents/workspace/TestFX/deploy/bundles/Test.dmg
    Configuration files are saved in var/folders/sd/8_vhkpzj539bxcjgp27wb75r0000gn/T/build6438886407189596362.fxbundler/macosx. Use them to customize the package.

    It is indeed a bug in utility javafxpackager introduced towards the end of the release. It has impact on Mac and Linux
    You can fix it on your copy of the javafxlauncher - edit
    /Library/Java/JavaVirtualMachines/JDK1.7.0_06.JDK/contents/home/bin/javafxpackager
    and
    replace
    classpath="$javafx_home/lib/Ant-JavaFX.jar".
    with the following line
    classpath=".:$javafx_home/lib/Ant-JavaFX.jar".

    I'll make sure that this problem is fixed in point 2.2.2.

  • Java web application UTF-8 encoding and mswin1252 Oracle database

    Hi all

    We need the following:

    Oracle Database 11 g Enterprise Edition Release 11.1.0.7.0 - 64 bit Production
    With partitioning, Oracle Label Security, OLAP, Data Mining,
    Oracle Database Vault and Real Application Testing options

    Developing on Jdeveloper 10.1.3.5 on WinXP Pro. Our production application servers are running on Windows 2003 10.1.3.4. I was using the jdbc libraries provided, but test now with the 11.1.0.7.0 drivers, downloaded from OTN.

    Database = WE8MSWIN1252 NLS_CHARACTERSET

    I guess our application servers are on WEMSWIN1252.

    Our application has to support french and English.

    We had problems with the unmapped characters (question mark reverse) in our database, and we suspect that these are special windows extended characters. Our java web application is set to the character set iso8859-1. We suspect that it is maybe the reason why some characters were is badly encoded in the comic book. Our application is built with struts 1.2.9.

    The page encoding UTF - 8 seems to be the standard for web applications. I changed our configuration of the struts controller to use UTF - 8. Using Jdeveloper OC4J local testing reveals that although the data extracted from makes it db correctly in the browser, registering with special characters is a problem.

    "Stéphane" recorded under "Sta © phane".

    I guess the question is here, mswin1252 is a single-byte coding scheme, but UTF - 8 is an encoding scheme of variable width and for some European characters, uses 2 bytes to represent. I think that's what I see here.

    Now it is, is it possible for us to use UTF - 8 in java application, but our database in MSWIN1252? I remember reading that the best practice is always to use a character set of superset in comics, as well as its subsets in customers. In our case, we also deal with both representations of variable width. I also remember reading that JDBC is based more on the nls_lang setting... can't jdbc do charset conversion?

    Thanks for the help

    Generally speaking, managers Oracle will do the conversion. I can't speak for the other executives, but whatever it is based on Java is expected to perform the conversion correctly.

    However, your colleague is right that it is strongly advised to have your database running with AL32UTF8 database character set. This is because when the application is configured for UTF - 8, you no longer control what characters people can conclude their browsers/clients. It is preferable to be able to store all the possible characters and no risk of data loss. In addition, any request must be fully compatible Unicode today ' today - including the backend.

    -Sergiusz

  • WebHelp for a Lotus notes application?

    I got to produce an aid package for a new internal application built around a Lotus Notes dabase. Users are on a large network with Unix, Microsoft, Domino and Novell components. They all use Notes for email and shared databases. And, of course, they use Web browsers, and many other applications not built in Lotus.

    Anyone had this experience? What is the best solution?

    Forget the help on the ground. I want to have a help button on each screen that displays the appropriate topic, preferably in the format complete tripane., our way to Web-based applications.

    I know that we can start a regular browser of the application of Lotus and give him the URL for WebHelp topics stored on the Intranet for example.

    Can we eliminate this network traffic by creating help topics in the Lotus/Domino environment?

    The developers think about this. Initially, they tell me to help topics must be in RTF Format. If this is correct, I can forget all the features, interactive and automatic, we offer via html and javascript, right?

    Please say that it ain't so, Joe.

    Harvey

    Hello Harvey.

    Sounds like IBM... 8 ^)
    If it IS, have someone get in touch with IBM Global Services in Boulder, CO - they have a lot of things re: Dominio and Web pages.

    I didn't have to do something special... everything has been done in html and stored in Domino by its structure. I've had many nested "subdirectories" but no problems. Everything was accessible by browser on the Web with no processing server - side everything was daily html that the browser is concerned. The only thing you need to know is the URL 'House' where your work is accessible.

    If 100% internal / intranet and all the pages are rendered in Lotus, roughly the same applies except that you will need to test any dynamic functionality and scripts.

    If the ADMINISTRATOR is all good, just give your project generated download in Domino.

    Kind regards
    GEWB

  • Development environment for 10g R2

    Guys,
    I need to set up a development environment for the development of forms of oracle 10g r2. I am a new on oracle and because of the downsizing, we lost our DBAs so I'm on my own and need your huge support...

    Current settings: Oracle on the server: Oracle 10 g R2
    My local client installation: 10.1.0.4.2
    Suite Developer downloaded oracle of oracle: Oracle Forms: 10.1.2.0.2 (Developer suite 10.1.2.0.2)

    * Is it a decent development environment? or any incompatibility do you see that? *

    Second, I have heard different things on the development environment and would like to your comments as well:

    * Can I develop application forms in my own office, OC4j connecting my local machine (supplied with the suite) developer to run and develop forms? or what I need to put it on the server where oracle is installed? *

    * Fact to our oracle server needs any of application (weblogic) Server installed or simply OC4j can run on the server to run the production of forms? *


    Please help me to resolve my confusion so I can introduce the development environment for my management...

    Thank you very much...

    -Raj

    Published by: user12236377 on January 28, 2010 10:55

    I just want to confirm one last thing... for purposes of development, I need not oracle application server to develop and test shapes on my local office OC4J and oracle connection is sufficient.

    Yes, developers just subsequently installed developer.

    But for testing (as I am the only developer) and the final production it has to work on oracle application server?

    The production, to use an Oracle application server (its also a matter of license). To be sure, confirm it by your Contact of Oracle.

    For the test, it depends... You have not necessary need to use an OAS, but if you do not, you do not test in "conditions of production.

    Published by: Andreas Weiden on 28.01.2010 20:42

  • Download 10.1 for testing

    Anyone know where I can get a bootloader 10.1 for test my application 10.1?

    Hello! What camera do you use? The links are still active, but no mention on the download page. Some of them can be found via google. For example, AutoLoader for Dev Alpha C:
    http://developer.BlackBerry.com/Native/downloads/FETCH/autoload-DevAlphaC-10.1.0.1485.exe

    In addition, there is a lot of beta versions on CrackBerry, usually, I test with them.

  • Sample code for OS 10 for installation and upgrading applications programmatically

    How to install an application programmatically on BlackBerry OS 10?

    For BlackBerry Java OS (until 7 of the BONE), we have this great article how to install an application programmatically:

    http://supportforums.BlackBerry.com/T5/Java-development/programmatically-install-and-upgrade-Applica...

    We use to distribute internal business applications. It is an essential feature for businesses. But of course it works different in BlackBerry OS 10.

    I can't find a similar API for BlackBerry OS 10. I would be grateful if someone could point me to the API which is similar to the former CodeModuleManager and CodeModuleGroup that allows to install applications programmatically. Is there a similar article like the one mentioned above that works for OS 10 and PlayBook?

    Thanks in advance!

    There is no api to do this all downloads are handled by BBW.

    The closest you could get to what you want to do is plug into the in-app payment API and add features to your core application.

    There are other solutions to see with the sideloading but it is probably too heavy for your users, search the forum for the many other thread similar to your requests.

  • Wireless communication with Java Desktop Application

    Hello

    I develop a Blackberry application that needs to communicate (sync) with an exisiting Java desktop application via a WiFi network. I leaned on the use of JSON to manage communication between the two messaging applications, but I don't know how to make the initial connection (i.e. taken?). I hope someone can point me in the right direction?

    Thank you.

    Simon is right, that part will need to say to each other to find (i.e. its IP address).

    Given that you have that, then you must have a treatment on your PC that can handle receiving queries from the BB and/or pushing requests for BB.  Usually BB will use with a Web server http communication.  In this case, I'm guessing you want to run a full Web server, in which case a socket connection seems the best option - so the BB would talk directly to your client application.  He is, provided with the tool, you have a SocketDemo which will be probably the largest part of the coding that you need.  Then take a look at this.

Maybe you are looking for