How to put the answers in the two tables?

Hello

I'm working on a script with a UI element.

I want that all the values of the 2. cloumn (Rasterkeilfarbe) returned in a table and all the values of the 3. column (Klischeenr) returned in an another arry.

Could someone explain please how to do this?

Thank you

var farben = ["black", "red", "blue", "green", "bla", "blupp"]
var myName = myInput (farben);
// rest of the script


alert (myName);


function myInput (farben)
{
var myWindow = new Window ("dialog", "Farbmanager");
myWindow.orientation = "row";
myWindow.alignChildren = "top";


var docFarbGroup = myWindow.add ("group");
docFarbGroup.orientation = "column";
docFarbGroup.alignChildren="left";
docFarbGroup.add ("statictext", undefined, "Dok-Farbe");


for (i=0; i<farben.length; i++){


docFarbGroup.add ("statictext", undefined, farben[i]);
}


var rastkeilGroup = myWindow.add ("group");
rastkeilGroup.orientation = "column";
rastkeilGroup.alignChildren="left";
rastkeilGroup.add ("statictext", undefined, "Rasterkeilfarbe");
for (i=0; i<farben.length; i++){
var artNr = rastkeilGroup.add ("edittext", undefined, farben[i]);
artNr.characters = 15;
}


var klischeeGroup = myWindow.add ("group");
klischeeGroup.orientation = "column";
klischeeGroup.alignChildren="left";
klischeeGroup.add ("statictext", undefined, "Klischenummer");
for (i=0; i<farben.length; i++){
var klNr = klischeeGroup.add ("edittext", undefined, "");
klNr.characters = 15;
}


var myButtonGroup = myWindow.add ("group");
myButtonGroup.alignment = "right";
myButtonGroup.add ("button", undefined, "OK");
myButtonGroup.add ("button", undefined, "Cancel");
if (myWindow.show () == 1)
return [artNr.text];
else
myWindow.close ();
}

try this one, see my comments

var farben = ["black", "red", "blue", "green", "bla", "blupp"]
var myName = myInput (farben);
// rest of the script

alert (myName);

function myInput (farben)
{
var myWindow = new Window ("dialog", "Farbmanager");
myWindow.orientation = "row";
myWindow.alignChildren = "top";

var docFarbGroup = myWindow.add ("group");
docFarbGroup.orientation = "column";
docFarbGroup.alignChildren="left";
docFarbGroup.add ("statictext", undefined, "Dok-Farbe");

for (i=0; i 
         

Tags: Illustrator

Similar Questions

  • How to put the two column values in two different colors unique online: MobApp

    Hello

    I develop Mobile Application.
    I want to show two values in different columns in single row and first column value in either green or red and the second color the default column value.
    the first value of the column is green when the value is greater than the second value of the column.
    and the first column value in red when the value is less than the second value of the column.
    The code I tried is:
    --------------------------------------------------------------------------------------------
    < tr:panelGroupLayout layout = "vertical" styleClass = 'list' >
    < tr:panelList styleClass = "panelist ul > li > a" >


    "" < tr:outputText value = "deliver: % #{row.bindings.OccCurr.inputValue},
    inlineStyle = "background-color: #{rank." OccCurr > line. OccFcst? {'Green': 'Red'}; ">

    "< tr:outputText value =" OccFcst: #{row.bindings.OccFcst.inputValue} % ">"

    < / tr:outputText >
    < / tr:outputText >
    < / tr:panelList >
    < / tr:panelGroupLayout >
    ------------------------------------------------------------------------------------------------

    But the code above does not work.


    Please, someone tell me what I need to do.


    I apreciate your time and your help.

    Sanchez.

    Hi Catherine,

    Exactly, what is not working? Your OccCurr and OccFcst values are printed to the screen? I notice some questions.

    (1) If you want to display two outputText on one line, you can surround them with a panelGroupLayout and set the page layout to horizontal.
    (2) I don't think that you can place an outputText in outputText one another as in the codes that you have provided.
    (3) your EL is inconsistent. What is #{row.bindings.OccCurr.inputValue} or #{line. OccCurr}? If your values are displayed, but the background color does not work, it could be the first.

    
      
        
          
          
        
      
    
    

    Kind regards
    Amélie Chan

  • How to configure the partition table for SSD?

    Drive: 32 GB SSD

    I accidentally delete without backup partition table information and would like to know how to put the partition table, I can access the tools of partition table, but do not know how to define.

    Does anyone have any suggestions?

    Thanks in advance for your suggestions

    Hello

    Thanks for posting your query in Microsoft Community.

    The SSD could be seen in the disk management window, and you could name and set up as another hard drive internal. To create a partition or volume on a hard disk, you must be logged in as an administrator, and there must be unallocated disk space or free space in an extended hard disk partition. To repartition your hard drive, please consult the following link and check if it helps.

    I can I repartition my hard disk?

    Additional information:

    Create a new Partition on a hard disk in Windows 7

    Hope this information is useful. Let us know if you need more help, we will be happy to help you.

  • I tried for AN HOUR to find a way to put the two different fonts on the same line

    Pages is crap. I tried for AN HOUR to find a way to put the two fonts on the same line, even if I highlight 1 WORD, the whole line changes (if you know how to do that please tell me, I'll me CRAZY!). Wouldn't recommend, that Word is 100 x better and easier to use

    < published by host >

    Hi varn,.

    Seems to work here (Pages of screen capture):

    Select (highlight) the text you want to change. Click on the Format brush, and then click Style. Choose the font you want to use.

    The example above is in the text layer. I also tried in a text box and a table cell.

    I also tried to change the font for a single word of a line of text in Pages for iOS. The police has changed to the selected word, while the rest of the line remained in the police, he had previously.

    Cannot test it in 5 Pages, because I have not installed. The above example is Pages ' 09.

    It is possible that you have applied to a paragraph Style, what would change everything in the paragraph containing the insertion point.

    Kind regards

    Barry

    PS: MS Word is available for OS X, if you feel the need to switch.

    B

  • How to put the bookmarks bar in alphabetical order

    Original title: Favorites

    I looked at the question of how to put the bookmarks bar in alphabetical order, and he said that I had to do a right click on a site that was on My Favorites bar.  What I did and I don't have anything other that (open another tab, edit, and delete).   Your answer did not work for me, is there another solution.  I'm on Windows 8.

    Try asking in the forum of EI for the version of Internet Explorer you are using.
     
    Internet Explorer forums
    http://answers.Microsoft.com/en-us/IE 
  • How to tie the two serial numbers using test including the tie in the database.

    I have two separate committees, I need to link the serial number too.  One is being tested as a separate unit, then the two are tested together, I need to make sure that I connect them in the database.  Don't know how to do it, looking for any input I can get.  Using a labVIEW vi to request the entry of a Board, and then use information interface to USE testbed for UUT of the hand.

    I have juries, one of the boards, A onboard, was tested by a different sequence file, then A is connected to Board B, and then they are tested as a complete set.  Received a few suggestions on how to save the two serial numbers, but went with a popup message added types of step (modified record results), and then just have the user scann the second number in and it stands as one of the results of the step in the database.

  • I try to combine a picture of my sister with a picture of a poem next to her. How to combine the two into a single photo?

    Paint or Windows Photo Gallery

    I try to combine a picture of my sister with a picture of a poem beside it, how to combine the two into a single photo?

    If you have the poem recorded in an image format,
    the following freeware can create a side by side
    Panorama.

    (FWIW... it's always a good idea to create a system)
    Restore point before installing software or updates)

    Download IrfanView
    http://MajorGeeks.com/IrfanView_d4253.html
    (filename: iview433_setup.exe)
    (uncheck if you don't want Google Chrome)

    Download plug-ins too...

    IrfanView plugins
    http://MajorGeeks.com/IrfanView_PlugIns_d4908.html
    (filename: irfanview_plugins_433_setup.exe)

    When the program is installed... read more...

    Open IrfanView and go... Image / create the Image of the Panorama...
    (this will open the screen to "Create a panorama image")

    On the screen to "Create a panorama image"... left click on the add images"" button.
    (Displays the 'Open' screen. Now, drill down to the
    the folder that contains your saved Photos of veterinarians.

    Now... click left (highlighted), the two images, you want to join.
    (you can select more than one if you hold down your Ctrl key)
     
    The two images highlight... left click on the button 'open '.
    (Or... you can add the images one at a time... which is always easier)

    Now, go back to the screen "Create the panorama image.
    and the file names of the selected pictures need to be in the
    Field "Input Images.

    Now with the names of two files in 'Images of entry' field...
    You can left click on the button 'create Image '.

    (the positions left and right of these images can be swapped in)
    selection of a file name and using the "mount image" / "Move."
    Images down"buttons...)

    Now you should see a display of the combined image.
    Reach... File / save as...

    Choose a backup location / enter a file name / choose a format...
    On the left, click on the button "Save..."

  • Hi, could you tell me how to put the app icon

    Hi, could you tell me how to put the app icon. By what your code?

    usually, set you the application icon in the properties of your application.

    You can also use the HomeScreen class to change the icon or set an icon of overview.

  • How to break the two folders that are cross-linked?

    I tried to move C:\users\richard to E:\My Documents ' My Documents'.

    Some how the two directories have become reticulate.

    Make any change in directory caused the same change in the directories of the sentence.

    How to restore the two inventories back to normal?

    I tried to move the directory in E:\ back to C:\, but received a parsing error.

    TIA,

    Richard

    Wednesday, February 5, 2014, 17:20:47 + 0000, Richard332 wrote:

    I tried to move C:\users\richard to E:\My Documents ' My Documents'.

    Some how the two directories have become reticulate.

    Make any change in directory caused the same change in the directories of the sentence.

    How to restore the two inventories back to normal?

    I tried to move the directory in E:\ back to C:\, but received a parsing error.

    The directory c: is not really a directory; It is a library which is
    just a pointer to the real directory on E:, a bit like a shortcut.

    So if you get there via the library or the directory, you are in
    in the same place - E:\My Documents and any changes there are also
    See in the library.

  • How to put the names of programs in the control panel in the order of the alphabet

    How to put the names of programs in the control panel in the order of the alphabet

    Hi maguma,.

    Please use the Microsoft Windows Forum.

    When you go to Control Panel , click on "view by" at the top right of the screen and select 'large icons or small icons' , she will change in alphabetical order.

    If you are referring to the programs and features in Control Panel, you can right-click in the empty space of the programs and features page > click on 'View' and click on 'Name' , IT ' l be alphabetical.

    Kind regards
    Aziz Nadeem - Microsoft Support

  • How to put the screen name? (edited by Mod..)

    Hi I want to know how to put the screen on my Ant name

    Hi Yuvrajm65418840,

    Please see the document shared for more information:

    Getting started on the Adobe Forums

    I hope this helps!

  • How to put the first page to run?

    How to put the first page to run?

    Dimitri Gielis Blog (Oracle Application Express - APEX): Change the page (first) by default in APEX

  • How to put the text in the cell and support in detail in read-only?

    Hello world

    In Hyperion 11.1.1.3, nobody knows how to put the text in the cell and the support of the details read-only after that the budgeting process is done in order to avoid people to change their comments.

    Thank you!

    Published by: Ouizmie on February 3, 2011 11:14

    There is no way to restrict the entry of text in the cell
    If you specify the description to charge you like details in support, which can be made read-only.
    but cell text comments to review, which can be changed. Even if you only read your form, users will be able to enter the text in the cell as long as they have access to the intersections of data...

    You can do a process to enter the descriptions of the charges, as supporting details only...

  • How do I know if the two tables are the same in the data they contain

    Hello

    How will I know if the two tables are the same in the data they contain?

    Hello

    Please check this thread [compare all columns | http://forums.oracle.com/forums/thread.jspa?messageID=3166309�].

    Kind regards

  • Findout incompatibility records between the two tables.

    I need help on findout the unmatched records between two different tables.

    Each table has a + 42Crores Records.

    The type of data (Char) are the same for the two tables but datalength is different between a table and the table B.

    Indexes are created on the two tables on the required fields

    There is no Geom data exists on the two tables.



    For example:

    A Table: =.
    Number of records + 42Crores
    Rating: TOLD char (20)

    Table B: =.
    Number of records + 42Crores
    Field: TOLD Char (16)

    I took individual accounts, there are number of difference is 3868 only, with respect to the count (*) selection.

    I ran the query "Select TOLD OF A LESS SELECT TOLD OF B", but I don't have the answer.

    Please let me know how to solve the problem.

    The variable length char shouldn't be a problem...
    You just need to ensure that the first table has more lines than the second, if the problem persists You ' l I hide it, and then use a column alias...

    Let know us...

  • Left join of the two tables and multiple values into a single value separated by commas

    Hello

    I have following tables with their structures and their data as below.

    CREATE TABLE 'BETODI '. "" BETINFO ".

    (

    VARCHAR2 (8 BYTE) "CURRENTPRESS."

    ENABLE 'TYPEIDCONTAINER' VARCHAR2 (30 BYTE) NOT NULL

    )

    INSERT INTO Betinfo (Currentpress, typeidcontainer) VALUES ('A24G', 'PMC');

    INSERT INTO Betinfo (Currentpress, typeidcontainer) VALUES ('A24D', 'Pensky-MARTENS');

    INSERT INTO Betinfo (Currentpress, typeidcontainer) VALUES ("A25D", "CMP");

    INSERT INTO Betinfo (Currentpress, typeidcontainer) VALUES ('A25G', 'PMC');

    INSERT INTO Betinfo (Currentpress, typeidcontainer) VALUES ('A26D', 'PMC');

    INSERT INTO Betinfo (Currentpress, typeidcontainer) VALUES ('A26G', 'PMC');

    INSERT INTO Betinfo (Currentpress, typeidcontainer) VALUES ("A32G", "V-BFC3");

    INSERT INTO Betinfo (Currentpress, typeidcontainer) VALUES ('A32D', "V-BFC2");

    CREATE TABLE 'BETODI '. "" BETMASTER ".

    (

    ACTIVATE THE "CUREPRESS" TANK (5 BYTES) NOT NULL,

    ACTIVATE THE "TYPE" VARCHAR2 (5 BYTE) NOT NULL,

    NUMBER (5.0) "LASTPCIRIM".

    )

    INSERT INTO BetMaster (Curepress, type, lastpcirim) VALUES ('A24', '45 M 8', 15);

    INSERT INTO BetMaster (Curepress, type, lastpcirim) VALUES ('A25', 42 16', 15);

    INSERT INTO BetMaster (Curepress, type, lastpcirim) VALUES ("A26", 16' 45, 15);

    INSERT INTO BetMaster (Curepress, type, lastpcirim) VALUES ("A27", '45 M 34', 16);

    INSERT INTO BetMaster (Curepress, type, lastpcirim) VALUES ('A28', '45 M 34', 16);

    INSERT INTO BetMaster (Curepress, type, lastpcirim) VALUES ('A29', '45 M 34', 16);

    INSERT INTO BetMaster (Curepress, type, lastpcirim) VALUES ('A30', '45MCH', 15);

    INSERT INTO BetMaster (Curepress, type, lastpcirim) VALUES ("A31", "45MCH", 16);

    INSERT INTO BetMaster (Curepress, type, lastpcirim) VALUES ('A32', '45MCH', 16);

    INSERT INTO BetMaster (Curepress, type, lastpcirim) VALUES ('A33', '45MCH', 16);

    INSERT INTO BetMaster (Curepress, type, lastpcirim) VALUES ("A34", "45MCH", 16);

    These two tables have left join as

    BETMASTER. CUREPRESS = substr (BETINFO. CURRENTPRESS, 1, 3)

    now I want to have the data in the two tables with fields Curepress, Lastpcirim, typeidcontainer.

    Also something like

    Make a group of typeidcontainer if this value is greater than 1 by press separated the values of semicolon (;)

    So, for example above, we should be given as

    A24 PMC 15; PENSKY-MARTENS

    A25 15 PMC

    A26 15 PMC

    A27 16 (NULL)

    A28 16 (NULL)

    A30 15 (NULL)

    A31 16 (NULL)

    A32 16 BFC2-V; V BFC3

    A33 16 (NULL)

    A34 16 (NULL)

    How could do?

    My current request is as

    Select distinct Curepress, lastpcirim, typeidcontainer

    BETMASTER STD left join INF BETINFO

    on the trim (STD. CUREPRESS) = substr (trim (INF. CURRENTPRESS), 1, 3)

    but I am unable to get the values separated by commas.

    Any help would be appreciated.

    Thank you

    Mahesh.

    Hi, Mahesh,

    If you want to only 1 row of output for each distinct combination of currentpress and lastpcirim?  This sounds like a job for GROUP BY.

    And you want the row to contain a list of all different typidcontainers-delimited?  This sounds like a job for the aggregate LISTAGG function.

    WITH joined_data AS

    (

    SELECT DISTINCT

    MST.curepress, mst.lastpcirim, inf.typeidcontainer

    OF betmaster STD

    LEFT JOIN betinfo ON TRIM (mst.curepress) inf = SUBSTR (TRIM (inf.currentpress)

    1

    3

    )

    )

    SELECT curepress, lastpcirim

    LISTAGG (typeidcontainer, ',')

    THE Group (ORDER BY typeidcontainer) AS container_list

    OF joined_data

    Curepress GROUP, lastpcirim

    ;

    Unfortunately, you can't say LISTAGG (DISTINCT ...), so you should always get the separate containers how you already are.  (Note that the subquery is just what you posted).

    Thanks for posting the CREATE TABLE and INSERT statements; It is very useful.  Don't forget to tell what version of Oracle you are using.  LISTAGG was new in Oracle 11.2.

    Why not add CHECK constraints (and perhaps triggers) to your tables, so that curepress and currentpress are not stored with the head or trailing spaces?  Then you wouldn't need to use the PAD in queries like this, and your code would be simpler and more effective.

Maybe you are looking for

  • How to disabled automatically push button

    How can I set the button to be disabled automatically after certain condition. I have attached a simple example just to represent this problem

  • Jacquie Lawson advent calendar no longer works

    My timetable for the advent of Jacquie Lawson worked perfectly from 1 to 13 December inclusive.  Now, it does not open and suggests that it is incompatible.  Instead he will fly to the side when I click the icon. Original title: program compatibility

  • sleep now works

    HelloI have acer aspire g v3 - 571. 2 days ago I have reinstall windows 8.1 and now I can't use spleep mode.When I press the speel mode on what he's going to hibernation.Help, please

  • Text outside the div box

    HelloIn my adobe sensitive muse website, I have trouble with the text boxes.When I'm changing the width, text is falling out of my div. How can I solve this?

  • Save for web images look slightly blurry compared to other images that I see online

    Whenever I save a file in photoshop for the web as a png image, I see them get a little blurry and not very sharp. I did all the dimensioning and sampling etc. as far as I know. Yet, when I compared with other images that I see online, they don't loo