Several data sets with SetFieldValues

Here is a simplified version of what I'm trying to do.

I have two drop-down menus. Each has 3 different options.

  • Drop 1 - Apple, banana, strawberry.
  • 2 - clock, window, door drop.

I have a field of text next to each drop down.

  • Drop-down list 1 - 'colorfield' is the name of the corresponding text field
  • 2 - drop "shapefield" is the name of the corresponding text field

I want that text from the fields to fill what is selected in the drop-down lists. I can get everyone to work separately, but when I add the script for both, only continues to operate.

Here's what I have.

Doc Javascript

// Data Set 1
var oneData = {
       "Apple": {
        color: "red"
    },
        "Banana": {
        color: "yellow"
    },
        "Strawberry": {
        color: "red"
    },
  };
// Data Set 2
var twoData = {
        "Clock": {
        shape: "round"
    },
        "Window": {
        shape: "square"
    },
        "Door": {
        shape: "rectangle"
    },
 };
// Populate fields function 1    
function SetFieldValues(fruit) {
    this.getField("colorfield").value = oneData[fruit].color;
}
// Populate fields function 2    
function SetFieldValues(objects) {
    this.getField("shapefield").value = twoData[objects].shape;
}

Custom script knocks on combo 1

if (event.willCommit) {
    if (event.value == " ") this.resetForm(["colorfield"]);
    else SetFieldValues(event.value);
}

Custom script knocks on combo 2

if (event.willCommit) {
    if (event.value == " ") this.resetForm(["shapefield"]);
    else SetFieldValues(event.value);
}

Thank you!

There is a reason, it is not a name of keyword that already exist, the computer program is not smart enough to determine who you mean. It goes the same for function names. You have 2 functions with exactly the same name but each run another block of code. The usual way that a program solves this dilemma is to use the last definition of the function. You must uniquely name functions of your "SetFieldValues".

Tags: Acrobat

Similar Questions

  • Need help to organize Excel files with several data

    Hello everyone!

    I'm working on a project consisting of a full acquisition system. I have great finisheda part of my program and now my guardian's ask me something else.

    In you project I have several datas: Move, force, speed, time,...

    And he would like that this data in the same Excel file with a predefined order. In the example: column 1: time, column 2: speed, etc.

    I already tried to work with the block 'write on a file of measure' and associate a different signal through a simulation, and it works. The first signal is the left column. The second signal is the second column. So it's ok about this. But when I try to link a VI unlike a simulation, that the file does not work. Even if I use the data of 3 or 4, I only had a column with some strange results.

    That's why I ask your help. I would like to know if you have a good way to solve this problem I want to clarify that I am a beginner in LabVIEW.

    I join my project in order to help you understand. I hope I was clear enough

    Kind regards.

    ML

    PS: Sorry for my English, I know that I'm not very good like that!

    Thank you for your project, including - it shows me that you are using LabVIEW 2015, which means that you have the Report Generation Toolkit, with the ability to easily generate Excel "Reports", available.

    If you really want to generate Excel (.xls, .xlsx) files, the GTA is, by far, the best way to do.  If you go to the search bar in the Forums of LabVIEW and type "Example revised" - the first 'hit' should be a post of two years of mine where I show how to use the GTA to more or less do what you described.  Give it a try with some of your data, and come back if you have any other questions.

    Bob Schor

  • Friends of Hy. I want to ask that I am looking to get a pdf split software to split a pdf file into several PDF files with my set of pages specified. As if a document is 22 pages then I will specify the number of pages that must be cut in half to separate

    Friends of Hy. I want to ask that I am looking to get a pdf split software to split a pdf file into several PDF files with my set of pages specified. As if a document is 22 pages then I will specify the number of pages that must be cut in half in separate PDF files. for example I entered that do three pdfs of 1-5, 5-7, 8-10 pages and it will result in me

    first pdf = 1-5 pages

    second pdf = 5-7 pages

    Third pdf = 8 to 10 pages.

    Y at - there no way to do it with adobe acrobat or any other software? I tried many software including adobe with extract and split option, but I did not get the results you are looking for. so please:

    I would like to know if any of you have any knowledge about it. I have

    Thnanks in advance!

    Hi minixain,

    Yes, you can do it using Adobe Acrobat application (Adobe Acrobat free trial downloadversion |) Acrobat Pro DC), please refer to this document for help KB split a PDF | Adobe Acrobat DC tutorials.

    Kind regards

    Nicos

  • Hand cursor with the line of the Spry data set

    I carefully built a Spry - a table - with a corresponding region of detail data set, following the instructions in the Adobe video workshop. Everything works, including the row headers clickable to use lines and activation of the changes in the retail area. BUT I can't get the hand cursor appears (at the place of arrow or the sliders of the i-beam) on interactive areas. Tried creating null links (href = "#") to activate the hot words (it works) but which causes actual links on the page to insert the root of my site in front of the URL to other sites.
    Here's the example page
    I looked at the code on the model and may not know what I am doing wrong.

    Help! and thank you.

    I carefully built a Spry - a table - with a corresponding region of detail data set, following the instructions in the Adobe video workshop. Everything works, including the row headers clickable to use lines and activation of the changes in the retail area. BUT I can't get the hand cursor appears (at the place of arrow or the sliders of the i-beam) on interactive areas. Tried creating null links (href = "#") to activate the hot words (it works) but which causes actual links on the page to insert the root of my site in front of the URL to other sites.
    Here's the example page
    I looked at the code on the model and may not know what I am doing wrong.

    Help! and thank you.

  • Form of the ADF for data structure with several child records

    Jdev version: 11.1.1.2.0

    I have a data structure with a one-to-many parent-child relationship. I give an example of the data structure.

    Employee table:
    ----------------------
    EmpId
    EmpName
    Salary

    Table Historiqueemploye:
    -------------------------------
    EmpId
    Previous_Employer
    From_Date
    To_Date


    In the ADF form for entering data for a new employee, I want to give a layout (say, a button "Add row") for the history of the employee's employment. How can we succeed in ADF?

    I'm new to ADF. Would be grateful if someone can help me with detailed steps or a link showing such a demonstration.

    Thanks in advance.

    Hello

    If you exposed a View for the Historiqueemploye table object, then simply drag this point of view as a form and then drag and drop the create operation (within the structure of the View object in the data control palette) as a button for the new line is created. If you do not always display the historical, add it to an af:popup and start button context menu create or hide the af: panelFormLayt that a form is added by default.

    Frank

  • Can I make my table to DataSet table 3d 2D data set?

    Hello.  I'm putting my data in a 3D Board.  I'm not really satisfied with the table 3D data set since that requires a large amount of manipulation of the table whenever I want to do something with the data - I do a lot of analysis, it's a pain.  It is reliable, but it takes space BD and is generally a pain.  I read here (post #6 & #7 if the link don't you shoot directly to it) a few messages by some respected LabVIEW guru they didn't see no reason to 3D tables used.  I was hoping someone might be able to point to a better solution to know how to store and access my data logically.

    I'm n channels of data acquisition (a while but I have will add to this later), that puts me in a table 2D with each line being the channel and the columns are the data points.

    I need to acquire multiple test runs a data value.

    I also need using data in each series of tests, average averages and check the test medium-sized operating are with a tolerance of the average general.

    I also need to be able to revive one of the test tracks if its average does not fall within the tolerance of the average general.

    I use the page in 3D as the series of tests table.  If I can then get some tests, I want to by selecting the corresponding page.

    I'm waiting to save all the test runs at the same time until the user selects to save the data.  Which means that the user has run the minimum number of test runs, and all have averages that fall within the tolerance of the average general.  I love this soley because this test will be carried out different several times for different of UUT and all data for this USE can be saved in a single file.

    I am currently save the file as a binary file (for my purposes of data backup) and then the user can also choose to save it in Excel, with each test on its own sheet.

    I thought to save after each race.  I don't know how add/replace the data in the binary file. I would rather not a separate binary file for each set of tests, but it's not a dealbreaker.

    The only way I see to avoid the 3D Board is back up after each series of tests.  This would mean that I would have a lot more handling of file (when they should be replaced, when the averages should be analyzed, etc..).

    Is the "save after each test cycle" approach that is generally used?  If so, it seems to me that file manipulation would be more prone to error than the manipulation of table 3D (maybe just for me I guess). Can someone tell me otherwise?

    Is there another approach that I have not thought or discovered here?

    Thank you

    Scott

    I think that save after each test cycle is a safer and more reliable way to accomplish what trying to boot of all data and recording at the same time.  This way, if the program crashes, you don't lose all the data because it was still in memory.  The data had been collected so far are safely in a file.  Why do you think of file manipulation would be more subject?

    If you want to add an existing file, then you just use the position to set the file to set the pointer to file at the end of the file, after you open the file.

    You can also watch the TDMS file format because it has means of sorting and organization of several sets of data.

  • date max with multiple joins of tables

    Looking for expert advice on the use of max (date) with multiple joins of tables. Several people have tried (and failed) - HELP Please!

    The goal is to retrieve the most current joined line of NBRJOBS_EFFECTIVE_DATE for each unique NBRJOBS_PIDM. There are several lines by PIDM with various EFFECTIVE_DATEs. The following SQL returns about 1/3 of the files and there are also some multiples.

    The keys are PIDM, POSN and suff

    Select NBRJOBS. NBRJOBS.*,
    NBRBJOB. NBRBJOB.*
    of POSNCTL. Inner join of NBRBJOB NBRBJOB POSNCTL. NBRJOBS NBRJOBS on (NBRBJOB. NBRBJOB_PIDM = NBRJOBS. NBRJOBS_PIDM) and (NBRBJOB. NBRBJOB_POSN = NBRJOBS. NBRJOBS_POSN) and (NBRBJOB. NBRBJOB_SUFF = NBRJOBS. NBRJOBS_SUFF)
    where NBRJOBS. NBRJOBS_SUFF <>'LS '.
    and NBRBJOB. NBRBJOB_CONTRACT_TYPE = 'P '.
    and NBRJOBS. NBRJOBS_EFFECTIVE_DATE =
    (select Max (NBRJOBS1. NBRJOBS_EFFECTIVE_DATE) as 'EffectDate '.
    of POSNCTL. NBRJOBS NBRJOBS1
    where NBRJOBS1. NBRJOBS_PIDM = NBRJOBS. NBRJOBS_PIDM
    and NBRJOBS1. NBRJOBS_POSN = NBRJOBS. NBRJOBS_POSN
    and NBRJOBS1. NBRJOBS_SUFF = NBRJOBS. NBRJOBS_SUFF
    and NBRJOBS1. NBRJOBS_SUFF <>'LS '.
    and NBRJOBS1. NBRJOBS_EFFECTIVE_DATE < = to_date('2011/11/15','yy/mm/dd'))
    order of NBRJOBS. NBRJOBS_PIDM

    Welcome to the forum!

    We don't know what you are trying to do.
    You want all of the columns in the rows where NBRJOBS_EFFECTIVE_DATE is the date limit before a given date (November 15, 2011 in this example) for all rows in the result set with this NBRJOBS_PIDM? If so, here is one way:

    with         GOT_R_NUM     as
    (
         select       NBRJOBS.NBRJOBS.*,
                NBRBJOB.NBRBJOB.*     -- You may have to give aliases, so that every column has a unique name
         ,       rank () over ( partition by  NBRJOBS.NBRJOBS_PIDM
                                   order by      NBRJOBS.NBRJOBS_EFFECTIVE_DATE     desc
                          )             as R_NUM
         from          POSNCTL.NBRBJOB NBRBJOB
         inner join      POSNCTL.NBRJOBS NBRJOBS       on    (NBRBJOB.NBRBJOB_PIDM = NBRJOBS.NBRJOBS_PIDM)
                                            and      (NBRBJOB.NBRBJOB_POSN = NBRJOBS.NBRJOBS_POSN)
                                      and      (NBRBJOB.NBRBJOB_SUFF = NBRJOBS.NBRJOBS_SUFF)
         where       NBRJOBS.NBRJOBS_SUFF             != 'LS'       -- Is this what you meant?
         and        NBRBJOB.NBRBJOB_CONTRACT_TYPE   ='P'
         and       NBRJOBS.NBRJOBS_EFFECTIVE_DATE  <= to_date ('2011/11/15', 'yyyy/mm/dd')
    )
    select       *     -- Or list all columns except R_NUM
    from       GOT_R_NUM
    where       R_NUM          = 1
    order by  NBRJOBS_PIDM
    ;
    

    Normally this site does not display the <>inequality operator; He thinks it's some kind of beacon.
    Whenever you post on this site, use the other inequality operator (equivalent), *! = *.

    I hope that answers your question.
    If not, post a small example of data (CREATE TABLE and INSERT, only relevant columns instructions) for all the tables involved and the results desired from these data.
    Explain, using specific examples, how you get these results from these data.
    Always tell what version of Oracle you are using.
    You will get better results faster if you always include this information whenever you have a problem.

  • Numbers automatically linking data sets

    Hello

    I have problems with parts of the data sets are grouped automatically by numbers (3.5) when I don't want that to happen.

    I found that number is automatically grouping different sets of data in groups of six. For example, condition 7 is grouped with condition 1, condition 8 with condition 2 and so on. I initially found it frustrating, because when trying to make a data chart, terms of 7 and 1 colors are the same, like 8 and 2, 9 and 3 conditions and so on. But when you try to change the color of groups to distinguish them individually (really annoying for large sets of data), numbers automatically change the color of the corresponding group as well (i.e. groups 1 and 7 are both blue color, and to differentiate them, I change group 1 to black.) Group 7 then also instantly changes to black). It's extremely frustrating.

    Is there a default setting that I can change so that never conditions are combined unless I have specifically to group them? It seems really odd that this defect exists in the first place.

    Thanks in advance.

    It is difficult to view the problem from your description (a screenshot would help), but it seems you have trouble getting a graph to look right. You can try clicking on it, then the rectangle to change data references, then experiment with this change in the lower left corner of the window of numbers:

    SG

  • DAQmx data acquisition with persistent error of nyquist

    Hi, I created a multi channel data acquisition vi (accelerometer 2 and 1 sound pressure) using models for producer.   The vi is attached. Thanks to labview 2011.  I get the error of nyquist (2 enclosed) when you make a bandpass filter between 50 to 5000Hz.  This happens despite having put my sampling rate to 22050Hz.  When I checked the output of wave I noticed that the signal has a dt 1 s.  The text output to check the result.  I could not understand how this is so since I had set the sample rate to 22 k Hz.  Any help will be much appreciated.  Thank you.

    I would do something like that.  You must calculate the dt of the set (with the recipricol) sampling frequency and use to initialize the shift registers.  This way you only need to change 1 constant if you need to change your sample rate.

  • Import of lvm to express signal does not lead to consistent data set

    When you import a file of lvm captured in a VI, SignalExpress visualizes as dozens of data points separated rather than a set of waveform data. Anyone know if there is a problem with the way I am that capture/storage of the data, or is - what a questions at the end of SignalExpress with handling data? One of the files of lvm header is shown below:

    LabVIEW measurement
    Writer_Version 2
    Reader_Version 1
    Tab splitter
    Decimal_Separator.
    No. Multi_Headings
    X_Columns one
    Time_Pref Relative

    Thank you

    Andy

    p.s. that's using LabVIEW 8.6 and SignalExpress 3.0

    Hi Andy,.

    I opened file lvm in Signal Express and saw the same thing you knew. I had a look in the file in the header properties and noticed that the number of samples has been set to 1. I've changed that to 1276 like you who have many data points and they are all now showing on one data set. So, it seems that is trying to create a set of data for each data item in the file lvm. Try changing the number of samples in 1276 and let me know if this is the correct waveform, you need to see.

    Kind regards

    Jas.W

  • How to use Data Guard with E-Business Suite

    Hello

    I'm trying to get my head around how would you use Data Guard with E - Business Suite.

    I know that you can use only physical standby with EBS, however I have a few basic questions about specific values < SETTING > and how they are treated by a standby.

    Given that the standby and primary servers will have different host names and that generally there are < FRAME > specific values that include the hostname, where they will have to change on the standby server, both from the point of view of the battery backup Apps and within the standby database itself, I wondered how it would happen.

    Usually, EBS cloning process would change the < FRAME > target settings in the target apps stack and the target database (for example, parameters such as FND_NODES etc.).

    Q1. However I do not know how the process of cloning E - Biz would fit with a database of the day before?

    Q2. As the standby database won't even be in an open State, I don't know yet how you would apply a party any of the cloning process to a database of pending to the target?

    Q3. Even if you were able to change on the eve of the database to reflect the < FRAME > from backup server, it would mean surely it was more a physical copy of the primary database, that's why it would be more a day before.

    All a bit confusing - any clarification appreciated

    Jim

    PL see if MOS Doc 1070033.1 can help you

  • Using geocoded in a map based on a vision where two data sets are joined

    Hello

    I would like to create a map based on a view in which two sets of data are joined, where one of the data sets has a column of geocoding.

    Unfortunately this does not work... It seems that a custom view where two sets of data are gathered together where one of them has a geocode column makes the invisible geocode column for the component of the map.

    The following cases work, but we like to combine so that we can combine the different sets of data in the Studio without using the Integrator:


    -I can create a custom view in which we join two sets of data > the view can be used as a source for component but not the component card (it seems that the geocode column is not found)

    -I can create a custom with a geocode inside column view and that can serve as the source for a map

    What I would like to show, it is that it is possbile to have a data sets from a source system and it's easy to combine an another excel sheet with geo-information and maybe another sheet with different measures of excel. This should be possible since you can collect different sets of data in a custom view.

    Thanks in advance,

    Richard

    Hi Richard

    In regards to my reading of your EQL, I think you can try to rename the "Particulars" to "Endeca_Klanten.Coordinaten" column in the select clause of Omzet_Geo.

    Although not quite elegant, map requires the geo attribute to have the same name (key attribute, no nickname) as the base view, at least that the custom view will not be picked up by card.

    Please have a try.

    Concerning

    Alex

  • presentation of the State - side by side data sets

    Hello together,

    Unfortunately I couldn t find a solution to my problem in the forum.

    So I start a new discussion.

    I want to change the presentation of a report.

    The default layout looks like this:

    data set 1

    data set 2

    DataSet 3

    DataSet 4

    data set 5

    DataSet 6

    DataSet 7

    I would like to change the layout like this:

    DataSet dataset DataSet 1 3 2

    DataSet dataset DataSet 4 6 5

    DataSet 7

    Data sets should be placed side by side.

    Is it possible?

    Thanks in advance,

    Patrick

    PatrickL says:

    Hello together,

    Unfortunately I couldn t find a solution to my problem in the forum.

    So I start a new discussion.

    I want to change the presentation of a report.

    The default layout looks like this:

    data set 1

    data set 2

    DataSet 3

    DataSet 4

    data set 5

    DataSet 6

    DataSet 7

    I would like to change the layout like this:

    DataSet dataset DataSet 1 3 2

    DataSet dataset DataSet 4 6 5

    DataSet 7

    Data sets should be placed side by side.

    Is it possible?

    Always include the information referred to in the Re: how to get the answers from the forum by asking a question.

    This can be done by using a standard report with custom report and CSS model.

  • Scroll Spry data set?

    I have a large set of data created with Spry in Dreamweaver CS6 and want to scroll in rows.  Put a Div inside the data set and adding the overflow/ScrollBars property adds a scroll bar that includes the header of the data set and who is compensated.  Is it possible to create a scroll bar that scrolls all lines except the header and is not compensated for that?

    Table of vertical Scrolling.

    Fixed the Table header - http://alt-web.com/

    Nancy O.

  • Is it possible to create a document merge pdf and mailing to several vendors (each with their own unique values) for them to individual e-sign?

    Is it possible to create a document merge pdf and mailing to several vendors (each with their own unique values) for them to individual e-sign?

    I have my letter and the data that is created in Excel and Word, so I want to create these data in a mail merge (by Word) and then saved in PDF format.

    I wish that each document merged PDF mail to have their signature / title / name of fields as fields of e-sign.  Is this possible? How can I configure my document as well what happends without me one in and edit every PDF document.

    Thank you ~.

    Hello Gallienterprises,

    It seems that you are looking to extract the values of your CSV file in the document of the multiple signatories. For this, you can use the MegaSign feature:

    https://helpx.Adobe.com/content/help/en/document-cloud/help/sending-megasign-using-CSV-fil.html

    Let me know if you need more information.

    Kind regards

    -Usman

Maybe you are looking for

  • USB 2 USB 1.1 on Satellite A100 PSAA2E with Win XP as

    I recently did a factory on a friends toshiba A100 PSAA2 installation, I installed all the latest drivers and installed the latest version of the BIOS. When I plug a USB device, I get a message saying that this device can run faster, so her acting as

  • Updated card graphics L440

    Is it possible to update the graphics card on the L440?

  • missing partition

    Hi, I've been a user of XP sp3 with a disk partitioned for years and suddenly last Sunday my D: partition became unavailable hollow win Explorer, he is still there, intact, according to dskmng, it's ok but I can't touch except through firefox... what

  • I bought Windows Vista in 2009 and you want to re - download and reinstall, how can I?

    I bought Windows Vista Home Basic SP1 in 2009, I lost the backup DVD and want to re-download and reinstall on my laptop, the link in my order history does not work and is coming up with: URL expired The download link you are trying to access has expi

  • Restore to Vista W7 sauvegardΘ?

    I need to come back to Windows 7 Windows Vista. Can I restore files, settings and programs for Vista backup + image made by Windows 7 on an external hard drive?