Design Question for table - related columns

Hi,
I have some design question about table I am working on.
Here are the sample fields in the table,
process_begin_date
process_approved_by
process_signed_by
process_monitor
process_communication
the same way I have around 10 groups, for ex
other_begin_date
other_approved_by
other_signed_by
other_email
other_something
Question: Is good have all 50 fields in the same table? or any better idea?

Hi,
Number of columns should not be any issue, but, proper normalization may be better for your design and scalability. If you can explain what you are storing in this table, you might get help if you need to have more than 2 tables in this particular scenario.
If all these fields are related to a single entity, probably this single table is already normalized and needs not to be replaced by two tables.
Salman

Similar Messages

  • LDAP design question for multiple sites

    LDAP design question for multiple sites
    I'm planning to implement the Sun Java System Directory Server 5.2 2005Q1 for replacing the NIS.
    Currently we have 3 sites with different NIS domains.
    Since the NFS over the WAN connection is very unreliable, I would like to implement as follows:
    1. 3 LDAP servers + replica for each sites.
    2. Single username and password for every end user cross those 3 sites.
    3. Different auto_master, auto_home and auto_local maps for three sites. So when user login to different site, the password is the same but the home directory is different (local).
    So the questions are
    1. Should I need to have 3 domains for LDAP?
    2. If yes for question 1, then how can I keep the username password sync for three domains? If no for question 1, then what is the DIT (Directory Infrastructure Tree) or directory structure I should use?
    3. How to make auto map work on LDAP as well as mount local home directory?
    I really appreciate that some LDAP experta can light me up on this project.

    Thanks for your information.
    My current environment has 3 sites with 3 different NIS domainname: SiteA: A.com, SiteB:B.A.com, SiteC:C.A.com (A.com is our company domainname).
    So everytime I add a new user account and I need to create on three NIS domains separately. Also, the password is out of sync if user change the password on one site.
    I would like to migrate NIS to LDAP.
    I want to have single username and password for each user on 3 sites. However, the home directory is on local NFS filer.
    Say for userA, his home directory is /user/userA in passwd file/map. On location X, his home directory will mount FilerX:/vol/user/userA,
    On location Y, userA's home directory will mount FilerY:/vol/user/userA.
    So the mount drive is determined by auto_user map in NIS.
    In other words, there will be 3 different auto_user maps in 3 different LDAP servers.
    So userA login hostX in location X will mount home directory on local FilerX, and login hostY in location Y will mount home directory on local FilerY.
    But the username and password will be the same on three sites.
    That'd my goal.
    Some LDAP expert suggest me the MMR (Multiple-Master-Replication). But I still no quite sure how to do MMR.
    It would be appreciated if some LDAP guru can give me some guideline at start point.
    Best wishes

  • Design question for database connection in multithreaded socket-server

    Dear community,
    I am programming a multithreaded socket server. The server creates a new thread for each connection.
    The threads and several objects witch are instanced by each thread have to access database-connectivity. Therefore I implemented factory class which administer database connection in a pool. At this point I have a design question.
    How should I access the connections from the threads? There are two options:
    a) Should I implement in my server class a new method like "getDatabaseConnection" which calls the factory class and returns a pooled connection to the database? In this case each object has to know the server-object and have to call this method in order to get a database connection. That could become very complex as I have to safe a instance of the server object in each object ...
    b) Should I develop a static method in my factory class so that each thread could get a database connection by calling the static method of the factory?
    Thank you very much for your answer!
    Kind regards,
    Dak
    Message was edited by:
    dakger

    So your suggestion is to use a static method from a
    central class. But those static-methods are not realy
    object oriented, are they?There's only one static method, and that's getInstance
    If I use singleton pattern, I only create one
    instance of the database pooling class in order to
    cionfigure it (driver, access data to database and so
    on). The threads use than a static method of this
    class to get database connection?They use a static method to get the pool instance, getConnection is not static.
    Kaj

  • Design Question for a Custom Field

    I am designing a custom Field, GridField, that creates a grid of n X m cells. Each column has a width, each row has a height, and each cell cell can have a color, border, text, and font. My question deals with how to treat the borders of the cell. It is a design trade off question, so I am interested in your viewpoint as a developer and how you would expect this GridField to work.
    Say I need a 3 X 3 grid with the columns 30 pixels wide and rows 20 pixels tall. The entire field is 60 pixels X 90 pixels in size. Now, if I add a vertical border on the sides and in between each column and that border has a width - say 2 pixels. What type of behavior would you expect from this Field:
    Option A. The cell remains 20 pixels X 30 pixels in size. The entire Field grows in size by the border width - so with three columns and a 2 pixel border, the GridField is now 90 + 4 borders X 2 pixels = 98 pixels wide. If I add a similar horizontal border, then the GridField is now 60 pixels + 8 pixels for the border = 68 pixels tall.
    Option B. Each cell is reduced in size by the border - so now the cells are 18 pixels tall and 28 pixels wide.
    These options become more interesting when you consider putting a border around just one cell in the grid. Are the border widths added to all the cells in the row and column of this cell, or are the border widths subtracted from the one cell that has the borders?
    Thanks for your thought!
    Mark
    P.S. Why am I doing this? I could accomplish the same thing using a TableLayoutManager and LabelFields. However, if I have a 10 X 10 grid, that means I have to create 100 LabelFields. With this approach, I only create one object and a more "robust" paint method. I believe I am making a smaller widget to accomplish the same task.
    P.P.S. I am currently using this GridField in a Blackberry development project, but it also has application in any MIDP project.

    I am designing a custom Field, GridField, that creates a grid of n X m cells. Each column has a width, each row has a height, and each cell cell can have a color, border, text, and font. My question deals with how to treat the borders of the cell. It is a design trade off question, so I am interested in your viewpoint as a developer and how you would expect this GridField to work.
    Say I need a 3 X 3 grid with the columns 30 pixels wide and rows 20 pixels tall. The entire field is 60 pixels X 90 pixels in size. Now, if I add a vertical border on the sides and in between each column and that border has a width - say 2 pixels. What type of behavior would you expect from this Field:
    Option A. The cell remains 20 pixels X 30 pixels in size. The entire Field grows in size by the border width - so with three columns and a 2 pixel border, the GridField is now 90 + 4 borders X 2 pixels = 98 pixels wide. If I add a similar horizontal border, then the GridField is now 60 pixels + 8 pixels for the border = 68 pixels tall.
    Option B. Each cell is reduced in size by the border - so now the cells are 18 pixels tall and 28 pixels wide.
    These options become more interesting when you consider putting a border around just one cell in the grid. Are the border widths added to all the cells in the row and column of this cell, or are the border widths subtracted from the one cell that has the borders?
    Thanks for your thought!
    Mark
    P.S. Why am I doing this? I could accomplish the same thing using a TableLayoutManager and LabelFields. However, if I have a 10 X 10 grid, that means I have to create 100 LabelFields. With this approach, I only create one object and a more "robust" paint method. I believe I am making a smaller widget to accomplish the same task.
    P.P.S. I am currently using this GridField in a Blackberry development project, but it also has application in any MIDP project.

  • Generating mixed case for table and column names

    I trying to get table definition from Oracle 9i database into my toplink workbench
    (version 9.0.3), the column names and table names are capitilized by
    default, how do I change this to be mixed case? Thanks

    I'm not sure why you want them changed. The Oracle database by default is case insensitive, which in essence means it converts everything to upper case when a case is not specified (which can be done by wrapping it in quotes). Unfortunately, Java strings are case sensitive. This means that if you try searching resultsets for "TableName" when the database driver is returning "TABLENAME", you will run into problems. It is probably better to have your project match your database as closely as possible to avoid any issues later on.
    That said, I don't know of a way to automatically have the workbench use mixed case names - it uses the strings as they are returned from the database. I believe you will need to manually change the table names if you want them to be different than what you have imported.
    Best Regards,
    Chris

  • Adobe design question for barcodes and including PDFs

    Hi all,
    I am new to using Adobe LC ES 8.2. I have been reading this forum and it has been very helpful. We have certainrigid requirements for our application that is making it difficult to come up with a clean solution. I am hoping this forum will be able to answer some of my questions:
    Use case: Our application needs to mail correspondence to users (printed PDFs not fillable forms). We plan to use Adobe LC ES Designer to design all the forms and Assembler Service to assemble the documents together. The plan is to merge the templates with XML business data dynamically and then assemble them. When the documents are assembled together, documents to be assembled include Cover Pages Templates, Notice Templates, Attachments (could be templates or static PDFs) and decisions that will be converted into PDF from an RTF document using Adobe Professional 8. The user creates the document in RTF and convert it into PDF using Adobe Acrobat Professional and store it for assembly process. Our Print Shop requires the entire assembled mailing to have bar codes on each of the pages with the following information:
    1 D 3of9 barcode - JOB ID (can be sent dynamically) +  PIECE ID (number of mailing) + SHEET ID (page number with in the PIECE ID - front and back of the page get the same number)
    Following are the questions we have:
    1. What ways are available to apply the bar code to the assembled document as one piece of information in the bar code is the SHEET ID for the entire mailing? I would know the total number of pages only after assembly.
    2. If there is a way to manipulate the barcode information after assembly, I am not sure how we can handle bar coding the Decision PDFs that will be converted from RTF using Adobe Professional 8.
    Please advice.
    Thanks.

    Thank you. So, using Form Services we can manipulate the document (barcode object) after assembly.This is great.I will look into this. When we spoke to Adobe, they wanted us to complete all merge prior to assembly and said we cannot manipulate the document after assembly.
    How would I handle a barcode for a PDF that has been converted into PDF from a RTF document? My concern is that even if the RTF has a barcode, will it be a format that can be manipulated after it is converted into PDF by the user and submitted to the assembly process?
    One of my ideas is to maybe convert this PDF into images and include it in the XML data as base64 images and merge it with an Adobe Form template having image fields. This is not a clean approach and I am very concerned about performance issues with the size of the data XML.
    The other thing I am reading up about is "Underlaying pages" - http://livedocs.adobe.com/livecycle/8.2/ddxRef/wwhelp/wwhimpl/js/html/wwhelp.htm?href=0012 71.html#1548394&accessible=true
    Any ideas?
    Thank you so much.

  • [iPhone] UI Design pattern for table views with properties and children?

    Hello,
    I'm getting started with iPhone development and I have a question about the proper way to display a list that has both properties of the list itself as well as the ability to drill down into the members of the list. For example, my data is a Group (of people say). The Group itself can have properties - the name of the group, group email address, web page, etc. - and it obviously has members which also have properties - name, address, etc.
    In my table view, I want to show the Group members and have accessory/disclosure buttons on each row to show the details of a person, but I also want to be able to edit the properties of the group - Group name, etc. What's the UI pattern for editing the properties of the table itself?
    I thought about having a tabbar that toggles between the list and the properties of the list.
    I also thought about having a parent table that lists the groups (so I could have more than one) and then have accessory buttons on each group row. The UI would then have to be that the user taps the row to drill down to the group members and taps the accessory button to edit the properties of the group. Is that "proper" - tap the bar or tap the accessory icon in a table row?
    Thanks

    I don't think I'd use a tab bar.
    You could break the table up into 2 sections, section 0 being the properties, section 1 the list.
    Make section 0 just say 'Properties', then when you tap that row you drill down to a properties table, slap an edit button in the navigation bar to go into edit mode.

  • Title at runtime for table control columns

    Hi gurus,
    I want to populate the title of the columns of the table control at runtime.
    I have horizontal scrolling on, so putting up input boxes as 'output only' and populating at runtime will be difficult.
    Can the texts for these labels be set at runtime?
    Any suggestions?
    Thanks and Regards
    Muhammad Ali Mahmood

    Hi Ranjit,
    Please elaborate. I have two column in itab and table control p1, p2.
    One thing i can do is set the title for p1 as 'title 1' and p2 as 'title 2' and at runtime hide the column i dont want.
    Otherwise, if at runtime I need one column i just set the title for that column as 'title 1' or 'title 2'.
    Know what I mean? Anyway to achieve this??
    Thanks

  • Design question for typical Message Based J2EE Apps

    We�re building a request/response (synchronous) messaging using MDBs and trying to figure out the �blue print� best practice for all components needed. Please let me know if any of the components below seem suspect, and whether I need to add/remove additional ones.
    MDBs: Consume MQ and JMS messages and start a Transaction
    Message Request Handlers: are created by MDBs . Receive messages in XML format, use utilities to perform XML marshalling and unmarshalling with Value Objects.
    Session Fa�ade: Stateless Session EJB.
    Business Delegates: Are called by the Message Request Handler to process the message
    Business Objects: Biz logic classes
    DAO Layer: Data Access for CRUD operations
    Messenger : To create a response message and send it back
    How is the Session Facade related to the Biz Delegate. Are they one and the same? Are there any online docs to address these layers?

    I was trying not to overly complicate this by inlcuding the data structure, but two of the treesets data:
    [model.Role@c7d5 code = [audit] description = [Access to data] name = [JIMS Audit], model.Role@4455 code = [basic] description = [Basic access] name = [JIMS Basic], model.Role@d131 code = [privacy] description = [Access to JIMS privacy data]
    locationTypeList=[LocationType@b234 code = [amc] description = [Am. Part Code] name = [amc], LocationType@b1ea code = [mat] description = [Management Indicator Ticket] name = [mat], LocationType@313e code =
    There are 3 DAO objects and more need to be added now. The user object will need data from all of them. The JSP's access this data directly. It's needed for security and location roles to determine access to functions and data within the app. The user has groups and these groups have security roles and locations that are separate and yet combine to give individual user access and admin rights. The key is that individual groups have separate data relevant to that group as a module that can be modified, added or removed and yet still combines with other groups data to give a total array of values for the individual user. I'm thinking the nature of the nested objects may require inner classes and/or a decorator pattern, but I'm still thinking though it.
    Message was edited by:
    jamesEston

  • Design Question For Professionals

    Hello,
    Please can any professional design artist tell me what is the best software for creating crisp and professional looking flyers/posters/leaflets and publications of that sort?
    Example, once i used Adobe Fireworks to create a flyer design. I sent the flyer design to a company so then can proof read it and sent a copy back. The copy i received back was the same design, but the quality of the image was tremendously improved. Anyone shed any light on this?
    Thanks in advance, to all who reply,
    Nicky Thorne.

    Nicky,
    >what is the best software for creating crisp and professional looking flyers/posters/leaflets and publications of that sort?
    Fireworks is the wrong app for print materials. Look into the Creative Suite CS4. Its key design apps are generally used together. Multi-page documents are best served by starting with page layout software, such as InDesign. (Or QuarkXPress). Single page documents, such as posters can be done with that software or with Illustrator. Graphics or illustration, Illustrator or Photoshop, or a combination of the two, which can then be placed into a page layout app. Photo retouching and enhancement, Photoshop. Logos, Illustrator. Heavy typography, InDesign or QuarkXPress.
    Personally, I do most work in a page layout app, and add elements from Illustrator and/or Photoshop.
    Client presentation and final art files for print reproduction are often file conversions to Acrobat PDFs.
    Based upon your post, I'm going to make some assumptions...
    Assuming that you have a natural creative talent, it would appear that, in addition to becoming proficient in a lot of professional software, there is still another long learning curve ahead of you, from learning everything about typography, graphic design, copy writing (or at least copy editing), and photo retouching to appropriate stock (paper) choices, color management, ink, bindery, printing, and how best to prepare art for print production.
    I hope this helps get you started, and I wish you well.
    Neil

  • Table Relation with Payment and Invoice of Vendor

    Hi all,
         I have one question about Table Relation with Payment and Invoice of Vendor.
         the scenario is.
         2 Purchase Order number : 100000001/100000002
         1 Invoice document number : 200000001 which include  2 Purchase Order.
         1 Payment document number : 300000001
         How should I found out table relation from Payment document number - Invoice document number - Purchase Order number. ?
          I try to link the following table, but it does not work.
          RBKP     *     Invoice Receipt
          RSEG     *     Invoice Receipt document line item
          BKPF     *     Accounting Document Header
    BSEG     *     Accounting Document Segment
    PAYR          Payment Medium File
    BSIK          Accounting: Secondary Index for Vendors
    BSAK          Accounting: Secondary Index for Vendors (Cleared Items)
    BSIS          Accounting: Secondary Index for G/L Accounts (Open Items)
    Does any one know about it ?
    Regards
    KY Chuang

    Hi Venkatesh,
    Thnx a lot for the reply. This has almost solved my problem, however there's one thing left. when I'm trying to take a print out after exporting the info into an excel sheet, the information really looks scattered, i.e.,  is there a way where we can go ahead and get the info in a rather unscattered manner.
    I've tried to take a print directly without actually transferring the info into an excel sheet, then each of the vendor is printed in a separate page, which again they feel is a problem.
    So, if you have an idea pls suggest.
    Thnx again for the information.
    regards
    sandhya

  • Aggregation level - design  question

    Hi, All
    we are in BI-IP ( Netweaver 2004s SPS16).
    I have a design question for this scenario.
    User needs to plan the amounts for a duration (start period and end period), Jan2008 -Dec2008 (001.2008, 012.2008) = 12000.
    We need to distribute this to the periods equally. 001.2008 = 1000, 002.2008 =1000 .... 012.2008=1000.
    If the user changes the period amounts, it should be reflected back in the duration amount.
    Pl suggest the design for the aggregation levels to achieve this.
    Thanks in advance.
    velu

    Hello Velu,
    As the name also goes, creating an "aggregation level" will only result in "aggregation". What your requirement is, is called disaggregation or distribution - this cannot happen automatically - you will either have to use the feature in input queries or use the distribution planning function or create your own planning function using fox/exit.

  • WLPI Design Question

    I've got a bit of a design question for Process Integrator. Currently I'm building
    a prototype for an exception handling system using Process Integrator. The application
    has to be web based and I'm using the Front Controller design pattern that is
    described in the J2EE Blueprint docs.
    I've come across a bit of a design problem. Should I design the application so
    that all the user actions in a task are accessed via the api set or should I build
    this functionality into the template. For example, a user will action a task which
    requires the user to update some variables in the template. In the template definition
    should use a Send XML to Client action and then use the taskExecute method on
    the worklist, or should I do it all programatically?
    Also if I do use the Send XML to Client should I then mark the task done using
    the APIs or using the Studio. I have noticed that if I mark the task done wihtin
    the studio after sending the xml, the task becomes available for the next user,
    even if the variables haven't been updated yet.
    Sorry about the rambling nature of this post.
    Thanks in advance.
    Preyesh

    If you want to write code that's easier for you to write, you do whatever the hell you want.
    If you want to write good code, retain the ID.

  • BC4J + Struts: Design questions!

    OK, I'm wanting to use Struts with BC4J and have a design question for you BC4J users and gurus.
    Here's how I think things would work:
    1. User requests page
    2. Struts ActionServlet calls perform() on Struts ActionForm
    3. Struts ActionForm instantiates BC4J AppModule and calls business method
    4. BC4J AppModule instantiates necessary BC4J ViewObjects and performs business operations which return data
    5. Struts ActionForm receives value objects from BC4J AppModule
    6. Struts ActionForm populates Struts FormBean
    7. Struts ActionForm forwards to Struts JSP which displays Struts FormBean
    I prefixed the components with Struts/BC4J to keep things clear where things belong.
    Now, here are my questions:
    In step 3, what's the best method of doing this? Do I need to do JNDI lookups every time? What's the performance overhead of this? Anyone have any best-practice code that does this?
    Is this the accepted way of doing things? Is there a better way of designing this system?
    Thanks!

    In Step3 you should use the ApplicationModule pooling framework, especially if you are trying to work in stateful mode because the pooling automatically handle the AM activation/passivation.
    There are different way to go at it.
    If you are using the BC4J custom tag library and have an ApplicationModule tag in your jsp, the pooling is already initialize. By the time your action is trigger you just need to retrieve the am using the application id:
    in your jsp:
    <jbo:ApplicationModule id="myAM" ... />
    in your Action implementation:
    HttpContainer container = HttpContainer.getInstanceFromSession(request.getSession());
    SessionCookie cookie = container.getSessionCookie("myAM");
    ApplicationModule am = null;
    if (cookie != null)
    am cookie.useApplicationModule();
    This AM id can be passed as URL parameter...
    If you do have a JSP with an AM tag you need to create the pool with findSessionCookie call.
    For more info about AM pooling look at the end of this thread for Steve resources:
    http://forums.oracle.com/forums/message.jsp?id=912431&gid=513211
    This is what we are currently doing for to provide support for BC4J in Struts for our next release.
    Charles.

  • Design question about instant download a patch

    Hi All,
    Here is a design question for you:
    Background:
    The application we built is being upgraded from time to time and we send it to our users.
    our users use it on a network so there is only one file to upgrade (and being done by the sys admin)
    We send them a �patch�; actually, it�s a new version of the application they place it in the relevant folder and continue to work with a new version.
    Problems:
    1. We send them the patch via email - sometimes it takes a while until they read their email and at they are using an �old version of the system�.
    2. Some of them are not computer savvy (when it�s not the sys admin) and we need to guide them as where exactly to place the file (there are 3 files)
    Our (conceptual never build yet) Solution:
    Build a program just like Norton antivirus (or other) that prompts the user from the task bar (next to the clock) that a new version is available and by
    clicking once it will automatically download the file and store it in the correct folder.
    Question:
    1. Did anyone try anything like this before (or something like) who can tell me about it?
    2. Do you think this kind of system will work for us?
    3. Does anyone have a better solution?
    Thanks
    Peter

    thanks, I posted it there.No, he meant that Webstart is the mechanism you should use. It supports net-based distribution and automatic centralized updates of apps. Exactly what you want.

Maybe you are looking for

  • Can't access ResultSet

    Hi I am trying to create a ResultSet "rs" object that I can reuse with a next and previous button. So I need to create it once and then be able access it so that the user can move through it. The following code is what I have so far. I am getting a v

  • How to put F4 facility in the selection screen using

    <i><b>HI Experts, i have a query .. i want to put F4 facility in the selection screen and The F4 help  for the order number (chvw-aufnr) on the selection screen should be the same like the F4 help for order number in transaction COOIS.. PLease provid

  • How do I change resolution on I photo?

    I want to reduce the resolution of the photos are on my computer. I do not want to crop images. I only want to reduce resolutions. Could you help on this issue? I would appreciate it.

  • Formula help please

    Hi All, Simple code not working for me. Please help. I need suppress a section based on below condition. if {HederDetails.transaction_type_id} <> 11 then if (isnull({HederDetails.supplier_name}) or {HederDetails.supplier_name} = '' ) then  false else

  • JTable HTML like colspan

    I wonder if it is possible to have functionallity in a JTable similar to HTML's colspan for formatting JTable's contents in a speciall way ...