Development is shared by two fields?

Hello world

don't have think it was still possible, but take a look at this pic. I am facing a bug with BitmapFields coating - line orange around the button is rendered wrong. As you can see, the development is somehow shared by both two fields. I have change the events onFocus Bitmap and onUnFocus of the buttons.

And here is the song for one of my buttons:

             new_game = new BitmapField(new_game_select_img, Field.FOCUSABLE | FIELD_HCENTER) {
                 protected void onFocus(int direction) { this.setBitmap(new_game_select_img);}
                // protected void drawFocus(Graphics g, boolean on) {}
                 protected void onUnfocus() { this.setBitmap(new_game_img); }
                 protected boolean navigationClick(int status, int time) {
                     UiApplication.getUiApplication().pushScreen(new DiffAndCardsScreen());
                     this.getScreen().close();
                     return true;
                 }
             };

I use similar code for all other buttons on my screen, and they have made a lot, but here I "just shocked how is this possible?" Is this a bug or what?

Hey guys,.

Thanks for the reply. Now it is clear to me, it was a bug. I solved it occasionally by writing:

setPosition(-18, -18);

in sublayout() in my PopUp screen.  Also, I don't know how it is possible to set the screen on the screen of the device - but if you face made buggy similar to my problem, try this. I tested it on real device, and it worked.

Tags: BlackBerry Developers

Similar Questions

  • Need help to split the string into two fields

    Can someone share your thoughts by dividing the prod_info string below into two fields

    For example:-TABLE of PROD

    SOURCE TABLE

    SNO PROD_INFO
    120 OZ SIMILAC
    2HW PRO 10
    3REX 10 OZ
    4AAA 10
    5BBB 2000
    6CCC 10 LB
    7DDD 2021
    8EE 12 KG
    9KK 11111
    10ZZ ABC FAC 11
    11RKW DD CC 12 OZ
    1212KJ 12 LBS.

    EXPECTED RESULTS

    SNO PROD_INFO PROD_VAL
    1SIMILAC20 OZ
    2HW PDR10
    3REX10 OZ
    4AAA10
    5BBB2000
    6CCC10 LB
    7DDD2021
    8EA12 KG
    9KK11111
    10AEC ABC ZZ11
    11RKW DD CC12 OZ
    1212KJ12 LBS.

    with

    as Prod

    (select 1 sno, "SIMILAC 20 OZ" prod_info of all the double union)

    Select 2, 'HW PDR 10' from dual union all

    Select 3, 'REX 10 OZ' from dual union all

    Select option 4, "AAA 10' from dual union all

    Select 5, "BBB 2000"of the dual union all

    Select 6, 'CCC 10 LBS' double union all

    Select 7, 'DDD 2021' from dual union all

    Select 8, 'EE 12 KG' from dual union all

    Select 9, 'KK 11111' Union double all the

    choose 10, "ZZ ABC FAC 11' from dual union all

    Select 11, 'CC DD RKW 12 OZ' from dual union all

    Order 12, '12KJ LB 12' double

    )

    Select sno,

    (prod_info regexp_substr(prod_info,'^((\d*|\w*)[^[:digit:]].*) \d',1,1,null,1).

    regexp_substr (prod_info,' prod_value (\d+.*)$',1,1,null,1))

    Prod

    SNO PROD_INFO PROD_VALUE
    1 SIMILAC 20 OZ
    2 HW PDR 10
    3 REX 10 OZ
    4 AAA 10
    5 BBB 2000
    6 CCC 10 LB
    7 DDD 2021
    8 EA 12 KG
    9 KK 11111
    10 AEC ABC ZZ 11
    11 RKW DD CC 12 OZ
    12 12KJ 12 LBS.

    Concerning

    Etbin

  • Compare two fields in Eloqua API

    Is it possible to compare two fields Eloqua in the searchQuery of the Eloqua API calls in c# for example. searchQuery = "C_DateModified = C_DateCreated"?

    Unfortunately, this can not be done.

  • I have 3 domains. A field is a constant date mm/dd/yy. The second field is a digital number (1-120) and can be changed. The third field calculates two fields 1 and 2 in the summation and shown in mm/dd/yy. How do I calculate that in the script?

    How do I calculate that in the script? I have 3 domains. A field is a constant date mm/dd/yy. The second field is a digital number (1-120) and can be changed. The third field calculates two fields 1 and 2 in the summation and shown in mm/dd/yy.

    You searched for ' add days?

    You must write a custom for this JavaScript calculation because you cannot add a number any date. Also the date strings are not just a number, even if we can convert a given date in a number for that date that represents the time form a date date (Epoch). Witn this value, we can achieve them all kinds of date calculations and collect a little information about the date. JavaScirpt uses midnight on January 1, 1970 UTC for starting point or the date of the time. Its value is zero, and every millisecond increases the value of 1. When a date string is converted to the date object JavaScirpt we have access to many properties of the date and can use several methods to extract information or adjust the date object.

    Field 1 is in the format "Date" with a format of "mm/dd/yy".

    Field 2 is in «Number» format with 0 decimal.

    Zone 3 is in the format 'None '. The custom calculation script applies to the formatting.

    The custom for JavaScript calculation area 3:

    var cField1 = this.getField("Field_1").valueAsString;

    var cField2 = this.getField("Field_2").valueAsString;

    Event.Value = "";

    If (cField1! = "" & cField2!) = "") {}

    Console.println (cField1 + "" + cField2);

    calculate that if we as no null data;

    var cDateFormat = "mm/dd/yy";

    convert start date date object.

    Kai var = util.scand (cDateFormat, cField1);

    get the date of the month;

    David var = oDate.getDate ();

    Add field 2 number of days;

    David = Number (nDate) + Number (cField2);

    of being updated for the new date.

    oDate.setDate (nDate);

    Set the field to update formatting;

    Event.Value = util.printd (cDateFormat, letter);

    } / / end of data not null;

  • Add two fields

    I have two fields in the query that are created by a case statement. I created a calculated field in my report: Data Type Float, calculation: nothing, perform the calculation on: query. Tuition + query. RoomBoard, first value query. Tuition + query. RoomBoard, reset the field when: evolution, the Reset group: ID

    I get the following error when I run the report: query. Tuition + query. RoomBoard is not a valid expression of ColdFusion.

    What I am doing wrong?

    It appears that you want this amount for each record, right?

    If this is the case, then you may not use a calculated field. Insert a field in your detail band, choose "expression entered manually" and then use "question. Tuition + query. RoomBoard' as the expression.

    See you soon

    Eddie

  • Validation of two fields

    Hello.

    I use JDeveloper 11.1.1.7.0

    I have a simple form to create a table with 3 fields: ID, VALUE_1 AND VALUE_2. All fields are mandatory.

    I've included (not programmatically) validations for all areas, with personalized messages, but I need to include a new validation for the last two fields.

    I need to check that VALUE_2 is superior to VALUE_1.

    How can I complete this check?

    Is it possible to do not in one program by the way?

    Any help would be much appreciated.

    Thank you.

    Hello

    I guess you want to put validators at the level of the right business components? If this is the case, you could add a validator to your VALUE_2 with the following expression;

    newValue > VALUE_1

    Concerning

  • Select all dates between two fields txt. How?

    In a slider form 6i, I need to select all dates between two dates provided. I have two fields text Fld1 and Chp2 with the data type date. There is no table behind the two fields.
    For example
    ': FLD1: = MARCH 1, 2013;
    ': CHP2: = MARCH 10, 2013;

    Now I have to choose all dates between 01-mar-2013 and 2013-mar-10 '. How to do?

    Gul says:
    In a slider form 6i, I need to select all dates between two dates provided. I have two fields text Fld1 and Chp2 with the data type date. There is no table behind the two fields.
    For example
    ': FLD1: = MARCH 1, 2013;
    ': CHP2: = MARCH 10, 2013;

    Now I have to choose all dates between 01-mar-2013 and 2013-mar-10 '. How to do?

    As'salamualikum Gul

    Try this

    SELECT TO_DATE('01-MAR-2013', 'DD-MON-RRRR') - 1 + rownum AS d
    FROM ALL_OBJECTS
    WHERE TO_DATE('01-MAR-2013', 'DD-MON-RRRR') - 1 + rownum BETWEEN TO_DATE('01-MAR-2013', 'DD-MON-RRRR') AND TO_DATE('10-MAR-2013', 'DD-MON-RRRR')
    

    Hope this helps

  • Compare two fields...

    I want to compare two fields in a table with two fields from another table...
    as (table1. Column1 and table1.column2) = (table2.column1 and table2. Column2)
    Any help to solve?

    Sorry guys!

    In fact, it is very simple... Likewise, it is the usual way to compare 2 tables as (table1.col1 = table2.col1 and table1.col2 = table2.col2).
    I can get my output desired with this condition itself... I wrongly thought it's complicated...

    In any case thanks for your precious time!

  • How to subtract two fields in a form?

    I am working on a form of spending and I everything works except one thing.

    Subtract all on payments reports on previous expenditures on the State of current spending. I'm looking at the tab to calculate the properties of text field.  But I don't see a way to remove my two fields.

    Then, I set up a field that contains a negative, except when I display the field in the form, the negative is positive.  I enter-1 as a default value to my field of 'subtraction '.  I was then several 1 negative against most of payment the amount so I can get a negative on the amount of the payment.  I was then going to add the negative on the amount of the payment for the total amount to pay and arrive at a net due, but it does not work.

    Here is the calculation I'm doing:

    Total spending (field calculated from all previous fields.)

    Deductible expense (entered by the user)

    NET check fresh (Total expenses - deductible).

    Can someone tell me how to proceed?

    Thank you

    Dennis

    With Acrobat, there are 3 options of calculations.

    "The field is the _____ of the following fields:" options are for the sum, product, average, min and max operations or actions that could be repeated on several fields. We do generally not subtract or divide several fields in action.

    'Simplified field notation' uses only the field names and values. The field names must begin with an alphabetic character and has no spaces or special characters. Cannot perform conditional control statements or functions. Special characters or spaces may be in domain names, if the JavaScript escape character precedes the special character or a space. 4 arithmetic operations can be performed.

    'Calculation of custom JavaScript' has no restrictions on field names, control statements, functions or mathematical operations. We have access to the field object and the value property of the field object.

  • Returns the lowest value of two fields

    Hello

    I have two domains that users manually enter in a form.  Value1 and Value2.

    Someone at - it suggestions on the best way to use JavaScript to return the lowest value of the two fields?

    Thank you

    Natalie

    I think I misunderstood what you mean by any, I thought you wanted the calculated value to be None. The two fields value digital formats and modify the script for:

    Custom calculate script

    (function () {}

    Initialize the array

    aNums var = [];

    Get the field values as strings

    var s1 = getField("Value1").valueAsString;

    var S2 = getField("Value2").valueAsString;

    Convert values to numbers if not empty and add to the table

    If aNums.push(+s1) (s1);

    If aNums.push(+s2) (s2);

    Set the value of this lesser field of entries

    If both are blank, this field blank

    Event.Value = aNums.length? Math.min.Apply (null, aNums);:

    })();

  • Division of two fields in RTF?

    I try to divide the two fields in RTF, but he gave me concatination,
    I used the service devision, <? xdolst: a B div? > and <? xdofx:2 / 3? >
    any help please.

    Thank you

    Published by: 947014 on July 17, 2012 06:03

    Why?
    >



    >

    >
    I also tried the below, and it give blanck!
    >
    or empty course

    According to your xml file
    You need

    
    

    without

    I tried

    
    
    
    

    and it's work

    Published by: Alexandr on 18 July 2012 01:42

  • change a caption of text field based on two fields

    It's a bit complicated (for me anyway). So, bear with me on this while I try to explain it properly.

    Problem: I have two fields tfLastName and tfFirstName - in that order. I have another tfSignatureLine field. I need the legend on tfSignatureLine to change according to the value of the name and last name fields.

    Address: The two fields have a script output. This is the output for tfLastName script.

    if (!this.isNull && !this.parent.tfFirstName.isNull){ //first check to see that both fields have something in them.
              var name = this.parent.tfFirstName.rawValue + " " + this.rawValue; //create a variable that combines the values of the fields
              this.parent.parent.tfSignature1.resolveNode("caption.value.#text").value = name; //change the caption to the name
    }
    

    Of course, the output for tfFirstName script has the appropriate fi verification statement he and tfLastName.

    Error (operating time): When you fill in the fields, the second field to be left is the one who will update the name.

    Example: Assume that you are filling out a form for John Smith. Then, you enter 'Smith' tfLastName and 'John' in tfFirstName. tfSignatureLine now says 'John Smith'.

    Then he said: "BTW, it's"Jon"with no 'h..'" "then, you update this field. tfSignatureLine said: "Jon Smith".

    Then he said, "and it's 'Smyth' with a 'y' instead of 'i'." You update tfLastName and exit the field. tfSignatureLine is not updated. I've always said "Jon Smith". You continue and exit tfFirstName. THEN tfSignatureLine is updated.

    If you reverse the order (perhaps), tfFirstName will not update to tfSignatureLine, but tfLastName.

    Ideas: It almost feels like the problem is with the help of 'resolveNode' for the legend in the code. I couldn't find another way to change the caption without her, however. Is there something that I missed because I looked in this? Maybe something like "this.caption.value" or "this.caption.rawValue". Those who do not seem to work, so I think that it is not those specifically. Before I had the stated case, tfSignatureLine would have got "null Smith" as its value.

    I think that there is something to the top with your resolveNode syntax. Not sure that it works properly with things like this.parent.parent, etc. But can someone feel free to correct me on this point.

    I couldn't take a good look at your file, because it seems that you used fragments and you will need to incorporate into the document for others to see.

    The following works:

    If (! this.isNull &! tfLastName.isNull) {}

    var name = this.rawValue + "" + tfLastName.rawValue;

    tfSignature1.resolveNode("caption.value.#text").value = name;

    }

    But I never use resolveNode() like that, so am not sure of the syntax. I always use xfa.resolveNode () as:

    xfa.resolveNode("Path.To.FieldName.caption.value.#text").value

    You probably don't need references to 'parent' in your form. The best way to get the path to a field is to use the CTRL key, click on an object while you're in the Script Editor.

  • How I afford two fields and round?

    I need an average of two fields and then round the whole number closest. The two fields each will always have a value.

    If someone could help me out, I would appreciate it.

    T.

    Assuming you want it's a custom script calcuation for a field, it might look like this:

    Custom calculation script

    (function () {}

    Get the field values as numbers

    var v1 = + getField("text1").value;

    var v2 = + getField("text2").value;

    Set the value of this field to the average, rounded

    Event.Value = Math.floor ((v1 + v2) / 2);

    })();

    More information about the Math.floor method can be found in any decent JavaScript reference.

  • Help with Ora-19046: Out-of-table row cannot be shared by two top-level tab

    Hello!
    My tutor asked me to store and query xml "natively" files in xml db. First, I tried to save the patterns that rely on these xml files. There are about 30 patterns thus between them, and I have to use 'FORCE' them to save, like this:

    BEGIN
    () DBMS_XMLSCHEMA.registerSchema
    "http://www.isotc211.org/gmd/metadataEntity.xsd,"
    BFILENAME ('ISOGMD', 'metadataEntity.xsd'),
    TRUE,
    TRUE,
    FAKE,
    TRUE,
    (TRUE);
    END;

    So no tables are created automatically. And when I wanted to create a XML based on patterns of thses manually, he proped error: ORA-19046: Out-of-table row cannot be shared by two top-level tab. He mistook me for a week. Does anyone know what is the problem with registration? Forward online! Thank you!

    Maybe you're missing type due to the DeffaultTable = ""-xdb:annotation "
    Try to understand it with the trace file that will be created if you set

    ALTER SESSION SET EVENTS = '31098 TRACE NAME CONTEXT FOREVER' 
    
  • Add two fields of char

    Hello..

    I have a form with three fields with any type of char with length 5 data. I want to add Field1 and Field2 and save the result in field3.
    Data in Field1 and Field2, time in char format. I want to add these two fields and save the result in field3 as tank.
    But the addition of these two fields should be similar to the addition of two time values.

    Ex:
    Field1 = 04:30 and 05:30 = field2
    where in Field1 * 04 * refers to the hours * 24 HR format * and * 30 * refers to the minutes.



    Thank you..

    Try this

    :filed_3:=LTRIM(TO_CHAR(TO_NUMBER(SUBSTR(:FILED_1,1,2)+SUBSTR(:FILED_2,1,2))+TRUNC(TO_NUMBER(SUBSTR(:FILED_1,4,5)+SUBSTR(:FILED_2,4,5))/60),'00'))||
    ':'||LTRIM(TO_CHAR(MOD(TO_NUMBER(SUBSTR(:FILED_1,4,5)+SUBSTR(:FILED_2,4,5)),60),'00'))
    

    Hope this will help you

    If someone useful or appropriate, please mark accordingly.

Maybe you are looking for

  • Create exe with some vi files

    Hello I'm using LabVIEW 2010 I'm trying to build a "Main.vi" in an exe file, this Main.vi to dynamically call two vi "1(vi)" and "2.vi". I put between "always included" before generating the exe file. But after you have created the exe "1(vi)" and "2

  • problem sending emails

    Error message saying theres a problem with sending messages-to hotmail.co.uk account please check with your provider for more information Ive tried all sorts of things, but get this message, I can receive them ok

  • Note 'non connected' returns a lot, even if the printer is connected. What is going on?

    For a month, my printer HP don't printregularily any more, or sporadically. I've done obviously, turning works, but I always get the message "not connected". We live in a dusty, if the printer has collected too much dust in a year? We used to have th

  • Network access: 1326:Logon Error failure: unknown username or bad password.

    Why this message continues to flow upward on my Vista to access network: Error 1326:Logon failure: unknown username or bad password. I have no problem online or doing normal tasks, but it becomes quite boring. Help, please!

  • Unable to connect SupportAssist, save button does not work

    I installed SupportAssist, but I can't connect it. I click on the 'register' button, but nothing happens. I've tried uninstalling and reinstalling, SupportAssist to no avail. Still can not register. Can anyone help?