Combobox Selection Takes Action

I am trying to learn how to use a combobox selection (two items in the list) to take and action such as changing the color of boxes I have acting as a border around my form or, better yet, possibly to hide or view a button. I am asking for help in devleoping a generic code into which I can insert the names of my fields I wish to hide or view.  Can anyone help?  I know NOTHING about Javascript.  Thanks in advance.
Richard P

The code below should work.  Each OPTION in each case is the name of your drop downs for the combobox.  You place the code in format under custom keystroke.  Everytime you choose one of the dropdowns it will run whatver code you placed for the case.  this.getField("YOURFIELDNAME").display = display.hidden should work for hiding, replace hidden with visible and voila.

Similar Messages

  • What should be take action against following sql tuning report.

    Hi
    what should be take action against following sql tuning report.
    SQL ID : fn3mt5dvm7fba
    SQL Text : SELECT * FROM (select
         to_number(ow.waybl_no) waybl_no,ow.id wb_id,
         To_Number(ogp.gp_no) gp_no,
         To_Number(ots.trip_sht_no) trip_sht_no,
         otr.nm,
         ots.gty_br_mast_id,
         DECODE(otr.sign_recd,'1','YES','NO') Sign_Recd,
         DECODE(otr.stamped,'1','YES','NO') Stamped,
         otr.dlvry_dt dlvry_dt,
         otr.tel_no,
         --otr.remarks,                                                   
         Decode(otr.comments, NULL,'','Yes') remarks,
         otr.id ID,ops_safex_utl.get_br_nm(to_number(ow.bkg_br_mast_id))
    book_br,
         ow.pick_dt book_date
    from
         ops_ts_reconsile otr,
         ops_pultd_wb_dtls opuwd,
         ops_trip_sht ots,
         ops_waybl ow,
         ops_ultd_wb_dtls ouwd,
         ops_gate_pass ogp
    where
         otr.trip_sht_id=ots.id and
         otr.pultd_wb_dtls_id=opuwd.id and
         opuwd.ultd_wb_dtls_id=ouwd.id and
         ouwd.gate_pass_id=ogp.id and
         opuwd.waybl_id=ow.id and
         otr.status_lid=157 and
         ots.gty_br_mast_id = (:br_Id) and
         (otr.dlvry_dt = :searchDate OR :searchDate IS NULL) and
         otr.note_prpd = 'N' and otr.pod_recd = '1' and
         not exists (select TS_RECONSILE_ID from OPS_POD_FRWD_NOTE_DTLS
    where TS_RECONSILE_ID = otr.id)
    union
    select
         to_number(ow.waybl_no) waybl_no, ow.id wb_id,
         To_Number(ogp.gp_no) gp_no,
         null trip_sht_no,
         ogr.nm,
         ogp.dlvry_br_mast_id,
         DECODE(ogr.sign_recd,'Y','YES','NO') Sign_Recd,
         DECODE(ogr.stamped,'Y','YES','NO') Stamped,
         ogr.dlvry_dt dlvry_dt,
         ogr.tel_no,
         --ogr.remarks,                                                   
         Decode(ogr.comments, NULL,'', 'Yes') remarks,
         ogr.id ID,ops_safex_utl.get_br_nm(to_number(ow.bkg_br_mast_id))
    book_br,
         ow.pick_dt book_date
    from
         ops_gp_reconcile ogr,
         ops_gate_pass ogp,
         ops_waybl ow
    where
         ogr.gp_id=ogp.id and
         ogp.waybl_id=ow.id and
         ogp.dlvry_br_mast_id = (:br_Id) and
         (ogr.dlvry_dt = :searchDate) and
         ogr.note_prpd = 'N' and ogr.pod_recd = 'Y' and
         not exists (select GP_RECONSILE_ID from OPS_POD_FRWD_NOTE_DTLS
    where GP_RECONSILE_ID = ogr.id)) QRSLT ORDER BY trip_sht_no desc
    Bind Variables :
    1 - (VARCHAR2(32)):37069
    2 - (DATE):07/11/2011 00:00:00
    3 - (DATE):07/11/2011 00:00:00
    4 - (VARCHAR2(32)):37069
    5 - (DATE):07/11/2011 00:00:00
    FINDINGS SECTION (3 findings)
    1- SQL Profile Finding (see explain plans section below)
    2 potentially better execution plans were found for this statement. Choose
    one of the following SQL profiles to implement.
    Recommendation (estimated benefit<=10%)
    - Consider accepting the recommended SQL profile.
    execute dbms_sqltune.accept_sql_profile(task_name => 'TASK_58643',
    task_owner => 'SYS', replace => TRUE);
    Recommendation (estimated benefit: 99.15%)
    - Consider accepting the recommended SQL profile to use parallel execution
    for this statement.
    execute dbms_sqltune.accept_sql_profile(task_name => 'TASK_58643',
    task_owner => 'SYS', replace => TRUE, profile_type =>DBMS_SQLTUNE.PX_PROFILE);
    Executing this query parallel with DOP 128 will improve its response time
    99.11% over the SQL profile plan. However, there is some cost in enabling
    parallel execution. It will increase the statement's resource consumption by
    an estimated 14.56% which may result in a reduction of system throughput.
    Also, because these resources are consumed over a much smaller duration, the
    response time of concurrent statements might be negatively impacted if
    sufficient hardware capacity is not available.
    The following data shows some sampled statistics for this SQL from the past
    week and projected weekly values when parallel execution is enabled.
    Past week sampled statistics for this SQL
    Number of executions 17494
    Percent of total activity 7.2
    Percent of samples with #Active Sessions > 2*CPU .63
    Weekly DB time (in sec) 614696.04
    Projected statistics with Parallel Execution
    Weekly DB time (in sec) 704166.9
    2- Restructure SQL finding (see plan 1 in explain plans section)
    An expensive "UNION" operation was found at line ID 4 of the execution plan.
    Recommendation
    - Consider using "UNION ALL" instead of "UNION", if duplicates are allowed
    or uniqueness is guaranteed.
    3- Alternative Plan Finding
    Some alternative execution plans for this statement were found by searching
    the system's real-time and historical performance data.
    The following table lists these plans ranked by their average elapsed time.
    See section "ALTERNATIVE PLANS SECTION" for detailed information on each
    plan.
    id plan hash last seen elapsed (s) origin note
    1 209247904 2011-07-12/10:09:08 7.564 Cursor Cache
    2 4029269565 2011-07-12/10:20:21 15.374 Cursor Cache original plan
    3 4128886984 2011-07-08/11:30:25 42.426 AWR
    4 3695555639 2011-07-12/08:30:30 101.459 AWR
    Recommendation
    - Consider creating a SQL plan baseline for the plan with the best average
    elapsed time.
    execute dbms_sqltune.create_sql_plan_baseline(task_name => 'TASK_58643',
    owner_name => 'SYS', plan_hash_value => 209247904);
    ADDITIONAL INFORMATION SECTION
    - The optimizer could not merge the view at line ID 3 of the execution plan.
    The optimizer cannot merge a view that contains a set operator.
    - SQL Profile "SYS_SQLPROF_01306b26f6aa0000" exists for this statement and
    was ignored during the tuning process.

    afzal wrote:
    Hi
    what should be take action against following sql tuning report.
    <snip>Perhaps no action at all.
    You can ALWAYS produce a report that will show "top 5" issues. The question is NOT "do I have an issue reported by a tuning report". Yes you do. Everyone does. Always. Even if you slowest batch job runs in 1.3 seconds and your slowest OLTP transaction completes in 0.0001 second.
    The question is "do I have a problem that is serious enough to spend time solving?"
    If your average OLTP transaction completes in 3 seconds, how much effort is justified to get a 50% improvement?
    How much effort is justified to get that same 50% improvement on transactions that complete in 1.5 seconds? 0.2 seconds?
    Beware of Compulsive Tuning Disorder.

  • How Do I Allow a List Item to be assigned to multiple users where only one needs to take action on it?

    Hey folks,
    Building a ticketing type system and when a ticket is opened, we want it to go to everyone on our team, not just one person. What's the best way to accomplish this and how?
    Do we:
    1. Make the field blank so it's searchable that way?
    2. Can the assigned to field tied to active directory be filled in with more than 1 name where it doesn't require all names to take action on it?
    3. Saw people mentioning assigning to a group but then not sure how to create a group (names are tied to active directory) and not sure how to make the workflow allow just one and not all individuals in that group to take action on it.
    First step would be for the individual taking action on it to reassign it to themselves, effectively taking it out of the "queue"
    Any help would be greatly appreciated!!
    Oh and just a note that SharePoint Designer wasn't set up for us to use BUT we have InfoPath and that is something we can use (go figure lol).
    Thanks!

    Ben I'll send you the VI
    Attachments:
    TEST.vi ‏589 KB
    TEST.vi ‏59 KB

  • Runtime loading of XML file off a ComboBox selection

    I need to load an XML file at runtime based on a ComboBox
    selection that has the XML file path as its data.
    I figured out how to load an XML file at runtime by defining
    an HTTPService
    <mx:HTTPService id="stocksXML" url="xml/StockList.xml"
    resultFormat="e4x"/>
    and setting the <mx:Application
    creationComplete="stocksXML.send();"
    But when I now try to set the HTTPService url dynamically in
    the ComboBox change event handler
    private function loadData_changeHandler(event:ListEvent):void
    stocksXML.url = event.target.selectedItem.path;
    stocksXML.send();
    no data gets retrieved and the stocksXML.lastResult is null.
    What am I missing here? Why doesn't that work?
    Thanks in advance for any pointers

    I suggest adding a resultHandler to the HTTPService and check
    the results there. Also add a faultHandler so that you will know
    what the error was.

  • Can you get a virus on an ipad.I have had this message-Your computer appears to be infected We believe that your computer is infected with malicious software. If you don't take action, you might not be able to connect to the Internet in the future. Learn

    Your computer appears to be infected
    We believe that your computer is infected with malicious software. If you don't take action, you might not be able to connect to the Internet in the future.
    Learn how to remove this software.

    No you do not have a virus. That is a standard web popup usually, that tres to get up to download a "removal program". The removal program is the virus or similar.

  • Change Data Provider Based on ComboBox Selection

    Complete noob using Flash CS5 for Macs. I have a ComboBox component and a TileList. I want the ComboBox selection to change the data provider for the TileList. I've used a sample script from the Adobe website at the bottom, but it is not working in this context. Google returns no better examples. Can anyone point me in the right direction?
    import fl.controls.ComboBox;
    import fl.data.DataProvider;
    import flash.display.DisplayObject;
    import flash.display.MovieClip;
    import fl.events.DataChangeEvent;
    // Combo Box ("aCb")
    var aCb:ComboBox = aCb;
    var Choices:Array = new Array(
        {label:"Artist Resin", data: "resin"},
        {label:"Ceramic", data: "ceramic"}
    aCb.dataProvider = new DataProvider(Choices);
    // TileList ("aTl")
    aTl.columnWidth = 110;
    aTl.rowHeight = 130;
    aTl.setSize(110,150);
    aTl.move(20, 150);
    aTl.setStyle("contentPadding", 5);
    // TileList Content
    var i:uint = 0;
    var resinitems:Array = [
    {label: "Image 1", source: "http://www.helpexamples.com/images/montreal/images/IMG_5057.jpg"},
    {label: "Image 2", source: "http://www.helpexamples.com/flash/images/gallery2/images/IMG_1592.jpg"}];
    var resin:DataProvider = new DataProvider();
    for(i=0; i < resinitems.length; i++) {}
    var ceramicitems:Array = [
    {label: "Image 3", source: "http://www.helpexamples.com/flash/images/gallery1/images/pic11.jpg"},
    {label: "Image 4", source: "http://www.helpexamples.com/flash/images/gallery1/images/pic14.jpg"},];
    var ceramic:DataProvider = new DataProvider();
    for(i=0; i < ceramicitems.length; i++) {}
    addChild(aCb);
    addChild(aTl); 
    // Code to Change Data Provider for Tile List
    aCb.addEventListener(Event.CHANGE, changedataProvider);
    function changedataProvider(event:Event):void {
        aTl.dataProvider = event.target.selectedItem.data;

    Thanks for your answers.
    I have already checked those links.
    Now th problem what I am facing is,
    I am not able to call the function ChangeLanguage through javascript.
    I have created a dropdwon using Hovermenu and added English and German.
    Now when I click on these the function should be called.
    Please help me in getting how setClientSideScript() can be used to call a function.
    or any other way to call the function after clicking on Hovermenu Item.
    Thanks in advance,
    Sumangala

  • Your information has been sent to our customer service department. We will review your case (est. time 72 hours) and take action as necessary.

    ''locking this thread as it is not a Firefox support issue''
    Your information has been sent to our customer service department. We will review your case (est. time 72 hours) and take action as necessary.
    == URL of affected sites ==
    http://

    Try getting help from Facebook. Those aren't Firefox support issues.

  • How i can make some components visible on comboBox selection change ?

    Hi
    Thank you for reading my post
    how i can make some of form component visible/ invisible when user changed a combobox selected item ?
    can we use partial rendering ?(i just read that ADF support partial rendering)
    thanks

    http://technology.amis.nl/blog/?p=1211

  • What method is used to take action of Enter button in keyboard?

    I doing exercise about GUI.
    One ex ask me type a number in one JTextField object, press Enter and then another converted number appear in the second JTextField object. This ex are not allowed to use a JButton object. I have no idea about what method to use to take action of pressing Enter. Please help me.
    Thank you

    Encephalopathic wrote:
    codingMonkey wrote:
    Interesting. I never knew that.Did you really not know, or are you trying to tell me in a nice way that my answer is full of chit (it's been known to have happened before and I know will happen again)?I really did not know that. It is an interesting little fact that might come in useful someday. :)

  • How set margin/padding top to combobox selected value

    Hi,
    Again I am facing new problem with combobox component, i need to set margin/padding top to combobox selected data using external AS file.
    I have tried the code --> combo_box.setStyle("marginTop", 5); and also used similar styles but its not working.
    Need your suggestions and help.
    Thanks.

    Hi,
    i strongly urge you to read some book about CSS and forget using deprecated HTML tags like FONT.
    Why am i saying that?
    Well, you don't want to change a page template or a report definition every time the user complains about the size of a font or the space between lines, do you?
    CSS is all about presenting the page the way you want, setting margins, spaces, fonts and so on.
    You should focus on the content, the data, leaving the task of formatting to one or more CSS stylesheet linked in the HTML header.
    I recommend reading some articles first, at least to have a general idea of mainstream techniques:
    http://www.alistapart.com/articles/goingtoprint/
    http://webdesign.about.com/cs/css/a/aa042103a.htm
    Or you can google around searching for "css formatting printer friendly" to get a bunch of pages.
    Flavio
    http://oraclequirks.blogspot.com

  • Changing variable with combobox selection - simple problem!

    Hi there,
    I have a search field when you click on search.
    I want to make it so i can change which field in a datagrid
    you search for depending on the choice in the Combbox. I'm not sure
    how to set the object name correctly depending on the combobox
    selection.
    I tried it like this, to no avail
    private var acOrder:ArrayCollection
    private var currentOrder:Object;
    ///////////////this is incorrect. What should i use instead
    of Object?//////
    private var whichArray:Object
    private function makeid():void
    whichArray = "orderid"
    private function makeemail():void
    whichArray = "email"
    private function filterByOrderid(item:Object):Boolean
    if (item.(whichArray) == filterTxt.text)
    ////I want this result to either be if (item.orderid ==
    filterTxt.text)
    ///or if (item.orderid == filterTxt.email)
    return true;
    else
    return false;
    private function doFilter():void
    if (filterTxt.text.length == 0)
    acOrder.filterFunction = null
    else
    acOrder.filterFunction = filterByOrderid;
    acOrder.refresh()
    i think answer is very simple. i just need to pass the name
    of the item inside the object correctly
    thanks very much for any help

    Hi,
    Try declaring whichArray as String and try this
    item[whichArray] instead of item.(whichArray).
    Hope this helps.

  • Take action on sucessful execution of a job

    Hi,
    I want to create a scheduled job, during each execution of this job, I wanted to take action on "successful completion", how do I do that?
    Thanks

    I meant is there a way to configure the job as multistep or something where if the first step completes, I execute the second step.
    For example, I could create the job and use "errorAction" to take action when the job errors out, is there something similar with successful completion?

  • W_list_comments-typ  = 'A'. " H = Header, S = Selection, A = Action

    Hi
    w_list_comments-typ  = 'A'. " H = Header, S = Selection, A = Action
    here what is H AND S AND A?

    hi,
    pls chk the code below also.
    Form  TOP-OF-PAGE                                                 *
    ALV Report Header                                                 *
    Form top-of-page.
    *ALV Header declarations
    data: t_header type slis_t_listheader,
          wa_header type slis_listheader,
          t_line like wa_header-info,
          ld_lines type i,
          ld_linesc(10) type c.
    Title
      wa_header-typ  = 'H'.
      wa_header-info = 'EKKO Table Report'.
      append wa_header to t_header.
      clear wa_header.
    Date
      wa_header-typ  = 'S'.
      wa_header-key = 'Date: '.
      CONCATENATE  sy-datum+6(2) '.'
                   sy-datum+4(2) '.'
                   sy-datum(4) INTO wa_header-info.   "todays date
      append wa_header to t_header.
      clear: wa_header.
    Total No. of Records Selected
      describe table it_ekko lines ld_lines.
      ld_linesc = ld_lines.
      concatenate 'Total No. of Records Selected: ' ld_linesc
                        into t_line separated by space.
      wa_header-typ  = 'A'.
      wa_header-info = t_line.
      append wa_header to t_header.
      clear: wa_header, t_line.
      call function 'REUSE_ALV_COMMENTARY_WRITE'
           exporting
                it_list_commentary = t_header.
               i_logo             = 'Z_LOGO'.
    endform.
    regards,
    anversha

  • Stupid ios 6 .... How apple will take action on this. I want to trow my iphone now!!!

    Stupid ios 6 ...How apple will take action on this. I want to trow my iphone now

    Go ahead, but be careful it doesn't hit any innocent people.

  • Lead Selection takes a long time

    Hi Experts,
        I have an ALV table in my component that has a lot of fields i,e 82. When ever i try to do a lead selection on the alv the system takes a lot of time to do the action even though there is no code that was written to run on that action (and i have implemented the first time check in modify view so there is no chance of this running either). Someone please let me know how i can reduce the time of lead selection in my ALV.
    Thanks In Advance,
    Chaitanya.

    Solved on my own , it is a result of large no. of attributes in the node.

Maybe you are looking for

  • No Presence Status With 9971 Phones

    CUCM - 9.1.2.10000-28 CUCM IM and Presence - 9.1.1.31900-1 9971 Load - sip9971.9-3-2-10 Have an issue with the 9971s not updating presence information on Jabber (windows and osx). All phones are able to be controled from Jabber, ie. Dial, answer etc.

  • PXE across subnets using IP Helper Address

    For 10 years I have been trying to get my network engineers to add an IP Helper address of our SCCM PXE Server in order to provide an Enterprise PXE service for our campus (Large University). And every year they keep telling me they won't do it due t

  • Automatic HTMLEditorKit source pane changes

    I am using the HTMLEditorKit. When I insert html data that the reader or document does not like it automatically changes the html code. Is there a way to prevent this so that the html code will exactly match what is entered progammatically or what is

  • Everytime I open a new tab, it is a blank search page (Bing)..how do i change it ?

    When starting Firefox my set homepage shows up, but everytime I open a new tab it goes to a blank search page automatically. How do I change it so my homepage will show every time a tab is opened?

  • Regarding SNMP trap on Backup Unity connection failure

    Hi, if backup of Unity connection failed, would a backup failure produce an SNMP trap? thanks, Kamran