How to call a particular mathod

the problem is with my method for the binary search i believe its coded properly but i'm not sure how too call it at the bottom of the program.[b[]
here's the error i'm receiving
Binary (int[],int) cannot be applied to ()
how should i call it then? the binary search is marked with a comment
import java.io.*;
import java.util.Random;
public class ArraySort{
     int[] myArray, tobesaved;
     int myArraySize, myArrayHigh, findthis;
     long timeBegin, timeEnd;
     public ArraySort(){
     public int[] createIntegerArray(){
          System.out.print("\nEnter how large the array should be: ");
          BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
          try {
               String theinput = br.readLine();
               try {
                    myArraySize = Integer.parseInt(theinput);
                    if(myArraySize<=0){
                         System.out.println("The size of the array must be positive");
                         createIntegerArray();
               catch(NumberFormatException e){
                    System.out.println("Size of the array must be a number");
                    createIntegerArray();
          catch(IOException e){
               System.out.println("Input Error");
               System.exit(0);
          return new int[myArraySize];
     public int promptArrayHigh(){
          System.out.print("Enter the high range of the array: ");
          BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
          try {
               String theinput = br.readLine();
               return Integer.parseInt(theinput);
          catch(IOException e){
               System.out.println("Input Error"); System.exit(0);
          return 0;
     public void propagateArray(){
          tobesaved = new int[myArraySize];
          Random r = new Random();
          for(int i=0;i<myArraySize;i++){
               myArray[i] = Math.abs(r.nextInt()) % myArrayHigh;
               tobesaved[i] = myArray;
          System.out.print("Original Array: "+myArray[i]);
     public void displayStatus(){
          for(int i=0;i<myArray.length;i++){
               System.out.print(myArray[i]+" ");
          System.out.println("");
     public void sCounter(){
          timeBegin = System.currentTimeMillis();
     public void eCounter(){
          timeEnd = System.currentTimeMillis();
     public void displayTimeDifference(String what){
          System.out.println(what+" took: "+(timeEnd-timeBegin)+" milliseconds");
     public int getInteger(String prompt){
          String word = null;
          int returnint = 0;
          System.out.print(prompt);
          BufferedReader intbuffer = new BufferedReader(new InputStreamReader(System.in));
          try {
               word = intbuffer.readLine();
          catch(IOException ioe){
               System.out.println("Error");
               getInteger(prompt);
               System.exit(1);
          try{
               returnint = Integer.parseInt(word);
               if(returnint<=0){
                    System.out.println("Must be positive.");
                    getInteger(prompt);
                    return returnint;
               else {
                    return returnint;
          catch(NumberFormatException e){
               System.out.println("Must be a number.");
               getInteger(prompt);
               return returnint;
//Bubble Sort
     public void Bubble(){
          boolean swapoccured = true;
          int temp = 0;
          while(swapoccured){
               swapoccured = false;
               for(int i=0;i<(myArray.length-1);i++){
                    if(myArray[i]>myArray[i+1]){
                         temp = myArray[i];
                         myArray[i] = myArray[i+1];
                         myArray[i+1] = temp;
                         swapoccured = true;
//Selection Sort
     public void Selection(){
          int temp = 0;
          int minposition = 0;
          for(int i=0;i<myArray.length;i++){
               minposition = i;
               for(int j=i;j<myArray.length;j++){
                    if(myArray[j]<myArray[minposition]){
                         minposition = j;
               temp = myArray[i];
               myArray[i] = myArray[minposition];
               myArray[minposition] = temp;
//Insertion Sort
     public void Insertion(){
          int value = 0;
          for(int i=1;i<myArray.length;i++){
               value = myArray[i];
               int j;
               for(j=i-1;(j>=0) && (myArray[j]>value);j--){
                    myArray[j+1] = myArray[j];
               myArray[j+1] = value;
//Merge Sort
     public void Merge(int low, int high){
          if(low == high){
               return;
          int length = high-low+1;
          int pivot = (low+high)/2;
          Merge(low, pivot);
          Merge(pivot+1, high);
          int working[] = new int[length];
          for(int i = 0; i < length; i++){
               working[i] = myArray[low+i];
          int m1 = 0;
          int m2 = pivot-low+1;
          for(int i = 0; i < length; i++){
               if(m2 <= high-low){
                    if(m1 <= pivot-low){
                         if(working[m1] > working[m2]){
                              myArray[i+low] = working[m2++];
                         else {
                              myArray[i+low] = working[m1++];
                    else {
                         myArray[i+low] = working[m2++];
               else {
                    myArray[i+low] = working[m1++];
//Shell Sort
void Shell(){
     int h = 1;
while ((h * 3 + 1) < myArray.length) {
     h = 3 * h + 1;
while( h > 0 ) {
for (int i = h - 1; i < myArray.length; i++) {
int B = myArray[i];
int j = i;
for( j = i; (j >= h) && (myArray[j-h] > B); j -= h) {
myArray[j] = myArray[j-h];
myArray[j] = B;
h = h / 3;
//search of my choice
     public void search(){
          int counter = 0;
          findthis = getInteger("Seach for: ");
          for(int i=0;i<myArraySize;i++){
               if(myArray[i]==findthis){
                    counter+=1;;
          System.out.println(findthis+" occurs "+counter+" times in the array");
     public void Linear(){
          int counter=0;
          int findthis1 = getInteger("Linear Search for: ");
          for(int index=0;index<myArray.length; index++)
          if(myArray[index]>findthis1)
               break;
          if(myArray[index]==findthis1)
               counter+=1;
          System.out.println(findthis1+" occurs " counter" times in the array");
     //***Here's part of the problem*****
     public int Binary(int[]myArray,int x){
               int findthis2 = getInteger("Binary Search for: ");
          int left=0, right=myArray.length-1,mid;
          if(myArray.length==0 || x<myArray[0])return -1;
          if(x>myArray[right])return myArray.length;
          while (left<right)
               mid=(left+right)/2;
               if (x<myArray[mid])
               right=mid-1;
               else
               left=mid+1;
               System.out.println(myArray.length);
               if (x==myArray[left])return left;
               else return-1;
     public void setOriginal(){
          for(int i=0;i<myArraySize;i++){
               myArray[i] = tobesaved[i];
     public static void main(String[] args){
          // INSTANTIATE OBJECT, CREATE ARRAY WITH HIGH VALUE, FILL WITH RANDOM VALUES
               ArraySort as = new ArraySort();
as.myArray = as.createIntegerArray();
               as.myArrayHigh = as.promptArrayHigh();
               System.out.println("");
               as.propagateArray();
//               as.displayStatus(); System.out.println("");
          // BUBBLE SORT
               as.sCounter();
               as.Bubble();
               as.eCounter();
//               as.displayStatus();
               as.displayTimeDifference("Bubble Sort");
               as.setOriginal();
          // SELECTION SORT
               as.sCounter();
               as.Selection();
               as.eCounter();
//               as.displayStatus();
               as.displayTimeDifference("Selection Sort");
               as.setOriginal();
          // INSERTION SORT
               as.sCounter();
               as.Insertion();
               as.eCounter();
//               as.displayStatus();
               as.displayTimeDifference("Insertion Sort");
               as.setOriginal();
          // MERGE SORT
               as.sCounter();
               as.Merge(0,(as.myArraySize-1));
               as.eCounter();
//               as.displayStatus();
               as.displayTimeDifference("Merge Sort");
               as.setOriginal();
          // SHELL SORT
               as.sCounter();
               as.Shell();
               as.eCounter();
//               as.displayStatus();
               as.displayTimeDifference("Shell Sort");
//search
               as.search();
//Linear
as.Linear();
//****Here's the problem****
// as.Binary();

here's the error i'm receiving
Binary (int[],int) cannot be applied to ()
how should i call it then? the binary search is
marked with a commentThe error message is pretty straightforward: Binary (is that a constructor or a method? If it's a method, begin the method name with a lowercase "b".) needs an array of int and an int as arguments. They have some meaning to that method. You need to provide them.
What they mean is something that you should know and that really has nothing to do with Java programming. It's like trying to call authorizeCreditCard(String cardNumber) without actually passing it a card number. You need to understand what Binary(...) does and why it needs those arguments. Once you understand that, you should know how to provide them.

Similar Messages

  • How to call a particular event?

    Hello All,
    How to call a particular event like handle_data_changed after you press a button which is created in ALV.
    Regards,
    Lisa.

    ALV (Abap List Viewer)
    We can easily implement basic features of reports like Sort, Allign, Filtering, Totals-Subtotals etc... by using ALV. Three types of reports we can do by ALV as 1. Simple Report, 2. Block Reprot and 3. Hierarchical Sequential Report.
    alv grid types
    1) list/ grid
    these are having rows and columns
    function modules for this type are
    REUSE_ALV_LIST_DISPLAY
    REUSE_ALV_GRID_DISPLAY2)
    2) HIERARCHY
    this will have header and line items
    function module for this type
    REUSE_ALV_HIERSEQ_LIST_DISPLAY
    3) tree
    this will nodes and child type structure
    function module for this type
    REUSE_ALV_TREE_DISPLAY
    4) APPEND
    this can append all the different types of lists where each list has different number of columns
    events associated with alvs
    1) top of page
    2) end of page
    3) top of list
    4) end of list
    5) on double click
    6) on link click
    7) on user command
    some useful links:
    http://www.sapdevelopment.co.uk/reporting/alvhome.htm
    http://help.sap.com/saphelp_nw04/helpdata/en/99/49b844d61911d2b469006094192fe3/frameset.htm
    Examples:
    REPORT Z_ALV__ITEM .
    TYPE-POOLS : slis.
    Data
    DATA : BEGIN OF itab OCCURS 0.
    INCLUDE STRUCTURE t001.
    DATA : flag tyPE c,
    END OF itab.
    *DATA: itab like t001 occurs 0 with header line.
    DATA : alvfc TYPE slis_t_fieldcat_alv.
    DATA : alvly TYPE slis_layout_alv.
    data v_repid like sy-repid.
    Select Data
    v_repid = sy-repid.
    SELECT * FROM t001 INTO TABLE itab.
    *------- Field Catalogue
    call function 'REUSE_ALV_FIELDCATALOG_MERGE'
    exporting
    i_program_name = v_repid
    i_internal_tabname = 'ITAB'
    I_STRUCTURE_NAME =
    I_CLIENT_NEVER_DISPLAY = 'X'
    i_inclname = v_repid
    I_BYPASSING_BUFFER =
    I_BUFFER_ACTIVE =
    changing
    ct_fieldcat = alvfc[] .
    Display
    CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
    EXPORTING
    it_fieldcat = alvfc[]
    i_callback_program = v_repid
    is_layout = alvly
    TABLES
    t_outtab = itab
    EXCEPTIONS
    program_error = 1
    OTHERS = 2.
    In very detail it's not easy, i believe it's better for you to test the function modules to work with ALV :
    REUSE_ALV_FIELDCATALOG_MERGE to create the fieldcatalogue
    REUSE_ALV_GRID_DISPLAY - to display the ALV in grid format
    REUSE_ALV_LIST_DISPLAY - to display the ALV in list format
    Anyone, here's one exemple of creating ALV reports :
    REPORT ZALV_SLAS_GDF .
    Declaração de Dados
    TABLES: ZSLA_NIV_SAT.
    selection-screen begin of block b1 with frame title text-001.
    select-options DATA for ZSLA_NIV_SAT-DATA. " Data
    select-options LIFNR for ZSLA_NIV_SAT-LIFNR. " Nº de conta fornecedor
    select-options WERKS for ZSLA_NIV_SAT-WERKS. " Centro
    select-options EBELN for ZSLA_NIV_SAT-EBELN. " Nº contrato
    selection-screen end of block b1.
    DATA: BEGIN OF itab1 OCCURS 100.
    include structure ZSLA_NIV_SAT.
    data: END OF itab1.
    Outros dados necessários:
    Campo para guardar o nome do report
    DATA: i_repid LIKE sy-repid.
    Campo para verificar o tamanho da tabela
    DATA: i_lines LIKE sy-tabix.
    Dados para mostrar o ALV
    TYPE-POOLS: SLIS.
    *DATA: int_fcat type SLIS_T_FIELDCAT_ALV with header line.
    DATA: int_fcat type SLIS_T_FIELDCAT_ALV.
    DATA: l_key TYPE slis_keyinfo_alv.
    START-OF-SELECTION.
    Ler dados para dentro da tabela imat
    SELECT * FROM ZSLA_NIV_SAT
    INTO CORRESPONDING FIELDS OF TABLE itab1
    WHERE data in data
    and lifnr in lifnr
    and ebeln in ebeln
    and werks in werks.
    CLEAR: i_lines.
    DESCRIBE TABLE itab1 LINES i_lines.
    IF i_lines lt 1.
    WRITE: / 'Não foram seleccionadas entradas.'.
    EXIT.
    ENDIF.
    END-OF-SELECTION.
    Agora, começa-se o ALV
    Para usar o ALV, nós precisamos de uma estrutura do dicionário de
    *dados DDIC ou de uma coisa chamada “Fieldcatalogue”.
    Existe 2 maneiras de preencher a coisa referida acima:
    *Automaticamente e Manualmente
    Como preencher Automaticamente?
    O fieldcatalouge pode ser gerado pela Função
    *'REUSE_ALV_FIELDCATALOG_MERGE' a partir de uma tabela de qualquer fonte
    Para que se possa utilizar esta função tabela tem que ter campos do
    *dicionário de dados, como é o caso da tabela ITAB1
    Guardar o nome do programa
    i_repid = sy-repid.
    Create Fieldcatalogue from internal table
    CALL FUNCTION 'REUSE_ALV_FIELDCATALOG_MERGE'
    EXPORTING
    I_PROGRAM_NAME =
    i_repid
    I_INTERNAL_TABNAME =
    'ITAB1' "LETRAS GRANDES
    I_INCLNAME =
    i_repid
    CHANGING
    CT_FIELDCAT =
    int_fcat[]
    EXCEPTIONS
    INCONSISTENT_INTERFACE =
    1
    PROGRAM_ERROR =
    2
    OTHERS =
    3.
    IF SY-SUBRC <> 0.
    WRITE: / 'Returncode', sy-subrc,
    'from FUNCTION REUSE_ALV_FIELDCATALOG_MERGE'.
    ENDIF.
    *Isto era o Fieldcatalogue
    E agora estamos preparados para executar o ALV
    Chama o ALV
    CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
    EXPORTING
    I_CALLBACK_PROGRAM = i_repid
    IT_FIELDCAT = int_fcat[]
    I_DEFAULT = ' '
    I_SAVE = ' ' "'A'
    TABLES
    T_OUTTAB = itab1
    EXCEPTIONS
    PROGRAM_ERROR = 1
    OTHERS = 2.
    IF SY-SUBRC <> 0.
    WRITE: /
    'Returncode', sy-subrc, 'from FUNCTION REUSE_ALV_GRID_DISPLAY'.
    ENDIF.
    Please reward the helpful entries.

  • How to call a Particular View from a View of Current Component

    Hi Experts,
    Pls let me get a solution for my small issue..
    I do have 2 components cur_component and old_component which contain 2 Views each say, cur_vew1 & cur_view2 and old_view1 & old_view2 respectively.
    Now, When i click a button in cur_view1 then it should call the view - old_view1 of old_component and when i click a button in cur_view2 then it should call the view - old_view2 of old_component.
    When i tried, its calling the default view of the old_component. but i want to call the views of the old_component dynamically...
    hope am clear enough about my issue..
    Kindly help on me on this to solve this..
    With Thanks in advance,
    Amala

    hi ,
    have u done component usage to reuse ur old component in ur new component .
    refer this article on component usage :
    http://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/2e71ce83-0b01-0010-11a4-98c28a33195f
    to know , how to set the context attribute for visibility , u wud also like to go to this thread :
    Re: How to SET a value to an attribute usibng WIZARD?
    refer to Uday's reply in this thread as well  :
    Call view of another WDA Component and pass the value to it
    1) When you create your context at component controller level in component MAIN you have a property for the node which says as: "Interface Node" Just checkmark this checkbox. When you do this you would be able to share the data within your context nodes across other components.
    2) Specify a default value of AA in the "Default Value" property of the attribute in component MAIN
    3) Now go to your other component SUB which you would like to also get initialised. Define a usage of your component MAIN within this component.
    4) Go to your component controller & create your context node & attribute with exactly the same names as how you had created in your MAIN component.
    5) Do a mapping between the interface controller of your MAIN component & the component controller of your SUB component
    6) You would be able to see that the appearance of the node has changed to an interface node. This means that your SUB component now has an exact replica of your MAIN components context data.
    regards,
    amit
    Edited by: amit saini on Oct 13, 2009 2:47 PM

  • How to call a particular Customer through form Personalization

    Hi,
    Environment :- R12
    I have a requirement, to search a Customer info based on Sales Order form.
    Requirement:
    1. Open the Sales Order form, Query any order
    Now the user wants to pull the XBC Cusotmer information which was in the Customer Field.
    Naturally we can do by form personalization but here the Customer window is web based one. Can anybody have a hands-on on this. Please let me know.
    Thanks,
    ABR

    Pl see if the steps in MOS Doc 856139.1 ((Pics) How To Create Personalized Views For All Users In Professional Buyer Work Center) can help.
    HTH
    Srini

  • How to call specific view of used component

    Hi All,
    I have the following problem:
    I have component 1 which have two views: 1A and 1B. They are included in one window. Default view is 1A.
      Navigation between view 1A and 1B it made with buttons and plugs ("go to 1A", "go to 1B").
    I have main component 2 which uses component 1 (used component). Component 2 has view 2A and 2B. I have button "Z" in view 2A which calls method of component 1 and navigates to view 2B (where used component 1 is embedded).
    First time I press button I navigate to view 1A, its correct. Then I navigate to view 1B (within used component 1).
    when I go back (in main component 2) and press button "Z" again, the used component 1 is open with view 1B, not 1A (which is default). That is, used component 1 remember which view the navigation stayed on.
    I nee to always see view 1A first when I navigate with button "Z" (open used component).
    How I can do that?

    hi ,
    u must be using component usage ..
    in ur component2 , place the view 1B of ur used component in separate window
    pls refer this thread as well :
    How to call a Particular View from a View of Current Component
    regards,
    amit

  • How to call variable SlideID

    Hi all,
    I recently started using the export function for captions for translating purpose. That´s when I first saw the variable "Slide ID". It´s apparantly not a default user or system variable but I would like to use the Slide ID as reference for bigger projects as it´s unique and doesn´t change unlike slide number. I´ve tried messing around with the available system variables, adding SlideID instead of SlideNumber and stuff like but no luck so far. Does anyone know how to call that particular variable?
    Any help is appreciated.
    Thanks,
    goldmundig

    Aside from using AS3 in a widget, I'm not sure how you could accomplish it.  If you're using AS3, you can access the movieXML variable off of the maintimeline and that XML has unique identifiers for the slides as well.  But that only helps you in widget scenarios.  Maybe you could concatenate the slide label with some static text for a meaningful unique ID?  Possibly create a variable for each slide and assign the value on slide entry?... probably more work than it's worth.  It would be nice to have the Slide ID exposed...
    Jim Leichliter

  • How to call mouse event on particular treecell

    how to call a mouseevent on a particular Treecell of a Treeview
    I have tried with setcellfactory but the effect is applied to the whole TreeView. How can i apply it to a particular TreeCell

    How can it be? It seems not.
    Please allow me to clarify my problem-
    I have jcomponents on a layer of jlayeredpane.
    Now I can use MouseListener on the layeredpane.
    Like to get coordinates of the mouse and showing in a textfield -
    private void jLayeredPane1MouseDragged(java.awt.event.MouseEvent evt) {
             projectNameID.setText("Mouse dragged");      
        private void jLayeredPane1MouseEntered(java.awt.event.MouseEvent evt) {
            projectNameID.setText("Mouse entered");
        private void jLayeredPane1MouseExited(java.awt.event.MouseEvent evt) {
            projectNameID.setText("Mouse exited");       
        private void jLayeredPane1MouseMoved(java.awt.event.MouseEvent evt) {
            projectNameID.setText("Mouse moved");       
        private void jLayeredPane1MousePressed(java.awt.event.MouseEvent evt) {
            projectNameID.setText("Mouse pressed");
            currentPoint.setText("("+evt.getX()+" , "+evt.getY()+")");
        }                                          But when my mouse moves on the jcomponent created on a layer then the mouse events don't work.
    That means I need to add mouse event for that component.
    Now how can I do that?
    Edited by: fireball003 on Feb 28, 2008 1:12 PM

  • How to call particular method in action class from Portlets StrutsContent

    I am developing a web application which uses weblogic portlets and struts. This is what I have for now in the .portlet file.
    +<netuix:strutsContent action="getStudentList" module = "people/students"+
    refreshAction = "getStudentList" reqestAttrpersistence="none"/>
    I want it to change something like this:
    +<netuix:strutsContent action="getStudentList.do?method=allGrads" module = "people/students"+
    refreshAction = "getStudentLis.do?method=allGrads" reqestAttrpersistence="none"/>
    But this is not working. So how can I achieve something like that?
    Thanks
    Edited by: user13634949 on Jun 23, 2011 1:22 PM
    Edited by: user13634949 on Jun 23, 2011 1:22 PM

    No, i dont know how to call other than main methods from other classes
    And one more doubt i have i.e. Like in C can we see the execution of the program like how the code is being compiled step by step and how the value of the variable changes from step to step like(Add Watch).........

  • How to call a maintenance view  from a program

    Hello Abapers,
    Can anybody explain with some examples. How to call a mainetenance view from a program.
    Thanks
    Ranjith.

    Use FM 'VIEW_MAINTENANCE_CALL'.
    REPORT  zmaintaintest.
    VARIABLES / CONSTANTS                          
    CONSTANTS: 
                    c_action(1) TYPE c VALUE 'U',                                 "Update
              c_viewname TYPE tabname value 'ZEMP_EXAMPLE', "View Name
              c_field(6) TYPE c VALUE 'EMPNO'.                            "Field Name
    INTERNAL TABLES
    DATA: itab_rangetab TYPE STANDARD TABLE OF vimsellist,
              v_empno TYPE zempno,
              wa_rangetab TYPE vimsellist.
    SELECTION SCREEN
    PARAMETERS:     p_empno TYPE   zempno   OBLIGATORY.  "Emplyee ID
    AT SELECTION-SCREEN                                                 
    AT SELECTION-SCREEN.
    Chcking the existence of the user in EMPLOYEE table
      PERFORM validate_employee.
    START_OF_SELECTION                                                  
    START-OF-SELECTION.
    This will restrict the user view so that user can only view/change
    Table data corresponding to his/her Employee ID
      PERFORM define_limited_data_area.
    Displaying table maintenance view for a particular employee ID
      PERFORM call_view_maintenance.
    *&      Form validate_employee
    Validate plant entered in the selection screen
    FORM validate_employee.
      SELECT SINGLE empno     u201CEmployee ID
        FROM zemp_example     u201CEmployee Table
        INTO v_empno
        WHERE empno = p_empno.
      IF sy-subrc <> 0.
        MESSAGE 'Not an Valid User' TYPE 'I'.
      ENDIF.
    ENDFORM.                    "validate_employee
    *&      Form DEFINE_LIMITED_DATA_AREA
    To restrict the user view so that user can see/change table data
    corresponding to his employee ID. Here one internal table is
    getting populated with field name as u201CEMPNOu201D (Key field of the table)
    And value as given by user in Selection Screen and this is passed as
    Parameter in function module 'VIEW_MAINTENANCE_CALL'
    FORM define_limited_data_area.
      CLEAR wa_rangetab.
      wa_rangetab-viewfield  = c_field.
      wa_rangetab-operator  = 'EQ'.
      wa_rangetab-value       = p_empno.
      APPEND wa_rangetab TO itab_rangetab.
    ENDFORM.                    "define_limited_data_area
    *&      Form CALL_VIEW_MAINTENANCE.
    Displaying table maintenance view for a particular employee ID
    FORM call_view_maintenance.
      CALL FUNCTION 'VIEW_MAINTENANCE_CALL'      
        EXPORTING
          action           = c_action
          view_name   = c_viewname
        TABLES
          dba_sellist     = itab_rangetab.
    ENDFORM.                    "call_view_maintenance
    Regards,
    Joy.

  • How to call sub VI and close the main VI in while loop and sequence condition

    Hiya,
    I have a problem with the while loop and the sequential condition in placed together i.e while loop as Global and sequential condition as local (i.e inside the Global loop). For example,when calling the sub vi from the main vi (main vi as main menu and sub vi as sub menu.)My problem is I can't run my sub menu when the particular icon is pressed through the main menu and only the front panel appears. My concerned was if possible the sub menu is activated in few second then jump back to the main menu again (analyze through the diagram).So, I don't know what should I need to do. If possible, please advice me how to encountered that particular problem.
    Thanks!

    Go to your block diagram of your main menu, then click on the "Hightlight Execution" it is something like a bulb. then you execute your vi. then LV will show you all your data flow.
    When you feel sad, laugh

  • How to delete a particular row in ALV table

    Hi,
    How to delete a particular row in ALV table based on some condition(by checking value for one of the columns in a row)
    Thanks
    Bala Duvvuri

    Hello Bala,
    Can you please be a bit more clear as to how you intend to delete the rows from your ALV? By the way deleting rows from an ALV is no different from deleting rows from a normal table. Suppose you have enabled selection property in ALV & then select multiple rows and click up on a button to delete the rows then below would be the coding: (Also keep in mind that you would have to maintain the Selection property of the context node that you are binding to your ALV to 0..n)
    data : lr_table_settings  TYPE REF TO if_salv_wd_table_settings,
                 lr_config          TYPE REF TO cl_salv_wd_config_table.
      lr_table_settings  ?= lr_config.
    ** Setting the ALV selection to multiple selection with no lead selection
      lr_table_settings->set_selection_mode( value = cl_wd_table=>e_selection_mode-multi_no_lead ).
    Next delete the selected rows in the action triggered by the button:
    METHOD onactiondelete_rows .
      DATA:  wd_node TYPE REF TO if_wd_context_node,
             lt_node1 TYPE ig_componentcontroller=>elements_node,
             wa_temp  TYPE REF TO if_wd_context_element,
             lt_temp  TYPE wdr_context_element_set,
             row_number TYPE i VALUE 0.
      wd_node = wd_context->get_child_node( name = 'NODE' ).
      CALL METHOD wd_node->get_selected_elements
        RECEIVING
          set = lt_temp.
      LOOP AT lt_temp INTO wa_temp.
        wd_node->remove_element( EXPORTING element = wa_temp ).
      ENDLOOP.
      CALL METHOD wd_node->get_static_attributes_table
        EXPORTING
          from  = 1
          to    = 2147483647
        IMPORTING
          table = lt_node1.
      wd_node->bind_table( new_items = lt_node1 ).
    ENDMETHOD.
    If in case this isn't your requirement please do let me know so that I can try come up with another analysis.
    Regards,
    Uday

  • Can you see how many calls are waiting in a queue using Supervisor.

    Is there a way to see how many calls are sitting in a particular queue using supervisor or is there and additional software or hardware i need to use or purchase?
    I am using  Contact Center - 5.0(2)SR01_Build053

    Do you see any CSQs listed in the upper left box in the Supervisor?
    If so, when you click on one or the top-level tree item you should see stats relating to CSQs to the right. You may have to scroll that window accross so see some stats.
    Regards
    Aaron

  • How to call Operating System commands / external programs from within APEX

    Hi,
    Can someone please suggest how to call Operating Systems commands / external programs from within APEX?
    E.g. say I need to run a SQL script on a particular database. SQL script, database name, userid & password everything is available in a table in Oracle. I want to build a utility in APEX where by when I click a button APEX should run the following
    c:\oracle\bin\sqlplusw.exe userud/password@database @script_name.sql
    Any pointers will be greatly appreciated.
    Thanks & Regards,

    Hi Guys,
    I have reviewed the option of using scheduler and javascript and they do satisfy my requirements PARTIALLY. Any calls to operating system commands through these features will be made on the server where APEX is installed.
    However, here what I am looking at is to call operating systems programs on client machine. For example in my APEX application I have constructed the following strings of commands that needs to be run to execute a change request.
    sqlplusw.exe user/password@database @script1.sql
    sqlplusw.exe user/password@database @script2.sql
    sqlplusw.exe user/password@database @script3.sql
    sqlplusw.exe user/password@database @script4.sql
    What I want is to have a button/link on the APEX screen along with these lines so that when I click that link/button this entire line of command gets executed in the same way it would get executed if I copy and paste this command in the command window of windows.
    Believe me, if I am able to achieve what I intend to do, it is going to save a lot of our DBAs time and effort.
    Any help will be greatly appreciated.
    Thanks & Regards,

  • HT5463 how i can block particular number from my contacts list

    how i can block particular number from my contacts list please guide me because even true caller software is also not supporting iphone

    As Ocean20 said, there is no official function that does this built in. What you could do however is to find an app that mute calls that come from "blocked" numbers.

  • How to reserve a particular batch to a particular customer?

    HI All,
    How to reserve a particular batch to a particular customer?
    Not against order.
    That means only this customer or these customers can use the batch.
    Any idea will be appreciated.
    Richard

    Use tcode MSC2N -Change batch+ ( if no auto batch search strategy is used in sales order)+
    - Add a batch characteristic called "reservation status" which can have values
    1) reserved for sales order and 2) not reserved.
    Once the user selects the batch in the sales order, the user then can change the batch status as reserved for sales order using MSC2N. Similarly in the batch search strategy you can have the same characteristics and the user can select the value not reserved for the characteristics "reservation status". This way the batches assigned in the sales orders can be kept away from getting selected in the delivery document.
    If the user have NO authorization to use tcode MSC2N and if the sales order also uses the same batch search strategy,
    2) To use the quantity proposal field in the batch search strategy type.
    You can develop and add a routine to check whether the batch selected is assigned to a order or not.
    If the batch is allocated to a sales order, then the auto determination proposal can leave that batch from the proposal.
    Also, check following links:
    Batch determination in sales orders
    Re: ATP in SD on batch level
    Batch proposed automatically
    Thanks & Regards
    JP
    Edited by: J Prakash on Jun 14, 2010 11:43 AM

Maybe you are looking for