Coding standards

Hello

Can someone please give me the coding standard PDF for Blackberry.

With respect,

Sunil

RIM provides no standard coding guidelines for the development of BlackBerry applications.  You can follow standards relavent for the language you are using (Java, HTML, JavaScript, ActionScrip, MXML, etc...).

Tags: BlackBerry Developers

Similar Questions

  • SQL coding standards

    Hi all

    I'm sure that I'm not the first person to go out with this question, but can anyone recommend me a coding standard, which makes SQL queries (and DML instructions) readable and easily understandable ? I understand a request, and it is causing me problems.

    Or you recommend me to use my mind more effectively :)

    Thank you
    Gabor

    I like this one, by William Robertson:

    Designation and codification of standards for SQL and PL/SQL

  • XQuery coding standards

    Is there any XQuery codification of the standards to serve at the OSM?
    Or Oracle provides all of these standards for naming conventions, the names of variables, respect for case-sensitive etc.?
    Or are the standards similar to what we follow for Java?
    Help, please.
    Thanks in advance!

    OSM does not dictate a set of XQuery coding guidelines, as it does not for Java. Normally coding guidelines (be it for Java, XQuery or other technologies) would be defined for a given project, based on the best practices and experiences of the system integrator or Service provider that implements OSM.

    Given that XQuery is a standard language for the industry, we encourage you to follow the best practices in the industry.

    In general, for the code of XQuery product team OSM written that we follow him style and style Java naming conventions where possible. It is a convention that we find reasonable given our team regularly writes and comments both XQuery and Java code with the same naming convention is logical.

    If there are additional more specific questions you have on this topic feel free to ask and we will do our best to help you.

    Kind regards

    Brian Dueck
    VP - strategy and Product Design
    The Oracle Communications

    Published by: brian.dueck on July 4, 2011 13:59

  • dreamweever cs3 allows you to create a post page where users can send text and image?

    First I used to thank you all for taking the time to help me with my problem. I created a test server with xampp and created a database with the table user, login and post connected to my Dreamweaver cs3, using the server behavior, I managed to make the login page, now my problem is that I couldn't do the editorial page to save the job of users and show it to any user that connect. can someone tell me how?

    Does this mean that the entire php Web sites will be changed in php7?

    PHP in the Web sites will not change. It is the engine that runs this code that will change, and because the engine and the Web site code will be more compatible, Web sites will break if they use mysql (instead of mySQLi or PDO). There are also other changes that can cause problems.

    Of course what everyone will want to do is to upgrade their development environment before upgrading their production environment. Zend Studio contains a tool to check an entire project for PHP7 compatibility. My own project had reported problems only on a third party class that I use. Anyone who uses methods and coding standards recommended could run no problem upgrade.

    Once the final for PHP 7 is out, I'll start a discussion on the forum of coding regarding the upgrade.

  • IV ' e built all my sites using Macromedia Studio MX 2004. They will be compatible with DW CC?

    IV ' e built all my sites using Macromedia Studio MX 2004. They will be compatible with DW CC?

    Coding standards have changed a lot. And DW. You may have a shock.

    DW insist on valid HTML & CSS code now.

    CSS - http://jigsaw.w3.org/css-validator/

    HTML - http://validator.w3.org/

    HTML5 - https://validator.w3.org/nu/

    Nancy O.

  • JDeveloper put 11.1.1.6 to date with soa_Extension 11.1.1.3

    Hello

    I use version jdeveloper11.1.1.6 update with soa 11.1.1.3 extension.
    I tried to migrate my code in 11.1.1.3 to 11.1.1.6 version
    This is version low extension on 11.1.1.6 jdeveloper impact my coding standards?

    Thank you
    Sukanya

    Thus, it seems that you have installed the wrong version.
    You must reinstall JDeveloper and the correct version of the extension.

  • The CS5 property bar

    Hello, I am new to using dreamweaver and apologies if this is a very simply or stupid question in advance.

    How can I get my property bar at the bottom of the page that looks like

    Capture1.JPG

    to include additional options like valign?

    Thank you

    Wil

    I'm pretty sure that these options were taken in CS5 and devoted to the css for the control.

    VAlign and align are obsolete in html and should no longer be used. In an effort to keep DW on par with modern coding standards, the options of GUI interface to control a large number of these types of obsolete/deprecated html attributes have been removed from the program.

    In css, the attributes you would use instead are vertical-align (instead of valign) and text-alignment (as opposed to align).

    Vertical-align CSS property

    CSS text-align property

    You can control the text-align (horizontal alignment) by clicking the CSS button in the Properties window and using the 4 alignment buttons, but it will add tags and finally create code sloppy. If you use text-align in your external stylesheet and add classes or IDS to your html code, it will be much cleaner.

  • Why to bounce back after the server deployment?

    Hello

    Why we must bounce server after the deployment of our pages and controllers?

    Is there another way to do this?




    Kind regards
    Ajay

    Hi Ajay,

    Controller of refactoring should not be a problem to enforce coding standards, more if you have joined renamed the controller file
    (CO1, CO2,... etc) it is always visible to all developers using 'about this page'. And you'll even talk
    the same document MD70 or tech.

    To my knowledge, Refactoring is the best way to avoid the rebound of server.

    Had

    Published by: keerthioaf on October 29, 2012 02:49

  • OBIEE for Google Chrome

    Hello

    Is Google chrome, a Web browser support for OBIEE apps?
    The tables and charts when the default SVG is empty in Chrome.

    No specific change setting / download plugin?

    I have the latest version of Adobe Flash player.

    Thank you
    Bala

    I have the same problem here and also the formula editor does not work.
    This is because the javascript code used in OBIEE uses ajax to get a snippet of XML to the server and uses a method illegal javascript to insert an xml from the server node in the XML on the side of the browser. (columnformulaeditor.js)

    If you use Chrome, we can see an error will appear in the console that indicates this: Eception error: WRONG_DOCUMENT_ERR: DOM Exception 4

    You are looking for that you get:
    http://xmljs.sourceforge.NET/website/documentation-w3cdom-DOMException.html#wrong_document_error

    So, it seems that Oracle needs to use proper coding standards...

  • Partial Page rendering - refresh value in the column

    Hi gurus of the OFA.
    I created a page of creation and followed the tutorial on Partital page made by creating a view PVO object and I am able to make the "EmployeeNumber" / "Location" column true false GOLD according to the value of another field (area).

    The 'TypeMonitored' (choice of message) has 2 values (area/employee). If the user selects the 'zone' then "EmployeeNumber" column should be hidden and if the user selects 'Employee', then the 'Place' column should be hidden. It works very well.

    My problem is if the user has selected 'Employee' in the 'TypeMonitored' of poplist and registered the "EmployeeNumber" and then immediately again if the user selects "Domain" of the "TypeMonitored" of poplist and enters the 'place' (since the site is now visible to the user) and click on Save and then the record is get recorded with the two values. I need to have the value of the column of 'Employee' to be empty in this case.

    Basically need to SETTING / erases the value of EmployeeNumber before any record in the database.

    Any help would be appreciated to greatlly. Please let me know if you want more details.

    Thank you
    Mir

    Here is my Code AMImpl
    ===============
    package lac.oracle.apps.lac.lacempexposure.server;

    Import oracle.apps.fnd.framework.server.OAApplicationModuleImpl;
    Import oracle.apps.fnd.framework.server.OAViewObjectImpl;
    Import oracle.jbo.Row;
    Import oracle.apps.fnd.framework.OAViewObject;
    Import oracle.jbo.Transaction;

    Import oracle.jbo.domain.Number;
    Import oracle.apps.fnd.framework.OARow;
    Import oracle.apps.fnd.common.MessageToken;
    Import oracle.apps.fnd.framework.OAException;

    // ---------------------------------------------------------------------
    -File generated by Oracle ADF business components Design-time.
    -Custom code can be added to this class.
    -WARNING: do not change the methods generated method signatures.
    // ---------------------------------------------------------------------
    SerializableAttribute public class LacEmpExposureAMImpl extends OAApplicationModuleImpl {}

    / * This is the default constructor (do not remove)
    */
    public LacEmpExposureAMImpl() {}
    }

    /*
    *****************************************************************
    * Initializes the application transient VO properties.
    *****************************************************************
    */
    public void init()
    {

    System.out.println ("in LACEmpExposureAMImpl.java IN init");
    System.out.println (LacTypeMonitored);

    OAViewObject appPropsVO = (OAViewObject) findViewObject ("LacExpCreatePVO1");

    If (appPropsVO! = null)
    {
    Not reset the VO unless necessary. Note that this method
    not trying to query the database for your with no SELECT statement
    and only transient attributes.

    If (appPropsVO.getFetchedRowCount () == 0)
    {

    Set the mapping size extraction to 0 to a VO in memory
    It prevents to try the query lines. The call
    executeQuery() ensures that the lines are not lost after
    validation under (workaround for known issue of BC4J) operation.

    appPropsVO.setMaxFetchSize (0);
    appPropsVO.executeQuery ();

    You must create and insert a line in the original Version, before you start
    definition of the properties.

    appPropsVO.insertRow (appPropsVO.createRow ());
    Set the primary key for this single-rwo VO.
    Line OARow = (OARow) appPropsVO.first ();
    row.setAttribute ("RowKey", new Number (1));
    }
    } / / Initialization of application VO properties (and the user interface) based on the
    Tracking to default value set on the underlying object Type.


    handleTypeMonitoredChangeEvent();

    } / / end of init()


    /*
    * *******************************************************
    Manages the poplist TypeMonitored changes to set the
    * application properties value of PRR VO
    * *******************************************************
    */

    Public Sub handleTypeMonitoredChangeEvent()
    {
    Get the properties of special application, einreihig, and make the
    First (only) current line.

    OAViewObject vo = (OAViewObject) findViewObject ("LacExpCreatePVO1");
    Line OARow = (OARow) vo.first ();

    Get the value of the attribute of the object from view with the code TypeMonitored


    OAViewObject LacEmpExposureCreateVO = (OAViewObject) findViewObject ("LacEmpExposureVO1");
    OARow LacEmpExposureCreateRow = (OARow) LacEmpExposureCreateVO.getCurrentRow ();
    String LacTypeMonitored = (String) LacEmpExposureCreateRow.getAttribute ("TypeMonitored");


    System.out.println ("in LACEmpExposureAMImpl.java IN handleTypeMonitoredChangeEvent");
    System.out.println (LacTypeMonitored);
    row.getAttribute ("LocationMonitoredRender");
    System.out.println (Row.GetAttribute ("LocationMonitoredRender"));


    If (("Personal".equals (LacTypeMonitored)))
    {
    row.setAttribute ("LocationMonitoredRender", Boolean.FALSE);
    row.setAttribute ("EmployeeNumberRender", Boolean.TRUE);
    row.setAttribute ("FullNameRender", Boolean.TRUE);

    }
    else if (("Area".equals (LacTypeMonitored)))
    {

    row.setAttribute ("LocationMonitoredRender", Boolean.TRUE);
    row.setAttribute ("EmployeeNumberRender", Boolean.FALSE);
    row.setAttribute ("FullNameRender", Boolean.FALSE);
    }

    } / / handleTypeMonitoredChangeEvent()



    / * Main sample for debugging code of business using the tester components.
    */
    Public Shared Sub main (String [] args) {}
    launchTester ("lac.oracle.apps.lac.lacempexposure.server", / * name of the package * /)
    ("LacEmpExposureAMLocal" / * Configuration name * /);
    }

    / * Getter of the container for LacEmpExposureVO1
    */
    public OAViewObjectImpl getLacEmpExposureVO1() {}
    return (OAViewObjectImpl) findViewObject ("LacEmpExposureVO1");
    }

    / * Getter of the container for EmployeeNamesLovVO1
    */
    public OAViewObjectImpl getEmployeeNamesLovVO1() {}
    return (OAViewObjectImpl) findViewObject ("EmployeeNamesLovVO1");
    }

    / * Getter of the container for MonitoringTypeVO1
    */
    public OAViewObjectImpl getMonitoringTypeVO1() {}
    return (OAViewObjectImpl) findViewObject ("MonitoringTypeVO1");
    }

    / * Getter of the container for LacParameterMonitoredVO1
    */
    public OAViewObjectImpl getLacParameterMonitoredVO1() {}
    return (OAViewObjectImpl) findViewObject ("LacParameterMonitoredVO1");
    }

    /*
    *******************************
    * Creates a new record of the exhibition
    *******************************
    */
    Public Sub CreateLacEmpExposure()
    {
    OAViewObject vo = (OAViewObject) getLacEmpExposureVO1 ();

    By coding standards, it is the right way of
    initialize a VO that is used for queries and inserts.
    See the objects in view in detail in the developer's Guide can do for
    Additional information.

    System.out.println ("in LACEmpExposureAMImpl.java IN CreateLacEmpExposure");

    If (!) VO.isPreparedForExecution ())
    {
    vo.executeQuery ();
    }
    Line = vo.createRow ();
    vo.insertRow (row);
    Required by OA Framework model M69 coding standards

    row.setNewRowState (Row.STATUS_INITIALIZED);

    } / / end CreateLacEmpExposure


    /*
    *****************************************************************
    * Performs a rollback, including the database and the middle-tier
    *****************************************************************
    */
    Public Sub rollbackLacEmpExposure()
    {
    Transaction txn = getTransaction();

    This small optimization ensures that we do not have persorm a restore
    If you have not to.

    If (txn.isDirty ())
    {
    TXN. Rollback();
    }
    } / / end rollbackLacEmpExposure()

    / * Getter of the container for LacEmpExposureLOVDataVO1
    */
    public OAViewObjectImpl getLacEmpExposureLOVDataVO1() {}
    return (OAViewObjectImpl) findViewObject ("LacEmpExposureLOVDataVO1");
    }

    /*
    * *****************************
    * Commits the transaction
    * *****************************
    */
    public void Apply()
    {
    getTransaction () .commit ();
    } / / end apply()

    / * Getter of the container for LacExpCreatePVO1
    */
    public OAViewObjectImpl getLacExpCreatePVO1() {}
    return (OAViewObjectImpl) findViewObject ("LacExpCreatePVO1");
    }


    /*
    ***********************************************************************
    * Initializes the request of employee details for the Update Page.
    ***********************************************************************
    */
    public void initDetailsUpdate (String EmployeeNumber,
    String FullName,
    String RecordSeq)
    {

    System.out.println ("in LACEmpExposureAMImpl.java IN initDetailsUpdate");

    System.out.println ("LACEmpExposureAMImpl == > EmployeeNumber in initQueryUpdate is:" + EmployeeNumber);
    System.out.println ("LACEmpExposureAMImpl == > FullName in initQueryUpdate is:" + FullName);
    System.out.println ("LACEmpExposureAMImpl == > RecordSeq in initQueryUpdate is:" + RecordSeq);

    OAViewObjectImpl vo = getLacEmpExposureVO1();

    LacEmpExposureEditVOImpl vo = (LacEmpExposureEditVOImpl) getLacEmpExposureEditVO1 ();


    OAViewObject vo = (OAViewObject) getLacEmpExposureVO1 ();

    If (vo is nothing)
    {
    MessageToken [] errTokens = {new MessageToken ("parameter", "LacEmpExposureVO1")};
    throw new OAException ("AK", "FWK_TBX_OBJECT_NOT_FOUND", errTokens);
    }

    ToL InitQueryUpdate (EmployeeNumber, FullName, RecordSeq);

    Line row = vo.first ();

    vo.setCurrentRow (row);



    /*
    Since we will interview a single row with a primary key value, we
    can use the findByKey method, which first checks the cache of BC4J
    and if it does not find one matching row, it will put forward a request for help
    the given key and retrieve it from the database.
    String [] keys = {employeeNumber};
    Line lines [] = vo.findByKey (new Key (keys), 1);

    You must set the current line, or the details page will not display any
    data. When you explicitly query data, you don't have to do it.

    If (rows! = null)
    {
    vo.setCurrentRow(rows[0]);
    }
    */

    } / / end initDetails()


    / * Getter of the container for LacEmpExposureEditVO1
    */
    public LacEmpExposureEditVOImpl getLacEmpExposureEditVO1() {}
    return (LacEmpExposureEditVOImpl) findViewObject ("LacEmpExposureEditVO1");
    }
    } / / end of class LacEmpExposureAMImpl

    Hello

    In your LacTypeMonitored / / I guess it will fire when you change the value of employee poplist form in area
    Add logic for null value, the value of the employee
    If (("Area".equals (LacTypeMonitored)))
    {

    row.setAttribute ("LocationMonitoredRender", Boolean.TRUE);
    row.setAttribute ("EmployeeNumberRender", Boolean.FALSE);
    row.setAttribute ("FullNameRender", Boolean.FALSE);

    Change the attribute used to null
    (OARow) LacEmpExposureCreateVO.getCurrentRow () .setAttribute ("", null);

    }

    Let me know that it works.

    Thank you

    With respect,
    Kali.
    OSSI.

  • Retrieve a string in a list?

    I have a list and need to parse a positional string out of the iteration of each object in the list.

    This is my code that contains the data in the list, but it does not attribute to the string with my expected values. How can it be done?
    while (iterator.hasNext())
    List groupName = (List) request.getSession().getAttribute("groups");
    String groupNameString = null;
    Iterator iterator = groupName.iterator();
    while (iterator.hasNext())
    {
        groupNameString = (groupName.iterator().toString());
        int End = groupName.indexOf(',');
        String groupNameExtract = groupNameString.substring(3, End);
    }
    Published by: user1251941 on January 27, 2011 18:01

    You must call iterator.next () in the loop. Currently, you get a new iterator and call ToString on the iterator.

    In addition, you must use the code tags to format your code correctly. Put {code} before your code and post your code, not including spaces.

    You also probably call indexOf on groupNameString, instead of on groupName.

    The variable 'end' should be 'end' to follow the normal coding standards - starting with a lowercase letter variable names.

  • error 1180

    the following code is trying to generate a gross object, duplicate n times and replace in another random position

    so I did the code this way:

    var dustRaw:MovieClip;
    dust of the var: MovieClip;

    function dustRawGen() {}
    dustRaw.graphics.beginFill (0xFF0000);
    dustRaw.graphics.drawEllipse (0,0,1,1);
    dustRaw.graphics.endFill ();
    }

    function dustGen() {}
    for (var i: int = dustArray.length; i < = dustCount-1; i ++) {}
    dust = new dustRaw();
    addChild (dust);
    Dust.x = Math.Random () * (rBound-lBound) + lBound.
    Dust.y = Math.Random () * (dBound-uBound) + uBound.
    dustArray.push (dust);
    tailArray [i] = new Array();
    }
    }

    dustRawGen();

    dustGen();

    but when I test it, there is an error on the line in bold

    1180: call to a method may be undefined dustRaw.

    someone knows why?

    Thanks for any help

    If dustRaw is a creation of class ellipse, you would use a different class.  for example, if you want to use from the class dustGen:

    dustRaw.as:

    package {}
    import flash.display.MovieClip;
    class dustRaw extends MovieClip {}
    public void dustRaw() {}
    graphics.beginFill (0xFFFFFF);
    graphics.drawEllipse (0,0,15,15);
    graphics.endFill ();
    }

    }

    }

    dustGen.as:

    package {}

    Import dustRaw;

    public class dustGen {}

    private var dust: dustRaw

    public void dustGen() {}
    for (var i: int = dustArray.length; i)<=dustCount-1; i++)="">
    dust = new dustRaw();
    addChild (dust);
    Dust.x = Math.Random () * (rBound-lBound) + lBound.
    Dust.y = Math.Random () * (dBound-uBound) + uBound.
    dustArray.push (dust);
    tailArray [i] = new Array();
    }
    }

    }

    }

    PS, you must use generally recognized coding standards: your class names must start with a capital letter, for example DustGen and DustRaw would be that coders can expect.

  • Need help with background body color

    Hello world

    I am a completely new Dreamweaver user and have not created a site for years. Last program that I used was the first Page!

    I'm messing with Dreamweaver CS5 and try to create a Web site for my work.

    Here's a problem I have.

    Is it possible to have the background color of your body to be 2 different colors? My site design starts with a 3 bars + header/footer. I have my head looking the way I want to, and now I am trying to get my background color for the body to be right. I speak not of 'body' is the one that surrounds the header/footer page, column, content, left column.

    Right now it's a solid color that I adjusted using the page properties.

    Is it possible to have a color starting at the top of the page and end at the back of my head, and then have the rest of the body (under the header) be a completely different color?

    If so, any help would be greatly appreciated!

    Thank you!

    Vik

    I am a completely new Dreamweaver user and have not created a site for years. Last program that I used was the first Page!

    You certainly need to examine your HTML and CSS, then, as DW will be expected to bring you knowledge both at the table.  PS didn't feel it's valid HTML or coding standards.  It is diametrically opposed to the current version of DW!

    Is it possible to have a color starting at the top of the page and end at the back of my head, and then have the rest of the body (under the header) be a completely different color?

    Give the body of the page a single color as its background color.  Make the color of the region under the heading.  Then use a graphic rectangle unique color that is as big as your head and you set as background image for the page, having only horizontal place with this CSS.

    Body {background - image: url (path_to_your_image.gif); background-repeat: repeat-x ;}}

    Who should do in light of the information you have provided to us.

  • PHP tags departures include?

    Hello

    This position is directly targeted at David Powers, which is often here (but, of course, likely to be of interest to others)...

    I'm reading the "Adobe Dreamweaver CS5 with PHP training from the source" book and I just discovered a strange assertion:

    on page 184, in box "why the next Page isn't always charge", in the third point, you say: "If the include file contains only PHP code, remove the closing PHP tag." It is not only legitimate, it is the recommended best practice. "... a jaw drop... I have never seen anything like this...

    I need more information... Why would he recommend? Wouldn't he break the code (especially PHP) given that an opening tag, but not a closing one? This means that we might have a large number of tags to open without closing tags? Why would it be different from the code that is "inside" the page, as far as I know, includes 'understand' the code in the page "before running it? Then, is not PHP "sees" the same thing that the "embed" code is in the page or included via the include statement?

    A lot of questions, but I need more details, because I'm not sure a Google search on this subject would give me no result...

    Nelson

    Nate has already given you the explanation. If you want chapter and verse, take a look at the next page in the PHP Manual: http://docs.php.net/manual/en/language.basic-syntax.instruction-separation.php. It is said in part:

    "The closing tag of a PHP block at the end of a file is optional and in some cases, failure is helpful when using include() or require(), so unwanted spaces will not happen at the end of files, and you can always add headers to the response later. It is also very convenient if you use the output control and does not want to see unwanted spaces added at the end of the parts generated by the included files. »

    Will the Zend Framework coding standard for PHP far the the following page: http://framework.zend.com/manual/en/coding-standard.php-file-formatting.html

    "For files that contain only the code PHP, the closing tag ("? "). (">") is never allowed. It is not required by PHP and omitting it prevents accidental injection of trailing white space in the response. »

    The "never allowed" applies only to the files submitted for Zend Framework.

    If something happens after the PHP code in a file, you must use the closing tag. It is only when the file ends in PHP that you can omit it.

  • Trojan horse - help toolbars of Office Automation

    Re: CS3 Web Premium - complete installation

    None of the conventional methods of management of the toolbars in MS Word (and MS Products) seems to work in the eradication of the heading contribute not desired (and to a certain extent, Acrobat) toolbars:
    / View/Toolbars /-deselect contribute toolbar
    / Tools/customizes - deselect contribute toolbar
    / Tools/Customize - drag contribute tools to contribute toolbar until the vacuum
    The foregoing seems to work, but the original Contribute toolbar is again present (valuable place too and throwing toolbars in the mess) the next load of Word (Excel, Outlook, etc.).

    When drag contribute tools to contribute toolbar that there is a screen of confirmation about the changes to ContributeWordUITemplate.dot - but I can not find this model to delete or change.

    Furthermore, what are the options I have to remove the Contribute and Acrobat menus in the main menu bar in Word?

    Any application that overrides standard procedures to help detach is a Trojan horse as far as I'm concerned. This practice is worse than arrogance, it is malicious.

    If someone managed to eradicate these?

    Thanks Thinkink. Renaming c:\. {folder}...\Adobe program adobe contribute CS3\Officeplugin.dll to: Officeplugin.dll.malware}
    seems to have eradicated my problem of Word and Excel.

    There nothing, however, to correct the apparently long-standing policy (re: other message (s) you signed) Adobe for breaking arbitrary others coding standards and applications.

Maybe you are looking for