What would the syntax be for type "select"?

This onload function works great for type "text" - what would the syntax be for type "select"? or is there an example?
(Vikas' example pg 227)
window.onload=function () {
var text=document.getElementsByTagName('input');
for (var j=0;j<text.length;j++) {
var ip=text[j];
if (ip.type=="text") {
ip.onchange=function () {
     var td=html_CascadeUpTill(this,'TD');
     var tr=html_CascadeUpTill(this,'TR');
     // Getting the value of the PK
     var pk=tr.lastChild.getElementsByTagName('input')[1].value;
     alert(pk);
     var l_cellindex=td.cellIndex;
     var l_column=g_headers[l_cellindex].id;
     var app=html_GetElement('pFlowId').value;
     var pg=html_GetElement('pFlowStepId').value;
     var get=new htmldb_Get(null,app,'APPLICATION_PROCESS=session_auto_update',pg);
     get.add('G_ITEM1',l_column);
     get.add('G_ITEM2',this.value);
     get.add('G_ITEM3',pk);
     alert('column='+l_column+',value='+this.value+',pk='+pk);
     gReturn=get.get();
     if (gReturn) { alert(gReturn); this.focus();}
     get=null;
</script>

Here it is... Do I need any adjustments?
var selectlist=document.getElementsByTagName('select');
for (var k=0;k<selectlist.length;k++) {
var select_ip=selectlist[k];
//alert(select_ip.type);
if (select_ip.type=="select-one") {
//alert(select_ip.type);
select_ip.onchange=function () {
var td=html_CascadeUpTill(this,'TD');
var tr=html_CascadeUpTill(this,'TR');
// Getting the value of the PK
var pk=tr.lastChild.getElementsByTagName('input')[1].value;
//alert('PK='+pk);
var l_cellindex=td.cellIndex;
var l_column=g_headers[l_cellindex].id;
var app=html_GetElement('pFlowId').value;
var pg=html_GetElement('pFlowStepId').value;
var get=new htmldb_Get(null,app,'APPLICATION_PROCESS=session_auto_update',pg);
get.add('G_ITEM1',l_column);
get.add('G_ITEM2',this[this.selectedIndex].value);
get.add('G_ITEM3',pk);
//alert('COLUMN='+l_column+',VALUE='+ this[this.selectedIndex].value+',PK='+pk);
gReturn=get.get();
if (gReturn) { alert(gReturn); this.focus();}
get=null;
}

Similar Messages

  • What would the pricing be for adobe web hosting for me; I all ready have CS3 creative suite, an existing plan for the new Photoshop and Lightroom 5. But I need also to use Muse?

    What would the pricing be for adobe web hosting for me; I all ready have CS3 creative suite, an existing plan for the new Photoshop and Lightroom 5. But I need also to use Muse?

    Hello Fpless,
    For more information regarding your request, I would advise you to please get in touch with our Sales Team by phone.
    Phone number: 802 06016 (dial from Denmark)
    Thank you.
    Arnaud.

  • What is the pin map for chip select on LM3S8962 for "ARM SPI Create Configuration Reference.vi" ? (0 through n)

    Hello All,
    When the LM3S8962 is the master, what pin is used when chip
    select is the default (0), or another value ?
    Despite this question being asked a few ways in the forums,
    NI's "ARM SPI Create Configuration Reference.vi" documentation
    for chip select is unclear.
    TI's manual is no help for NI's implementation of chip select.
    NI's help for the above subvi seems not only too generic (perhaps
    written for the SDK ?),  but erroneous in that it reads:
    "chip select specifies the chip select line to assert during the
    SPI transfer. The chip select line must connect to the EEPROM
    on the
    microcontroller. Refer to the documentation for the SPI
    device for information
    about chip select lines."
    This is useless as the ARM microcontroller has no EEPROM and 
    the SPI slave device documentation only covers its own pins.
    The hope is to have more than one slave on the LM3S8962's single SPI bus,
    without chewing up a additional pin using elemental I/O like the splendid forum
    examples for ADC's and DAC's.  This would save diagram real estate compared
    with two sequence frames that are typically shown toggling a elemental I/O digital
    output before and after writing and/or reading from the slave.   It also would clarify
    what on chip resource trade offs there are for each chip select number chosen.
    (as most pins have multiple possible functions)
    Thanks in advance for any light on this.   Please don't post info on other processors
    to this thread as this taints future searches on this issue with this tier 1 target.
    Best,
    Davy

    Hi Davy,
    While doing research on this question, I was informed that you have been working with a colleague of mine, Joel, via email for this same question. So that we do not have multiple engineers working on the same issue, Joel will be your point of contact for this issue. I ask that when you have come to a resolution, that you post that resolution here so that other customers can reference this information.
    Thanks!
    Aaron P
    National Instruments
    Applications Engineer
    http://www.ni.com/support

  • What is the keyboard shortcut for hide selection in photoshop CC

    In PS CS6 you could hide a selection with command h.
    In PS CC that no longer works. What is the new kwrboard equivelant.

    See if this solves the issue:
    http://forums.adobe.com/thread/693231

  • What would the late be for being 2 weeks late?

    Hi my bill is due on the 23rd I don't get paid until the first what would I be charged in late fee(s)?

    Late fee charges are assessed:
    at the rate of 1.5% of the past due balance or $5.00, whichever is greater,
    as permitted by law, or
    on employee past due balances.
    A late fee is accumulated anytime your current balance is not paid before the new bill cycle starts.

  • What would the best iPod for me be?

    Ok, so I apologize if this is a little off topic or something.
    I am a 15 year old, 10th grade American.
    I currently have a shuffle, which I hate.
    I only have about 300 songs in my iTunes library, but I'm working pretty hard on building up my music collection.
    I have 200$ that I can easily spend.
    What iPod do you guys think would be best for me?
    I like the new nano 4th generation--would that be good? and if so, 8GB or 16GB?
    I would want this iPod to last me at least until college, but probably longer.
    What are your opinions?
    Thanks in advance for any suggestions.

    Hello and Welcome to Apple Discussions ...
    Well, since you are fifteen and wish to use this iPod until you enter college, which iPod you purchase depends on your needs.
    One, since an iPod can be enabled for hard disk use to save text to, you could save files for school on it as well as music. Since the iTunes songs can be as large small as 3MB and as large as 10MB, add on video files and that takes up storage fast. I'd go for the 16GB, especially since you mentioned you'd like to add to your iTunes Library.
    If you take good care of an iPod, it will take good care of you. I have a 2nd generation iPod (6rs old) and still running the original battery)... The iPod Nano 16GB holds 4,000 songs/16 hours of video and FREE shipping on orders over $50.00... sounds like a winner to me but get all the advice you can.
    Carolyn
    Message was edited by: Carolyn Samit

  • What is the new coding for types ??

    I do when I change one of my programms a check to see if all coding is still valid
    now I have
    types: BEGIN OF ty_zcs_operatielijst_alv.
           include structure zcs_operatielijst_alv.
    types: cellcolors TYPE lvc_t_scol.
    types: END OF ty_zcs_operatielijst_alv.
    but the check says
    The current ABAP command is obsolete                                                 
    Within classes and interfaces, you can only use "TYPE" to refer to ABAP Dictionary  
    types, not "LIKE" or "STRUCTURE".                                                   
    Internal Message Code: MESSAGE G/B                                                   
    (The message cannot be hidden using pseudo-comment "#EC .., bzw. durch SET          
    but when I change it to type it is also not good ??
    and when I press F1 on types I don't get the message that include structure is obsolete coding in types ?
    where can I found out how to code this correctly ?
    kind regards
    arthur

    >
    Rich Heilman wrote:
    > In the ABAP OO Context, you can not use the STRUCTURE.  Instead use TYPE.
    >
    >    
    TYPES: BEGIN OF ty_zcs_operatielijst_alv.
    >             INCLUDE TYPE zcs_operatielijst_alv.
    >     TYPES: cellcolors TYPE lvc_t_scol.
    >     TYPES: END OF ty_zcs_operatielijst_alv.
    >
    >
    > Regards,
    > Rich Heilman
    thanks, I only tried below coding and haven't thought of combining include with type
    TYPES: BEGIN OF ty_zcs_operatielijst_alv.
                TYPE zcs_operatielijst_alv.
        TYPES: cellcolors TYPE lvc_t_scol.
        TYPES: END OF ty_zcs_operatielijst_alv.
    kind regards
    arthur
    Edited by: A. de Smidt on Mar 26, 2010 9:02 AM

  • My organization is looking to invest ipads for the employees to perform everyday tasks. just wondering what would apples recommendation be for as far as apps and method of distribution would be?

    my organization is looking to invest ipads for the employees to perform everyday tasks. just wondering what would apples recommendation be for as far as apps and method of distribution would be?

    Use VPP.  Select an MDM.  Read the google doc below.
    IT Resources -- ios & OS X -- This is a fantastic web page.  I like the education site over the business site.
    View documentation, video tutorials, and web pages to help IT professionals develop and deploy education solutions.
    http://www.apple.com/education/resources/information-technology.html
       business site is:
       http://www.apple.com/lae/ipad/business/resources/
    Excellent guide. See announcment post -- https://discussions.apple.com/thread/4256735?tstart=0
    https://docs.google.com/document/d/1SMBgyzONxcx6_FswgkW9XYLpA4oCt_2y1uw9ceMZ9F4/ edit?pli=1
    good tips for initial deployment:
    https://discussions.apple.com/message/18942350#18942350
    https://discussions.apple.com/thread/3804209?tstart=0
    Educational institutions in the USA can use the App Store Volume Purchase Program (VPP) to buy Apps.
    https://support.assistiveware.com/index.php?pg=kb.page&id=54
    There are three ownership models:
        *     Personal
        *     Institution
        *     Layered. combines personal & institution.
    Watch this apple video on layered ownership.  It education based, but that's OK.
    http://www.apple.com/education/resources/videos/#ios-layered-ownership
    More ways to transfer files and access Word documents:
    https://discussions.apple.com/thread/4044866?tstart=0
    All of the "Office" document editing applications on the iPad have limitations.  Best try them out to see if they meet your needs.
    iWork by Apple
        * Keynote
        * Numbers
        * Pages
    DocsToGo
    • VIEW/EDIT/CREATE Word & Excel files(Office 2007/2008/2010)
    • VIEW PowerPoint, PDF, iWork, Text, .RTF, and more!
    • Send & receive attached supported documents using the built-in Mail app
    • FREE desktop application with your purchase! Compatible on Win & Mac allows you 2-way file sync with a WIFI connection.
    • Open & Edit files within DocsToGo from any 3rd party app that supports the “Open In” feature
    • Supports iTunes File Sharing via USB cable for manually moving files
    https://itunes.apple.com/us/app/documents-to-go-office-suite/id317117961?mt=8
    Office² HD
    "Office² HD, the most intuitive and straightforward office document editor available on the iPad, makes it easy to open, view, create and edit Word (DOC & DOCX), Excel (XLS & XLSX), and PowerPoint (PPT & PPTX) files right from your iPad!"
    https://itunes.apple.com/us/app/office2-hd/id364361728?mt=8
    Quickoffice Pro HD
    Create and edit ALL Microsoft® Office -- document, spreadsheet, and presentation formats, as well as view PDF files, on the go. Our advanced file manager lets you manage local files, access Google Drive or other cloud accounts, and works with your iPad email attachments so you can work anywhere, anytime - online and offline.
    https://itunes.apple.com/us/app/quickoffice-pro-hd-edit-office/id376212724?mt=8
    nsdjoey presents ways to edit office documents in this web page:
    https://discussions.apple.com/message/21953221#21953221

  • Invoice list: What is the standard setting for output type LR00 ?

    Hello all,
    They have messed up our system. What are the standard settings for output type LR00 ?
    Program RVADIL01,
    Form ??
    Thanks
    Rad

    Dear Rad,
    > Program RVADIL01,
    > Form - SD_INVOICE_LIST
    Thanks,
    Raja

  • What is the syntax for calling function from class file by jsp

    does anyone here knows what is the syntax of how to call a function from java class file by javascript code or any way to call it?
    and where should i put the calling function code? because the function is called depend on the user click.
    for example
    <%=pc.functionName(a,b)%>
    for the variable a and b, how can i get the value from html textbox and put it in a and b...
    urgent needed...
    thx

    Jsp's are executed before the Html forms are created and loaded. Dont try to use a java code function calling on a javascript click. You'll have to explicitly redirect it into a servlet where in you can call the function you want.
    Well! another way could be using AJAX. That seems to be powerfull enough and it might also serve your purpose.
    Hope this helps

  • What is the process code for Message type FUNDMA

    Hi,
    I am sending CO elements to the distributed server using ALE. Can somebody tell me what is the process code for the message type FUNDMA?
    Thanks
    William

    Check entries of table VEDI_TMSG1. This contains Message types and associated Process codes.
    Hope this helps.
    ashish

  • What is the process code for message type FIXEDASSET_CREATE?

    Hi all
    please tell me that what is the process code for
    MESSGAE TYPE = FIXEDASSEt_CREATE,
    FUNCTION MODULE = IDOC_INPUT_FIXEDASSET_CREATE,
    BASIC TYPE = FIXEDASSET_CREATE01 ?
    thanx in advance.......
    Edited by: Prachi Sharma on Jan 11, 2008 7:45 AM
    Edited by: Prachi Sharma on Jan 11, 2008 8:03 AM

    Hi,
    Check the Tcodes WE41 and WE42 for Outbound and Inbound process codes
    Check below Tables as well
    EDE1T
    EDE2T
    EDE5T
    EDE6T
    TEDE5
    TEDE6
    Regards,
    Satish

  • What is the use of for all entries in select statement

    what is the use of for all entries in select statement

    hi,
    FOR ALL ENTRIES is an effective way of doing away with using JOIN on two tables.
    You can check the below code -
    SELECT BUKRS BELNR GJAHR AUGDT
    FROM BSEG
    INTO TABLE I_BSEG
    WHERE BUKRS = ....
    SELECT BUKRS BELNR BLART BLDAT
    FROM BKPF
    INTO TABLE I_BKPF
    FOR ALL ENTRIES IN I_BSEG
    WHERE BUKRS = I_BSEG-BUKRS
    AND BELNR = I_BSEG-BELNR
    AND BLDAT IN SO_BLDAT.
    *******************************8
    look another example
    what is the use of FOR ALL ENTRIES
    1. INNER JOIN
    DBTAB1 <----
    > DBTAB2
    It is used to JOIN two DATABASE tables
    having some COMMON fields.
    2. Whereas
    For All Entries,
    DBTAB1 <----
    > ITAB1
    is not at all related to two DATABASE tables.
    It is related to INTERNAL table.
    3. If we want to fetch data
    from some DBTABLE1
    but we want to fetch
    for only some records
    which are contained in some internal table,
    then we use for alll entries.
    1. simple example of for all entries.
    2. NOTE THAT
    In for all entries,
    it is NOT necessary to use TWO DBTABLES.
    (as against JOIN)
    3. use this program (just copy paste)
    it will fetch data
    from T001
    FOR ONLY TWO COMPANIES (as mentioned in itab)
    4
    REPORT abc.
    DATA : BEGIN OF itab OCCURS 0,
    bukrs LIKE t001-bukrs,
    END OF itab.
    DATA : t001 LIKE TABLE OF t001 WITH HEADER LINE.
    itab-bukrs = '1000'.
    APPEND itab.
    itab-bukrs = '1100'.
    APPEND itab.
    SELECT * FROM t001
    INTO TABLE t001
    FOR ALL ENTRIES IN itab
    WHERE bukrs = itab-bukrs.
    LOOP AT t001.
    WRITE :/ t001-bukrs.
    ENDLOOP.
    Hope this helps!
    Regards,
    Anver
    <i>if hlped pls mark points</i>

  • For what is the field SVER with type RSRSVER in structure RSDRI_S_SELNODE ?

    Does anyone know what does the field SVER with type RSRSVER in structure RSDRI_S_SELNODE mean ??
    Thx....

    If this indicator is set, the material is costed using costing with a quantity structure (BOM and routing).
    The system searches for any existing cost estimates with quantity structure for the individual materials; it ignores existing cost estimates without quantity structure. If the system does not find any valid costing data for the materials, it costs the material or accesses the price in the material master.
    If this indicator is not set, the planned costs for the material are calculated using the cost estimate without quantity structure. In this case, you use unit costing to create the quantity structure manually by entering costing items for materials and activity types, for example.
    The system now searches for any existing cost estimates without quantity structure. If a cost estimate without quantity structure exists for a material, the results of this cost estimate are included in a cost estimate with quantity structure. If there is no cost estimate without quantity structure, the cost estimate with quantity structure accesses the price in the material master record. The planned costs for this material then go into the cost estimate with quantity structure as raw material costs.
    This does not apply if the indicator Ignore prod cost est w/o qty structure is set in the costing variant.

  • What would the best way to go for an virtual grid?

    I need a 3 x 8 virtual grid that I can change values to:
    Red
    Blue
    Spoiler
    what would the best way to go for this objective?
    Thanks!

    I need a 3 x 8 virtual grid that I can changevalues
    to:
    Red
    Blue
    Spoiler
    what would the best way to go for this objective?
    Thanks!Create a Grid and a Tile class. A
    Grid has a 2D array of Tile objects an
    a Tile has an attribute called Color and, say,
    an x- and y-point. Program some appropriate methods.
    Done.
    Thanks for trying, but Nanook already gave the correct answer in reply 1.Is it possible to restrict these? to like a 8 x 3 grid ?
    or should i use an if statement?

Maybe you are looking for

  • Error in installing SAP Netweaver 7.02

    Hi all! I'm new in SAP and installing the version 32-bit in Windows XP - SP2. View the error bellow: An error occurred while processing option SAP NetWeaver 7.0 including Enhancement Package 2 > SAP Application Server ABAP > MaxDB > Central System >

  • A/R invoice

    hi all, while making A/R invoice,it is showing me error "no item cost was found". thanks rahul

  • (Pulse)Audio? not working (Intel HDMI)

    Hi, so I installed Arch Linux again and have problems with the sound. I think there is a problem with PulseAudio, as test sounds from settings (cinnamon) and using 'aplay -D plughw:0,7 /usr/share/sounds/alsa/Front_Center.wav' work. But when I open mu

  • How to deal with the automatic 6to4 addresses in the network

    As we use public IPv4 address in our network, each computer automatically gets an 6to4 address. I understand after the World IPv6 Lauch, these computers may use the 6to4 address to talk to IPv6 enabled websites through the free and unmanaged 6to4 gat

  • Gps on 8520

    can i get gps on my curve 8520?