Dynamic table with drop down lists

I have a Dynamic table with a header row, Section and footer row.
Section has the following cells(columns): Cell1 (drop down with locations), button (to remove row), CCode (Color Code RAL), CName (color name).
I'm starting with 1 row.
now what I want to do is, when they select in CCode e.g. RAL 1003 (rawValue "1") then in CName the name "signal yellow" (rawValue "1") should appear.
I'm using javascript
My first problem is how do I know which value is chosen, because this isn't working:
if  (this.rawValue == 1)
xfa.host.messageBox('Today')
and second how do I set the value in CName
because this only sets it in the first CName cell:
xfa.form.DataSheet.TechnicalInformation.Markings.THatchPatterns.Section.CName.rawValue = '1';
Please help me, I'm totally lost

solved the problem, instead on change event put script on exit event.
and the following line does the trick:
xfa.resolveNode("THatchPatterns.Section[" + this.parent.index + "]").CCode.rawValue = this.rawValue

Similar Messages

  • Dynamic query with drop down lists

    I have two select queries in my program.
    The first query is to obtain and then display the list of
    clients.
    The second query I want to display only projects which are
    linked to a specific client.
    <cfquery name="getClient" datasource="#request.DSN#">
    Select tblClients.ClientID, tblClients.ClientName
    From tblClients
    Order by tblClients.ClientName</cfquery>
    <cfquery name="getProjects" datasource="#Request.DSN#">
    Select tblprojects.ProjectID, tblProject.Project,
    tblProject.ProjectID
    From tblProject, tblClients
    WHERE tblClients.ClientID = tblProject.ClientID AND
    tblClients.ClientID = #getClient.ClientID# </cfquery>
    I am displaying the first select box ok and it is populated
    with the correct information.
    The second select box is ot quite correct. It is only
    displaying one record - the first record in the file.
    <select name="Client">
    <cfoutput query="getclient">
    <option
    value="#getclient.ClientID#">#getclient.ClientName#</option>
    </cfoutput>
    </select>
    <select name="Project">
    <cfoutput query="getProject">
    <option
    value="#getProject.ProjectID#">#getProject.Project#</option>
    </cfoutput>
    </select>
    Any ideas on how to correct this would be greatly
    appreciated.
    Kind regards

    In your second query you are using the variable
    #getClient.ClientID#
    Outside of a <cfloop query=""> or a <cfoutput
    query=""> CF assumes you meant
    : #getClient.ClientID[1]# (which is the first record of the
    getClient Query.
    If you are trying to pull up a list of projects that are for
    the getClient list, then try this instead
    <cfquery name="getProjects" datasource="#Request.DSN#">
    Select tblprojects.ProjectID, tblProject.Project,
    tblProject.ProjectID
    From tblProject, tblClients
    WHERE tblClients.ClientID = tblProject.ClientID AND
    tblClients.ClientID IN (#valuelist(getClient.ClientID)#)
    </cfquery>
    Valuelist changes any 'column' from a query into a list.
    Hope this helps

  • Dynamic Tables - Coordinated Drop Downs

    Hello Community
    This is my first post and i am new in all this so please forgive if any...newbiness comes out! :P
    Anyway what i wanted to ask if there is a way or a tutorial to add, appart from Coordinated Drop-Down Lists also a dynamic Table!
    What i mean by that is that the coordinate drop down lists eventually create a query to the database which actually dont know which table the user might select. So e.g. if we take the travel DB provided he could choose the trip table or another one. So how could i drop a table in the design view but somehow to bind it according to what the user has selected to the preivous drop down lists??
    I hope i am clear enough and if i am not please let me know so to explain!
    (URL to tutorials, examples, samples or whatever more then welcome)
    Thank you in advance

    hello again
    i saw that already but for example it says:
    Drag and drop a JDBC table from the servers tab, say Data Sources -> travel -> trip, on to the designer. <<<that is what i mean...that the final result now will already be connected with the table trip of the travel database!
    What if i want to use the travel database indeed but it will be up to the user which talbe (or joined table) will be displayed. Because imagine a simple query:
    " Select * from ? "
    so in this case i would like the table to filled and show everything but from the table of the database that the user will select on the run time from a drop down list!
    Can i do that somehow?

  • Tables and Drop Down Lists

    This is my first time using LiveCycle Designer (8.2)
    I've tackled quite a few things thanks to the information I've found in these forums, but I have reached my complexity limit.
    I am trying to create a survey form that follows a process map with sub-process maps.
    Just to provide an idea of magnitude, one process map has eleven sub-process maps.
    I created a dynamic table with the ability to add and delete rows on a flowed page.
    The first row first column contains a drop down list.
    For each selection in the drop down list, the form requires eight inputs.
    Currently, I just copied the dynamic table for each subprocess.
    Each sub process map will have a running calculated total based on two inputs and a cost based on input.
    The overall process map will have the same.
    The entire section should seperatly show a sum total.
    I don't really know what would be best, but was thinking something along these lines:
    based on the selection in the drop-down-list, if someone selects one of the sub-process maps
    the row changes to allow the drop-down-list to be the one associated with that subprocess and
    the two running totals show up and remain at the bottom of the table.
    Only problem, is I have no idea how to do this.
    I have tried making the tables invisible, but they still show the input areas of the input boxes.
    Anyone feel like helping me figure this out?
    Also, isn't there a way I can populate a drop down list using EXCEL?  I don't want to manually input thousands of process titles.
    Oh, I don't have any XML capabilities, I am not connected to a server or any database, and everything runs at the client.

    Thanks for the input, I will watch the video.
    I was suprised that no one offered up any suggestions.
    I changed the design of the form.  I didn't want to, but I was able to get the product out on time.
    Just out of curiousity,
    Can I have a dynamic drop down list (A = {a1, a2, a3, a4}) that populates another drop down list (B = {b1, b2, b3, b4, b5} ) in table (Tb1) with one of the choices in the second drop down list (B = {b5}) is a dynamic choice that makes multiple expanding tables (Tc2, Te4, Tf5 out of a total of seven tables) appear each with their own (unique) drop down list?
    Or,
    Would it be easier to have the first choice (i'm probably using this word incorrectly) "index" the options for the other drop down lists, etc....

  • Adding field with drop down list to Opportunity transaction

    Hi All,
    I want to add a field from one of the Z table to the opportunity transaction Using EEWB. I have added the field but my problem is that the field should be drop down list with values coming from the Z table.
    Please help me if in case if you have idea or any relevant note or document.
    Thanks in Advance
    Gaurav

    Hi Gaurav,
      Go to your development package with your EEWB extension, look at function group like ZCRM_BTX_EEW_UI* and here you have you screen, your pbo, your pai.
      Modify with the same logic of program demo in your field.
    Regards.
    Manuel

  • Web Service with Drop Down Lists for database selections

    Hello,
    I want to define a Web Service with the JDeveloper which can do the following.
    I´ve got a database table with several columns which represents a customer adress and name.
    On a WebSite I like to have three Drop Down Lists to search in that table. The first list should include the field "name". When I select a name there the second list should show all streets (field "street") where people with the selected name live. When I select the street the third list should show me the house numbers (field "hn") of the customers with the selected name and street.
    What have I to do to define a application, a project and so on?
    Many Thanks!

    Hello,
    This question is not directly related to Web Services, since in this case you can consider that the Web Service is your "model" providing data to your view (JSP). One of the question I would like to ask you is: why do you want to use a Web Service to do that? and how you want to deploy this?
    In a general manner, if you use Web Service it is to be able to reuse the business logic in other projects, so based on this statement I would create a specific project that will contain you "model" so all your services.
    The to consume it from your JSP you have different ways:
    - create a Java proxy, or use @WebServiceRef to call the client
    - use Javascript to call the service directly from the HTML page, take a look to the Oracle Web Service endpoint page, where you can see some Javascript stub links.
    Please give more details about your project and needs and I will try to give you a proper answer.
    Regards
    Tugdual Grall

  • Problems with drop-down list: old references still in the model

    Hi,
    I am getting in troubles with a drop-down list. I configured it as dynamic list and I specified a RFC to get the values. Sometimes when I edit the field  I get that the configuration for the dynamic list is lost and I have to specify again the call to the MF. I did this for a couple of times and my surprise is that the old references are still in the source code. I realized of that when I used the alias manager. The old reference were there with ENUM....To check if the old references are called I switched on the flash debug console and I show that the MF is called a lot of times...
    Anybody knows how to eliminate these old reference???'  One the collateral effects is that the first value of the list is always shown.
    Antonio

    Hi Antonio, hi Marcel,
    the OSS-ID is 0000337147/2007 and the final given answer from SAP was:
    <i>Dear Customer,
    finally I managed to repreduce your problem,
    and it's a bug.
    we will aim to fix it in next releases, and the new Flex 2.0 runtime
    should handle this case, once it will be availible.
    Regards,</i>
    So it might be fixed with the actual SP, but I don't know that for sure (I rather doubt it, to be honest).
    Best Regards,
       Benni
    PS: You might avoid the problem of re-defining the entry list, by defining it as a global entry list, not a dynamic. However, the top-most entry will still be shown!

  • Populating the data from table onto drop-down list.

    Hi all
    The following code i have used in trigger 'when-new-form-instance'
    DECLARE
    group_id RecordGroup;
    list_id Item := Find_Item('Lines.classification');
    status NUMBER;
    rg_name varchar2(10) := 'rgroup';
    BEGIN
    clear_list(list_id);
    group_id := Find_Group(rg_name);
    IF NOT id_null(group_id) then
    Delete_Group(group_id);
    End if;
    group_id := Create_Group_From_Query(rg_name,
    'select meaning from lookup_values where lookup_type='TC_CLASSIFICATION' and lookup_code in('BUSINESS','PERSONAL')');
    status := Populate_Group(rg_name);
    Populate_List(list_id, group_id);
    END;
    i have created a Record_Group from Object navigator(name:'rg_name').
    and used it in the above code.
    after this i try to run the form, i am not able to see the value which i drop-down list
    can any one suggest me abt this, and any changes i need to do in the property pallet,...
    Thanks
    Raj

    u3 wrote:
    No, Populate_List requires that the record group is created at runtime.Actually you're wrong ;)
    POPULATE_LIST works with both, record groups created at runtime AND at design time.
    Try the below code on SCOTT schema with a list item and a button trigger:
    Record Group created at design time
    DECLARE
         RG_NAME VARCHAR2(10) := 'RGROUP';
         V_DUMMY NUMBER;
    BEGIN
         CLEAR_LIST('LIST_ITEM1');
         V_DUMMY := POPULATE_GROUP(RG_NAME);
         IF V_DUMMY = 0 THEN
              CLEAR_LIST('LIST_ITEM1');
              POPULATE_LIST('LIST_ITEM1', RG_NAME);
         END IF;     
    END;
    Record group Created at Runtime
    DECLARE
         GROUP_ID RECORDGROUP;
         RG_NAME VARCHAR2(10) := 'RGROUP';
         QUERY_TEXT VARCHAR2(1000) := 'SELECT ENAME, TO_CHAR(EMPNO) FROM EMP';
         V_DUMMY NUMBER;
    BEGIN
         CLEAR_LIST('LIST_ITEM1');
         GROUP_ID := FIND_GROUP(RG_NAME);
         IF NOT ID_NULL(GROUP_ID) THEN
              DELETE_GROUP(GROUP_ID);
         END IF;
         GROUP_ID := CREATE_GROUP_FROM_QUERY(RG_NAME, QUERY_TEXT);
         CLEAR_LIST('LIST_ITEM1');
         V_DUMMY := POPULATE_GROUP(RG_NAME);
         IF V_DUMMY = 0 THEN
              CLEAR_LIST('LIST_ITEM1');
              POPULATE_LIST('LIST_ITEM1', RG_NAME);
         END IF;     
    END;It does work with me both ways, I suggest you test it.
    Tony

  • Need help with drop down list in parameters

    Hi All,
    I have the following data set:
    DEPT1     DEPT2     DEPT3 DEPT4
    Commissioner's Office     Finance     Accounting     Accounts Payable
    Commissioner's Office     Finance     Accounting     Fiscal Analysis & Repo
    Commissioner's Office     Finance     Accounting     
    Commissioner's Office     Planning,Asset Mgt     Asset Management     Inventory & Tracking
    Commissioner's Office     Planning,Asset Mgt     Asset Management     Mobility & Congestion
    Commissioner's Office     Planning,Asset Mgt     Asset Management     Roadway Safety
    Commissioner's Office     Planning,Asset Mgt     Asset Management     
    Commissioner's Office     DesignProj Mgt & Tec     Bridge Dsgn Insp Hyd     
    In plus i have four parameters with searchlight options, the problem is when i select "Finance" from DEPT2 and in the next selection level i'm seeing all the departments "Accounting,Asset Management and Bridge Dsgn Insp Hyd" insted of just "Accounting". What i want is if i select a department in DEPT2, in the next drop down list(DEPT3) i want to see only the departement corresponding to the one i selected in dept2. Please need help.
    Thanks

    Hi
    First of all you need to be using Discoverer 10g or 11g Plus not 9.0.4. Assuming you have the right version you need to present the parameters in the correct order. You can change the order on the parameters screen by selecting Tools | Parameters from the toolbar. You then use the Move Up and Move Down buttons to place them in the right order so that DEPT1 is offered first, followed by DEPT2, then DEPT3 and then DEPT4.
    Next, you need to check the radion button on the bottom of the right-hand side that allows linking of parameters then you make DEPT2 dependent upon DEPT1, with DEPT3 dependent upon DEPT2 and so on.
    While this works without hierarchies it works best when you have a hierarchy in place and even better when there is a composite index on the 4 items.
    Best wishes
    Michael

  • Datatable with drop down list in a cell

    Does anyone know the existing example of datatable against certain memory structure with possibility to have drop down list in a cell ( I mean after switching to editing mode some columns become drop down lists , otherwise just value ).
    TIA
    Michael

    Not possible. InDesign isn't designed to be form-filling software. At best, it can create fields which can be passed on to a PDF file, which usually further has to be edited in Acrobat Pro.

  • Prob with drop down lists jiggling

    Hi all
    This is a little different than the last posted problem. When I click on a drop down list..for example a list of states, I can only scroll so far down. The list jiggles up and down, when you get only about 1/2 way down it suddenly shifts back to the top of the list. There is no way to capture for example Pa or Va.
    Could it be the mouse?
    Thx

    Prb. solved by call the same FM with emply list in exporting.

  • I need help with drop down lists

    I have a form that does not have lots of space and I want to use drop down lists to fill in specific information that describes site conditions.  The problem I have is that the drop down list is only set up for a single line and that is not enough space for what I want in the drop down list.  In other words, I have items that are several sentences.   I have seen some descriptions of creating a drop down list that then fills in a text box that has multiple lines.  Unfortunately, that is not an ideal solution for me.  I just want the drop down list to select a single phrase.  Here is an example of what I want to be able to select in the drop down.
    The water heater spilled flue gases in excess of 5 minutes under worst case conditions.  The combusiton testing was completed with in 30 days of the invoice submittal. 
    The form does not allow me to create a field that goes all the way across the page so it needs to look something like this:
    The water heater spilled flue gases in excess of 5 minutes
    under worst case conditions.  The combusiton testing was
    completed with in 30 days of the invoice submittal.
    Any help is greatly appriciated.

    Thanks for responding.
    I have three items that are very similar in length and text for each drop down.  There are 9 drop downs right now.  I am using the drop downs to fill in a form that is used by several people and I want to keep things as simple as possible.  Associated with the drop down already is a check box.  When the check box is checked, it fills in a text box with a score (1 point, 5 points, etc).  That score then tallys for a total with all the other scores in another text box.  Using a drop box to fill in a text box is just getting to busy and than I have to distinguish each drop down item so it is clear which text you are selecting.

  • Dynamically manipulating two drop down lists

    Dear All,
    I am working with one form which has two drop down lists. Name of first drop down is State Name which is having all state names from database.Another drop down name is City Name and the values has to be populated from data base according to the first drop down value.
    Now I am able to generate first drop down from database . But I am unable to manipulate second drop down.
    Please anybody can help me to resolve this problem. Your suggestions are appreciated.
    Thanks

    Dear All,
    I am working with one form which has two drop down lists. Name of first drop down is State Name which is having all state names from database.Another drop down name is City Name and the values has to be populated from data base according to the first drop down value.
    Now I am able to generate first drop down from database . But I am unable to manipulate second drop down.
    Please anybody can help me to resolve this problem. Your suggestions are appreciated.
    Thanks

  • Problem with drop down list: on Windows it works, on Mac doesn't

    Dear forum,
    I am reworking the MultiPageImporter2.5 script by Scott Zanelli; going to add some new features.
    So far I added a drop down list so the user could choose on which pages to place a pdf/indd file: odd/even/both.
    However I encountered a strange problem: on Windows it works as expected, but on Mac nothing happens when I click the popup. When I write a dialog, I almost always use automatic layout and never encountered such a problem before. But in this script the author uses fixed position for the controls so I followed his coding style:
    dLog.pageSideMode = dLog.pan4.add('dropdownlist', [10,110,180,40], ["Odd and Even Pages", "Only Odd Pages", "Only Even Pages"]);
    dLog.pageSideMode.selection = pageSideMode;
    The drop down list is visible both on Windows and Mac, but on Mac it’s not clickable. What am I doing wrong?
    Another question: in the script, the author created three popups. In the code, each popup has a different height (the last element of the “bounds” array) – 60, 88, 33. Does it make sense to make them different if on the screen they look exactly the same (I mean height).
    Here’s my version of the script.
    I think the easiest solution for me here is to rework the dialog part from fixed to automatic layout.
    Thanks in advance.
    Kasyan

    Hi johniko,
    In my version of the script, the user will have to choose a file to be placed directly in the dialog box. The selected file can be saved into a preset. I'm reworking it for another person (not for myself) and that's what he wants.
    Regards,
    Kasyan
    P.S. By the way, you can simply merge all your pdf-files into a single document in Acrobat.

  • Dynamically Populating Drop Down Lists

    Hi,
    I am trying to dynamically populate a drop down list on a form based on a selection in another drop down list. I have read the help file "To dynamically populate a second field after populating the first" which goes through an example, however I cannot get this example to work for me.
    I know that the best way to do it is to create an xml file and connect the form to this file. I am new to programming in xml but have had some experience in other forms. The code that I have (from the help page) looks like this;
    <?xml version="1.0" encoding="UTF-8"?>
    <MyData>
       <country/>
       <countries>
          <item uiname="United States" token="US"/>
          <item uiname="Vietnam" token="SRV"/>
       </countries>
       <state/>
       <US>
          <item>California</item>
          <item>New York</item>
          <item>Texas</item>
       </US>
       <SRV>
          <item>An Giang</item>
          <item>Bac Giang</item>
          <item>Bac Kan</item>
       </SRV>
    </MyData>
    I have then followed the instructions on the page, and am unable to populate either field on my form. Perhaps there is something wrong with my code? Or any other suggestions would be greatly appreciated! 
    Thanks

    Hi Paul,
    I have another question,
    I would now like to populate a third drop down menu based on the selection in the second one, however my code is going wrong somewhere as now when I put in the first 2 drop down lists, nothing appears in the second one. ie, the first drop down list I link to countries, and the second to state, as I did with the previous file, but now, when I preview it, I can choose a country, but nothing comes up in state. When I set the first drop down box to countries, I have to specify that I want it to show the uiname, but I can't do that with the second one when I select state using the XML file below, nothing is shown. Where am I going wrong?
    <MyData>
       <Country/>
       <countries>
          <item uiname="United States" token="US"/>
          <item uiname="Vietnam" token="SRV"/>
       </countries>  
       <state/>
       <US>
          <item uiname="California" token="CA"/>     
          <item uiname="New York" token="NY"/>   
          <item uiname="Texas" token="TEX"/>
       </US>
       <SRV>
          <item uiname="An Giang" token="AG"/>
          <item uiname="Ban Giang" token="BG"/>
          <item uiname="Bac Kan" token="BK"/>
       </SRV>
       <time/>
       <CA>
          <item>6</item>
          <item>7</item>
       </CA>
       <NY>
          <item>5</item>
          <item>4</item>
       </NY>
       <TEX>
          <item>3</item>
          <item>8</item>
       </TEX>
       <AG>
          <item>2</item>
       </AG>
       <BG>
          <item>1</item>
       </BG>
       <BK>
          <item>9</item>
       </BK>
    </MyData>
    Thank you for your help!

Maybe you are looking for

  • Help required in using same excel file as both Input and Output source

    Hello Programmers, Here I am trying to read, modify and write an excel file using JAVA, I have successfully employed Jakarta POI and read the file but the problem is that I can''t make changes in the same file and save it. I can't use the same file f

  • Routing operation deletion

    Dear All , we have auto GI & auto GR concept for production order confirmation . Now say one FG material have 10, 20, 30 , 40 operation . So here  the Auto Gi will happen at 10 operation & auto GR will happen at 40 th item . now if i have to delete 1

  • My iPod touch's headphone jack is not working.

    I was in class listening to music regularly, when suddenly i pressed the play button again and there was no sound. i pulled out my Beat's jack and blew the ipod jack, which didnt help either. At first i thought it was my headphones, until i used my f

  • Admin40_check_ds_availability_init() error code = 4

    I can't log into the admin console anymore. I've searched the other messages and changed the password and expiration time. That didn't work for me. What did I mess up? Here are the log entries: warning ( 5895): admin40_check_ds_availability_init(): u

  • Intel 82845 problems

    im having problems with my gfx card, whenever i try to switch to 1280x1024 resolution, it restarts X after about 15 seconds.  i figured maybe it was my gfx drivers, and this is what happens when i try to load them manually: [root@Darkstar ~]# modprob