Y at - it a readonly richtext field?

Y at - it a cascades component that has the following attributes:

-Can make multiline

Read-only

-Show a style rich text/HTML

-Be able to select the text in the component

I tried to use a TextArea by putting it in read-only mode by disabling the feature, but that adds a grayish appearance to the text.  Labels would work, but the user cannot select the text.  Component someother is available?

Yes, but this is not what you expect. There is no support RichText cascading, which is a pain, but you can accomplish what you want with a WebView. Place it on your page as you would for a text field, and fill it with HTML text styles you like. One good thing about this approach is that WebView allows you to set default QML/C++, CSS, which allows to manage the color themes itself without changing the body of the text to display.

I'm doing this in my application support for multi-page popup where I wanted it to be able to display text bold, italic, and colorful, but also to the justification of the text. Just make sure you put interactive as tags in your text, and it will behave as a field read-only.

Tags: BlackBerry Developers

Similar Questions

  • RichText field active hyperlink problem

    Hello

    I write a URL in the current RichText field. After you click that, it's hitting the server and back to my application. But after his return also it displays the element menu to open the link. I've implemented the navigation click. How can I remove the menu items or the pop-up windows by clicking.

    Here is my code:

           mCrtHyperlink = new ActiveRichTextField("url")
            {
                int color = Color.BLUE;
                protected void onFocus(int direction) {
                    color = Color.GREEN;
                    invalidate();
                }
    
                protected void onUnfocus() {
                    color = Color.BLUE;
                    invalidate();
                }
    
                protected void paint(net.rim.device.api.ui.Graphics g) {
                    g.setColor(color);
                    super.paint(g);
                }
    
                protected boolean navigationClick(int status, int time) {
                    // TODO Auto-generated method stub
    
                    Browser.getDefaultSession().displayPage("http://otp.arcot.com");
                    UiApplication.getUiApplication().invokeLater(new Runnable() {
    
                        public void run() {
                            // TODO Auto-generated method stub
                            Logger.out("ProvisionForm", "Before Perform Action");
                            performOkAction();
                        }
                    });
                    return super.navigationClick(status, time);
                }
            };
    

    Help me in this matter...

    Not tested, but according to the documentation, you should return true since a navigationClick if you manage the method.  You do, instead of

    Return super.navigationClick (status, time);

    I suggest you just the code

    Returns true;

    In my view, that can solve your problem.

  • Active RichText Field hyperlink does not

    All my research indicates that the following should give me a hyperlink to a web page. For example, I click on the underlined text and the browser starts and displays the web page.

    ActiveRichTextField ActiveRichTextField1 = new ActiveRichTextField ("http://www.RadicalPhotography.com", RichTextField.TEXT_ALIGN_HCENTER);
    aboutvfm. Add (ActiveRichTextField1);

    The text displays and is pointed out, when you select, it receives focus, it seems that everything is fine.  But when I click on it nothing happens.

    Someone at - it ideas?

    Make sure that you have added DEFAULT_MENU to your PopupScreen style - this should give you the context menu when the user clicks on the active element. The menu should have the choice of 'Get Link'.

  • Output field Focus

    I have a RichText field inside a VerticalFieldManager.  This value for money takes only a few lines.  I have two of them on the screen.  When I scroll using the wheel she starts most by the Senior Manager of VFM and scroll all the way to the bottom of the text in text VFM most high field before moving the low VFM Textbox.  Because text fields can have a large amount of text in there it takes a long time to go through all the text in the top of the page value for money before I go down one.  I would like to navigationMovement and if the text box has not been clicked then just move to the next text box.  The user can then move between the two and click never who he or she wants to read by clicking on it.  I need to be able to give up the selection or focus within navigationMovement.  I tried focusRelease and setFocus.  Maybe I need to do on the screen rather than on the optimization of resources.

    Any help would be greatly appreciated.  I can post code samples if that would help.

    Thanks in advance.

    Peter thank you very much for your contribution.

    I placed the invokelater in the onfocus method and it works actually pretty good.

    This is my first java program and the first blackberry application, so I don't know that I'm not always the straight line.

    I'm still trying to get use to the memory management model.  I can new the executable thread in the onFocus event?  It runs only once and I have no concern for leaks and memory fragmentation?  Also do not know how the run() method actually gets my VOR 'this->' pointer but he does.  Its similar magic.

    In any case, I don't want to accept this as a solution, I again thank you and I will post the three methods that I placed on my VerticalFieldManager that contains a single field to RichText.

    Maybe someone else has problems with the setVerticalScroll not taking effect.

        protected void onFocus(int direction)
        {
            super.onFocus(direction);
    
            //  Need to call setVerticalScroll a little later.  It looks like
            //  setFocus is overriding it.  If we call it later then it will
            //  actually take effect.
            UiApplication.getUiApplication().invokeLater(
                new Runnable()  {
                    public void run()   {
                        setVerticalScroll(m_iCurrentLine * m_iFontHeight);
                    }
                });
        }
    
        protected boolean navigationClick(int status, int time)
        {
            m_bScrollEnabled = m_bScrollEnabled == true ? false : true;
            return  true;
        }
    
        protected boolean navigationMovement(int dx, int dy, int status, int time)
        {
            if  (m_bScrollEnabled == true)
            {
                int     i_scrolloff =   (m_iCurrentLine + dy) * m_iFontHeight;
                if  (i_scrolloff < 0 || (i_scrolloff + getVisibleHeight()) > getVirtualHeight())
                    return  true;       //  Eat the scroll event cause we're at the beginning or end
    
                m_iCurrentLine      +=  dy;
                setVerticalScroll(i_scrolloff);
                return  true;
            }
            else
            {
                //  If here then RichText field is not selected
                //  figure out which field currently has focus
                //  and move focus to next field
                Screen  scr         =   getScreen();
                int     i           =   scr.getFieldWithFocusIndex();
                Field   field       =   (i == (scr.getFieldCount() - 1)) ? scr.getField(0) : scr.getField(i + 1);
                field.setFocus();
            }
            return  false;
        }
    
  • How to password protect a field in a PDF form?

    Hello!

    I am a novice in Javascript from Adobe, so I really have a hard time trying to figure out what to do with the code that I have.

    I was able to find a code that changes the attribute of read-only on the BLUR field. Here is the code:

    Event.RC = true;

    If (! event.willCommit & & event.value! = "")

    {

    Event.Target.ReadOnly = true;

    }

    But now I need a code that prompts the user for a password ON FOCUS if the field has an entry, so it changes the back to be editable field.

    I found this code, but don't know how to edit:

    var cResponse = app.response({)

          cQuestion: "How are you today?", 
               cTitle: "Your Health Status", 
               cDefault: "Fine", 
               cLabel: "Response:"
     });
     if (cResponse == null)
          app.alert("Thanks for trying anyway.");
     else
          app.alert("You responded, \""+cResponse+"\", to the health " 
               + "question.",3);

    I thought he might start by:

    Event.RC = true;

    If (event.value! = "")

    {

    }

    And then I change the CTitre, cLabel, cDefault and app.alerts accordingly. But I don't know how to add the line of code and the password to change the attribute of ReadOnly = false field.

    Any help will be very appreciated!

    It is not clear to me what conditions you want to prompt the user for a password, but if you rename fields as follows:

    InitialDOmgLRow.1, InitialDOmgLRow.2, InitialDOmgLRow.1

    What follows will do if none of these fields are empty:

    var oFields = this.getField ("InitialDOmgLRow") / / extract the domain object

    Invoke the var = oFields.getArray ();  Get an array of field objects

    {If (invoke him [0] .valueAsString & invoke him [1] .valueAsString & {aFields [2] .valueAsString})}

    var cResponse = app.response({)

    cQuestion: "enter the password."

    CTitre: "Quality Assurance."

    bPassword: true,

    cDefault:

    cLabel: "password:".

    });

    If (cResponse == "password") {}

    oFields.readonly = false;

    } Else if (cResponse == null) {}

    App.Alert ("please contact responsible for Quality Assurance.");

    } else {}

    App.Alert ("Incorrect password");

    }

    }

  • HTMLD_ITEM. DATE_POPUP - disable the text AND Datepicker field.

    Hi all

    Need help with the following.
    I use APEX 3.2.100.12 (it is in production and will not be updated soon).
    I have a report, which dynamically creates a date_popups.
    My query goes like this:

    Select
    case
    When trunc (ddc_delivery_date) < = trunc (sysdate) then HTMLDB_ITEM. HIDDEN(3,PTD_PA_MONTH_ID) | HTMLDB_ITEM. HIDDEN (4, to_char (SYSDATE, 'DD-MON-RRRR')) | HTMLDB_ITEM. DATE_POPUP (2, ptd_pa_month_id, ", 'ME-dd-yyyy', 10, 11, 'DISABLED')
    of other HTMLDB_ITEM. HIDDEN(3,PTD_PA_MONTH_ID) | HTMLDB_ITEM. HIDDEN (4, to_char (SYSDATE, 'DD-MON-RRRR')) | HTMLDB_ITEM. DATE_POPUP (2, ptd_pa_month_id, ","JJ-ME-yyyy", 10, 11, ' onBlur =" validate (' |) ") rownum. ");" onChange = "setFocusItself (' |)" rownum |') ; » ')
    end as 'example '.
    table;

    Suppose that all of these names it work as it is.
    The first "when trunc...» "should show the date_popup element, but should be displayed for the disabled; What happens quite, but only on the text field; I also need the datepicker empty or something, and no popup be allowed to appear, something like: "("_IP_CLOSED_DATE').parentNode.nextSibling.firstChild.href = "javascript:void (0)", which allows to not allow a pop-up window will be displayed. "
    The thing is, I tried to add another parameter (as I've seen it's possible), including words like disabled, Sub, 0, etc. and none of them work. So I would like to know if someone had the same problem and was able to solve it.
    What I need, is not only the text must be disabled, but also the popup.
    Thank you very much!!

    Jorgelina

    Just noticed that you're on apex 3.2 and JS code is based on JQuery (builtin Apex 4.0)

    So we'll try a different approach and it does not use any JS

    The query for your report, I see this column you should be read only when trunc (ddc_delivery_date) < = trunc (sysdate). In this case, you want columns of these lines to be a readonly text field. If we use a different API in these cases there, IE APEX_ITEM. TEXT instead of APEX_ITEM. DATE_POPUP

    select
        case
        when trunc(ddc_delivery_date) <= trunc(sysdate) then
            HTMLDB_ITEM.HIDDEN(3,PTD_PA_MONTH_ID) || HTMLDB_ITEM.HIDDEN(4, to_char(SYSDATE, 'DD-MON-RRRR')) || HTMLDB_ITEM.TEXT(2, TO_CHAR(,'dd-MON-yyyy', 10, 11 ,'read_only="read_only"')
        else
           HTMLDB_ITEM.HIDDEN(3,PTD_PA_MONTH_ID) || HTMLDB_ITEM.HIDDEN(4, to_char(SYSDATE, 'DD-MON-RRRR')) || HTMLDB_ITEM.DATE_POPUP(2,ptd_pa_month_id,'','dd-MON-yyyy', 10, 11, 'onBlur="valiDate(' || rownum || ');"onChange="setFocusItself(' || rownum ||');"')
        end as "Example"
    from ;

    Note: Change the name of the column whose value has sound

    For the columns in row date readonly, you would see a text only, without a date picker field

  • Issue the hidden rich text field

    Hey all,.

    I am facing another issue, and this time it's the hidden form field. I've got the coldfusion, rich on one page text editor and when submitted to preview in another. However, in order to insert the record later I hide values initial form of hidden fields. All values are fine except for the rich text editor, as it gets out in its entirety and is not hidden at all.

    I guess that this behavior is caused by the text form and one of its closing entire field hidden tags.

    Any thoughts on how to store the rich text in the hidden field?

    see you soon,

    Simon

    Assume that the richText field is called myText. Then, in the action page, you can hide its content with

  • BlackBerry doesn't scroll to the top of the screen only in the Middle!

    having an application that displays a screen of news with the banner of the app and title + image + details (RichTextField) and a banner ad on the bottom of the screen so once I do scroll down to read the details, I can't go back to the top... It stops in the middle of the screen that you see in these pictures... I don't know why... It works perfectly when you use the key on the touch screen devices

    and here's the code I used for this screen

    public class DetailsScreen_en extends MainScreen {
    
        AppManager appManager;
        private Detailsbean_en bean;
        private AppManager manager;
        private BitmapField bitmapField;
        private LabelField titleField;
        private LabelField dateField;
        private RichTextField articleField;
        private Bitmap bitmap;
        private BitmapField bar;
        private HorizontalFieldManager hfm;
        Adsbean[] adsBean;
        BitmapField ad;
        VerticalFieldManager otherStuff;
        VerticalFieldManager vvv;
        Timer time;
        TimerTask task;
        private HorizontalFieldManager admanager;
        private int adCounter = 0;
        private boolean status;
        private int tour;
    
        public DetailsScreen_en(boolean status, int tour) {
            appManager = AppManager.getInstance();
            adsBean = appManager.getAdsBean();
            Locale.setDefault(Locale.get(Locale.LOCALE_en));
            // ScreenOne.showLoadingScreen();
            this.status = status;
            this.tour = tour;
            XYEdges padding = new XYEdges(10, 10, 10, 10);
            HTMLParser parser = new HTMLParser();
    
            vvv = new VerticalFieldManager(VerticalFieldManager.VERTICAL_SCROLL
                    | Field.FOCUSABLE) {
                protected void sublayout(int maxWidth, int maxHeight) {
                    // TODO Auto-generated method stub
                    super.sublayout(maxWidth, maxHeight);
                    setExtent(maxWidth, Display.getHeight() - ad.getHeight());
                }
            };
            hfm = new HorizontalFieldManager();
            bar = new BitmapField(DesignSizes.FanClubBar(), Field.FIELD_HCENTER
                    | Field.NON_FOCUSABLE | Field.READONLY);
            hfm.add(bar);
            vvv.add(hfm);
            hfm = new HorizontalFieldManager();
            manager = AppManager.getInstance();
            bean = manager.getBean_en();
            // System.out.println("DATE: "+ bean.getNewsDate() );
    
            // another try ...
            Date _date;
            Calendar _cal = Calendar.getInstance();
            _cal.set(Calendar.YEAR,
                    Integer.parseInt(bean.getNewsDate().substring(0, 4)));
            _cal.set(Calendar.MONTH,
                    Integer.parseInt(bean.getNewsDate().substring(5, 7)) - 1);
            _cal.set(Calendar.DAY_OF_MONTH,
                    Integer.parseInt(bean.getNewsDate().substring(8, 10)));
    
            _date = _cal.getTime();
    
            DateFormat dff = new SimpleDateFormat("dd MMMM yyyy");
            String datedatedate = dff.formatLocal(_date.getTime());
            dateField = new LabelField(datedatedate);
            dateField.setPadding(padding);
            titleField = new LabelField(bean.getNewsTitle(), Field.FIELD_LEFT) {
                protected void paint(Graphics graphics) {
                    // TODO Auto-generated method stub
                    graphics.setColor(Color.ORANGE);
                    super.paint(graphics);
                }
    
            };
            titleField.setPadding(padding);
            Font font = Font.getDefault().derive(Font.BOLD, 9, Ui.UNITS_pt);
            titleField.setFont(font);
            bitmapField = new BitmapField(DesignSizes.newsIsLoading(),
                    Field.FIELD_HCENTER);
            bitmapField.setPadding(padding);
            setBitmap(bean.getImgUrl());
    
            articleField = new RichTextField(parser.clean(bean.getNewsArticle()),
                    RichTextField.USE_TEXT_WIDTH | RichTextField.TEXT_ALIGN_LEFT
                            | RichTextField.READONLY);
            // bitmap field for the add bitmap
            ad = new BitmapField(DesignSizes.adBanner(), Field.FIELD_TRAILING
                    | Field.FIELD_HCENTER);
            // horizontal field manager to set the bitmapfield away from the
            // scrollable screen .. as its required to be only
            // on the bottom of the screen !
    
            admanager = new HorizontalFieldManager(
                    VerticalFieldManager.NO_VERTICAL_SCROLL
                            | VerticalFieldManager.NO_VERTICAL_SCROLLBAR
                            | Field.FIELD_HALIGN_MASK);
    
            // the other stuff title bar + action bar + itemRow + button more
            otherStuff = new VerticalFieldManager(
                    VerticalFieldManager.VERTICAL_SCROLL) {
                protected void sublayout(int maxWidth, int maxHeight) {
                    // TODO Auto-generated method stub
                    super.sublayout(maxWidth, maxHeight);
                    setExtent(maxWidth, Display.getHeight() - ad.getHeight());
                }
            };
            admanager.add(ad);
            // font for the article
            Font artFont = Font.getDefault().derive(Font.PLAIN, 6, Ui.UNITS_pt);
            articleField.setPadding(padding);
            articleField.setFont(artFont);
            vvv.add(dateField);
            vvv.add(titleField);
            vvv.add(bitmapField);
            vvv.add(articleField);
            add(vvv);
            add(admanager);
    
            switch (Display.getWidth()) {
            case 320:
                getAd(adsBean[adCounter].getBlackberry320());
                break;
            case 360:
                getAd(adsBean[adCounter].getBlackberry360());
                break;
            case 480:
                getAd(adsBean[adCounter].getBlackberry480());
                break;
            case 640:
                getAd(adsBean[adCounter].getBlackberry640());
                break;
            }
    
        }
    
        private void setBitmap(final String url) {
    
            // TODO Auto-generated method stub\\
    
            UiApplication.getUiApplication().invokeLater(new Runnable() {
    
                public void run() {
                    // TODO Auto-generated method stub
                    final DownLoadImage dope = new DownLoadImage(url);
                    bitmap = dope.getImage();
                    Bitmap resized_bitmap = bitmap;
                    Bitmap tempbitmap = new Bitmap(Display.getWidth() - 20,
                            (int) ((Display.getWidth() - 20) * 0.458));
                    tempbitmap.createAlpha(Bitmap.TRUE_WHITE);
                    resized_bitmap.scaleInto(tempbitmap, Bitmap.FILTER_LANCZOS);
                    bitmap = tempbitmap;
                    bitmapField.setBitmap(bitmap);
    
                }
            });
        }
    
        protected boolean keyDown(int keycode, int time) {
            int key = Keypad.key(keycode);
            if (key == Characters.ESCAPE) {
                try{
                    this.time.cancel();
                }catch(Exception e){
    
                }
                UiApplication.getUiApplication().pushScreen(
                        new NewsScreen_en(status, tour));
    
                return true;
            }
            return super.keyDown(keycode, time);
        }
    
        // =============================================================================================
            // for getting the ads ...
            // =============================================================================================
            private void loadAD(int timer) {
                System.out.println("Timer start! ");
    
                    time = new Timer();
                    task = new TimerTask() {
    
                        public void run() {
                            time.cancel();
                            switch (Display.getWidth()) {
                            case 320:
                                getAd(adsBean[adCounter].getBlackberry320());
                                break;
                            case 360:
                                getAd(adsBean[adCounter].getBlackberry360());
                                break;
                            case 480:
                                getAd(adsBean[adCounter].getBlackberry480());
                                break;
                            case 640:
                                getAd(adsBean[adCounter].getBlackberry640());
                                break;
                            }
                            System.out.println("tik tik tik");
                        }
                    };
                    time.schedule(task, timer * 1000);
    
            }
    
            private void getAd(final String url) {
    
                UiApplication.getUiApplication().invokeLater(new Runnable() {
    
                    public void run() {
                        // TODO Auto-generated method stub
                        final DownLoadImage dope = new DownLoadImage(url);
                        Bitmap bitmap = dope.getImage();
                        ad.setBitmap(bitmap);
                    }
                });
    
                //for saving more memo
                switch(Integer.parseInt(adsBean[adCounter].getAdDuration())){
                case 0:
                    //
                    break;
                default:
                    System.out.println("loading ad! ");
                    adCounter++ ;
    
                    if(adCounter == adsBean.length || adCounter > adsBean.length){
                    adCounter = 0;
                    }
                    loadAD(Integer.parseInt(adsBean[adCounter].getAdDuration()));
                    break;
                }
    
    //
            }
    
            // =============================================================================================
            // =============================================================================================
    
        protected void makeMenu(Menu menu, int instance) {
            // TODO Auto-generated method stub
            menu.deleteAll();
            menu.add(new MenuItem("Language", 120, 10) {
                public void run() {
                    // TODO Auto-generated method stub
                    super.run();
                    UiApplication.getUiApplication().pushScreen(new SplashScreen());
                }
    
            });
            menu.add(new MenuItem("About", 120, 10) {
                public void run() {
                    // TODO Auto-generated method stub
                    super.run();
                    UiApplication.getUiApplication().pushScreen(
                            new AboutScreen_en());
                }
            });
            menu.addSeparator();
        }
    }
    

    Please help me

    scrolling takes in the focusable fields only.
    You can add a NullField in the top to allow scrolling to it.

  • How can set the background of the screen

    I was going through all the thread related to this issue in this form, but could not be a good solution. I want to set the background color of the screen (main screen) and add fields on it. I found the solution for background coloring, but not fields not displayed after staining.

    With the help of the Simulator: 7290

    Code of CELITE (and jfisher) to blackberryforums.com
    http://www.BlackBerryForums.com/developer-forum/89940-mainScreen-background-color.html

    class ExtendedCustomMainScreen extends CustomMainScreen {}
    {ExtendedCustomMainScreen()}
    Super();
    Rtf RichTextField = new RichTextField ("This is a readonly textfield", Field.READONLY);
    LabelField helloWorld = new LabelField ("Hi jfisher! ');
    Add (rtf);
    Add (helloWorld);
    }
    }

    class CustomMainScreen extends form {}

    Private VerticalFieldManager _container;

    {CustomMainScreen()}
    Super (Manager.NO_VERTICAL_SCROLL |) Manager.NO_VERTICAL_SCROLLBAR);
    setTitle ('Test');

    VerticalFieldManager internalManager = new VerticalFieldManager (Manager.NO_VERTICAL_SCROLL |) Manager.NO_VERTICAL_SCROLLBAR) {}
    {} public void paintBackground (Graphics g)
    g.Clear ();
    Color int = g.getColor ();
    g.setColor (0xc0dce0);
    g.fillRect (0, 0, Display.getWidth (), Display.getHeight ());
    g.setColor (color);
    }
    protected void sublayout (int maxWidth, maxHeight int) {}
    Field titleField = getMyTitleField();
    int titleFieldHeight = 0;
    If (titleField! = null) {}
    titleFieldHeight = titleField.getHeight ();
    }

    int displayWidth = Display.getWidth (); I would probably make these global
    int displayHeight = Display.getHeight ();

    Super.sublayout (displayWidth, displayHeight - titleFieldHeight);
    setExtent (displayWidth, displayHeight - titleFieldHeight);
    }

    };
    _container = new VerticalFieldManager (Manager.VERTICAL_SCROLL |) Manager.VERTICAL_SCROLLBAR);
    internalManager.add (_container);
    Super.Add (internalManager);
    }

    public void add (field) {}
    _container. Add (field);
    }

    {} private field getMyTitleField()
    Delegated official = getDelegate();
    Field titleField = null;
    try {}
    titleField = delegate.getField (0);
    }
    {} catch (IndexOutOfBoundsException ioobe)
    //
    }
    Return titleField;
    }
    }

    class MainScreenWithBackgroundMain extends UiApplication {}

    Public Shared Sub main (String [] args) {}
    MainScreenWithBackgroundMain app = new MainScreenWithBackgroundMain();
    app.enterEventDispatcher ();
    }

    {MainScreenWithBackgroundMain()}
    Screen ExtendedCustomMainScreen = new ExtendedCustomMainScreen();
    pushScreen (screen);
    }
    }

  • Audit of permissions is caused a late start the Application

    Hello

    In my application, I register the Application with HttpFilter registry. So if I open a particular link, I go to the browser and back again to the application. Now, to do this, I created an entry point. And I take some permissions. Now the question is, I write permission in the Main method of the Application. So every time it is check approval and launch the application. So, there are a few seconds(5-6) delay in the launch of the application.   Here is the code for the permissions:

     /** @return true if the user has accepted permissions requests */
        public static boolean hasPermissions() {
           ApplicationPermissionsManager apm = ApplicationPermissionsManager.getInstance();
           ApplicationPermissions original = apm.getApplicationPermissions();
    
           if(original.getPermission(ApplicationPermissions.PERMISSION_BROWSER_FILTER) == ApplicationPermissions.VALUE_ALLOW)
           {
              return true;
           } else {
              return false;
           }
        }
    
        /** @return true if the user has accepted / granted permissions */
        public static boolean checkPermissions() {
           if (!hasPermissions()) {
              ApplicationPermissions permRequest = new ApplicationPermissions();
              permRequest.addPermission(ApplicationPermissions.PERMISSION_BROWSER_FILTER);
              return ApplicationPermissionsManager.getInstance().invokePermissionsRequest(permRequest);
           } else {
              return true;
           }
        }
    

    And here I check in the main method:

    public static void main(String args[])
        {
            if(checkPermissions());
            {
                try {
                    if((args != null) && (args.length > 0) && (args[0].equals("background")))
                    {
    
                        Logger.out("AppLaunch", "in the alternate entry point");
                        HttpFilterRegistry.registerFilter("URL", "packagename");
                    }
                    else if(args != null)
                    {
                        Logger.out("AppLaunch", "Inside the Applaunch");
                        theApp = new ArcotOtpApp();
                        Logger.out("AppLaunch", "created the app launch object");
                        theApp.enterEventDispatcher();
                    }
                } catch (Exception e) {
                    // TODO Auto-generated catch block
                    Logger.out("AppLaunch", "Exception::::::11111111" +e);
                }
            }
    
        }
    

    Can you please tell me where I am doing wrong or what is the right way so that the time will not be there.

    Thank you very much Peter. I check out on your way. It was not the issue of the authorization. There was another object instantiations are pass while going to the main screen. Which are at the origin of the slower launch.

    Thanks again.

    And can you help me on this question too: http://supportforums.blackberry.com/t5/Java-Development/Active-RichText-Field-Hyperlink-issue/td-p/2...

  • Need help with XML (bold/italic) attribute access

    Hello

    I have a form that displays data in livecycle designer. When a person imports an xml file into the form in Adobe Acrobat format, it should be able to display data in the form of fat and some italicized based on the xml file.

    Here is an example of xml file

    < Table1 >

    < Row1 >

    < Cell1 style = 'none' > 1 < / Cell1 >

    < Cell2 style = "bold" > 2 < / Cell2 >

    < Cell3 style = "italic" > 3 < / Cell3 >

    < / Row1 >

    < / Table1 >

    And the output should be:

    1 2 3

    Can someone please! If the xml file must be designed differently, please let me know.

    Thank you!

    The implementation of Rich Text use xHTML to define the styles of fonts. I suggest you create a RichText Field on your form, set the text the way you want, then export the data to see how the styles are represented.

    Paul

  • How to enable/disable readonly in text fields, drop-down list field?

    For example, I have a dropdown field named "DropdownField" and a field of text called 'TextField '.

    Within 'DropdownField', I have four choices: Option 1, Option 2, another, combination. When the user first sees the "DropdownField", they see 'Select Option.' When the "DropdownField' select Option, Option 1 or Option 2 selected, I want to 'TextField' to be a read only field. However, what other or combination are selected, I want them to be able to grasp things in the 'TextField', which makes is not readonly. Also, tell someone selects 'Other', but realizes that they have made a mistake, I want them to be able to select Option 1, and have the return of 'TextField' read-only.

    Currently I have the JavaScript code as a MouseUp on "DropdownField: action

    var getField.DropdownField = drop;

    var getField.TextField = text;

    If (drop.value! = 'Other' | drop.value! = 'Combination')

    {text.readonly = false ;}

    on the other

    If(drop.value = 'Other' | drop.value = 'Mix')

    {text.readonly = true ;}

    However, the JavaScript code above doesn't seem to work. Please let me know what I'm doing wrong!

    You must use the event to validate drop-down list and use a script like:

    var f = getField("TextField");
    
    if (event.value === "Other" || event.value === "Combination") {
      f.readonly = false;
    } else {
      f.readonly = true;
      f.value = f.defaultValue;
    }
    

    Also, set the option in the drop-down list "Value Commit selected immediately".

  • Re: Form field ReadOnly property

    Hi all

    I use Jdeveloper 11.1.2.3.0

    I have an OS called CountryEO.xml

    in this OS, I have an attribute called County Code.

    For the code of this county, I put "updatable == while New.

    Then I took respective VO of the data control to .jspx page and I ran the .jspx page, then country code field is being Updatable while I created the new record.

    But after that if I open was recording the County code is in read only mode. Until now, that is fine, but the thing is when I open the record existence country code displays read only without the text box.

    My requirement is I want this ReadOnly field as I want the text in the text box.

    So, how can I achieve this.

    Help me solve this one.

    Thank you

    SyAM

    Hello

    1. you can set a transient "isNewRow" attribute for example in CountryVO and this type the boolean value

    2. in the get for this updated attribute accessor method code

    byte I = this.getEntity (0) .getPostState ();

    If (i == EntityImpl.STATUS_NEW | I == EntityImpl.STATUS_INITIALIZED)

    Returns true;

    on the other

    Returns false;

    3 - Add this attribute to your def of page.

    4 - turn off the property for the field of County code, add the expression #{! links.} IsNewRow.inputValue}

  • Make the field on opening document readonly

    I don't know where to put the Javascript code to do this.  There is a Document Javascripts I called a script 'Disable' and in this function, wrote: this.getField("myfield").readonly = true;

    Then, I closed the document, it has reopened, and the field is NOT readonly.  How to make this work?

    Thank you.

    I thought about it.  Code should not reside inside a function so that it will run at startup.

  • Reading a field readonly/people with disabilities gives null pointer exception

    Hello

    I have an advanced table and when the user selects the employee number field, is filling another field number. But the user wanted the employee name field to be readonly. As a custom page, I put the employee field name readonly true. But when the user click on the button Add a line, I need to display the employee number line and employee name values above in the newly created row. I use rowAtRangeindex and get the values of the previous line. But when I read the employee of the name row.getAttribute("EmployeeName").toString () gives a null pointer exception. When the readonly is set to false, it works well. Can someone suggest me how can I fix. Make the employee name field readonly and at the same time, I should be able to read the value and set the value of the following line.

    Thank you
    HC

    I don't know how it can fail because you have found the value of the attribute of the line. Anyway, to create a value of the form, attach the attribute of VO employee name and try the row.getAttribute method and see if it works.

    Thank you
    Shree

  • Maybe you are looking for

    • Move a tree of directories, including all directories and files to a different location to Robocopy

      Original title: Robocopy Hello I want to make a directory tree, including all directories and files to another location, but keep the last part of the sourcepath directory Robocopy \\server\share\sourcepath \\server\share\destpath *. * / S/MOV /COPY:

    • Driver HP Pavilion G6 Wi - Fi...

      Hello I need to know where to find the driver WiFi for my HP Pavilion G6. Network controller hardware ID: PCI\VEN_168C & DEV_0032 & SUBSYS_1838103C & REV_01 PCI\VEN_168C & DEV_0032 & SUBSYS_1838103C PCI\VEN_168C & DEV_0032 & CC_028000 PCI\VEN_168C &

    • HP Officejet Pro 8620 e-all-in-one printer windows 8

      Printer e-all-in-one-HP Officejet Pro 8620 Windows 8. wireless printer is. printing from iphone is OK Since my PC win 8 not sending a file to filesgo-printer - printer not respongding - no message. I have install new printer 8620 on 8600 series of dr

    • Connected to the Internet, but nothing to anyone.

      We just got Internet AT & T working last night, and I was on the Internet. I did an update iTunes, restarted my computer and now it says it's connected, but nothing does not load on any of my browsers and it just acts like its not connected. I tried

    • Recovery disc game failure

      I have a currently paralyzed HP touchsmart 300-1003. I replaced a hard drive dead by a new 1 TB of HARD drive. I have my 2 sets of recovery disks touchsmart and player USB Bootable Windows 7 (made with win7 tool). The official recovery CD only go to