Is it possible to use Click Function in Dropdownbox?

Hello everybody,
I have a question on dropdownbox GUI element:
is it possible to use the attribute of DropDownBox to realize the 'Click ' function?That means when one value from DropdownBox being selected,some action will be done.
I checked the attributes of dropdownbox,and found maybe the following ones will help
onselect                    = ?
selection                   = ?
onclientselect              = ?
are they correct?or which kind of attributes are
corresponding to?
Thanks in advance!
Liying
Message was edited by: Liying Wang

Hi Liying,
Welcome to SDN!!
See, the highlighted part in the code, that will genrate a server side event for you upon selection:
<htmlb:dropdownListBox id           = "DDLB1"
                  table             = "<%= projectid_tab %>"
                 <b> onSelect          = "DDLB1Event"</b>                 
                  selection         = "<%= tab1sel %>"
                  nameOfValueColumn = "name"
                  nameOfKeyColumn   = "value" />
Now we can catch the event in event handler as:
DATA: event TYPE REF TO if_htmlb_data,
        ddlb_event TYPE REF TO cl_htmlb_event_selection.
DATA: data TYPE REF TO cl_htmlb_dropdownlistbox.
event = cl_htmlb_manager=>get_event( request ).
case event->event_id.
   when 'DDLB1'.
     ddlb_event ?= event.
     IF ddlb_event->id EQ 'DDLB1' .
       tab1sel = ddlb_event->selection .
     ELSEIF ddlb_event->id EQ 'DDLB2' .
       tab2sel = ddlb_event->selection .
     ENDIF .
  endcase.
Hope this helps,
Regards,
Ravikiran.
PS:Consider rewarding points for helpful replies.

Similar Messages

  • Elvis: Is It possible to use the Function Generator and the Oscilloscope simultaneously?

    Hi,
     We are using the NI Elvis to output a function or a sine wave at a certain frequency and using the oscilloscope on the same board/elvis to read a modified signal. Is this possible? Can we use both the Function Generator and the oscilloscope at the same time? Please help. The oscilloscope would be reading signal from an accelerometer. Thank you in advance. We have no VI as we do not know which to use and if they are possible.

    Hi,
    There is no problem using the Function Generator and Oscilloscope
    at the same time with NI ELVIS. Using the NI ELVIS soft front panels (Start
    >> Programs >> National Instruments >> NI ELVIS 3.0 >>
    NI ELVIS – see picture attached –‘NI ELVIS soft front panels.JPG’), you can choose
    to open more than one instrument at a time. We do this by opening one
    instrument, allowing it to begin, and then opening another. We can also program
    in LabVIEW using more than one instrument at a time by placing down multiple
    Express VI’s taken from the NI ELVIS pallet on the block diagram (see picture
    attached – ‘ELVIS Express VI's (LabVIEW).JPG’). One note when doing this,
    please see KB 41ODPHX1 
    for an example of how to program in parallel. If you do not wire the ‘stop’
    terminal of the express VI’s, you will get the error described.
    David L.
    Systems Engineering
    National Instruments
    Attachments:
    ELVIS Express VI's (LabVIEW).JPG ‏74 KB
    NI ELVIS soft front panels.JPG ‏56 KB

  • Using Click Functions Inside ItemRenderers Causing "Undefined Method" error

    I have a tilelist which has an item renderer and the item renderer has a small button in it which intentionally should remove the specific item once the button is clicked making each item removable from the tilelist by clicking the little button on each item within the tilelist. However when I try to apply my removeProduct() function, which I've already defined, to the button I get the error "Call to a possibly undefined method" but this function can be applied to other buttons fine so I know it has been defined correctly. It just seems to throw this error when I try to apply it to the button inside the itemrenderer of my tilelist. Anyone else had this problem? Is it to do with it being within a item renderer?
    Here's my code for the function:-
    public function removeProduct():void { 
    var item:Object = cartTilelist.selectedItem; 
    var idx:int = shoppingCartAC.getItemIndex(item);shoppingCartAC.removeItemAt(idx);

    forst create custom Event:
    public class MyItemEvent extends Event
            public static const MY_ITEM_REMOVE:String = "MyItemEventRemove";
            private var _myItemClicked:Object;
            public function get myItem() : Object{
                return this._myItemClicked;
            public function MyItemEvent(type:String,itemParam:Object, bubbles:Boolean=true, cancelable:Boolean=false)
                super(type, bubbles, cancelable);
                this._myItemClicked = itemParam;
            override public function clone():Event{
                return new MyItemEvent(this.type,this._myItemClicked,this.bubbles,this.cancelable); // bubbling support inside
    inside you Item renderer create util function (you dont have to, but its cleaner) :
    private function removeItem() : void {
                    this.dispatchEvent(new MyItemEvent (MyItemEvent .MY_ITEM_REMOVE,this.data,true,true));
    and then third step (again inside Item renderer)  asign that function as click event handler to button:
    <mx:LinkButton id="removeButton" label="X" fontSize="8"  paddingLeft="0" paddingRight="0" paddingTop="0" paddingBottom="0" cornerRadius="6" color="#FF0000" click="removeItem()"  x="1" y="-2"/>
    now wherever you have your  tilelist add listiner to it following way , (or any other way you find it fit )
    yourTileListComponent.addEventListener(MyItemEvent .MY_ITEM_REMOVE,
                         function(e:MyItemEvent):void
                            trace(this + "ItemTo Remove is: " + e.myItem);

  • Date ranges - possible to use analytic functions?

    The next datastructure needs to be converted to a daterange datastructure.
    START_DATE END_DATE      AMMOUNT
    01-01-2010 28-02-2010         10
    01-02-2010 31-03-2010         20
    01-03-2010 31-05-2010         30
    01-09-2010 31-12-2010         40Working solution:
    with date_ranges
    as   ( select to_date('01-01-2010','dd-mm-yyyy') start_date
           ,      to_date('28-02-2010','dd-mm-yyyy') end_date
           ,      10                                 ammount
           from   dual
           union all
           select to_date('01-02-2010','dd-mm-yyyy') start_date
           ,      to_date('31-03-2010','dd-mm-yyyy') end_date
           ,      20                                 ammount
           from   dual
           union all
           select to_date('01-03-2010','dd-mm-yyyy') start_date
           ,      to_date('31-05-2010','dd-mm-yyyy') end_date
           ,      30                                 ammount
           from   dual
           union all
           select to_date('01-09-2010','dd-mm-yyyy') start_date
           ,      to_date('31-12-2010','dd-mm-yyyy') end_date
           ,      40                                 ammount
           from   dual
    select   rne.start_date
    ,        lead (rne.start_date-1,1)  over (order by rne.start_date) end_date
    ,        ( select sum(dre2.ammount)
               from   date_ranges dre2
               where  rne.start_date >= dre2.start_date
               and    rne.start_date <= dre2.end_date
             ) range_ammount
    from     ( select dre.start_date
               from   date_ranges dre
               union -- implicit distinct
               select dre.end_date + 1
               from   date_ranges dre
             ) rne
    order by rne.start_date
    /Output:
    START_DATE END_DATE   RANGE_AMMOUNT
    01-01-2010 31-01-2010            10
    01-02-2010 28-02-2010            30
    01-03-2010 31-03-2010            50
    01-04-2010 31-05-2010            30
    01-06-2010 31-08-2010
    01-09-2010 31-12-2010            40
    01-01-2011
    7 rows selected.However, I would like to use an analytic function to calculate the range_ammount. Is this possible?
    Edited by: user5909557 on Jul 29, 2010 6:19 AM

    Hi,
    Welcome to the forum!
    Yes, you can replace the scalar sub-queriy with an analytic SUM, like this:
    WITH  change_data   AS
         SELECT     start_date     AS change_date
         ,     ammount          AS net_amount
         FROM     date_ranges
        UNION
         SELECT     end_date + 1     AS change_date
         ,     -ammount        AS net_amount
         FROM     date_ranges
    ,     got_range_amount     AS
         SELECT     change_date          AS start_date
         ,     LEAD (change_date) OVER (ORDER BY  change_date) - 1
                                     AS end_date
         ,     SUM (net_amount)   OVER (ORDER BY  change_date)
                                    AS range_amount
         FROM    change_data
    ,     got_grp          AS
         SELECT     start_date
         ,     end_date
         ,     range_amount
         ,     ROW_NUMBER () OVER ( ORDER BY        start_date, end_date)
               - ROW_NUMBER () OVER ( PARTITION BY  range_amount
                                         ORDER BY          start_date, end_date
                           )         AS grp
         FROM    got_range_amount
    SELECT       MIN (start_date)     AS start_date
    ,       MAX (end_date)     AS end_date
    ,       range_amount
    FROM       got_grp
    GROUP BY  grp
    ,            range_amount
    ORDER BY  grp
    ;This should be much more efficient.
    The code is longer than what you posted. That's largely because it consolidates consecutive groups with the same amount.
    For example, if we add this row to the sample data:
           union all
           select to_date('02-01-2010','dd-mm-yyyy') start_date
           ,      to_date('30-12-2010','dd-mm-yyyy') end_date
           ,      0                                 ammount
           from   dualThe query you posted produces:
    START_DAT END_DATE  RANGE_AMMOUNT
    01-JAN-10 01-JAN-10            10
    02-JAN-10 31-JAN-10            10
    01-FEB-10 28-FEB-10            30
    01-MAR-10 31-MAR-10            50
    01-APR-10 31-MAY-10            30
    01-JUN-10 31-AUG-10             0
    01-SEP-10 30-DEC-10            40
    31-DEC-10 31-DEC-10            40
    01-JAN-11I assume you only want a new row of output when the range_amount changes., that is:
    START_DAT END_DATE  RANGE_AMOUNT
    01-JAN-10 31-JAN-10           10
    01-FEB-10 28-FEB-10           30
    01-MAR-10 31-MAR-10           50
    01-APR-10 31-MAY-10           30
    01-JUN-10 31-AUG-10            0
    01-SEP-10 31-DEC-10           40
    01-JAN-11                      0Of course, you could modify the original query so that it did this, but it would end up about as complex as the query above, but less efficient.
    Conversely, if you prefer the longer output, then you don't need the suib-query got_grp in the query above.
    Thanks for posting the CREATE TABLE and INSERT statments; that's very helpful.
    There are some people who have been using this forum for years who still have to be begged to do that.

  • Is it possible to use aggregation function in SQ Sap query?

    I need to create a sap query like using SELECT MAX(begda) statement.
    Please teach me how...
    Thank u in advance..

    Hi Ella,
    You can very well use the aggregate functions in sql which is usually a performance tuning technique.
    A calculation that is made on several records or cells of data. SUM, AVG, MAX, MIN and COUNT are examples of aggregate functions that are used in spreadsheets and database programs.
    SELECT ( ( ] ...
    MAX: returns the maximum value of the column
    MIN: returns the minimum value of the column
    AVG: returns the average value of the column
    SUM: returns the sum value of the column
    COUNT: counts values or lines as follows:
    · COUNT( DISTINCT ) returns the number of different values in the column.
    · COUNT( * ) returns the total number of lines in the selection.
    Ex:    DATA: fldate LIKE sbook-fldate,
          count  TYPE i,
          avg    TYPE p DECIMALS 2,
          max    TYPE p DECIMALS 2.
    SELECT fldate COUNT( * ) AVG( luggweight ) MAX( luggweight )
           FROM sbook
           INTO (fldate, count, avg, max)
           WHERE carrid = 'LH' AND
                 connid = '0400'
           GROUP BY fldate.
      WRITE: / fldate, count, avg, max.
    ENDSELECT.
    For further info:
    http://help.sap.com/saphelp_nw04/helpdata/EN/fc/eb3990358411d1829f0000e829fbfe/content.htm
    http://help.sap.com/abapdocu/en/ABAPSELECT_AGGREGATE.htm
    Thanks and Regards
    Srikant.P
    Edited by: SRIKANTH P on May 27, 2009 9:41 AM

  • Is It Possible to use Call Function in update task in perform on commit

    Hi Friends,
    I have to send an email once the commit work is done. so i am writing code like this,
    Perform send_email on commit.
    form send_email.
    call function 'SO_NEW_DOCUMENT_SEND_API1' in update task
    endform.
    endform.
    .... ( Some other code)
    commit work.
    But, I am getting error saying Update task is not possible. Please suggest me how to solve this.
    Thanks in Advance,
    Phani.

    Hi Phani,
          Check whether <b>COMMIT Work</b> has be performed. I think this might be the problem.
    Regards,
    Prashanth

  • Is it possible to use Fingerprint recognition in iOS7 in third party app?

    We are trying to develop an app which need to include Fingerprint recognition in iOS7. We searched lots of communities to find the solution, but haven't get any correct information. Somewhere written that the Fingerprint recognition only use in native app in iPhone 5S. But we can not use that hardware (Home button)/api in third party app. I am not confirmed yet. So is it possible to use that functionality in a third party app development?

    hi friend,
    i am facing problem with my fringerprint machine.i dont have any idea how to connect that macine with my system and how to extract that fingerprint machine data in to my application witch is build up into Apex.
    i want to use fingerprint machine to manage Employee Daily attendance.But i dont know how can i do this in apex.
    if you have any idea please help me
    Thanks
    Manoj Kaushik

  • How to use oracle functions in Crystal Reports XI using Oracle Server

    Hi all,
    Is it possible  to use oracle functions in Crystal Reports XI using Oracle Server as Data Source.
    If i try to use a procedure,i am getting error with message "Invalid Arguement Provided".
    Functions are not visible objects like tables,views and stored procedures.
    The  jdbs driver i m using is oracle.jdbc.driver.OracleDriver.

    I think it is not possible to add functions in crystal directly for any database. You need to use those functions in a stored procedure and add that storedprocedure as a datasource.
    [https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/oss_notes_boj/sdn_oss_boj_erq/sap(bD1lbiZjPTAwMQ==)/bc/bsp/spn/scn_bosap/notes%7B6163636573733d36393736354636443646363436353344333933393338323636393736354637333631373036453646373436353733354636453735364436323635373233443330333033303331333233353335333833323333%7D.do]
    regards,
    Raghavendra

  • How to use aggregate function with Date

    Hi All,
    I have a group of date from that is it possible to Max and Min of date.
    I have tried like this but its errored out <?MIN (current-group()/CREATION_DATE)?>.
    I have also tried like this but it doesnt works
    <?xdoxslt:minimum(CREATION_DATE)?>
    Is it possible to use aggregate function with date values.
    Thanks & Regards
    Srikkanth

    Hi KAVI PRIYA,
    if date is not in cannonical format, how can we change it in BI publisher, then how to calcualte minimum and as well as maximum.
    please advise me,
    Thanks,
    Sri

  • U00BFCan I use a function module as a driver program for sapscript?

    Hi,
    I have to use a function module as driver program for sapscript and there is no any value in the form (the data are not transferred)...
    but if I call the sapcript from a report with the same code as in my function module all the data are transferred OK.
    please, can you tell me if there is any problem in use of a function module in this case? is it impossible at all or is there any tip to apply?
    thank you all in advance.

    Hi,
    first of all it is possible to use a function module to process a SapScript form.
    The mistake on your side is probably the definition of the variables that you want to pass to the form. Please make sure they are defined as global (via SE37 --> Goto --> Global Data) then it should be working.
    In addition you could take a look at e.g. function module "PRINT_DUNNING_NOTICE". This is SAP standard and they are using it to print a SapScript form.
    Best regards
    Arno Speitkamp

  • Using Excel function in workflow?

    Hi all,
    Does anybody know if it is possible to use Excel functions in workflows? Indeed, I need to set the style of a metadata according to the value of another metadata.
    Thanks in advance.
    fx

    Hi,
    According to your post, my understanding is that you wanted to set the style of a metadata according to the value of another metadata like Excel function.
    I don’t think workflow can do it.
    We can use the workflow to set the data, but there is no action to set the style.
    What did you mean set the style of a metadata? Did you mean the format?
    If so, you can use the conditional formatting.
    With conditional formatting, you can easily create a Data View that applies a style to a selected HTML tag or data value when the data meets criteria that you specify.
    You can also set conditions that change the visibility of an HTML tag or data value, so you can show or hide data altogether.
    You can apply the conditional formatting using SharePoint Designer, there is an article for your reference.
    Conditional Formatting in SharePoint 2013
    Thanks & Regards,
    Jason
    Jason Guo
    TechNet Community Support

  • Possible to use local variables in Calculation Manager

    Hi,
    I'm using calculation manager in EPMA for the first time. Have not found any function for using "local variables", i.e. variables that can be used for fixing on the current members a user has selected in a form. Do someone know if it is possible to use that functionality in calculation manager? And in that case, how do I find it?
    Thanks!
    Regards
    Mats

    Hi,
    I guess you are referring to local variables in Essbase Administration Console. When you are in calculation manager (System View), you can go to Tools->Variables. There you can create variables at application, database (global) or business rule level (local variable). You can use these in Business rules by placing the name in curly bracket {...}.
    The usage of the variables in the forms is the same as before.
    If however, what you meant to say by local variables is substitution variables, yes you can use them in Calc manager the same way you use in calc script.
    Cheers,
    Alp

  • How do I use Right Click Functionality in Captivate 5

    Hello there,
    I am trialing Adobe Captivate 5, with a view to purchasing it, and I have been loving it, but have hit a snag.  My Right Click actions are not working except with the web preview.  I noted from the manual a lot of restrictions and from reading here I am not able to change AS3 to AS2.  Does this mean Captivate 5 does not let you use Right Click options.
    I would greatly appreciate your help because I do love this software but if I can't create elearning with multiple Click Boxes and Right Click functionality, I may have to look elsewhere.
    Thanks again.
    Penny

    Rodward,
    I downloaded and unzipped the file you linked. On my work laptop with XP, IE 8, and Captivate 4, it ran perfectly.
    On my personal laptop with Windows 7, IE 8, and Captivate 5, it did not run. (I got the JavaScript line 81 error.)
    On my personal laptop, I created my own right click project in Captivate 5, published with accessibility turned off, and it would not run (line 81).
    I copied my Captivate 5 published files to my work laptop, and it would not run there either.
    I don't have any third party toolbars installed on either machine. I'm running Symantec antivirus on my work laptop (where your project worked but mine didn't) and AVG on my personal laptop (where neither project worked.)
    Is there something you did in your JS file? Or some little tweak you made in your Captivate project?
    Doug

  • How do I copy and paste an image form the internet to Keynote. I have done this successfully in the past by selecting copy and then paste by using the right click function and now am unable to do so. I am thinking it is an outdate OS problem...not sure.

    How do I copy and paste an image from the internet to Keynote. I have done so successfully in the paste by using the copy and paste right click functions but am unable to do so now. That was about a year ago that I attempted that I was able to do this. Thank you for your help.

    Some images are copy-protected.
    If all else fails, you can make a screen shot of the image: 
    With the image visible in your browser, press CMD-Shift-4 and your cursor will change to crosshairs.
    Position the cross hairs at one of the corners of what you want to copy and drag to the opposite corner, then release the mouse. An copy of the image will be saved to your desktop.
    You can now edit and use this image.
    Be sure to respect copyrights.
    Message was edited by: bwfromspring hill

  • Out of pure curiosity : is it possible to use a SQL function in a DSV?

    Hi all :)
    out of pure curiosity, I asked myself about this : is it possible using a function in a named query for exemple?
    This is why I would know that : there is a difficult function in the database. I don't want to make a view to use it and to have the table I want. I would use it directly in the dsv, with a named query (or other thing?).
    I thank you a lot by advance.
    (I use SQL Server 2008 :) )
    See you

    Hello,
    In a named query for a Report you can use any valid SQL Statement; so yes, you can use system/user defined functions in your query.
    Olaf Helper
    [ Blog] [ Xing] [ MVP]

Maybe you are looking for

  • How to get a N network running with iphones in the house??

    Hi there I have 3 x Airport express (N) stations, 1 x single port ethernet adsl2 modem. My problem is this, I want to create a 5ghz N based 300mbps network for our 2 macbooks in the house. We also have 2 iphones in the house. When I create the 5ghz b

  • Looking for appropriate TV-Out cable

    Hey guys... I lost my tv-out cables in a recent move.  Looked all over for them, but they're gone.  The card that these fit is an XFX 7900GT. I really have two options.  The first, preferred option is to get a new 7-pin tv-out cable.  I have found on

  • Tree and Table UI element with same data source (context)

    Hello, I am trying to build an application which shows an tree and an table UI which shows additional information to the selected tree node. (like Windows Explorer) I am using an context like this: Class - - - - - - - - --  (Mapped  value Node) - Sub

  • Firmware Update 1.2 will NOT install.

    Hi, I have a 20" Intel Core 2 Duo iMac; 2.16GHz late 2006 Model. Today, I tried to update the firmware when apple told me on the software update that I need to update my firmware. I downloaded the firmware update program. In the Utilities I double cl

  • Multiple Collection Steps

    Hi Experts, I have a requirement to trigger multiple collection steps when a certain condition is reached. For e.g. I have two different steps to 1. Send a disconnection notice. 2. Remove customer from Budget Billing. These two are common steps for a