DW CS3 Dropdown list multiple MySQL Set ?

How do I update a MySQL Set field with multiple
selections from a DW CS3 dropdown list?
(No problem in updating a single value (either text or
numeric.)
Thanks.

Vozzek wrote:
> Could someone please take a brief look at the code below
and tell me why
> Dreamweaver CS3 keeps crashing every time I try to close
the </select> tag?
http://www.adobe.com/go/kb402776
David Powers, Adobe Community Expert
Author, "The Essential Guide to Dreamweaver CS3" (friends of
ED)
Author, "PHP Solutions" (friends of ED)
http://foundationphp.com/

Similar Messages

  • Multiple criteria search with 4 dropdown lists

    I want to perform a multiple criteria search on a MySQL
    database. Users should be able to use from 4 dropdown lists in a
    form only one criterium, all 4 of them or 2 or 3.
    Each used dropdown list gives a numeric variable: Fvar1 ...
    Fvar4. The variables from the dropdown lists used should be matched
    with numeric fields in the database: DBvar1...DBvar4
    The numeric variables from the dropdown lists that are not
    used, should be ignored.
    Example: a user selects a value in dropdown list 2 and 3 and
    does not use dropdown lists 1 and 4. Fvar1 and Fvar 4 should then
    be ignored for the search, that has to be performed with Fvar2 and
    Fvar3, who have to be matched with DBvar2 and DBvar3.
    Anyone who can help me out with the WHERE statement in my SQL
    query?
    Your help will be greatly appreciated.
    Erik

    Erik61 wrote:
    > I want to perform a multiple criteria search on a MySQL
    database. Users should
    > be able to use from 4 dropdown lists in a form only one
    criterium, all 4 of
    > them or 2 or 3.
    Start by using the Advanced Recordset dialog box to create a
    query that
    looks for all four variables. Then switch to Code view and
    start carving
    up the code created by Dreamweaver.
    The query will look something like this:
    $query_getProducts = sprintf("SELECT product_name, price
    FROM products
    WHERE prod_type = %s AND colour = %s AND size = %s AND range
    = %s
    ORDER BY price ASC",
    GetSQLValueString($var1_getProducts, "text"),
    GetSQLValueString($var2_getProducts, "text"),
    GetSQLValueString($var3_getProducts, "text"),
    GetSQLValueString($var4_getProducts, "text"));
    Change it like this:
    $query_getProducts = "SELECT product_name, price
    FROM products
    WHERE ";
    $where = false;
    if (!empty($_GET['prod_type')) {
    $query_getProducts .= sprintf("prod_type = %s ",
    GetSQLValueString($var1_getProducts, "text"));
    $where = true;
    if (!empty($_GET['colour'])) {
    if ($where) {
    $query_getProducts .= 'AND ';
    $query_getProducts .= sprintf('colour = %s ',
    GetSQLValueString($var2_getProducts, "text"));
    $where = true;
    if (!empty($_GET['size'])) {
    if ($where) {
    $query_getProducts .= 'AND ';
    $query_getProducts .= sprintf('size = %s ',
    GetSQLValueString($var3_getProducts, "text"));
    $where = true;
    if (!empty($_GET['range'])) {
    if ($where) {
    $query_getProducts .= 'AND ';
    $query_getProducts .= sprintf('range = %s',
    GetSQLValueString($var4_getProducts, "text"));
    That builds the query in stages using $where to decide
    whether to add
    "AND" in front of the second, third, and fourth variables.
    David Powers, Adobe Community Expert
    Author, "The Essential Guide to Dreamweaver CS3" (friends of
    ED)
    Author, "PHP Solutions" (friends of ED)
    http://foundationphp.com/

  • Add multiple entries to dropdown list without using data dictionary

    Hi,
    By default when we use a data dictionary element for dropdown list, all the possible values are listed in the dropdown. However when no data dictionary element is used for the dropdown list, it behaves like a parameter with a single line.
    I would like to know if it is possible to not use the data dictionary element and still have multiple lines in the dropdown.
    Thanks in advance.
    Shamia

    Check the below program :
    *report zxyz.
    report zxyz.
    Table diclaration
    tables: tvdir.
    Selection screento table View
      selection-screen skip 2.
      parameter p_tabnm(30) as listbox visible length 30 obligatory.
      selection-screen skip 1.
      selection-screen begin of block s1 with frame title text-001.
      parameter: p_radio1 radiobutton group g1,
                 p_radio radiobutton group g1.
      selection-screen end of block s1.
    Add values to list box
    at selection-screen output.
      type-pools: vrm.
      data: name  type vrm_id,
            list  type vrm_values,
            value like line of list.
      name = 'P_TABNM'.
      refresh list.
      value-key = 'V_024'.
      value-text = text-002. "'V_024-Purchasing Groups'.
      append value to list.
      value-key = 'V_T024D'.
      value-text = text-003. "'V_T024D-MRP Controllers'.
      append value to list.
      value-key = 'ZT604'.
      value-text = text-004. "'T604-Commodity Codes'.
      append value to list.
      value-key = 'T179'.
      value-text = text-005. "'T179-Product Hierarchies'.
      append value to list.
      value-key = 'TVM1T'.
      value-text = text-006. "'TVM1T-Business Manager'.
      append value to list.
      value-key = 'TVM2T'.
      value-text = text-007. "'TVM2T-Division manager'.
      append value to list.
      value-key = 'TVM3T'.
      value-text = text-008. "'TVM3T-Director'.
      append value to list.
      value-key = 'V_TVV2'.
      value-text = text-009. "'V_TVV2-Customer Group 2'.
      append value to list.
      call function 'VRM_SET_VALUES'
           exporting
                id     = name
                values = list.
    start-of-selection.
    Get flag of corresponding table view
      select single tabname flag from tvdir into tvdir
                    where tabname = p_tabnm.
    Set flag of corresponding table view
      if p_radio1 eq 'X'.
        if tvdir-flag ne 'X'.
          update tvdir set: flag  = 'X'
                     where tabname = p_tabnm.
        endif.
      endif.
      if p_radio eq 'X'.
        if tvdir-flag eq 'X'.
          update tvdir set: flag  = ''
                       where tabname = p_tabnm.
        endif.
      endif.
    Execute View/Table
      call function 'VIEW_MAINTENANCE_CALL'
        exporting
          action                               = 'U'
          view_name                            = p_tabnm
       exceptions
         client_reference                     = 1
         foreign_lock                         = 2
         invalid_action                       = 3
         no_clientindependent_auth            = 4
         no_database_function                 = 5
         no_editor_function                   = 6
         no_show_auth                         = 7
         no_tvdir_entry                       = 8
         no_upd_auth                          = 9
         only_show_allowed                    = 10
         system_failure                       = 11
         unknown_field_in_dba_sellist         = 12
         view_not_found                       = 13
         others                               = 14.
      if sy-subrc <> 0.
        message id sy-msgid type sy-msgty number sy-msgno
                with sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
      endif.
    Reset flag of corresponding table view
      update tvdir set: flag  = tvdir-flag
                    where tabname = p_tabnm.
    Thanks
    Seshu

  • How to set a default value in dropdown list in Wendynpro ABAP? Help!

    Hi Experts,
           I have Webdynpro for ABAP application that shows a DropdownwithKey UI element.
    1. I am able to populate the dropdown list. But by default the list is not showing any value. Only when I select a value from the list then it shows it.
    So how to set the default value to the first value in the list? Any code sample will be really helpfull.
    I have written the following code:
    method WDDOINIT .
      DATA:
        node_category TYPE REF TO if_wd_context_node_info.
      node_category = WD_CONTEXT->GET_NODE_INFO( ).
      node_category = node_category->GET_CHILD_NODE( 'CATEGORY' ).
      data:    LT_VALUESET type WDR_CONTEXT_ATTR_VALUE_LIST,
               L_VALUE type WDR_CONTEXT_ATTR_VALUE.
    L_VALUE-VALUE      = 'V1'.
    L_VALUE-TEXT    = 'yesterday'.
    INSERT L_VALUE into table LT_VALUESET.
    L_VALUE-VALUE      = 'V2'.
    L_VALUE-TEXT    = 'today'.
    INSERT L_VALUE into table LT_VALUESET.
    L_VALUE-VALUE      = 'V3'.
    L_VALUE-TEXT    = 'tomorrow'.
    INSERT L_VALUE into table LT_VALUESET.
    node_category->SET_ATTRIBUTE_VALUE_SET(
                 NAME = 'CAT_VALUE'
                 VALUE_SET = LT_VALUESET ).
    endmethod.
    Note that: I am using webdynpro for ABAP.
    Thanks
    Gopal

    I am not sure how it works in Web Dynpro for ABAP, but in Web Dynpro for Java to set default drop down value you will have to set the value for particular attribute (which is linked to the dropdown element)  in the context
    like
    wdContext.currentContext<nodeName>Element.set<FieldName>(<defalut value>)
    This generally done in Initialization method of the controller.

  • Populating dropdown list with entries in multiple text boxes?

    I'm creating a form that needs to be simple to use and complete.  I would like to be able to populate a drop-down list with entries the user puts into text boxes.  Can this be done?
    For more detail:
    In one location is a table, the use will type into a text box a Project Name, then other information such as location and total acres.
    In another location I've got a table where the user will enter the offerings from each project they listed in the 1st table.  It is a long table as it is, I cannot combine the two (will not fit on one page if I do combine them). 
    Instead of making the user type in the project names multiple times, I'd like to be able to take the project names the users input (from table one) and have those entries automatically populate the dropdown list in the second table.
    Any suggestions would be greatly appreciated!!!

    Not exactly a find and replace but you can do it.
    Select the text frames yu want to change the colors using the shift key to click select the frames.
    Then go to Edit>Edit Color>Recolor Art
    You wll see a dialog with red and black bars along side two shorter bars click the shorter bars to select a New Color a color picker will appear you can use the swatches or the color mixer.
    There is a live preview /so you will see the change in case you want to pick a different gray, of course you can always go back to the recolor art dialog.
    I am afraid you manually have to select text frames with multiple colors in order to accomplish what you want but the method above I believe is the only want to change the colors.
    This video shows how the dialog works but pretend the one frame I did not select is another color.
    http://www.wadezimmerman.com/videos/RecolorText.mov

  • How to set Dropdown list in tablen whith others Dropdown values in each row

    how to set Dropdown list in tablen whith others Dropdown values in each row of the table

    hi ,
    You have to add the parent element before adding data to the child node ...you follow the below steps it will work
    1) Take ContextStructure as follows ...
    tabledata (valuenode)
        ddownbyindex( value node) --within the tabledata node
             value (attribute)
    2)Binding to your layout
      tabledata (node) ---bind this to the dataSource property of your  table
          ddownbyindex( node)
                Value (attribute)--bind to the texts property of you DDbyIndex
    3)In wdinit() method add the following code
         IPrivate<Your view name>.ITabledataElement tabledataElement =wdContext.createTabledataElement();
        wdContext.nodeTabledata().addElement(tabledataElement);
        for(int i=0;i<5;i++)
         IPrivate<Your viewname>.IDdownbyindexElement ddbyindexElement=wdContext.createDdownbyindexElement();
             ddbyindexElement.setValue("Value"+i);
             wdContext.nodeDdownbyindex().addElement(ddbyindexElement);
    And set the cardinality property of the table node as 0..n
    and dropdownbyinex node to 1..n
    You try it ...
    Regards
    Madhavi
    Edited by: madhavi kotra on Sep 2, 2008 6:00 PM

  • Creating a Month dropdown list for a report with multiple datasets

    I am currently working on a report that contains many charts that rely on multiple datasets. Currently, I have parameters @StartDate and @EndDate to display the information of the previous month across all the charts as my default value. Now, I would like
    to create a dropdown list so that the user can pick any month, and have the report display the data across all the charts for that particular month, while keeping the display of the previous month as the default value. Can anyone help as to how I can approach
    this. Would I have to use an expression when I specify my available values, or would I have to create a dataset to get the value of all 12 months? Any help would be greatly appreciated.

    This is essentially where I am having some trouble, as in creating the dataset that returns the individual months of the year as I am relatively to the use of SSRS. Could you possibly elaborate on how I can do so? Thank you in advance!
    Create a dataset in SSRS
    Inside dataset properties map datasource and then inside give command like
    DECLARE @Month int = 5 --example value
    SELECT ...
    FROM Table
    WHERE datefield >= DATEADD(mm,DATEDIFF(yy,0,GETDATE())*12 +(@Month-2),0)
    AND datefield < DATEADD(mm,DATEDIFF(yy,0,GETDATE())*12 +(@Month-1),0)
    then on refresh it will take field information and parameter information by itself.
    Please Mark This As Answer if it solved your issue
    Please Mark This As Helpful if it helps to solve your issue
    Visakh
    My MSDN Page
    My Personal Blog
    My Facebook Page

  • To set a dropdown list for one column in the excel file before downloading

    Hi all,
    I am downloading an excel file which has the format of an internal table with a number of fields. I want to set a dropdown list for one column in the excel file. How can i do this?
    Thanks

    HI ,
    U can use function module " QINT_GET_EXCEL_DATA " ....
    and modify the excel sheet based on ur requirement ......
    Try this ...
    Hope it works
    Thanks
    Shambhu

  • Multiple Choices in either Dropdown list or List box

    I'm working on a form which will need to be reviewed and accepted by multiple people. I'd like to have a dropdown list or list box with all the known names of those reviewing, where all names can be selected, one by each reviewer so eventually all names will be picked, and the form approved.
    Open to any help I can get. This is new territory for me. Thanks in advance,
    gb

    err... should it be allowed to deselect?
    If yes I'd do it with checkboxes, if not I'd do it with a dropdownlist that populates calculated Textfields.
    Though there already was a solution for multiple selections of a dropdownlist in the past... I'll search it, if you want.
    Any more requirements? (F.ex. should the next user be not able to see who has already had it?)

  • Set default "Dropdown Lists" to "By value"

    Hi ,
    In the WebUI under Personalize / Personalize Settings , the user can setup the parameter "Dropdown Lists" to be "By value".
    We want to setup that at the system level , so every connection to the WebUI will have the Sort in the Dropdown Lists by value . How can we do that ? Nothing seems to be in IMG , maybe that a parameters in a SYSTEM file ? Thank you

    Hi Julie and happy HannuChristmaKwanzaYule to you!
    There is only one place I'm aware of that any slide timing
    default may be set. In Captivate 2, you look at Project >
    Preferences... > Defaults tab.
    In Captivate 3, you look at Edit > Preferences... >
    Project node.
    In both places you will find a place to configure the default
    slide time. This has no effect on any existing slides and I don't
    believe it will factor into the mix when recording. Also it would
    appear the minimum limit is one second. The only places this seems
    to take effect are when inserting Blank slides and when creating a
    Blank project.
    Hopefully this helps a smidge! Rick

  • How to set a keyboard event, which can response to dropdown list?

    Hi every one
    Can you set a keyboard keydown event for select the dropdown list item?
    Thanks
    Regard
    John
    //++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
    var
      w = new Window('dialog {orientation: "row", alignChildren: ["", "top"]}',"Indesign Tricks Wizard_Beta_V3", undefined, {closeButton: false}),  
      stringList = ["01   Close and SAVED",                                                        //       0
            "02   Close WITHOUT save",                                                   //       1
            "03   Save all files",                                                                //       2
            "04   Reverse",                                                                        //       3
            "-",                                                                                          //       4
            "05   Remove empty pages",                                                  //       5
            "-",                                                                                          //       6
            "06   Update years on Master in all opening Doc",               //       7
            "07   Years + 1 in Specific cells",                                          //       8
            "08   Copy and paste to Next Master",                                 //       9
            "-",                                                                                         //       10
            "09   Bring Styles and Swatches to next Doc",                      //       11
            "10   DEL and Replace Color",                                               //       12
            "11   Remove unused color",                                                 //       13
            "-",                                                                                         //       14
            "12   Remove missing link in all open files",                         //       15
            "13   Remove layer and missing link ",                                  //       16
            "14   Batch import styles from source document",               //       17
            "-",                                                                                         //       18
            "15   Gen Revised PDF",                                                        //       19
            "16   Report empty return at top",                                       //       20
            "17   Find-Change Paragraph Names",                                //       21
            "-",                                                                                         //       22
            "18   Break link from story",                                                //       23
            "19   Joint link to story",                                                       //       24
            "20   Extract pages",                                                            //       25
            "21   Joint text fame together",                                           //       26
            "22   Resize selected text"],                                                //       27
      mReminderString = "\"Batch import styles from source document\" usually cause indents problem.",
      lastSelected = Number(app.extractLabel("dialogWizard") ),
      p = w.add("panel", undefined, "Choose a job to do:"),
      s = p.add("group"),
      mDD = p.add("dropdownlist", undefined, stringList),
      mRem = p.add("statictext", undefined, mReminderString, {multiline: true} ),
      b = w.add('group {orientation: "column"}');
         mDD.preferredSize = [320,20];
         mRem.preferredSize = [320,30]; // set reminder height as 20 * line count (here 2 lines)
         if ( !lastSelected ) mDD.items[0].selected = true;
         else mDD.items[lastSelected].selected = true;
    // |||||||||||||||||||||||||||||||||||||||||||||||| modify reminder font here |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
             w.graphics.backgroundColor = w.graphics.newBrush (w.graphics.BrushType.SOLID_COLOR, [1, 0.26, 0.2]);
         mRem.alignment = "left";
         mRem.graphics.font = ScriptUI.newFont ("Arial", "Bold", 11);
         mRem.graphics.foregroundColor = mRem.graphics.newPen (w.graphics.PenType.SOLID_COLOR, [1, 1, 1], 1);
         p.graphics.font = ScriptUI.newFont ("Arial", "Bold", 10);
         p.graphics.foregroundColor = mRem.graphics.newPen (w.graphics.PenType.SOLID_COLOR, [1, 1, 1], 1);
         mDD.graphics.font = ScriptUI.newFont ("Arial", "Bold", 11);
         mDD.graphics.foregroundColor = mRem.graphics.newPen (w.graphics.PenType.SOLID_COLOR, [1, 0.26, 0.2], 1);
    // ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||| |||||||||||||||||||||||||||||||||||||||||||||||
            var myIcon = "";
            var ib = b.add ('iconbutton', undefined, myIcon);
                  ib.onClick = function() {
                         w.close(1);
            w.addEventListener ("keydown", function(k) {if (k.keyName == "Enter") w.close(1);})
    // ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||| |||||||||||||||||||||||||||||||||||||||||||||||
            b.add ('button', undefined, "取り消す", {name: "Cancel"}); 
    // ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||| |||||||||||||||||||||||||||||||||||||||||||||||
    w.show();
    //++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

    Hi Peter
    look into script as below:
    //======================================================================================== =======================================================
    var
      w = new Window('dialog {orientation: "row", alignChildren: ["", "top"]}',"Indesign Tricks Wizard_Beta_V3", undefined, {closeButton: false}),  
      stringList = ["01   Close and SAVED",                                                        //       0
            "02   Close WITHOUT save",                                                   //       1
            "03   Save all files",                                                                //       2
            "04   Reverse",                                                                        //       3
            "-",                                                                                          //       4
            "05   Remove empty pages",                                                  //       5
            "-",                                                                                          //       6
            "06   Update years on Master in all opening Doc",               //       7
            "07   Years + 1 in Specific cells",                                          //       8
            "08   Copy and paste to Next Master",                                 //       9
            "-",                                                                                         //       10
            "09   Bring Styles and Swatches to next Doc",                      //       11
            "10   DEL and Replace Color",                                               //       12
            "11   Remove unused color",                                                 //       13
            "-",                                                                                         //       14
            "12   Remove missing link in all open files",                         //       15
            "13   Remove layer and missing link ",                                  //       16
            "14   Batch import styles from source document",               //       17
            "-",                                                                                         //       18
            "15   Gen Revised PDF",                                                        //       19
            "16   Report empty return at top",                                       //       20
            "17   Find-Change Paragraph Names",                                //       21
            "-",                                                                                         //       22
            "18   Break link from story",                                                //       23
            "19   Joint link to story",                                                       //       24
            "20   Extract pages",                                                            //       25
            "21   Joint text fame together",                                           //       26
            "22   Resize selected text"],                                                //       27
      mReminderString = "\"Batch import styles from source document\" usually cause indents problem.",
      lastSelected = Number(app.extractLabel("dialogWizard") ),
      p = w.add("panel", undefined, "Choose a job to do:"),
      s = p.add("group"),
      mDD = p.add("dropdownlist", undefined, stringList),
      mRem = p.add("statictext", undefined, mReminderString, {multiline: true} ),
      b = w.add('group {orientation: "column"}');
         mDD.preferredSize = [320,20];
         mRem.preferredSize = [320,30]; // set reminder height as 20 * line count (here 2 lines)
         if ( !lastSelected ) mDD.items[0].selected = true;
         else mDD.items[lastSelected].selected = true;
    // ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||| |||||||||||||||||||||||||||||||||||||||||||||||
                mDD.active = true;                 //this syntax work in PC, but not work in MAC
                mDD.addEventListener ("keydown", function (k)
                        k = k.keyName.toLowerCase();
                                var i = 0;
                                        while (i < numbers.length-1 && numbers[i].charAt(0).toLowerCase() != k)
                                                   {++i;}
                                                if (numbers[i].charAt(0).toLowerCase() == k)
                                                                mDD.selection = i;
    // ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||| |||||||||||||||||||||||||||||||||||||||||||||||
    // |||||||||||||||||||||||||||||||||||||||||||||||| modify reminder font here |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
             w.graphics.backgroundColor = w.graphics.newBrush (w.graphics.BrushType.SOLID_COLOR, [1, 0.26, 0.2]);
         mRem.alignment = "left";
         mRem.graphics.font = ScriptUI.newFont ("Arial", "Bold", 11);
         mRem.graphics.foregroundColor = mRem.graphics.newPen (w.graphics.PenType.SOLID_COLOR, [1, 1, 1], 1);
         p.graphics.font = ScriptUI.newFont ("Arial", "Bold", 10);
         p.graphics.foregroundColor = mRem.graphics.newPen (w.graphics.PenType.SOLID_COLOR, [1, 1, 1], 1);
         mDD.graphics.font = ScriptUI.newFont ("Arial", "Bold", 11);
         mDD.graphics.foregroundColor = mRem.graphics.newPen (w.graphics.PenType.SOLID_COLOR, [1, 0.26, 0.2], 1);
    // ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||| |||||||||||||||||||||||||||||||||||||||||||||||
            var myIcon = ""
            var ib = b.add ('iconbutton', undefined, myIcon);
                  ib.onClick = function() {
                         w.close(1);
            w.addEventListener ("keydown", function(k) {if (k.keyName == "Enter") w.close(1);})
    // ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||| |||||||||||||||||||||||||||||||||||||||||||||||
            b.add ('button', undefined, "取り消す", {name: "Cancel"}); 
    // ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||| |||||||||||||||||||||||||||||||||||||||||||||||
    w.show();
    //======================================================================================== =======================================================
    Thank you
    Regard
    John

  • Linking Multiple Dropdown Lists

    I have a form with multiple dropdown lists for a person's full name, room number, and phone numbers.  There are 12 names; 2 rooms; and 8 phone numbers listed.  More than one name can be tied to a certain phone number.  All fields are required.  I tried to use another script for the name and phone number (see below), but it did not work for me.
    Attempted script:
    var one = this.getField('Name');
    var two = this.getField('Number');
    if (one.value == 'Jane Doe') {two.value='321-123-4567' }
    if (one.value == 'Johnny See') {two.value='999-345-6789' }
    if (one.value == ' ') {two.value=' ' }
    Requester's Name (Dropdown List - 12 choices)
    Room (Dropdown List - 2 choices)
    Phone Number (Dropdown List - 8 choices)
    Jane Doe
    238C
    321-123-4567
    Johnny See
    999
    999-345-6789
    Even though I do not know Javascript, if someone could get me started as far as the coding goes, I think I may to figure out other parts.
    Thanks, N

    the variable 'part" needs a value. Add the script:
    part = this.rawValue
    SOnineThreenine.fxnineThreenine(part);
    to the exit event of dropDownlist2. Otherwise the variable "part" gives you a console error message of [object XFAObject]

  • Dropdown list with multiple selections

    I need to create a dropdown list in a selection screen and allow the user to select more than one option. Can this be done. I know how to use VRM_SET_VALUES to create a dropdown but it restricts me to selecting only one value. The user should be able to select multiple values. Thank you.

    Hello,
    Try to use this Fm
    PARAMETERS :
    y_p_list TYPE char32  AS LISTBOX VISIBLE LENGTH 22
                                  MODIF ID rsg. .
    AT SELECTION-SCREEN ON VALUE-REQUEST FOR y_p_list.
      PERFORM y_f_dring_type_f4.
    FORM y_f_file_frmt_f4 .
      MOVE: text-212 TO y_wa_listbox1-field.
      APPEND y_wa_listbox1 TO y_i_listbox1.
      CLEAR y_wa_listbox1.
      MOVE  text-213 TO y_wa_listbox1-field.
      APPEND y_wa_listbox1 TO y_i_listbox1.
      CLEAR y_wa_listbox1.
      MOVE  text-214 TO y_wa_listbox1-field.
      APPEND y_wa_listbox1 TO y_i_listbox1.
      CLEAR y_wa_listbox1.
      MOVE  text-215 TO y_wa_listbox1-field.
      APPEND y_wa_listbox1 TO y_i_listbox1.
      CLEAR y_wa_listbox1.
      CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST'
        EXPORTING
          retfield        = 'FIELD'
          dynpprog        = sy-repid
          stepl           = 1
          value           = ' '
          value_org       = 'S'
          display         = ' '
        TABLES
          value_tab       = y_i_listbox1[]
        EXCEPTIONS
          parameter_error = 1
          no_values_found = 2
          OTHERS          = 3.
      IF sy-subrc <> 0.
      ENDIF.
      REFRESH y_i_listbox1.
    ENDFORM.                    " y_f_file_frmt_f4
    Use this code you will get the List box in selection screen.

  • Personalization-Set Portal Theme dropdown list

    Hi SAP Experts,
    I have Assigned a personalize role which consists of Portal Theme page.
    I have to add a List of customized themes in the "Set Portal Theme dropdown list".
    Currently only one theme is getting displyed (one which is currently assigned to the user).
    Please provide me with the steps of how to achieve the same.
    Many thanks in advance.
    Regards,
    Disha.

    Thank you Prashant and Ameya for your quick reply.
    Dear Ameya...I tried the steps mentioned by you but only the default theme is getting displayed.
    The scenario here is that there are 15 users.
    I have assigned a customised theme to all of them.
    The client wants a list of different themes to be displayed in the Dropdown list.
    When the user selects a theme from the list of different themes in the dropdown, will the theme be assigned to the user automatically?? for example how it happens in Gmail, yahoo,etc.
    If not then please guide me in the same.
    Awaiting your response.
    Thanks in Advance,
    Disha.

  • [JS CS3] Can a dropdown list be made editable?

    Hello,
    I would like to have a dropdown list that is editable. The list I have is a list of existing xml tags. I have a script that creates new xml tags and I would like to include the now existing tag names and the ability to create new names.
    If a dropdown list cannot be made editable I can always create two fields, one a dropdown list, the other a textEditbox. But I'd like to just have one.
    Thanks,
    Tom

    Hmmmm...I thought I was using ScriptUI, but I now see in the ScriptUI Classes that there is an element called "ListItem" that appears to foot the bill. It appears that one can add to its drop down list.
    I'm not sure I want to rewrite what I have in "classical" just to eliminate an extra field. It is working fine now. Maybe next time I'll experiment with this.
    Thanks.

Maybe you are looking for

  • How to config  MIGO (or MB01) Goods Receipt by PO can input material numer?

    Dear All, I have a case for when MIGO(or MB01) Goods Receipt  by Purchase Order, user can input the Purchase order  and also can  allow to input the Material number.Because when PO item has many lines,user want to input the Material number to select

  • How to expand or collapse the tree using node level.

    Hi All, I have 4 node levels in tree including the root at node level 0. If i click on node level1 for instance ,all the node level 1 should be expanded or collapsed. Only the root and and nodes at level 1 should be visible to the user. Can anybody p

  • Gnome 3.12 cannot launch gnome-terminal with sudo

    I am suffering from a problem that seems similar to the thread https://bbs.archlinux.org/viewtopic.php?id=180103 and https://bbs.archlinux.org/viewtopic.php?pid=1402702 but since they are marked solved I am opening my own. My real problem is I use th

  • HT4199 Wifi has to be reconnected every time I use iPad

    If the internet connection is not used in a while I have to reconnect it in settings.

  • Link error with STL

    Hi there, I am trying to build a C++ on Solaris, met the following error: CC xerces-c2_3_0/lib/SunOS/libxerces-c.so.23 -o output/SunOS/bin2xml output/SunOS/bin2xml.o output/SunOS/libxmlcompiler.a Undefined first referenced symbol in file void std::__