Size of the dynamic online ListField

My requirement is to have the dynamic height listfield, I implementd a listfied custom by extending a VerticalFieldManager for each line and adding to another verticalfieldmanager for scrolling effect, but I'm stuck when it came to adding images in each row.

I enclose the code to add textalone, of customrow

public class CustomRow extends VerticalFieldManager implements FieldChangeListener, FocusChangeListener
{
public CustomRow(String a, String b)
    {
        field = new RichTextField(a,RichTextField.NON_FOCUSABLE);
        field.setPadding(10, 10, 0, 10);
        field2 = new RichTextField(b,RichTextField.NON_FOCUSABLE);
        field2.setPadding(0, 10, 10, 10);
        _focus.setFocusListener(this);
        this.add(_focus);
        h = this.getPreferredHeightOfChild(field)+this.getPreferredHeightOfChild(field2)+10;
        _vfm = new VerticalFieldManager(){
            protected void paint(Graphics graphics)
            {
                h = this.getHeight();
                graphics.drawLine(10, h-1, Display.getWidth()-10, h-1);
                super.paint(graphics);
            }
        };
        _vfm.add(field);
        _vfm.add(field2);
        this.add(_vfm);
    }
}

A Y

One way is to make your line a HorizontalFieldManager, add your 'image' as a BitmapField, and then add a value for money, where you add your RichTextFields.

If you want to add lines by using this structure, loads, this will make slow processing, especially whenever you add a line.  You can do better your online custom a field.  But if you add only a few of them, it should run OK.

Tags: BlackBerry Developers

Similar Questions

  • Estimation of lines wrong with the size of the dynamic partition

    Hi all

    Version 11.1. RAC 4 knots. I met a sql that runs slowly because the bad LINES estimate. Here's the exectuion its plan.
    Please note that the plan is just a part of the plan real exectuion. And I have collected statistics for all the tables involved, so I think that statistics should be updated.

    Please see below. CBO estimated that only 640 lines for step 5 and 115 for this SQL totall. But the real result was almost 14K lines.
    I don't know if the CBO made this mistake because of the size of the dynamic partition?
    PLAN_TABLE_OUTPUT
    Plan hash value: 2984909170
    --------------------------------------------------------------------------------------------------------------------
    | Id  | Operation                | Name                    | Rows  | Bytes | Cost (%CPU)| Time     | Pstart| Pstop |
    --------------------------------------------------------------------------------------------------------------------
    |   0 | SELECT STATEMENT         |                         |   115 | 33005 |  2801   (8)| 00:00:09 |       |       |
    |   1 |  NESTED LOOPS            |                         |   115 | 33005 |  2801   (8)| 00:00:09 |       |       |
    |   2 |   PARTITION LIST ALL     |                         |     1 |   201 |  1482   (5)| 00:00:05 |     1 |    30 |
    |*  3 |    TABLE ACCESS FULL     | OPT_ACCT_ASDN_TYPE2_DIM |     1 |   201 |  1482   (5)| 00:00:05 |     1 |    30 |
    |   4 |   PARTITION LIST ITERATOR|                         |   640 | 55040 |  1319  (12)| 00:00:05 |   KEY |   KEY |
    |*  5 |    TABLE ACCESS FULL     | OPT_FUND_GEN_SPNDG_FCT  |   640 | 55040 |  1319  (12)| 00:00:05 |   KEY |   KEY |
    --------------------------------------------------------------------------------------------------------------------
    But I made another simple test, in which I just used a predict as partition_key =: b. the exectuion plan resembles
    PLAN_TABLE_OUTPUT
    Plan hash value: 1115434777
    ----------------------------------------------------------------------------------------------------------------
    | Id  | Operation             | Name                   | Rows  | Bytes | Cost (%CPU)| Time     | Pstart| Pstop |
    ----------------------------------------------------------------------------------------------------------------
    |   0 | SELECT STATEMENT      |                        |   980K|    80M|  1390  (17)| 00:00:05 |       |       |
    |   1 |  PARTITION LIST SINGLE|                        |   980K|    80M|  1390  (17)| 00:00:05 |   KEY |   KEY |
    |*  2 |   TABLE ACCESS FULL   | OPT_FUND_GEN_SPNDG_FCT |   980K|    80M|  1390  (17)| 00:00:05 |   KEY |   KEY |
    ----------------------------------------------------------------------------------------------------------------
    The estimate is more reasonable this time. Can someone show me why CBO made this mistake or why think CBO, there are only 600 lines while in reality there are more than 20 k lines.

    Best regards
    Leon

    Published by: user12064076 on March 2, 2011 12:10 AM

    Published by: user12064076 on March 2, 2011 01:01

    Published by: user12064076 on March 2, 2011 01:11

    The 'A-Time' is known to be wrong sometimes. However, the "buffers" are correct.
    So the reading of the partition of the fact Table was 14Mo scan (1804 puts buffer @8 KB each). Which is really not much.
    Yes, the cardinality estimate is off, but for a scan of 14Mo Oracle effort is not very high.

    Cardinality for the recovery of the fact table is based on the statistics of column for the BUS_UNIIT_SKID and the ACCT_SKID. Because Oracle does not know what BUS_UNIT_SKID and ACCT_SKID values will be extracted from the Dimension table that results in the query, it can't really come up with an accurate estimate - even more if the data are biased.

    From the column of table-level statistics, the optimizer knows how many distinct values of BUS_UNIT_SKID exist in the table.
    From the column of table-level statistics, the optimizer knows how many distinct values of ACCT_SKID exist in the table.

    But for a lost combination (BUS_UNIT_SKID, ACCT_SKID) in any unknown partition (the ' unknown' because it does not know the values or the partition during the query optimization) you can calculate an estimate only - the combined cardinality estimate is generally

    (somewhat simplified)

    Estimated_Number_of_Rows_of_Unknown_Partition  X     (1/Distinct_BUS_UNIT_SKIDs  X  1/Distinct_ACCT_SKIDs)
    OR
    Estimated_Number_of_Rows_of_Unknown_Partition  X    (5% estimate  X 5% estimate)
    

    that will be very low.

    You can run a plan to explain the "simplified" with the 10053 EVENT query

    alter session set events '10053 trace name context forever, level 1';
    explain plan for SELECT ......
    exit
    

    and display the trace file generated for more information on how Oracle considers the cardinality.

    Your problem with the complex query is not likely here. You have to restyle the entire query instead of focusing on the estimation of cardinality for this fact table.
    The query can be modified to help identify the Partition - Partition pruning - advance statistics?
    The query can be modified in order to carry out the operations in a different sequence - get first performance and the effort of each step of the query Plan.

    (BTW: the Dimension table reading was the most expensive part of this performance)

    Hemant K Collette

    Published by: Hemant K Collette on March 3, 2011 11:50

  • Troubleshooting problems of electronic mail to the dynamic online PDF form

    Hello

    I created a dynamic PDF using LiveCycle Designer ES.  At the end there is a button send and the end user should be able to click the button and it automatically emails the form to us.  We have received complaints that people have tried to send the form to us, but we have not received anything.

    I tested it and we had no problems here.  We have received the form of others outside of our agency.

    Any suggestions?

    Shayne Morgan

    Ministry of education of Nebraska

    Hello

    Was about to add this if at the end of the last post:

    • The email button is set to return a PDF file; and
    • The shape is not enabled, reader

    then users with reader will not be able to send the form by e-mail. This is because submission by e-mail requires Acrobat/Reader to save the shape first. Users with reader cannot save the form, if it is not enabled drive, then the script fails silently. The user clicks on the button, but nothing happens (no warning).

    So if you form is active player then this is not the issue. But if the form is not active player users with reader will be hurt.

    There is a summary of the features that are available/restricted according to what the user has (Acrobat/Reader) and the way in which the form is activated. It's on our blog on: http://assurehsc.ie/blog/?p=29

    Good luck

    Niall

  • Workstation 8 - decrease the size of the disk

    How one decreases the size of unallocated drive in advance single file?

    Vmware-vdiskmanager a possibility to increase, but does not the disk size

    How to decrease the maximum size of 150 GB to 75GB?

    How to decrease the maximum size of 150 GB to 75GB?

    You have more then a few options and to name a few...

    Make an Image, like a ghost Image and drive him back a smaller.

    Add a smaller disk to the virtual machine and the Image directly from one to the other, and then exchange the smallest to the largest.  Ghost and that too.

    Use any other third-party utility to perform the foregoing.

    Zero free space on the existing drive and then reduce it (if VMware Tools are installed automatically retractable function zeros space free first) then resize the virtual partition to a smaller size, leaving half of it unpartitioned.  This prevents the drive to grow larger then the size of the new virtual partition size.  The dynamic (non-destructive) resizing can be done with a software like GParted Live.

    VMware vCenter Converter to create a new virtual machine when resizing of the hard drive.

  • Restore the size of the log in Data Guard configurations

    DB version: 11.2
    Platform: Solaris 10

    We have currently a DB production which is not Dataguard.It has a load of joint working: some processing OLTP and batch.
    Its size of redo log is * 100 * MB.

    We will create a database with the requirement very similair but this DB will have primary standby (Data guard) and real time applies.

    To adapt to the requirements of dataguard, we should reduce the size of the recovery online newspapers? That is to say. Transport of small pieces of roll forward is better than carrying more. Right?

    Hello;

    If you use "real-time applies" the key is not the size so that the standby Redo Logs.

    In most cases, 100 MB is fine. Newspapers to sleep again must be the same size that it again.

    With 'real time applies' SRL act as a buffer.

    Unless you have a real problem with the size of do it again I would not change it.

    An excellent source of information on this is 'Restore the Services of Transport' in ' Data Guard Concepts and Administration 11 g Release 2 (11.2) "E10700-02".

    If you believe that your logs are too big departure "Troubleshooting performance problems with the database and base/MFG MRP [ID 100964.1]"

    Best regards

    mseberg

    Published by: mseberg on May 31, 2012 11:33

  • Why is the size of the Web page to get more small or bigger while I'm online? Am I touch a button or by pressing something by accident?

    Why is the size of the Web page to get more small or bigger while I'm online? Am I touch a button or by pressing something by accident? This happens to my daughter. We have all two computers laptops sony vaio. Does anyone else have this problem? Is there a way to avoid this?

    It is possible that one of the CTRL on your keyboard is blocked by sticky dirt coke or a faulty design on this model since it happens on 2 different Laptops:
    If you use the mouse wheel to scroll up and down your pages in Internet Explorer, CTRL + roulette is a shortcut for zoom, what would cause this symptom.

    The Vaio seems to use a complex configuration of the main keyboard drivers, search the Web for "sony vaio ctrl key pressed" to see some of these horror stories and how others solved the problem. Add your specific Vaio model name to the search string for more accurate results.
    Also check if the function FN keys work correctly, go to the Sony web site to check the driver for your model and Windows 7 updates.

    If you need to clean the keyboard, I suggest that you seek professional help.

  • APEX 4.2 limiting size of the value dynamic Action

    Hi all, I'm using ApEx 4.2.5 with 11 g BD and stumbled on this problem.

    I'm trying to set the value of a div within an HTML region. To do this, I use one set dynamic Action launched by a custom event "search" when user press enter or click OK to a search bar. I also use the PL/SQL function as set type body.

    I tested it and it works fine except if the content of the value is large enough (about 30,000 characters or more). I can't find any information about a size limitation for the return value of this type of package. I get this error code: ORA-06502 when I'm looking for a big content, and it seems that this error may occur when "you attempted to assign a value to a numeric variable, but the value is greater than the variable can handle", but I'll be back a PL/SQL CLOB variable in a div, so I don't see any kind of limitation. I think the limitation can be in the call made by apex in the background AJAX...

    I need help on this, thanks in advance.

    Gaël

    Hi gados12,

    gados12 wrote:

    OK, I tried something and the result is weird.

    I created a pakaged function to retrieve the right HTML content that is stored in my CLOB column (because I reached the limit of characters for PL / SQL code in dynamic action)

    So I called my function (allows to name it FNC_GET_SEARCH) my previous dynamic Action Set value. I still get the same error with large HTML content. However... it is there, it's weird.

    So that means the error is not my FNC_GET_SEARCH function, but the dynamic Action itself... So there must be some kind of limitation with this kind of dynamic action?
    Is it because the dynamic action to set the value using the package HTP in the background?

    The DA type 'Set Value' is for session state implementation and display the value of an element of page APEX value that is defined internally as VARCHAR2 (4000).

    As a result, you get the above error. Use the approach mentioned above to manage CLOB based rendering html.

    Also of your FNC_GET_SEARCH function for the display unit test error message.

    Kind regards

    Kiran

  • What are the causes of archivedlog of size to be different from the size of the online redo log?

    11 GR 2 on RHEL 6.2

    4 GB is our size of Redo Log online.

    SQL > select bytes/1024/1024/1024 GB of log v$.

    GB

    ----------

    4

    4

    4

    4

    But the archive logs are 3.55 GB in size instead of 4 GB. Some of the archivelogs that are smaller than 3.55 below must be caused by

    Archive log backup RMAN offers jobs at 10:00, 16:00 and 22:00 that initiates log switching (I guess)

    SQL > select (blocks * block_size/1024/1024/1024) GB of v$ archived_log where status = 'A ';

    GB

    ----------

    3.55978966

    3.31046581

    3.55826092

    3.55963707

    1.39474106

    3.561553

    3.55736685

    3.55881786

    .135155678

    3.55546999

    .054887295

    1.88027525

    .078295708

    1.97425985

    3.55703735

    3.55765438

    .421986103

    3.55839968

    < snipped >

    It has something to do with the parameter FAST_START_MTTR_TARGET ? It is set to zero in this PB anyway.

    SQL > show parameter mtt

    VALUE OF TYPE NAME

    ------------------------------------ ----------- ------------------------------

    fast_start_mttr_target integer 0

    SQL >

    He could carry on public discussions and private discussions as Jonathan Lewis points out in the other discussion that Mihael provides a link to.

    It could concern the parameter archive_lag_target

    It could be the result of the BACKUP of RMAN commands

    It may be a programmed script / who commands ALTER SYSTEM ARCHIVE LOG of employment issues.

    Oracle can create an archivelog that is smaller than the redo log, if it isn't a switch or command before archive the redo log is full.

    Hemant K Collette

  • PACK of PDF - is possible to "reduce the size of the file" in this online tool?

    I bought adobe pdf pack today and thought I would then subtract the size of the file of my pdf files online. I can see the pdf pack do not include this feature.

    If I upgrade to pdf pro pack, is the "reduce filsize" function included in this pack, or is - not possible to do it on the web?

    I think Acrobat Pro can optimize and reduce the size of the PDF file.

  • Dynamic PDF up to 200 images, the size of the pdf is greater, cannot save the data and images to the form

    Hi all

    My client would like to dynamic images up to 200 photos to my forms. It works very well. However, when I add images up to 35 images. I could not add images to shape more. Then I save data on the form. All the images and the data entered on the form are missing. I don't know why.

    If I add only 10 images - I can record data and images on the form. 15456 KB is the size of the pdf.  I was unable to add more photos or data on the form.

    There may be a problem the size of the pdf? How big can make a limited dynamic pdf?

    Can save us the information and images as much as we want?

    I spent two weeks to work and trying to figure out this problem. However, it is not successful.

    Help, please

    Cindy

    You must ensure that your users do not import large images.

    Therefore, you can use a script on the change event of an image field that checks the size of the data and warns the user if the file is too large.

    function formatNumber(number) {
        var num = number + '',
        x = num.split('.'),
        x1 = x[0],
        x2 = x.length > 1 ? '.' + x[1] : '',
        rgx = /(\d+)(\d{3})/;
        while (rgx.test(x1)) {
            x1 = x1.replace(rgx, '$1' + ',' + '$2');
        }
        return x1 + x2 + "KB";
    }
    
    var sizeLimit = 200, //allow upto 200KB images
      thisSize = Math.round((this.value.oneOfChild.value.length * 3 / 4) / 1024);
    
    if (sizeLimit > 0) {
      if (thisSize > sizeLimit) {
      xfa.host.messageBox("Note: With " + formatNumber(thisSize) + " the size of the imported image is greater that the recommended maximum of " + formatNumber(sizeLimit) + ".\nLarge images can cause a insufficent performance.\n\nIf possible, use images with the following recommended specs:\nFormat:\t\tPNG or JPG\nColor depth:\t8 Bit (higher is not supported)\nColor space:\tRGB (CMYK is not supported)\nFile Size:\t\t" + formatNumber(sizeLimit), "Recommended image size exceeded", 3, 0);
      }
    }
    
  • Change the size of the image dynamically in the BIP report

    Can we dynamically change the image size in the report of beep. If so can I get some samples or doccument on it.

    Thank you

    AJ

    To access the image locally, try the following:


    <>
    height = "3" width = "4".
    SRC="C:\Users\Aj\Desktop\nosignatures.jpg".
    />

    Thank you
    BIPuser

  • Definition of the size of the image in the dynamic text box

    I have a dynamic text box in which I'm embedding an image.  The following code fills the text box

    infoBox.informationText.htmlText=
         "<font size='16' color='#FFFAF0'>"+calledMarkerIndex+
         "\n<font size='14' color='#FFFAF0'>"+calledMarkerDate+
         "<img src='http://jacobull.files.wordpress.com/2010/06/ween.jpg'/>"+
         "\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n<font size='12' color='#FFFAF0'>"+calledMarkerDescription;
    

    How set the size of the image in the code above.  I tried to insert the width and height parameters after the path of the image, but an error is generated.  I would like for the width of the image to be as wide as the text of infoBox.informationText Dynamics

    Any suggestions?

    Also the path to each image corresponds to a variable called calledMarkerContent how could put the img src is equal to the variable called calledMarkerContent?

    Hello J,

    If you use a component to scroll, you can eventually use the ScrollPane for movieclips instead.

    The Adobe AS2 components reference:

    " The ScrollPane component to view video clips, the JPEGs and SWFs in a scrollable area. Using a scroll pane, you can limit the amount of space occupied by these types of media screen. The scroll pane can display the content loaded from a local drive or on the Internet. You can set this content during programming and execution with ActionScript. "page 1093 "

    This way you could integrate the area of dynamic text (for your text) both the movieclip (which has the text for your image inside box) that you can then scale them both in an another movieclip (parent), you use the ScrollPane component on.

    This way your text in dynamic text field dimensionnera not, the image can be scaleed to the size of what ever you like (dynamically) and if the two are sitting in a parent movieclip, this parent movieclip may have a ScrollPane component on it.

    How does that sound?

    Best regards

    Chris

  • dynamic stage resize to the size of the window

    Hello

    I spend a lot of time looking for a way to change the size of the stage with window size change. So I need some components to change their size with each change of the size of the stage. Anyone have an idea how I can do that?

    Thank you very much

    publish to 100 %x 100% or using javascript.

  • size of the lowest lowest PSD document: dynamic object layer nef raw remains imperturbable?

    If we have a document psd with a smart object layer, a component of camera raw as. Enlarged the nave,

    and then we cut the size of the document to 50% for the archiving of the space, I noticed the camera raw

    element retains its number of pixels. So now if I enlarge document (X 2) to return to

    the original size, maintain the sharpness of the original image quality? In addition to the size of 1/2,

    is that what we can export the object layer dynamics .nef to an enlarged image?

    The NEF file embeeded in the parent document is not affected by resizing the parent - you can still export it, and it still retains its full quality.

  • Small problem of calculation for the size of the Page when using overflow online

    Hello world:

    It seems to me that in 11g when I use:

    (1) a presentation of table form
    (2) overflow online
    (3) calculate the width of the Table

    The calculation does not take into account the width of the "twistie" as I call it, which is a small triangular arrow pointing at the time where there is something to the overflow inline and points downwards when you look at what is in the overflow online.

    Pages that have these 3 features have a scroll bar on the bottom, which needs a little more room. I guess that's the width of "twistie" is not taken into account.

    I looked on this forum as well as the Release Notes to see if it was a known problem, but did not find, and I can send you a unit with the HRSchema test, if you want to.

    I realize that I can use the "pixels" instead of calculating the width of the Table, but I thought I should report it to you if you didn't know already.

    Mary
    U

    Mary,

    You use JDeveloper 11.1.1.4?
    I so that explained. This version of JDev has some annoying layout changes. The good news is that JHeadstart 11.1.1.3 who has just been released should solve these problems of presentation.

    Steven Davelaar,
    Jheadstart team.

Maybe you are looking for