How to call the ObjectChoicefield by clicking any Buttonfield

My problem is

(1) I want to call this choice of subject field when click on any ButtonField

(2) how to customize the width according to my condition and I want to show this the button like the picture above

Thanks in advance.

Hi Anil,

In the method of sublayout Popup screen, you can give it

protected void sublayout (int width, int height)
{
Super.sublayout (width, height);
setPosition(x,y);
}

Now you can get the popup x, y

Tags: BlackBerry Developers

Similar Questions

  • How to call the web service?

    Hello

    I want to know how to call the web service from my application HTML5 & javascript.

    Please help me find this detail as what I can access easily. and I want to access web services online (a method of it) I'm not concered with how background Web service takes place.

    I just want that when you call a web service method, I will return the result.

    Please try this out for a WebService call

    var xmlhttp;
    xmlhttp = new XMLHttpRequest();
    xmlhttp.open("get","your url",true);
    xmlhttp.setRequestHeader("Accept","application/json");
    xmlhttp.setRequestHeader("Content-type", "application/json");
    xmlhttp.onreadystatechange=function() {
     if (xmlhttp.readyState==4) {
      if (xmlhttp.status == 200) {
        console.log(xmlhttp.responseText);
      }
     }
    }
    xmlhttp.send();
    

    This will display the result of the invocation of webservice. The url is the application that you deploy and the type can be get/post. If xmlhttp.send (post) takes argument for the display of the data. You can call it by clicking a button in HTML.

  • How to change the highlight color, click the button image and text and sound.  are there packages of buttons for use in my project?

    How to change the highlight color, click the button image and text and sound. are there packages of buttons for use in my project?

    Hello

    Even if the point of things based Web links buttons created using them is of simple images. Captivate uses simple images. If you need to put your creative hat and not to let the fact that you see the word 'web' scared you somehow. An image is an image. Use on the web, use Captivate. Same case!

    If you change the properties of the button, you can activate the legend of success. Fix any sound that you like with the legend of success and it will play when you click the button. If you do not want to see the legend of success, delete the text and configure it as transparent.

    See you soon... Rick

    Useful and practical links

  • How to call the setting menu of the BIOS on HP DV4 1540us netbook?

    Hi all

    How to call the setting menu of the BIOS on HP DV4 1540us netbook?

    F2 does NOT an on-screen BIOS setting.

    Is there another trick?  Or, perhaps, defining the procedure step by step to start the BIOS?

    TIA

    Power on the laptop and all logo HP being displayed, press F10.

  • How to call the procedure type table

    Hi I have the below requirement

    Created in the sub table type

    CREATE or REPLACE the TYPE char_type IS the TABLE OF VARCHAR2 (4000);

    create or replace procedure test_proc_type (p_type char_type) is

    Start

    I'm looping 1.p_type.count

    dbms_output.put_line (p_type (i));

    end loop;

    end;

    How to call the procedure with parameter as a type!

    SQL> create or replace type  char_type as table of varchar2(4000)
      2  /
    
    Type created.
    
    SQL> create or replace procedure test_proc_type (p_type char_type)
      2  is
      3  begin
      4    for i in 1..p_type.count loop
      5      dbms_output.put_line (p_type(i) ) ;
      6    end loop;
      7  end;
      8  /
    
    Procedure created.
    
    SQL> set serveroutput on
    SQL>
    SQL> exec test_proc_type(char_type('A','B','C','D','E'))
    A
    B
    C
    D
    E
    
    PL/SQL procedure successfully completed.
    
    SQL>
    
  • How to call the java function with javascript setting in mobile adf?

    How to call the java function with javascript setting in mobile adf?

    The ADF Mobile utility container API can be used from JavaScript or Java.

    Application container API - 11 g Release 2 (11.1.2.4.0)

  • How to call the stored procedure when I press the button

    Hello

    I want to know how to call the procedure/SQL statement when I press the button using callable statement.

    can someone give me it please link who knows the steps to do this.

    Thanks in advance,
    SAN

    Hello

    read this good example http://www.baigzeeshan.com/2010/05/calling-plsql-procedure-and-function-in.html

    ~ Abhijit

  • How to call the variables of the scene inside movieClips

    How to call the variables of the scene inside movieClips

    One way would be to use "MovieClip (root)" to target variables in the main timeline... MovieClip (root) .someVariable = someValue;

  • How to call the javascript function in ADF

    I have the javascript function stored in a .js file external (try to reuse in another application). How can call the javascript function for an event of ADF faces component. I need to I am a newbie to ADF, all ideas are appreciated.

    Kind regards
    Surya

    Published by: sgodavar on Sep 24, 2010 11:44

    Include JavaScript to the jsff/jspx as page:

    Call it like:

    Type = "dblClick" / >
    Amit

  • How to call the function (function Build-in user) in Pro * C program

    We have developed the application Pro * C program.
    TimesTen version is "TimesTen release 11.2.1.5.0 (64-bit, Linux/x86_64) (tt112150:53308) 2010-03 - 04 T 20: 39:30Z.

    We would like to develop Pro * C program you are using PL/SQL.

    We have a few questions.
    How to call the function (function Build-in user) in Pro * C program?

    #########
    TEST
    #########

    ttisql:
    Command > create or replace FUNCTION F_SAMPLE (i_str IN VARCHAR2)
    > BACK NUMBER
    > o_number NUMBER;
    > START
    > select i_str
    > in o_number
    > double;
    >
    > O_number RETURN;
    >
    > EXCEPTION
    > Others THEN
    > RETURN 0;
    > END;
    > /.
    display errors
    The function is created.
    Order > show errors
    No errors.
    Command >
    Command > set serveroutput on;
    Command > declare
    > number of num1;
    > start
    > num1: = F_SAMPLE ('A');
    > DBMS_OUTPUT. PUT_LINE ("F_SAMPLE" |) ' ' || NUM1);
    > end;
    > /.
    F_SAMPLE 0

    PL/SQL procedure successfully completed.

    Command >


    Pro * C case:

    EXEC SQL BEGIN DECLARE SECTION;
    number of num1;
    EXEC SQL END DECLARE SECTION;

    EXEC SQL EXECUTE
    Start
    : num1: = F_SAMPLE ('A');
    end;
    END-EXEC;

    Make sure to install:
    Error on line 146, column 3, file plsqlPROC.pc:
    Error on line 146, column 3 in file plsqlPROC.pc
    number of num1;
    .. 1
    PCC-S-02201, encountered the symbol "num1" when expecting one of the following conditions:


    Thank you.

    GooGyum

    There are two problems with your variable declaration:

    1. the name of the variable and type are thew misplacement autour.

    2. you may not use a host variable type.

    If you change this to:

    EXEC SQL BEGIN DECLARE SECTION;
    int num1;
    EXEC SQL END DECLARE SECTION;

    Then it will work very well.

    Chris

  • How to call the < af:query > Search feature by clicking on an image?

    Hi all

    I created a test named and I dragged on my page .jspx as "ADF with Table query Panel. I put the display as 'Simple' Mode in the Properties Inspector, who will hide all the default components of < af:query >. Now I use < af:commandImageLink >. My question is how can I call the < af:query > Search feature when the user clicks on an image? Any suggestion would be appreciated.

    Thank U...

    If you want to invoke af:query search by program button, follow these steps:

    1 Select af:query--> Advanced--> connections and bind it to the back bean

      
    

    2. in the .jspx add af:link like this:

    
              
    
    

    3 - runQuerySearchAction should be like this:

      public String runQuerySearchAction()
      {
        QueryDescriptor queryDescriptor = getRichQuery().getValue();
        QueryEvent queryEvent = new QueryEvent(getRichQuery(), queryDescriptor);
        queryEvent.setPhaseId(PhaseId.INVOKE_APPLICATION);
        getRichQuery().queueEvent(queryEvent);
        return null;
      }
    
  • How to keep the AVG toolbar at any time?

    Original title: I'm trying to figure out how to keep my toolbar avg at any time. Now, everytime I open internet, I have to manually put the avg toolbar

    I'm just trying to figure out how to keep my avg toolbar on without manually put it on the address of web browser every time I start upward.

    Hello JIM RODMAN.

    You can view the following:
    Have you tried with the right button on the Panel of toolbars and check if "AVG Security Toolbar" is selected on?
    Then check if you have selected:
    -Right-click on the Panel of toolbars and check 'Lock the Toolbars.
    -Check if the toolbar is 'hidden' on the right side of the toolbar Panel. It is a small box.

    If this does not help, then I suggest that you post on the AVG Forum because they know the ins and outs of their program.
    Click here for a link to the AVG forums.

    Sincerely,

    Marilyn
    Microsoft Answers Support Engineer
    Visit our Microsoft answers feedback Forum and let us know what you think

  • How to stop the ObjectChoiceField prompt you to save the window?

    Hi, I have 3 ObjectChoiceFields in my code to let the user select the information, then it passes the value to the next screen again. However when I click on the back button to return to the previous screen and exit the application, he always invites a window of notice asking me if I want to save, delete, or cancel. If I click on save, and then run the code again, the ObjectChoiceFields still shows the original value, if the backup does not really work. I would like to know how to do the backup works, so that the next time I run the code, it will present the values I chose last time. or another solution, how can I stop ObjectChoiceField prompt you to save the window?

    Thank you very much!

    Hello

    There are two ways to do this (assuming that the judgment save prompt will solve the problem)

    1.

    In the api using onSavePromptMethod();

    This method is a member of the screen class (AFAIK). You can override this and simply return true;

    Who can't let the application display quick check

    2.

    First, use this code in the onClose method

    If (getMainManager () .isDirty ()) {}
    getMainManager () .setDirty (false);
    }

    I found that 2 still works and uncertain about 1. But I prefer to use 1 and you asking to try that and tell if it worked on the side or not...

  • How to call the paint of another method program

    Hello

    I have a custom BitmapField that I would like to drawText, using graphics.drawText. Previously, I had no problem, that I would call setBitmap to the paint method and it would make the drawText. However, he did an infinite loop problem, so I moved it to another function, that will affect the value manually the bmp. Now, I am unable to drawText, that I placed this code in my service object. I would, however, when I select this particular BitmapField to drawText.

    For now, since another function setBitmap is not a very good option because this will call the FieldManager sublayout which I think can be a battery problem. Is there another way I can call drawText?

    What is the reason, once again, to not draw the text from inside her object?  Why must you to setBitmap() to draw the text in the first place?

    Indeed, setBitmap() inside of object causes an infinite loop (I remember this post).  However, it should not be linked to draw text in any way, nature or form.

    Check some (members) variable inside your method object and make the draw you need based on this value.  If you want your bitmapField to draw text under certain conditions, change the value of this member and invalidate(), causing object pick up the change.

    In addition, if your FieldManager sublayout a problem, there are a problem.  Look at this code and fix the bugs rather than them with all kinds of mobile code around masking.

    If you need more assistance, please post here the pieces of code (especially how you would draw the text when it worked) and we'll figure out something.

  • How to call the samples shipped with JDE

    Hello

    I'm new to the BlackBerry development. I downloaded and installed JDE 4.7 which contained similators 9530 and 9500. JDE and Load Simulator fine on my windows XP machine. I use JDK 1.5. I had a few teething problems if anyone can help it will be great.

    It's strange that this simulator does not load if the java environment variables (JAVA_HOME, CLASSPATH and path to the location of the binary java) are defined in the windows environment. It loads well if the environment does not contain these variables. I worked around this by setting the variables in the environment and using a jdkenv.bat file if necessary.

    When I run ide.bat (for JDE) he lookes for javaw.exe in the path which make sure by running jdkEnv.bat before ide.bat. So my JDE also charge very well. I did a generation of samples shipped with JDE he built successfully. So far so good.

    Problem:

    When I try to run the samples, it loads the Simulator fine. I also see the name of the sample applications, if I followed the following phone Simulator {options} USER interface-Advanced Options-Applications online online I can see the names of all listed here demo. But I don't see any UI on the Phone Simulator that I can use to invoke these demonstrations of?

    I tried an explicit charge of the demo by file-> load Java program, it displays an hourglass and returns me to the phone home screen. It also updates the date and time of the application above mentioned location to the new location. But I'm still not a UI element user where I can call it in the demo.

    How to call HelloWorld or PhoneApiLog demo of the Simulator.

    I'm new to the development of BB and I'm sorry if I'm missing something simple. But indications will be useful.

    Concerning

    asachdeva.

    Discovered samples at-online downloads.

    Thanks for taking a peek.

Maybe you are looking for