Code Set pattern or best practice?

Hi all,
I have what I would have thought to be a common problem: the best way to model and implement an organization's code sets. I've Googled, and I've forumed - without success.
The problem domain is this: I'm redeveloping an existing application, which currently represents it's vast array of code sets using a seperate table for each set. There are currently 180+ of these tables. Not a very elegant approach at present. The majority of these code sets are what I would class as "simple" - a numeric value associated with a textual description - eg 1 = male, 2 = female, or 1 "drinks excessively", 2 "drinks sometimes" ... etc. Most of these will just be used to associate a value with a combo box selected value.
There are also what I would class as "complex" code sets, which may have 1..n attributes (ie not just a numeric and text value pair). An example of this (not overly complex) is zip code, which has a unique identifier, the zip code itself (which may change - hence the id), a locality description, and a state value.
Is there a "best practice" approach or pattern which outlines the most efficient way of implementing such code sets? I need to consider performance vs the ability to update the code set values, as some of them may change from time to time without notice at the discretion of government departments.
I had considered hard coding, creating classes to represent each one, holding them in xml files, storing in the database etc, but it would seem that making the structure generic enough to cater to varying numbers of attributes and their associated datatypes will be at the cost of performance.
Any suggestions would be greatly appreciated.
Thanks.
Paul C.

Hi Saish,
Thanks for your response. Yes, this approach is what
I had considered - I'll be using Hibernate so these
values will be cached etc.
I guess my main concern is reducing the huge number
of very small tables in use. I was thinking about
this some more, and for the simple tables was
thinking of 2 tables: 1 (eg "CODE_SET") to describe
the code set (or ref table etc) in question, the
second to hold the values. This way 80 odd tables
would be reduced to 2. Not sure what's best here -
simpler ER diagram or more performance!Tables...
Enumeration
- EnumerationId
- EnumerationName
- EnumerationAbbreviation
EnumerationValues
- EnumerationId
- ValueIndex
- ValueName
- ValueAbbreviation
The above allows the names to change.
You can add a delete flag if values might be deleted but old records need to be maintianed.
Convention: In the above I specifically name the second table with a plural because it holds a collection of sets (plural) rather than a single set.
In the first table the id is the key. In the second the id and the index are the key. The ids are unique (of course). The enumeration name should be unique in the first table. In the second table the EnumerationId and value name should be unique.
Conversely you might choose to base uniqueness on the abbreviation rather than the name.
The Name vs Abbreviation are used for reporting/display purposes (long name versus short name).
It is likely that for display/report purposes you will have to deal with each of the sets uniquely rather than a group. Ideally (strongly urged) you should create something that autogenerates a java enumeration (specific with 1.5 or general with 1.4) that uses the id values and perhaps the indexes as the values and the names are generated from the abbreviations. This should also generate the database load table for the values. Obviously going forward care must be taken in how this is modified.

Similar Messages

  • EDI - 753Routing Request and 754 Routing Instructions transactions- what SAP ECC6 EDI output type, msg type, msg code, basis idoc is best practice to generate the idoc?

    One of our Trading Partner wishes to implement the 753 Routing Request and 754 Routing Instructions.  Can anyone give me best practice answer the following Questions?  We are on SAP ECC6 R3
    What Application? i.e. V2, V7?
    What output condition to use?  i..e. LALE, LAT2, SEDI????
    What Message type?  i.e SHPADV?
    What Basic Idoc Type? i.e SHPMNT05?
    What Message Code?  i.e. SHPM?
    What Process Code?  i.e. SHPM??
    What Function Module? i.e. IDOC_OUTPUT_SHPMNT??
    Does the SAP Transpotation Module have to be configured for this to be implemented?
    Your comments are greatly appreciated, we have until Nov 1 to be compliant?

    Good Morning,
    While I did not get any responses from my question, yes, I was able to determine what needed to be configured.   I hope the below will help you: This is for SAP ECC6
    The output application for the 753 Routing Request is "V7"
    The output type is "SEDI"
    Transmission medium is "6"
    The Basic Idoc type is "Shipmnt05"
    when setting up your Partner Profile (WE20) add:Message Partner Role "SP" with Message type "SHPADV', Message coed "753", Basic Type "SHPMNT05", Message Control add Application "V7", Message type "SEDI", Process Code "SHPM".
    also http://scn.sap.com/thread/698368 pages 14 and 15 were helpful.
    I have not configured the Inbound 754.  For now the inbound 754 Routing Instructions will be emailed to our traffic department.
    Thank you,
    Have a great day,
    jane

  • EWM - set up Slotting / best practice guide

    Hi EWM-experts,
    who is aware of any best practice guide on how to set up and customize slotting for SAP EWM?
    I'm just preparing a conference room pilot for EWM. Following SAP's [integration guide|http://help.sap.com/SCENARIOS_BUS2007/helpdata/EN/45/196435011c0064e10000000a1553f7/frameset.htm], the in- and outbound processes work fine now but I cannot find any documentation about how to customize slotting apart from the insufficient information on the EWM [help.sap.com pages|http://help.sap.com/saphelp_scm50/helpdata/en/5f/c69040bca2ef4ae10000000a1550b0/frameset.htm].
    Thanks in advance and best regards,
    Martin

    Hi Martin,
    If you contact me via email (it's on my forum profile) I will put you in touch with one of our EWM consultants. - we can update this thread if they have anything appropriate.
    Thanks James

  • Code of conduct or best practices?

    Hello, I'd like to know if there is any document of best practices or a code of conduct to work with NWDI made by SAP or any other expert (blogs, articles....).
    I would really appreciate your help. Thanks in advance.

    Refer to 'Best Practices and How-To-Guides for NWDI-based Development' section in
    <<NWDI Resources>> [original link is broken]
    Following blog might be interesting for you:
    <</people/guenter.schiele/blog/2005/12/21/best-practices-for-running-the-nwdi
    Regards,
    Bhagya

  • Saving zip code data with PHP - best practices

    I have built my client an application that analyzes uploaded
    zip codes for
    matches with a standard set of zips. These uploaded zips can
    be one at a
    time, or a copy/paste from an XLS file (just 5 digit ZIPs).
    They are now asking me to save these uploaded zips, and I am
    wondering what
    would be the best way to do that. My two obvious choices are
    1. Write them to an external text file with a
    programmatically generated
    name, and enter the name in the database, keyed to the user.
    2. Write the zips themselves into a glob field in the
    database.
    I'm inclined to the former, since I don't think there would
    ever need to be
    any further manipulation of these zip codes, but what do you
    think? Are
    there other choices I may have overlooked?
    Murray --- ICQ 71997575
    Adobe Community Expert
    (If you *MUST* email me, don't LAUGH when you do so!)
    ==================
    http://www.projectseven.com/go
    - DW FAQs, Tutorials & Resources
    http://www.dwfaq.com - DW FAQs,
    Tutorials & Resources
    ==================

    Dang - sorry. Wrong forum.
    Murray --- ICQ 71997575
    Adobe Community Expert
    (If you *MUST* email me, don't LAUGH when you do so!)
    ==================
    http://www.projectseven.com/go
    - DW FAQs, Tutorials & Resources
    http://www.dwfaq.com - DW FAQs,
    Tutorials & Resources
    ==================
    "Murray *ACE*" <[email protected]> wrote
    in message
    news:fvfi5j$ig7$[email protected]..
    >I have built my client an application that analyzes
    uploaded zip codes for
    >matches with a standard set of zips. These uploaded zips
    can be one at a
    >time, or a copy/paste from an XLS file (just 5 digit
    ZIPs).
    >
    > They are now asking me to save these uploaded zips, and
    I am wondering
    > what would be the best way to do that. My two obvious
    choices are -
    >
    > 1. Write them to an external text file with a
    programmatically generated
    > name, and enter the name in the database, keyed to the
    user.
    > 2. Write the zips themselves into a glob field in the
    database.
    >
    > I'm inclined to the former, since I don't think there
    would ever need to
    > be any further manipulation of these zip codes, but what
    do you think?
    > Are there other choices I may have overlooked?
    >
    > --
    > Murray --- ICQ 71997575
    > Adobe Community Expert
    > (If you *MUST* email me, don't LAUGH when you do so!)
    > ==================
    >
    http://www.projectseven.com/go
    - DW FAQs, Tutorials & Resources
    >
    http://www.dwfaq.com - DW FAQs,
    Tutorials & Resources
    > ==================
    >
    >

  • OWB - Set-Up Recommendations/Best Practices

    OWB Version 10.2.0.2.0/8
    What is the recommended configuration, in terms of projects, locations, control centers and configurations, when you have numerous development and test environments (approx. 25)
    The configuration should be flexible enough to allow you to easily branch the code base and also be controlled so that the merging of branches can easily be pushed to all projects in order to keep a consistent view across each project.
    Any thoughts on this would be greatly appreciated.

    I'm sorry I don't have any answers for you but I heartily support your request and hope you get some responses.
    I would like to add that I have tried to get my arms around the 10gR2 version in terms of how the different repositories interact with the users/servers/instances/etc. Sort of a Concepts Manual like there is for the database.
    It's nice to know the product has all these neat features (they sound neat anyway) but they are relatively useless if we don't know how to best use them in our system architectural designs.
    I have tried to wade through the Users Guide but that reads like a Reference not a How To.
    I wish you luck for all of us.
    Where are the Product Managers when we really need them?
    -gary

  • Setting up Users - Best Practices

    03/28/2007 11:53:42 AM
    Reply | Quote | Top | Bottom
    Hi there. We are a large organization with a website
    consisting of over 40,000 pages. We have multiple users who need
    access to various parts of the website. We have discovered
    different methods of setting them up in Contribute but wonder if
    one method is better than the others.
    1. Create a separate new connection for each portion of the
    site. This, unfortunately, makes it impossible to share CSS layout
    files, images, and library items at the root of the website.
    2. Create a single connection to the server and create
    mutliple roles - most likely named by the user's name - that limits
    directory access. Worried this might create an unwieldly list of
    users. This opens up shared assets, though, which will help with
    maintaining site standards.
    We also tried creating a single connection to the server and
    creating new roles - named according to which directory was being
    given access to - but quickly discovered that a user can only be
    assigned to one role.
    Has anyone else run across this?
    Thanks.

    Well, I definitely think that if you're going to maintain any
    level of sanity to your web file organization, you'll have to set
    up roles according to logical groupings and then assign folks to
    those roles. I would not mess with creating a variety of
    connections because that could easily turn into an authentication
    nightmare. Stick to one encrypted connection.
    The nature of your business organization should dictate how
    those role groups are created, for example a role for HR, Finance
    or Sales with a corresponding folder on the site. But it might be
    possible to do the opposite and create roles based on how your
    website is organized. For example, you might have a "Sales" section
    on your web site that folks from different departments need to have
    edit access to, and another section on your site that deals with
    "Administration" that may necessitate adding folks from, again,
    different departments within the organization. This is a bit
    opposite of the normal routine of setting up role groups based on
    the groups that already exist in the organization (HR, Finance,
    Sales, etc.).
    For us, it was fairly easy to create the groups because we're
    a school system and the site is organized by school sites.
    It would be great if folks could be assigned to multiple
    roles, but it could get messy with the "cascading" of permissions
    (i.e. permissions in this role but NOT in that role, however the
    second role is a sub-group of role one....see what I mean?).
    In the end, you may just need to graph out the type of
    organization you need in order to meet the needs of the site and/or
    organization. Then replicate that in how you set up roles in CPS.
    Hope this helps!

  • Setting up RMAN -- Best Practice

    On the readings I've done regarding RMAN, I've seen recommendations that RMAN should have a recovery catalog configured, even though that's optional. Further, I've seen recommendations that RMAN's recovery catalog should have its own database.
    I've got one machine, that I want to run RMAN on, with the backups residing on that machine and disks. I then plan on archiving the backup files that RMAN produces to another set of cheaper, though less efficient, disks.
    What I thought I'd do in configuring an RMAN recovery catalog is create a separate tablespace for it, and store the RMAN schema there instead of creating a separate database on the same machine.
    It seems to me that unless you have an environment where you have one RMAN backing up multiple oracle instances, a separate RMAN database isn't justified.
    Comments?
    === Al

    hi,
    What I thought I'd do in configuring an RMAN recovery
    catalog is create a separate tablespace for it, and
    store the RMAN schema there instead of creating a
    separate database on the same machine.
    However if you just create a separate tablespace and you need to recover that database you will have major problems. If you are going to use the recovery catalog option then create a separate database ideally on a separate machine.
    It seems to me that unless you have an environment
    where you have one RMAN backing up multiple oracle
    instances, a separate RMAN database isn't justified.if you have just a couple of databases to manage then use RMAN controlfile backup.
    regards
    Alan

  • Design Pattern / Best Practice Question

    Hi,
    I have been using Flex for a while now, but there is a
    scenario which I still have not found a solution I'm entirely happy
    with. I'm wondering if anyone else out there might have suggestions
    on a design pattern or best practice.
    Suppose I have a view which depends on model data which
    resides in some back end systems. That model data may or may not
    have been loaded (e.g. via a web service or remote object call) at
    the time the view is displayed.
    I don't know if the user will ever visit this part of the
    application so I would prefer to defer retrieval of the data until
    the user actually navigates to this view. Or I want to retrieve the
    data each time the view is displayed because the data is dynamic
    and could change between one presentation of the view and the next.
    Because the data comes from several systems, I cannot simply
    make one service call and display the view when it completes and
    all the data is available. I need to call several services which
    could complete in any order but I only want to display my view
    after I know all of them have completed and all of the model data
    is available. Otherwise, I can present the user an incomplete view
    (e.g. some combo boxes are empty until the corresponding service
    call to get the data completes).
    The solution I like best so far is to dispatch a single event
    (I am using Cairngorm) handled by a single command which acts as
    the caller and responder for all of the services. This command then
    remembers which responses it has received and dispatches another
    event to navigate to the view once all the results have returned.
    If the services being called are used in different
    combinations on different screens, this results in proliferation of
    events and commands. An event and command for each service and
    additional events and commands to bundle the services and the
    handling of their responses in the right combinations for each of
    the views.
    Another approach is to have some helper class listen for all
    of the model changes and only display the view when the model
    enters some state that is acceptable. It is sometimes difficult to
    determine just by looking at the model whether it is in the right
    state (e.g. how can I tell that a collection is the new collection
    that should just have been requested versus an old one lingering
    from a previous call). The logic required can get kind of
    convoluted and brittle.
    Basically, all of the solutions I've come up with so far seem
    less than ideal and a little hackish. I keep thinking there is some
    elegant solution out there that I am just missing ... but so far,
    no luck finding it. Thoughts?
    Thanks.
    Bill

    i think a service class is right - to coordinate your calls.
    i would have 1 event per call (so you could listen to individual
    responses if you wanted to).
    then i would use a flag. if you want to check for staleness,
    you would probably want two objects to map your service flag to
    lastRequested and lastCompleted. when you check, check if it's
    completed, and if it's not stale and that your lastRequested is
    less than lastCompleted (meaning that you're not currently waiting,
    i.e. you've returned since making a request). then make the request
    and update your lastRequested.
    here's a snippet of what i mean.
    ./paul
    public static const SVC1_LOADED:int = 1;
    public static const SVC2_LOADED:int = 2;
    public static const SVC3_LOADED:int = 4;
    public static const SVCALL_LOADED:int = 7;
    private var completedFlag:int = 0;
    then each call would have it's own callback.
    private function onSvc1Complete( evt:Event):void {
    completedFlag |= SVC1_LOADED;
    lastCompleted[ SVC1_LOADED ] = getTimer();
    dispatchEvent( new Event("svc1complete") );
    checkDone();
    private function checkDone():void{
    if( completedFlag == SVCALL_LOADED )
    dispatchEvent(new Event( "allLoaded" ));

  • Auto-Anchor Controller's Best Practice

    Hi All,
    I got confused with this setup. I have 2 Wlc's.One is the internal controller and another one configured for the anchor controller (different subnet-DMZ zone) for guest traffic. Where do i configure DHCP assignment for this users..? Should Production controller intervine in this dhcp process or shall i direct to Anchor to take care of everything..? which is recommended ?
    And also any best practice doc is available for this ..?
    Please help...
    thanks in advance.

    Prasan,
    Just keep in mind that there are best practices that are published and best practices that you learn from experience. Being a consultant, I get to implement wireless in various networks and everyone's network is quite different. Also code versions can change a best practice because of bug issues or how a standard might of changed and how that standard was implemented in code. The biggest best practice secret is really working with various client devices, scanner's, laptops, smartphones, etc., and seeing how those change because of newer models and it firmware updates. It's amazing to understand how some devices will require a few checkboxes in the WLAN to be disabled compared to others. Even with anchoring for guest and using a custom WebAuth to make sure the splash page works with various types of browsers.
    What I can say is to always try the defaults if possible when you have issues and then enable things one by one.
    Sent from Cisco Technical Support iPhone App

  • Seeking advice on Best Practices for XML Storage Options - XMLTYPE

    Sparc64
    11.2.0.2
    During OOW12 I tried to attend every xml session I could. There was one where a Mr. Drake was explaining something about not using clob
    as an attribute to storing the xml and that "it will break your application."
    We're moving forward with storing the industry standard invoice in an xmltype column, but Im not concerned that our table definition is not what was advised:
    --i've dummied this down to protect company assets
      CREATE TABLE "INVOICE_DOC"
       (     "INVOICE_ID" NUMBER NOT NULL ENABLE,
         "DOC" "SYS"."XMLTYPE"  NOT NULL ENABLE,
         "VERSION" VARCHAR2(256) NOT NULL ENABLE,
         "STATUS" VARCHAR2(256),
         "STATE" VARCHAR2(256),
         "USER_ID" VARCHAR2(256),
         "APP_ID" VARCHAR2(256),
         "INSERT_TS" TIMESTAMP (6) WITH LOCAL TIME ZONE,
         "UPDATE_TS" TIMESTAMP (6) WITH LOCAL TIME ZONE,
          CONSTRAINT "FK_####_DOC_INV_ID" FOREIGN KEY ("INVOICE_ID")
                 REFERENCES "INVOICE_LO" ("INVOICE_ID") ENABLE
       ) SEGMENT CREATION IMMEDIATE
    INITRANS 20  
    TABLESPACE "####_####_DATA"
           XMLTYPE COLUMN "DOC" STORE AS BASICFILE CLOB  (
      TABLESPACE "####_####_DATA"  XMLTYPE COLUMN "DOC" STORE AS BASICFILE CLOB  (
      TABLESPACE "####_####_DATA" ENABLE STORAGE IN ROW CHUNK 16384 RETENTION
      NOCACHE LOGGING
      STORAGE(INITIAL 81920 NEXT 1048576 MINEXTENTS 1 MAXEXTENTS 2147483645
      PCTINCREASE 0 FREELISTS 1 FREELIST GROUPS 1 BUFFER_POOL DEFAULT FLASH_CACHE DEFAULT CELL_FLASH_CACHE DEFAULT))
    XMLSCHEMA "http://mycompanynamehere.com/xdb/Invoice###.xsd" ELEMENT "Invoice" ID #####"
    {code}
    What is a best practice for this type of table?  Yes, we intend on registering the schema against an xsd.
    Any help/advice would be appreciated.
    -abe                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               

    Hi,
    I suggest you read this paper : Oracle XML DB : Choosing the Best XMLType Storage Option for Your Use Case
    It is available on the XML DB home page along with other documents you may be interested in.
    To sum up, the storage method you need depends on the requirement, i.e. how XML data is accessed.
    There was one where a Mr. Drake was explaining something about not using clob as an attribute to storing the xml and that "it will break your application."I think the message Mark Drake wanted to convey is that CLOB storage is now deprecated and shouldn't be used anymore (though still supported for backward compatibility).
    The default XMLType storage starting with version 11.2.0.2 is now Binary XML, a posted-parsed binary format that optimizes both storage size and data access (via XQuery), so you should at least use it instead of the BASICFILE CLOB.
    Schema-based Binary XML is also available, it adds another layer of "awareness" for Oracle to manage instance documents.
    To use this feature, the XML schema must be registered with "options => dbms_xmlschema.REGISTER_BINARYXML".
    The other common approach for schema-based XML is Object-Relational storage.
    BTW... you may want to post here next time, in the dedicated forum : {forum:id=34}
    Mark Drake is one of the regular user, along with Marco Gralike you've probably seen too at OOW.
    Edited by: odie_63 on 18 oct. 2012 21:55

  • Loader Best Practice Question

    The documentation is not very clear on what to do with
    regards to releasing memory etc.
    Typically, I'm loading an image and assigning the image to an
    <mx:image>. Do I then need to dispose/unload the loader? If
    someone would be kind enough to either explain this or provide a
    good code example (that implement best practice) I'd appreciate it.
    Thanks.

    There has been some consternation about this. Check this
    thread for instance:
    http://www.adobe.com/cfusion/webforums/forum/messageview.cfm?forumid=60&catid=587&threadid =1179158

  • New whitepaper: Oracle9iAS Best Practices

    Check out the newly published whitepaper on Oracle9iAS Release 2 best practices:
    http://otn.oracle.com/products/ias/ohs/collateral/r2/bp-core-v2.PDF
    Ashesh Parekh
    Oracle9iAS Product Management

    Carl,
    There is really no set number or best practice for the number of segments. It is driven by the needs of your organization based upon reporting requirement, collective bargaining agreements, the degree of organizational change occurring within the enterprise, etc. I do believe that "less" segments usually makes more sense from a maintenance and ease of use perspective. Jobs are available across the Business Group, unlike positions, which are subordinate and specific to jobs and organizations...so you'll be maintaining less of them (hopefully).
    Regards,
    Greg

  • Is dao pattern is the best practice in projects

    let me know if dao pattern is the best followed in all almost all the
    projects though finding alternatives to it. please clarify this for me and also i do want to know the best practices of the industry in using design patterns.

    There is no 'best' pattern. It is just all abouthow
    and where to apply them. This is very true,but these are common
    design patterns used in industry for standard
    problems.
    ost of the time patterns are used not for some
    special reason but for more manageability and ease of
    change.So if you have a small application than it's
    ok but if you are working on big application which
    are needed to be maintained over a time and changes
    are frequent.Than its better to start learning about
    patterns because their will be problems which right
    now you can't see but eventually you have to take
    care of.That is either incorrect or phrased poorly.
    Patterns come about because someone analyzes different existing code bases and notes that there are similarities in the way they are built.
    It isn't that they are easier to maintain but rather that because the pattern has similarities it is easier to comprehend, understand the limitations, understand the possible related patterns, etc. That might lead to easier maintainance but it isn't the reason. The reason is because, if and only if, the requirements/architecture lead to a situation where that pattern could be properly used.

  • Best practice for setting or detecting screen size?

    Hi All,
    Trying to determine a best practice for setting or detecting the screen size. For playbook and iOS, I can set them. But for Android, the number of devices is too large so I'd rather detect. My first choice is to use the stage.stageHeight and stage.stageWidth. This works fine if I set my stage properties with standard meta data:
    [SWF(height="320", width="480", frameRate="64", backgroundColor="#010101")]
    However, if I use the application descriptor file to set the stage dimentions (as suggested by Christian Cantrell here http://www.adobe.com/devnet/flash/articles/authoring_for_multiple_screen_sizes.html)
    <initialWindow>
    <aspectRatio>landscape</aspectRatio>
    <autoOrients>false</autoOrients>
    <width>320</width>
    <height>480</height>
    <fullScreen>true</fullScreen>
    </initialWindow>
    Then the stage.stageHeight and stage.stageWidth are not the correct numbers when my main class is added to the stage. Sometime after the main class is added to the stage, then those numbers are fine. Is there an event I can wait for to know that the stage.stageHeight and stage.stageWidth are correct?
    Thanks in advance!

    Hi Lee,
    Thanks for the quick response! However, for some reason the heightPercent & widthPercent metadata tags are not working as expected for me.
    I have a wrapper class that I target for compiling, WagErgApplePhone.as where I've got my metadata
    [SWF(heightPercent="100%", widthPercent="100%", frameRate="64", backgroundColor="#010101")]
    sets some stage properties
    stage.quality=StageQuality.LOW;
    stage.scaleMode = StageScaleMode.NO_SCALE;
    stage.align = StageAlign.TOP_LEFT;
    and instantiates my main class
    var main:Main = new Main();
    addChild(main);
    my main class constructor even waits for the stage
    public function Main(){
    if (stage) init();
    else addEventListener(Event.ADDED_TO_STAGE, init);
    in my init function, stage.stageHeight traces out as 375 (expecting 320).
    i have a function which is called via a button press event by the user, and stage.stageHeight traces out correctly (320) there. that's what makes me think that if i wait long enough, i can get the correct stageHeight before init/drawing. but i'm not sure what event to listen for, or if there's another trick.
    if i use Capabilities.screenResolutionX and Capabilities.screenResolutionY the correct values are provided for mobile, but these values are not useful for the desktop and web version of the app. if there's no other solution, i'll execute different code depending on platform.
    again, for reference, my app descriptor:
    <initialWindow>
    <aspectRatio>landscape</aspectRatio>
    <autoOrients>false</autoOrients>
    <width>320</width>
    <height>480</height>
    <content>bin-iOS/WagErgApplePhone.swf</content>
    <title>WAG ERG</title>
    <fullScreen>true</fullScreen>
    <renderMode>cpu</renderMode>
    </initialWindow>
    looking forward to any other ideas to try out & thanks so much for your thoughts! if you want to really dig in, this is an opensource project at code.google.com/p/wag-erg/

Maybe you are looking for

  • FCP X 10.0.2 why does crossfade blank following video

    MacBook Pro FCP X 10.0.2 Video imported from Canon 5D Mark II using Magic Lantern (AJ) clean HDMI output via Matrox MX02 Mini Thunderbolt to SSD drive as ProRes HQ 1080i. FCP X running on built in 750Gb hard drive I've edited my video and trying to a

  • Black iPad with Retina Display Help

    When I watch videos I downloaded in full screen, the screen gets very light and bright. Why does it do that?

  • Extended desktop for T61 with GM965?

    I want to extend my desktop to a 1440x900 lcd screen. Is this possible with the current GM965 intel driver? I've looked around for some xorg.conf's for inspiration but none until now seems to work. I've tried xrandr, but it says that screen size is r

  • How do I turn off 'system resume on start up'

    How do I turn off 'system resurme on start up'? or How do I stop windows 'reopen on login'? this is a very annoying feature.

  • Changing NACHA File output format

    Is it possible to change the layout for NACHA output file? We sent the output file to our Bank and we have two issues in that file. One is there is extra header that the NACHA is adding which comes after the two headers we have defined in the Pay Met