Normalized structure implimentation question

I have a table A that contains id's as FK and another table B that contains id's PK and descriptions. I'm creating a canvas and I want multiple records from A to appear on the screen and have the description from B appearing in the appropriate line listing. I have a data block set up for A and one for B. I have a relationship from A to B. the description from B populates the first record slot but updates that one slot with the correct description from whatever record has control.
Any ideas of how to do this?
Originally...they wanted a drop down list for each of the multiple records displayed and have those lists display the appropriate description.
Anyone know how to do this?
Thanks.

Hi..
I usually do this by putting a Display item beside the foreign key item (in table A block) .. and put a formula on this item to get the descrition from the master table (from Table B)..
This way there is no need for the second data block (table B)..
Hope this helps..
Shadi Khasawneh

Similar Messages

  • Code Structure / Component Question

    I'm new to Flex and trying to learn as much as I can on my own without help, but I've run into a question that I'm not finding an answer for.
    I've read about creating MXML components and understand that, as well as creating AS classes, that that makes sense too.
    I have code in the default package which displays the Datagrid component (MXML) but also has ActionScript code in the same source file to load the datagrid via PHP (HTTPService) as well as define what happens when cells are updated (sending data back to update the DB via PHP).
    This is all pretty much a self-contained "component" for manipulating data from a particular MySLQ table from this single datagrid.  I have the grid displayed on one tab of the tab navigator.
    My problem is that I'd like to create a similar datagrid on a separate tab which does the same thing for a different table.   I know this code needs to be separated and not in one MXML file, but I'm not finding how to either structure my project to do this, or else make each datagrid (along with the associated AS code) into a separate component.
    Would appreciate any help or examples you may have.
    Thanks,
    Gary

    Thanks for pointing me in this direction -- I had started that way, but got confused.  Here are the first few lines of my current code:
    <?xml version="1.0" encoding="utf-8"?>
    <mx:Application xmlns:mx="http://www.adobe.com/2006/mxml"
                                            width="998" height="656" creationComplete="init()" layout="absolute">
              <mx:Script>
                        <![CDATA[
                                  import mx.controls.Alert;
                                  import mx.events.PropertyChangeEvent;
                                  import mx.events.CollectionEventKind;
                                  import mx.events.CollectionEvent;
                                  import mx.events.DataGridEvent;
                                  import mx.controls.TextInput;
                                  import mx.rpc.events.ResultEvent;
                                  import mx.collections.ArrayCollection;
                                  import com.adobe.serialization.json.JSON;
                                  import com.adobe.viewsource.ViewSource;
                                  [Bindable]
                                  private var callbackUrl:String;
    Naturally, my datagrid tag is dozens of lines below this:
    <mx:TabNavigator x="23" y="10" width="831" height="506">
    <mx:Canvas width="100%" height="100%" label="Learners">
    <mx:DataGrid id="dgData"
    x="27"
    y="19"
    width="778"
    Can you show me a quick example of how I'd put this together with the top tag as you described?
    Thanks again,
    Gary

  • Implementation work shop structure and questions

    dear experts,
    can some one get me detailed idea on the work shop structure before the blue print ?
    what are the main activities need to covere ?
    do some one have questions for the OM work shop ?
    any high level diagram for OM process for reference ? any ppt ?
    thanks and regards
    chandra

    In the workshop prior to the Bluerint you would need to cover the following points :
    (Usually in the implemenatation projects the Core team is relatively new to Business process documentation )
    1. identifying the list of business processes
    2. identifying the person(s) responsible(functionally) for each business process
    3. Breaking down the business process into business process steps.
    4. The core team needs to be explicitly told that the same needs to be done irrespective of whether the step is in scope or not.
    5. Drawing a flow chart based on the steps identified.
    6. Ensuring that there are no open ends in the flow chart....i.e. every IF condition also has and else documentation/link
    7. Start / end of process need to  be clear
    8. Input and output needs to be identified.
    9.Owners (individual) and Unit (Owner Department) at each step need to be identified.
    10.Process steps and flow chart needs to be verified with the business process owner.
    11. Most Important : the Core team should not make any assumptions from what experience they have earlier, but get the facts from the team.
    To Cover the points above we had done a smilar exercise at one of our projects using a case study of a a process of hypothetical company gave the same to each participant of the workshop. We then asked them to write down the process steps. We then got them to discuss the process steps as two seperate teams and draw a flow chart. All the above points came out as learnings.
    All the Core team members and Functional consultants were involved in the workshop along with a few steer. com members

  • Help with program structure - simple question.

    Hi. I need a piece of advice on how to create the correct structure for my program. It consist on two main processes:
    1)Detecting time difference between 2 rising edges, and showing the data. I used the concept of another user "panoramarts" that you can see here:
    http://forums.ni.com/t5/Digital-I-O/Measuring-Time​-between-two-Digital-Signals/m-p/2091868#M16230
    (If anyone knows a better way to do it I will really appreciate it)
    2) A continuous process.
    I attached a picture of the structure I am using. The numbers I will refer to, are indicated there.
    The program basically starts counting the time until a rising edge is detected (number 2 in the picture). After that the next sequence is executed (number 3 in the picture) counting the time again until the next edge is detected. After that the subtraction is made to have the time difference and then displayed (number 4 in the picture).
    Here is the problem: I have a continuous process that must be executed, so if I place it in "Number 1" then the edge detection must be running otherwise i do not see the continuous process (is like Labview execute de FLAT sequence, and after that the continuous process). If a place the continuous process in another While loop, then is like sometimes I get inaccurate data from the edge detection.
    How can I solve that? Is there another way to acquire time between edges? I hope you can help me without the VI.
    I am using Arduino, so I can not use DAQmx VI's.
    DMDsync
    Attachments:
    program structure.jpg ‏54 KB

    Thanks for the quick feedback!
    I believe my problem is that I am not using the best way to estimate time between edges. As I previously said, I am using almost the exact VI that "Panoramarts" shared in this link:
    http://forums.ni.com/t5/Digital-I-O/Measuring-Time​-between-two-Digital-Signals/m-p/2091868#M16230
    The only difference is that instead of a DAQ assistant in each of the While Loops, I use the same input for both of them. It works ok. It measure the time difference between the 1st and 2nd edges, the 3rd and 4th, and so on. All that VI is inside a while loop to continuously perform the counting. May be I can simplify my question:
    How can I continuously measure time difference between incoming edges (it could be a Boolean variable varying from true to false periodically) in a VI that already has a continuous process running?
    As Altenbach said, I used a wait statement in the continuous process (as it is not necessary a fast data update for it, because it is just a simple temperature measurement), but that delay created some faulty timing in the edge timing sequence.
    Any ideas?
    Thanks again!
    DMDsync

  • Structured book questions

    I have just begun using structured FrameMaker after working in unstructured FM for years. Even after reading the help, I'm having a hard time understanding some concepts.
    All we want to do is open a ditamap in FrameMaker, save as a book, add a TOC and index, and then save as PDF.
    You can save a ditamap as one of the following book files:
    Book w/FM components - saves each XML file as an FM document.
    Book - maintains the XML file formats.
    If all we're doing is adding a TOC, Index, and then saving as PDF, which format do we need?
    Another question - After I save a ditamap as a book, open all files in the book, and then try to update the files, FrameMaker says the XML application for one file cannot be found. When I opened this particular file before updating the book, I chose the structured application and saved the file. After receiving the error, I went to set the structured application, and it was already set. What gives?
    Could this be any more difficult? That's a rhetorical question . I'm very frustrated.
    I appreciate your help.

    I just watched a video on book creation in structured FM (using FrameMaker 8). The suggested solution works without structuring the generated files. In the EDD, it looked like this for the TOC:
    Element (Container): Contents
    General rule: <ANY>
    Valid as the highest level element.
    The index definition was done the same way. TOC and index were added to the book, then the book was generated / updated. After the initial TOC and index generation, TOC and index had the correct element assignments at the book level, but not the correct formatting. The generated content was then deleted from TOC and index, followed by another update. Starting with the second update, TOC and index had correct formatting.
    HTH
    Susanne

  • Default directory structure - simple question.

    I need to add a configuration file to my application.
    I thought about adding it to either the web or web/resources directory of my project.
    My question is this:
    How do I reference either of these directories in my File access routine?
    Thanks

    Ah OK, now I see .. You can use a propertiesfile and put it in the classpath (inside a WAR, it can be the root of the package or the WEB-INF/lib directory). Then you can retrieve it by ClassLoader#getSystemResourceAsStream().
    Basically:
    String filename = "config.properties";
    InputStream input = ClassLoader.getSystemResourceAsStream(filename);
    Properties properties = new Properties();
    properties.load(input);
    input.close();
    String someKey = properties.getProperty("someKey");Where config.properties looks like:someKey = someValue
    anotherKey = anotherValueAlso see the java.util.Properties API.

  • Dynamic Implicit Structure Creation Question

    Hello,
    I was curious if it was possible to dynamically create an implicit structure where you might occasionally want to omit some keys from being added to the structure?
    I played around with using ternary operators in the structure creation with no luck.
    <cfset temp = {
         name = "Dave",
         (1 IS 1 ? "" : Job  =  "Superhero")
      } />
    The only way I can see doing this now would be to create the structure and then use StructKeyDelete on the keys I want to remove OR build structures the traditional way and cfif my way around the keys I don't want to add."
    Ex: <cfset structKeyDelete(temp,"Job") />
    or
    <cfset temp = structNew() />
    <cfset temp.name = "Dave" />
    <cfif 1 NEQ 1>
          <cfset temp.job = "Superhero" />
    </cfif>
    Does anyone know how to create dynamic keys in a structure while defining it implicitly?
    Thanks!

    I can think of at least one reason why this fails. If there is just one key-value pair, there will be a comma stranded at the end.
    You can of course tinker dynamically with the content of the keys of a struct and their respective values. However, a struct is an object, with set characteristics such as number of key-value pairs. So, it would be difficult to dynamically change the number of key-value pairs 'from within' the struct. Even if what you are trying to do were possible, it would be more complex, and would certainly involve more code, than the ordinary alternative you mention.
    In any case, here is a version of your original idea that works:
    <cfset temp = (1 IS 2 ? {name="Dave"} : {name="Dave",Job="Superhero"})>
    <cfdump var="#temp#">

  • Not a normal RAID 1 question

    WD=Western Digital
    I would like to run this question by a few people and see what they think.
    Originally I had a 2008 (non R2) server now upgraded to 2012 and it had two drives - both the same size - one WD and one Hitachi. Both of those drives were in a RAID 1, and had no issues.
    Then of course one fails, and I replace it. No more issues for a year or so, then I replace a failed drive again. Now both of the drives that were replaced were the WD, and not the Hitachi. These drives do get a lot of "abuse" since they do a bunch
    of data compression and decompression, so yes I would expect it to fail.
    Now my question, which is hopefully simple, is the Windows implementation of RAID 1 tied to any one disk per say, and then sycn'd, or is it just dumb luck and coincidence that both of the drives that failed were the WD drives?

    OK so here is a really good walkthrough of implementing a RAID 1 -
    http://technet.microsoft.com/en-us/magazine/2005.05.raid.aspx Its an older article. But since you can boot to the second drive then that would infer that they are initially sync'd and then both written to at the same time.
    So one thing that I will mention here is that you say: These drives do get a lot of "abuse" since they do a bunch of data compression and decompression, so yes I would expect it to fail.
    A Hardware RAID card with a cache will actually ease the amount of IO because they have a an "Read Ahead" and Write Back to cache feature. The Adaptive Read ahead will fetch additional blocks of data when data is requested - this will keep the hard drive
    heads from working so hard. Write back allows data being written to disk to go to cache first. If you are using caching on the RAID card make sure it has a battery backup. Another note: Certain MS products will disable any caching on the C: drive these include
    - Domain Controller, SQL, Exchange or any product that uses the JET database i.e. DHCP

  • Structure Mapping Question Selected node copying

    Dear experts,
    I would like to know the following. I have an Idoc to xml-file scenario. The xml is provided. There are for each row in the idoc a number of similar segments (1..unbounded). I want to copy only those segments if they have a particular value, this is always one segment from this header, can never be more with the same value in VAL. Like this:
    Source:
    <HEADER>
      <SEGMENT>
        <XAL>555</XAL>
        <VAL>name one</VAL>
      </SEGMENT>
      <SEGMENT>
        <XAL>666</XAL>
      </SEGMENT>
      <SEGMENT>
        <XAL>777</XAL>
        <VAL>name three</VAL>
      </SEGMENT> 
    </HEADER>
    As a result I want to map only the value from VAL where in that same segment XAL=777
    So:
    <TARGETHEADER>
       <VAL>name three</VAL>
    </TARGETHEADER>
    How do I accomplish this?
    Kind regards.

    Auke,
    As said by patrick use IF Without ELSE.
    Do the logic,
    XAL & Constant(777) -
    >equals----->IF Without else -
    >Target
    Choose equals function under Text category.
    raj.

  • Organization Structure related question?

    Dear All,
    Please look into this scenario and let me know is it possible?
    I have two plants 1000 and 2000 under comapny code 500.
    I wan to create same equipment number 410001 under 1000 and 2000 plant. I wan to know is it possible or not?
    Thanx

    It's not possible whatever combination of plant/company code you use.
    The equipment number is unique and cannot be duplicated within a given client.
    Use the Technical ID field, that's what it is for...
    PeteA
    [www.pjas.com]

  • When is the new DPS Pro pricing structure implimented?

    I'm about to purchase DPS Pro but unsure whether I should hold off until ithe prices are updated?

    So, let me get this straight. If you purchased a DPS Pro Subscription last month, you could publish all the apps that you pleased for $495/month.
    When you renew February 2015, you'll be able to produce only *1* app for $495/month. This from the company that says people who publish numerous apps are only a "small percentage" of those with DPS Pro licenses.
    Then, to make things even more interesting, Adobe LOWERS the price of DPS Enterprise by more than 70% in one year! The geniuses at Adobe are really making me scratch my head.

  • GREATEST Function question

    I have a simple question, but I am not sure about it.
    Say that rank3 has the best score of 99 and it wins, how do I know
    which column it was ? Is there a way to also in addition to bringing
    back the winning rank value, to also bring back which column that came from ?
    select customer_id, GREATEST(rank1, rank2, rank3, rank4, rank5) Winning_Rank
    from table;

    Question has a version dependent answer.
    You need to provide your four digit version always in your request, and you shouldn't need to be asked to provide it.
    My initial reply is it will be difficult due to the non-normalized structure of the table.
    Sybrand Bakker
    Senior Oracle DBA

  • DW CS5 - Is this normal? Blanked out menu in Library group

    Hi; As part of the CIB course I am doing, I have to create a library entry.
    So I select a button from the sidebar and click on the CSS Tag to select them all.
    Then click on Assets > Library > New Library item.
    A warning box appears which I "OK", and then all the text and the background behind the text (Not the whole button) goes black in design view.
    Testing in Live view is OK, as is testing within a browser, but having done that the text & background to the text is yellow (Yellow is used as a text colour, but not background).
    Odd if not life-threatening, but is there anything I can do to make design view behave?
    Thanks
    Bob
    Windows 7, 64 bit - Dreamweaver CS5 with oodles of ram / disk space

    With a health warning - I am partway through this course, so links etc don't
    work!
    However this page in design mode just has yellow strips where the vertical menu items should be.
    That may be normal, hence the question!
    http://www.hallsworth.eu/dw_cib_temp/contact_us.html
    Regards
    Bob

  • Create a deep structure for dynamic internal table

    Hi All,
    I am creating a dynamic table using method cl_alv_table_create=>create_dynamic_table.
    The normal structure gets created. but now I want to creat a Deep structure for having information of colors also for each column. So I want to add a COLTAB type LVC_T_SCOL for colors information .
    How should I create this using above method?
    Rgds,
    Madhuri

    I created a zcelltab structure as below. But while creating dynamic internal table, I received the error  with
    'Type "ZCELLTAB" is unknown 68 ZCELLTAB-CELLTAB
    Here is the code.
    DATA: BEGIN OF ZCELLTAB,
             CELLTAB LIKE LVC_S_STYL,
         END OF ZCELLTAB.
    FIELD-SYMBOLS <T_CELLTAB> TYPE LVC_T_STYL.
    DATA : LT_CELLTAB TYPE LVC_T_STYL.
    DATA:  WA_CELLTAB TYPE LINE OF LVC_T_STYL.
    DATA: GT_FCAT1 TYPE LVC_T_FCAT,
               GW_FCAT1 TYPE LVC_S_FCAT,
                GT_FCAT2 TYPE LVC_T_FCAT,
                GW_FCAT2  TYPE LVC_S_FCAT.
    After filling the FCAT1, I added the field in FCAT2  like below
      GT_FCAT2[ ] = GT_FCAT1[ ].
      G_TABIX = G_TABIX + 1.
      GW_FCAT2-INTTYPE = 'C'.
      MOVE G_TABIX TO GW_FCAT2-COL_POS.
      GW_FCAT2-OUTPUTLEN = '10'.
      GW_FCAT2-FIELDNAME = 'T_CELLTAB'.
      GW_FCAT2-TABNAME = 'ZCELLTAB'.
      GW_FCAT2-REF_FIELD = 'CELLTAB'.
      GW_FCAT2-REF_TABLE = 'ZCELLTAB'.
      APPEND GW_FCAT2 TO GT_FCAT2
      CLEAR GW_FCAT2.
    While calling the below method, the error with
    CALL METHOD CL_ALV_TABLE_CREATE=>CREATE_DYNAMIC_TABLE
         EXPORTING
          IT_FIELDCATALOG = GT_FCAT2
        IMPORTING
          EP_TABLE        = GT_REQ.
      ASSIGN GT_REQ->* TO <F_TAB>.
      CREATE DATA GWA_REQ LIKE LINE OF <F_TAB>.
      ASSIGN GWA_REQ->* TO <F_WA>.
    LOOP AT ITAB.
    ASSIGN COMPONENT 'MATNR'  OF STRUCTURE <F_WA> TO <F_VAL>
    <F_VAL> = ITAB-MATNR.
    IF ITAB-MATNR IS INITIAL.
    ASSIGN COMPONENT 'T_CELLTAB' OF STRUCTURE <F_WA> TO <T_CELLTAB>
            CLEAR WA_CELLTAB.
            WA_CELLTAB-FIELDNAME = 'MATNR'.
            WA_CELLTAB-STYLE = CL_GUI_ALV_GRID=>MC_STYLE_DISABLED.
            INSERT WA_CELLTAB INTO TABLE <T_CELLTAB>.
    ENDIF.
    APPEND <F_WA> TO <F_TAB>
    ENDLOOP.
    CALL METHOD GR_GRID->SET_TABLE_FOR_FIRST_DISPLAY
            EXPORTING
              I_CONSISTENCY_CHECK  = G_CONSISTENCY_CHECK
              IT_TOOLBAR_EXCLUDING = G_EXCLUDE
              I_SAVE               = G_SAVE
           I_DEFAULT            = 'X'
              IS_LAYOUT            = G_LAYOUT
            CHANGING
              IT_OUTTAB            = <F_TAB>
              IT_FIELDCATALOG      = F_CAT1.
    Please let me know where I was wrong.
    Should I remove the T_CELLTAB as the field name is not mentioned in the structure 'ZCELLTAB'.
    Thanks,
    Kumar.
    Edited by: venn e on May 7, 2010 4:10 PM

  • LBBIL_INVOICE. Billing Data: Transfer Structure to Smart Forms

    Hi...
    Can u please help me out in my query regading how the data passes to
    LBBIL_INVOICE. Billing Data: Transfer Structure to Smart Forms.
    I have an smartform which runs through VF01/VF02/ VF03 while pressing the print preview button.
    But if i try to run it directly from driver program, no data wil be displayed. Now i have the requirement to detach from VF03.. and make it to run directly from my driver program.
    what shall i have to do to achieve this. Should i have to take all the internal tables saparately or else can i use LBBIL_invoice structure itself.
    If i can use that structure itself, how to make the data flow into it.  Pls help me.
    In my codeing these includes were there. is there anything related , is the data passes because of these includes
    INCLUDE rlb_invoice_data_declare.
    definition of forms
    INCLUDE rlb_invoice_form01.
    INCLUDE rlb_print_forms.
    Pls clarify my dobut...
    Thanks in advance,
    Hema

    1. These are normal structure
    2. you can use anywhere but they designed for forms currently.
    3. Yes ,it works like it will look at NAST Table -> nast table will connect the TNAPR Table -> tnapr will have smart form print program.
        so smart form program calls smartform and it will show output
    4. you can create your own structure and use them into anywhere like report program or forms..
    5. you can see example simple form name SF_EXAMPLE_01 ,program name is SF_EXAMPLE_01 ,you can design your own form and print program.
    Thanks
    Seshu

Maybe you are looking for