How can I use Method in the bean

Hi every one
please I made a method in for example employees entity "EmployeesImpl"
the name of method getmax() it return number
how can I use it at the bean
for eaxmple when I want to press button give me the value from this method
sorry Iam still beginner
thanks in advance

Thanks sir for your response
my version
oracle jdeveloper reales 1 (11,1,1,4,0)
I use business component
I make method
this metod wrote at enitity "EmployeesImpl"
public Number getMax() throws JboException
PreparedStatement stat=null;
ResultSet rs=null;
try {
String sql="select max(EMPLOYEE_ID)+1 from EMPLOYEES";
stat=getDBTransaction().createPreparedStatement(sql, 1);
rs=stat.executeQuery();
if (rs.next()) {
return new Number (rs.getInt(1));
} catch (Exception e) {
// TODO: Add catch code
//e.printStackTrace();
throw new JboException("error");
} finally {
try {
rs.close();
stat.close();
} catch (Exception e) {
// TODO: Add catch code
//e.printStackTrace();
// oracle.jbo.domain.Number
return new Number (1);
I made a jsf page
and I put button at the page
I want when press the button give me message contain the number which come from previous metod
thanks my dear

Similar Messages

  • I have an itunes account in Euro. I received iTunes and AppStore Gift Cards in $US. How can I use these on the same iWhatever?

    I have an itunes account in Euro. I received iTunes and AppStore Gift Cards in $US. How can I use these on the same iWhatever and keep together music/apps bought in the 2 currencies?
    Thx

    Barbara Hunt wrote:
    Would it be possible for me to download iTunes in Parallels and get the files into that and then onto my iPod?
    Yes, you can download iTunes for Windows using Parallels. If planning on making purchases here and/or authorizing already purchased tracks (from your Mac iTunes library), you are permitted to authorize five (5) computers as per iTunes Store terms of use, regardless of computing platform. No need to create a separate new iTunes Store account.
    However, judging from what you would like to do, your best bet would be to convert the WMAs to AAC/MP3 in iTunes-Windows (iTunes-Mac cannot import WMA files), and drag the files from the Parallels window to your desktop to add to the iTunes-Mac library. (as the iPod itself is currently linked to your iTunes-Mac library)
    Hope this helps,
    Steve

  • How can i use AME for the new OAF page.

    Dear all,
    I have developed a new OAF page and registered under Employee Self Service.
    How can i use AME for the approval process.
    Appreciate your ideas?
    zamora

    I will try to answer based on my experience of working with iProcurement and AME. It depends on how you want to make a call to AME , directly from OAF Page or from Workflow and your requirement. You didn't specify what you want to show the users on OAF Page and your business requirement.
    Before calling AME Engine from the OAF page or workflow, I guess you did already setup AME Transaction Type and it's Approval Groups, Conditions, Action Types and Rules. Do some testing from AME Business Analyst Test Workbench. Please note that, AME provides lot of PL/SQL API's that you have to call from your programs (java or workflow pl/sql)
    Let's look at the workflow and putting an OAF Page as notification.
    As Sameer said, you have kick-off workflow process from PR of CO and with in the workflow function, you make a call to AME Engine API's with the AME Transaction ID. This transactionId belongs to the AME Transsaction Type that you setup. Based on the rules setup, AME Engine generates list of approvers/approver and stores them AME Tables for that transactionId. Then, it sends a notification to the approver.
    In the workflow, where that notification is defined, in the message body you have to put an attribute(&XX_WF_FWK_RN) of type document/send. And this attribute will have the constant JSP:/OA_HTML/OA.jsp?OAFunc=XX_FUNC&paramId=-&DOCUMENT_ID-. This function is SSWA Jsp function that makes a web html call to your OAF Region.
    If your requirement is to just show the list of approvers on the OAF Page, you may have to call AME API diectly passing your AME TrasnactionId with other parameters. Then AME generates list of approvers and stores them in AME tables with each approver status. You can pickup those approvers using VO and show them on OAF Page.
    Hope this gives some idea.

  • How can I use some of the image i am working on to paint with? like if I wanted to give someone an extra eye in the forehead, ow could i then paint their own i in the forehead? I know there is a paint tool for that, i just can't find it ... :/

    How can I use some of the image i am working on to paint with? like if I wanted to give someone an extra eye in the forehead, ow could i then paint their own i in the forehead? I know there is a paint tool for that, i just can't find it ... :/

    It sounds like you are talking about the cloning tool?
    Tool looks like this:
    Then when selected you can change the size of the brush and using Alt (windows) and Command (Mac) to select your region you want to copy then start to create you cloned image.
    Hope this helps?

  • I got an iPhone 4 while I was living in Japan. How can I use it in the states now that I live here?

    I was using an iPhone 4 while I was living in Japan. How can I use it in the states now that I live here? It is a perfectly good phone and I don't want to use it only as an iPod and camera.

    That's one option. The other is to sell it (you can probably get close to what you paid for it) or trade it in and get a new unlocked phone directly from an Apple store. That way you can use it in the US, and also in Japan when you return there.

  • How can I use comma in the return values of a static list of values

    Hi all,
    I want to create a select list (static LOV) like the following:
    Display Value / Return Value
    both are "Y" / 'YY'
    one is "Y" / 'YN','NY'
    I write the List of values definition is like this:
    STATIC:both are "Y"; 'YY',one is "Y";'YN', 'NY'
    However, it is explain by htmldb like this:
    Display Value / Return Value
    both are "Y" / 'YY'
    one is "Y" / 'YN'
    / 'NY'
    I tried using "\" before the ",", or using single or double quote, but all these do not work:(
    How can I use a comma in the return values?
    Thanks very much!

    "Better still, why not process the code of both Y with 2Y and one is Y with 1Y? "
    Could you please explain in detail? thanks! I am quite new to htmldb
    In fact I have a table which has too columns "a1" and "a2", both the values of these two columns are "Y" or "N". AndI want to choose the records that both a1 and a2 are "Y", or just one of a1, a2 is "Y".
    So I write the report sql like this:
    "select * from t1 where a1 || a2 in(:MYSELECTLIST) "
    Thus, I need to use "," in the LOV, since expression list in IN(,,,) using ",".
    Any other way to implement this?

  • How can i use or embed  the ' C'  language in java

    thanks a lot friends for your suggestion on using 'c' language to implement the control of the keyboard ie. to prevent a key stroke of : ctrl+alt+delete keys from closing a running java application. i was advised that it won't be possible to implement this with java language, the use of 'C' language was suggested. i then wish to ask the following:
    1. how can i use 'C'language in a java program and be able to compile to program so that the resultant program can help me prevent the closing of my java-application when the user of the application presses the following keys : ctrl+alt+delete. i don't even know the c language at all. how can i start and how can i combine the resultant code with java.
    2. i'm thinking of creating an application that retrieves information from a database, like microsoft sql or oracle, and displays the resultant data from a table, say STUDENT TABLE, in a java application using the JTable class. i don't even know how to use this JTable but i've seen it used and know it will suit what i have in mind.
    3. how can i make the table dynamic, ie. how can i make the table to immediately register / show the result of an update to the 'STUDENT' table in the database.
    4. THANKS FOR YOUR HELP IN ADVANCE. i will most appreciate it if you can give me a sample code or a site where i download one. once again thanks.

    Good luck disabling Ctrl+Alt+Del! I've read quite a bit about it, and at least on Windows 2000 (not sure about NT) or higher, disabling it is next to impossible. Problem is CAD is a system command, and the OS doesn't even send the keys to the active program. Ctrl+Alt+Del is handled by the GINA (Graphical Identification and Authentication) DLL installed on the system. You'll have to write and export the functions you need and change the GINA DLL used by the system to your own. Bear in mind that any small mistake in the dll can cause you to lose access to your computer if you haven't taken precautions!
    On Windows 95/98, disabling Ctrl+Alt+Del is fairly easy as you just have to write some simple native code to fool the system that a password protected screensaver is running.
    I've provided a link regarding winlogon and GINA here, but you've been forewarned!
    http://msdn.microsoft.com/library/default.asp?url=/library/en-us/security/security/winlogon_and_gina.asp

  • How  can call a method incide  the method in jsp

    I wrote some statement inside the scriptlet(<% %>)
    then i want call another method ,that one inside the same script let..please replay...

    please help How can write a function inside the JSP

  • How can I use method?

    These codes are not complete. But I am just wondering if I can use methods to write these. I am writing a menu to sell chairs and buy parts (of the chairs). So when user enter 1, it invoke method sell chair, enter 2 to invoke buy parts, and calculate the addition/reduction of inventory and monies. But I am not quite sure how I can do that.
    import java.util.*;
    public class Test {
         public static void main (String[] args) {
            Scanner sc = new Scanner (System.in);
            int frame = 10;
            int legs = 50;
            double money = 500.0;
            int opt = 0;
            do {
                 System.out.println("Press 1 to sell chair.");
                 System.out.println("Press 2 to buy parts.");
                 System.out.println("Press 3 to display summary.");
                 System.out.println("Press 4 to end program.");
                 opt=sc.nextInt();
                 switch (opt) {
                      case 1:
                           sellChair();
                          break;
                 case 2:
                           //invoke buy parts method
                           break;
                 case 3:
                           //display current frames and legs in inventory and cash on hand
                           break;
                 case 4:
                           System.out.println ("You have end the program.");
                           break;
                 default:
                           System.out.println ("Invalid option. Try again.");
                           break;
            } while (opt!=4);
            } //main
         public static void sellChair() {
              Scanner sc = new Scanner (System.in);
              int f = 0;
                 int l = 0;
                 double m = 0;
              System.out.println("Enter quantity");
              int qty = sc.nextInt();
              f--;
              l-=4;
              m+=15;
         //buy parts method
    } //class

    If you want your methods to have access to your variables, consider passing the variables as parameters to the method. If you want to change the variables from within the method (care must be taken here as bad side-effects can occur), then the variables need to be declared in the class not in the main method. I would like to dissuade you from doing the latter unless necessary. If you want your method to return something that can be used by the calling method, then make it a non-void method and have it return something.
    good luck.

  • How can I use methods of an object with private instantiation in my ABAP?

    Hello all,
    What is the work-around on using methods of an object marked as private instantiation? I tried to use concepts of <b>INHERITANCE</b> or <b>FRIENDS</b> of an object (<u>BCONTACT </u> in my case - a SAP standard object) but it did not work, or at least, I do not know how to properly code the statements in my ABAP program.
    Any code samples, other ideas?
    Your help is greatly appreciated.

    I am closing this question as there has been no answer.
    Message was edited by:
            Goharjou ardavan

  • How can I use airplay in the classroom?

    I want to use my iPhone in the classroom via airplay.  How do I do this without having to pay for an airport express?  Can I not just mirror the images wirelessly?

    Hi
    To use airplay you need an airplay capable device such as Apple TV and an iPhone that is 4s or higher, mine is only 4 so I can't access airplay. Once both the Apple TV and phone or iPad are connected to the same wireless notwork you will be able to mirror your screens.
    I hope this helps.

  • How can I use WebGLview in the iBook widget template in iAd producer?

    Recently I am trying to use iAd producer to create a iBook Author widget. What I need is to show a 3D .obj file in it. How can I do that? Is WebGL supported in the iBook Author template?

    Per iAd Producer help (https://help.apple.com/iadproducer/mac/5.0/index.html?localePath=en.lproj#/iade7 39fa44):
    Available in ad projects only.
    It was noted during an iBooks Author / iAd Producer seminar I attended that iBooks had not enabled WebGL content, so I encourage you to request support from Apple:
    http://www.apple.com/feedback/ibooks.html
    Alternatively, iBooks Author can present .obj files natively in their own widget:
    http://www.apple.com/ibooks-author/gallery.html#gallery-interactive-3d
    Obviously, the presentation is limited to the object and not any of the other interesting things you might be able to do with HTML and a WebGL object.
    Does that help?

  • What is User flag and how can i use it with the mails?

    Hi.
    i do wana know what is meant by user flag and how it is different from System flag.?
    can i use user flag to distinguish the mail. in my application?
    Thanks,
    Dushyant Kumar

    System flags are defined by the IMAP spec and every server has to support them.
    User flags are defined by the application. Different IMAP servers may have different
    limitations on user flags.

  • How can I use most of the features of firefox 5 without changing the appearance of my browser?

    I just downloaded the new version of firefox, and everything seems great except for the new layout and the change in general appearance. It is less streamlined and more distracting. I do not like the blocky look of the buttons or the lack of division between sections. Is there a way to keep the changes in the way firefox 5 works without the change in appearance?
    If there is not, how can I reload the old version of firefox until one I like better is released?

    See items 1- 10 in
    You can make Firefox 4.0.1 and '''Firefox 5.0''' look like Firefox 3.6.17, see numbered items 1-10 in the following topic [http://dmcritchie.mvps.org/firefox/firefox-problems.htm#fx4interface Fix Firefox 4.0 toolbar user interface, problems (Make Firefox 4.0 look like 3.6)]
    I would try to stick with the silhouette gray/black buttons, but since it already bothers you at least stick to a theme or style limited to the ones on the toolbars (not the dialogs, which would be too wasteful) see item #48
    * [https://addons.mozilla.org/firefox/addon/strata-xp/ Strata XP] (Theme (buttons), 13.3KB), replaces silhouette toolbar icons with color. Icons are smaller and perhaps less distinguishable.

  • How can I use eCompanion in the Author mode with the visual editor in Firefox?

    Our college uses eCompanion, but the current platform on works with the visual editor in the XP version of the Windows operating system. Online Chat help said that using Firefox with the Xihna Here plugin was a successful work around. I am unable to find information about the above listed plugin. I need help.

    I have been experiencing similar problems with the HTML Editor and have managed to find an answer that should start to answer some of my questions. The Apex HTML Editor Standard is actually an HTML editor called FCKeditor. The FCKeditor has a Javascript API that can be found at http://docs.fckeditor.net/FCKeditor_2.x/Developers_Guide/JavaScript_API. Unfortuately this doesn't seem to give the whole answer and I found more at http://www.houseoffusion.com/groups/cf-talk/thread.cfm/threadid:49607.
    I needed to get the text entered within my html editor standard (e.g. P1_MYTEXT) and use it within my javascript function. I did this by using the following script
    <script language="JavaScript" type="text/javascript">
    function showtext(){
    var oEditor = FCKeditorAPI.GetInstance('P1_MYTEXT');
    var editortext = escape(oEditor.GetXHTML(oEditor.FormatOutput));
    alert(editortext);
    </script>
    Hope this helps.
    Matthew

Maybe you are looking for

  • Infotype checks

    Hi all, I made a custom infotype, in which there is an lov and corresponding valuse and keys are in the domain of that field. Now, When the user creates a record he should be simply allowed to do so, but when <b> the user is changing a record in pa30

  • NO outhariration to post this GL account

    HI GUYS           here I'm facing an error "NO outhariration to post this GL account" I was created credite memo request in VA01, then with respect credit memo request,I was created credite memo, in" VF01" then i went to generate the Accounting docum

  • XML Won't Transform in Batch [JS, CS3]

    When I use import xml manually into indesign, it works - but when I import it using the script below, it does not apply the transformation. Any ideas? with(app.activeDocument.xmlImportPreferences) {         allowTransform = true;         transformFil

  • In Oracle RAC environment which is OLTP database? load balancing advantage.

    In Oracle RAC environment which is a OLTP database? List the options for load balancing along with their advantages.

  • Import BLOB data into Database

    I am trying to import data into a database, via the imp command. However, it creates the rows in the tables, without the original blob data or its somehow lost the internal link to it. What could I be doing wrong, and what needs to be done to correct