How to determine button pressed?.

Within the Account screen we have four buttons on the 'More' tab. One of these triggers the production of the PDF Factsheet and calls some java script directly, thus avoiding any round server trip.
Is it possible to still determine what button was pressed?.
I would expect to find some ABAP code for the BSP event, but I'm not entirely sure where to begin looking.
Jason

If only that were true Vishal, except the DO_HANDLE_EVENT is NOT being called. The browser seems to be calling the Java script directly and avoids going near any round-server trip.
If you get a moment, take a look at the SAP comments in BP_HEAD/Overview, method EH_ONPREVIEW. In CRM 7 it makes reference to the java script being used and thus avoiding any events being called. This is fine if there's just one PDF factsheet, but I now find myself trying to get two PDF Factsheets working in this way, and it's damn nightmare trying to get it to work.
Should I be able to call Class/interface and Smartform from within a method, and have the resulting PDF display in a seperate window?. I have no idea how I can achieve this within a method though.
If I could do this then I would not need to use the same (direct) method that is currently being used by the existing SAP standard PDF Factsheet.
Jason
Jason

Similar Messages

  • How to handle Button pressed event

    Hi,
    I need some help in button presing handle event. I have Button B1 and L_1 (it is LOV). I want realize next: When I press button B1 List of value L1 shows, but the value in list is selected it hides. Any help plz.
    Thanks.
    Edited by: go0ze on 2011.13.6 23:30

    Hi,
    I need some help in button presing handle event. I have Button B1 and L_1 (it is LOV). I want realize next: When I press button B1 List of value L1 shows, but the value in list is selected it hides. Any help plz.
    Thanks.
    Edited by: go0ze on 2011.13.6 23:30

  • How can I call my chart in Forms6i on When Button Press Trigger?

    Hi Friends,
    I have make a chart in Graphic Builder 6i and save on path C:\graph\test.ogd
    Now I want to run this Chart from Form6i on When Button Press trigger.
    I have call my report in forms using this command on When Button Press trigger.
    Run_Product(reports,'C:\Cheema\Qdir_store\reports\pmms\sec_backlog',asynchronous,runtime,filesystem,TO_CHAR(NULL));
    So tell me How can I call my chart in Forms6i?
    Please reply me on urgent.
    Thanks,
    Shahzad

    Just to recall after a long break of couple of years..... Pls check out if not wrong.
    First of all you need to embeed the chart object on your layout window and make it visible = FALSE. This is a design time work. In the button press event, show the chart object by setting the visible property = TRUE.
    Note, i could not paste u the sample code as i don't have forms installation on my PC. The above states is a logic you can apply.

  • Opening files doesn't work no matter how many times I press the button.

    Application Basics
    Name: Firefox
    Version: 31.0
    User Agent: Mozilla/5.0 (Windows NT 6.3; WOW64; rv:31.0) Gecko/20100101 Firefox/31.0
    Crash Reports for the Last 3 Days
    All Crash Reports
    Extensions
    Name: Adblock Plus
    Version: 2.6.4
    Enabled: true
    ID: {d10d0bf8-f5b5-c8b4-a8b2-2b9879e08c5d}
    Name: Battlefield Play4Free
    Version: 1.0.96.0
    Enabled: true
    ID: [email protected]
    Name: Bitdefender Wallet
    Version: 2.0
    Enabled: true
    ID: [email protected]
    Name: Copy As Plain Text
    Version: 1.0.9
    Enabled: true
    ID: {1a5dabbd-0e74-41da-b532-a364bb552cab}
    Name: DownThemAll!
    Version: 2.0.17
    Enabled: true
    ID: {DDC359D1-844A-42a7-9AA1-88A850A938A8}
    Name: Extended Statusbar
    Version: 1.5.10
    Enabled: true
    ID: {daf44bf7-a45e-4450-979c-91cf07434c3d}
    Name: FastestFox
    Version: 5.2.1
    Enabled: true
    ID: [email protected]
    Name: Freemake Video Downloader Plugin
    Version: 1.0.0
    Enabled: true
    ID: [email protected]
    Name: Freemake Youtube Download Button
    Version: 1.0.0
    Enabled: true
    ID: [email protected]
    Name: Greasemonkey
    Version: 2.1
    Enabled: true
    ID: {e4a8a97b-f2ed-450b-b12d-ee082ba24781}
    Name: InstantFox
    Version: 2.8.9
    Enabled: true
    ID: searchy@searchy
    Name: Multifox
    Version: 2.2.0
    Enabled: true
    ID: multifox@hultmann
    Name: Online Convert
    Version: 1.4
    Enabled: true
    ID: [email protected]
    Name: ProxMate - Proxy on steroids!
    Version: 2.3.3
    Enabled: true
    ID: jid1-QpHD8URtZWJC2A@jetpack
    Name: Show my Password
    Version: 2.0
    Enabled: true
    ID: {cd617372-6743-4ee4-bac4-fbf60f35719e}
    Name: Skype Click to Call
    Version: 7.3.16540.9015
    Enabled: true
    ID: {82AF8DCA-6DE9-405D-BD5E-43525BDAD38A}
    Name: Strict Pop-up Blocker
    Version: 0.2
    Enabled: true
    ID: jid1-P34HaABBBpOerQ@jetpack
    Name: Tab Badge
    Version: 1.15
    Enabled: true
    ID: [email protected]
    Name: Text to Voice
    Version: 1.10
    Enabled: true
    ID: [email protected]
    Name: Tile Tabs
    Version: 11.9
    Enabled: true
    ID: tiletabs@DW-dev
    Name: URL Fixer
    Version: 4.1
    Enabled: true
    ID: {0fa2149e-bb2c-4ac2-a8d3-479599819475}
    Name: Video Resumer
    Version: 1.1.3
    Enabled: true
    ID: videoresumer@jetpack
    Name: Yamli for Firefox
    Version: 1.1.0
    Enabled: true
    ID: [email protected]
    Name: Webexp Enhanced
    Version: 1.1
    Enabled: false
    ID: [email protected]
    Graphics
    Adapter Description: Intel(R) HD Graphics 4600
    Adapter Description (GPU #2): NVIDIA GeForce GTX 760M
    Adapter Drivers: igdumdim64 igd10iumd64 igd10iumd64 igdumdim32 igd10iumd32 igd10iumd32
    Adapter Drivers (GPU #2): nvd3dumx,nvwgf2umx,nvwgf2umx nvd3dum,nvwgf2um,nvwgf2um
    Adapter RAM: Unknown
    Adapter RAM (GPU #2): 2048
    Device ID: 0x0416
    Device ID (GPU #2): 0x11e3
    Direct2D Enabled: true
    DirectWrite Enabled: true (6.3.9600.17111)
    Driver Date: 1-22-2014
    Driver Date (GPU #2): 9-1-2013
    Driver Version: 10.18.10.3412
    Driver Version (GPU #2): 9.18.13.2702
    GPU #2 Active: false
    GPU Accelerated Windows: 1/1 Direct3D 10
    Vendor ID: 0x8086
    Vendor ID (GPU #2): 0x10de
    WebGL Renderer: Google Inc. -- ANGLE (Intel(R) HD Graphics 4600 Direct3D9Ex vs_3_0 ps_3_0)
    windowLayerManagerRemote: false
    AzureCanvasBackend: direct2d
    AzureContentBackend: direct2d
    AzureFallbackCanvasBackend: cairo
    AzureSkiaAccelerated: 0
    Important Modified Preferences
    accessibility.newtabplus.homepage: chrome://branding/locale/browserconfig.properties
    accessibility.newtabplus.page: 1
    accessibility.newtabplus.ver: 4.5.2
    accessibility.typeaheadfind.flashBar: 0
    browser.cache.disk.capacity: 358400
    browser.cache.disk.smart_size_cached_value: 358400
    browser.cache.disk.smart_size.first_run: false
    browser.cache.disk.smart_size.use_old_max: false
    browser.cache.frecency_experiment: 1
    browser.places.smartBookmarksVersion: 7
    browser.sessionstore.upgradeBackup.latestBuildID: 20140716183446
    browser.startup.homepage_override.buildID: 20140716183446
    browser.startup.homepage_override.mstone: 31.0
    browser.tabs.warnOnClose: false
    dom.mozApps.used: true
    dom.popup_allowed_events:
    extensions.lastAppVersion: 31.0
    font.internaluseonly.changed: true
    gfx.direct3d.last_used_feature_level_idx: 0
    network.cookie.prefsMigrated: true
    places.database.lastMaintenance: 1406922206
    places.history.expiration.transient_current_max_pages: 104858
    plugin.disable_full_page_plugin_for_types: application/pdf
    plugin.importedState: true
    plugin.state.npuplaypc: 0
    print.printer_Microsoft_XPS_Document_Writer.print_bgcolor: false
    print.printer_Microsoft_XPS_Document_Writer.print_bgimages: false
    print.printer_Microsoft_XPS_Document_Writer.print_colorspace:
    print.printer_Microsoft_XPS_Document_Writer.print_command:
    print.printer_Microsoft_XPS_Document_Writer.print_downloadfonts: false
    print.printer_Microsoft_XPS_Document_Writer.print_duplex: -854238192
    print.printer_Microsoft_XPS_Document_Writer.print_edge_bottom: 0
    print.printer_Microsoft_XPS_Document_Writer.print_edge_left: 0
    print.printer_Microsoft_XPS_Document_Writer.print_edge_right: 0
    print.printer_Microsoft_XPS_Document_Writer.print_edge_top: 0
    print.printer_Microsoft_XPS_Document_Writer.print_evenpages: true
    print.printer_Microsoft_XPS_Document_Writer.print_footercenter:
    print.printer_Microsoft_XPS_Document_Writer.print_footerleft: &PT
    print.printer_Microsoft_XPS_Document_Writer.print_footerright: &D
    print.printer_Microsoft_XPS_Document_Writer.print_headercenter:
    print.printer_Microsoft_XPS_Document_Writer.print_headerleft: &T
    print.printer_Microsoft_XPS_Document_Writer.print_headerright: &U
    print.printer_Microsoft_XPS_Document_Writer.print_in_color: true
    print.printer_Microsoft_XPS_Document_Writer.print_margin_bottom: 0.5
    print.printer_Microsoft_XPS_Document_Writer.print_margin_left: 0.5
    print.printer_Microsoft_XPS_Document_Writer.print_margin_right: 0.5
    print.printer_Microsoft_XPS_Document_Writer.print_margin_top: 0.5
    print.printer_Microsoft_XPS_Document_Writer.print_oddpages: true
    print.printer_Microsoft_XPS_Document_Writer.print_orientation: 0
    print.printer_Microsoft_XPS_Document_Writer.print_page_delay: 50
    print.printer_Microsoft_XPS_Document_Writer.print_paper_data: 1
    print.printer_Microsoft_XPS_Document_Writer.print_paper_height: 11.00
    print.printer_Microsoft_XPS_Document_Writer.print_paper_name:
    print.printer_Microsoft_XPS_Document_Writer.print_paper_size_type: 0
    print.printer_Microsoft_XPS_Document_Writer.print_paper_size_unit: 0
    print.printer_Microsoft_XPS_Document_Writer.print_paper_width: 8.50
    print.printer_Microsoft_XPS_Document_Writer.print_plex_name:
    print.printer_Microsoft_XPS_Document_Writer.print_resolution: 0
    print.printer_Microsoft_XPS_Document_Writer.print_resolution_name:
    print.printer_Microsoft_XPS_Document_Writer.print_reversed: false
    print.printer_Microsoft_XPS_Document_Writer.print_scaling: 1.00
    print.printer_Microsoft_XPS_Document_Writer.print_shrink_to_fit: true
    print.printer_Microsoft_XPS_Document_Writer.print_to_file: false
    print.printer_Microsoft_XPS_Document_Writer.print_unwriteable_margin_bottom: 0
    print.printer_Microsoft_XPS_Document_Writer.print_unwriteable_margin_left: 0
    print.printer_Microsoft_XPS_Document_Writer.print_unwriteable_margin_right: 0
    print.printer_Microsoft_XPS_Document_Writer.print_unwriteable_margin_top: 0
    privacy.sanitize.migrateFx3Prefs: true
    storage.vacuum.last.index: 1
    storage.vacuum.last.places.sqlite: 1406135669
    JavaScript
    Incremental GC: true
    Accessibility
    Activated: false
    Prevent Accessibility: 0
    Library Versions
    NSPR
    Expected minimum version: 4.10.6
    Version in use: 4.10.6
    NSS
    Expected minimum version: 3.16.2 Basic ECC
    Version in use: 3.16.2 Basic ECC
    NSSSMIME
    Expected minimum version: 3.16.2 Basic ECC
    Version in use: 3.16.2 Basic ECC
    NSSSSL
    Expected minimum version: 3.16.2 Basic ECC
    Version in use: 3.16.2 Basic ECC
    NSSUTIL
    Expected minimum version: 3.16.2
    Version in use: 3.16.2
    Experimental Features
    Hi. Whenever I want to upload a picture or a file, no matter how many times I press the "Upload" or "Browse" button, nothing happens. I can keep spam clicking on it and it wouldn't do anything. This is not specific to a site, but happens everywhere. Dragging and dropping files works on Facebook and Imgur, but not all websites support this. I'm using Firefox 31.0 on Windows 8.1. Yes, I have tried restarting Firefox and computer, this has been happening for a while now. Thanks.

    Boot the computer in Windows Safe Mode with network support (press F8 on the boot screen) as a test.
    *http://www.bleepingcomputer.com/tutorials/how-to-start-windows-in-safe-mode/
    This probably still applies to Windows 8:
    Try to delete the MRU (Most Recently Used) ComDlg32 registry keys with the registry editor (regedit.exe).
    Navigate to: HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\ComDlg32
    Delete the subkeys (LastVisitedPidlMRU and OpenSavePidlMRU)
    Be cautious with editing the registry as there is no Undo possible: all changes are applied immediately.
    You can export registry keys before making changes.
    * http://www.winhelponline.com/articles/195/1/How-to-clear-the-file-names-MRU-in-Common-Dialog-boxes-in-Windows-Vista.html

  • Show indices of Last TWO buttons pressed in a boolean array (how to?)

    How would you go about showing the indices of the last TWO buttons pressed in an array of buttons, and only after TWO buttons have been pressed? I know how to show the LAST button pressed, and I know how to flag the event of two buttons being pressed (using the modulus), but I can't readily see how to show the indices of the last TWO.
    For example, in an array of 24 buttons, someone presses buttons 2 and 7... an indicator says 2 & 7. Those buttons remain pressed. Now the user presses buttons 14 and 3, the same indicator now reads 14 & 3.
    The indicator can be text, an int array, two ints, whatever. Any ideas?
    Message Edited by LV_Addict on 07-28-2008 01:29 PM

    Thanks Ben.
    To get the LAST button pressed, I just XOR the array and look for the True, as shown. No biggie.
    Yep, I know about the ability to expand the left side S/R to get a histogram, and have used that in the past. It doesn't seem to do anything for me here!
    Attachments:
    forumpic.jpg ‏9 KB

  • HT4061 ????  How do I power up my iPad?  My iPad won't power up. It just stays a black screen.  Tried the start up button, the home button, pressing them down and holding.

    ????  How do I power up my iPad?  My iPad won't power up. It just stays a black screen.  Tried the start up button, the home button, pressing them down and holding.

    Could be the battery is completely drained. Use the charger that came with the iPad and plug that into a known good wall outlet. Let it charge for at least an hour. Then, while it is still plugged in reset your device. Press and hold the Home and Sleep buttons simultaneously until the Apple logo appears. Let go of the buttons and let the device restart.
    If the device restarts let it remain on the charger until the battery indicates 100%. If it still will not turn on Make an appointment at an Apple Store to have your device examined by a technician. Or contact Apple Support.

  • How is when a button pressed a report will come to the same page !!!

    Hi all,
    I wonder that is it possible to bring a report to the page as a region but only when a button pressed in apex .When ı clicked the go button for example ı want to list a report in the same page.
    but I dont know how .If is this possible can you explain me please.I need help!
    Thanks!

    Create your report in a region as normal.
    Create a second region and in this region create an item eg p171_item.
    In the same region create 2 buttons
    Get Report and Reset (branching back to same page).
    Create 2 page processes (PLSQL) on submit after computations
    1. GET REPORT
    DECLARE
    v_item number;
    Begin
    select 1 into v_item from dual;
    :P171_ITEM := v_item;
    end;
    2.RESET
    DECLARE
    v_item number;
    Begin
    select 2 into v_item from dual;
    :P171_ITEM := v_item;
    end;
    Tie the processes to the buttons.
    On your report region put a condition
    PL_SQL RETURNING BOOLEAN
    IF :P171_ITEM = 1 THEN
    RETURN TRUE;
    ELSE
    RETURN FALSE;
    END IF;
    Now by pressing the buttons the report region is opened and closed.
    Now hide P171_ITEM.
    Gus

  • How to cach enter button pressing in java 2D API

    hi guys,
    how to cach enter button pressing in java 2D API
    thanks
    siva

    thats input handling -> Belongs to AWT.
    Tip-> register an KeyListener and search for KeyEvent.VK_ENTER
    lg Clemens

  • How can I open the windows file directory in "WHEN-BUTTON-PRESSED" trigger

    Dear All,
    How can I open the windows file directory in “WHEN-BUTTON-PRESSED” trigger?

    Blessan Joseph,
    The solution is dependent on your Forms version and if your applications is traditional Client/Server (CS) (Forms 6i and lower) or web deployed (Forms 6i and higher). For CS, you would use the Get_File_Name() built-in as Faa demonstrated. For Web, you will need to use the WebUtil library function Client_Get_File_Name() as Sarah (OGIR) demonstrated. Both of these functions will return the full path to a file. Note: WebUtil is an external library so it requires you to perform some configuration on your developer client as well as on the Application Server. WebUtil is included with Forms 9i and higher, but you must download it for Forms 6i.
    My requirement is user should able to select windows directory for the output.Do you really need to allow the user to write to a file in the Windows directory? This is very dangerous and you should not allow users or programs to write to the Windows directory. Users should only be able to write files to "User" directories (\My Documents\<Directory name>).
    Craig B-)
    If someone's response is helpful or correct, please mark it accordingly.

  • Why am I getting this error?  How do I add confirm message to button press?

    Using Java Studio Creator.
    I do not understand why I am getting the following page error:
    Description: An unhandled exception occurred during the execution of the web application. Please review the following stack trace for more information regarding the error.
    Exception Details: java.lang.IndexOutOfBoundsException
    Index: 0, Size: 0
    Possible Source of Error:
    Class Name: java.util.ArrayList
    File Name: ArrayList.java
    Method Name: RangeCheck
    Line Number: 546
    ======================================================================
    I have a page that works.
    It has a button that is created in the session bean code with the following java:
    button = (HtmlCommandButton)application.createComponent(HtmlCommandButton.COMPONENT_TYPE);
    button.setActionListener( application.createMethodBinding("#{ScheduleEditSessionBean.mainApply}", new Class[]{ActionEvent.class} ));
    button.setId( "applyUndates" );
    button.setType( "submit" );
    button.setTitle( "Apply updates.");
    button.setValue( "Apply" );
    button.setStyle(style);
    children.add(button);
    When the button is pushed, it calls the following session bean method:
    public void mainApply(ActionEvent actionEvent)
    updateScheduleData();
    scheduleAdjustFlag = 1;
    dataApplied = true;
    dataSaved = false;
    addControls();
    This all works just fine - no errors
    ====================================================================
    I wanted to add confirmation to the button press, so I removed the action listener for this button and added
    a javascript function call for the onclick method
    button = (HtmlCommandButton)application.createComponent(HtmlCommandButton.COMPONENT_TYPE);
    style = "text-align: center; font-family: 'Arial','Helvetica',sans-serif; " + font + " height: 22px; width: 115px";
    // Commented out this line button.setActionListener( application.createMethodBinding("#{ScheduleEditSessionBean.mainApply}", new Class[]{ActionEvent.class} ));
    button.setOnclick("confirmApply()"); // Added this line.
    button.setId( "applyUndates" );
    button.setType( "submit" );
    button.setTitle( "Apply updates.");
    button.setValue( "Apply" );
    button.setStyle(style);
    children.add(button);
    I added a dummy button to the page that has the following call to execute the mainApply method in the sessioon bean.
    The button action just calls the mainApply() method in the session bean
    public String mainApplyBtn_action() {
    seb.mainApply();
    return null;
    Added the javascript to the page that simply pushes the dummy button if confirmed.
    function confirmApply()
    if( confirm( 'Are you sure you want to Apply these changes?' ) )
    form1["form1:mainApplyBtn"].click();
    The session bean method looks like this it is the same method as before, but without the action event argument.
    public void mainApply()
    lsb.logMsg( "<ScheduleEditBean.mainApply> Main apply pushed" );
    updateScheduleData();
    scheduleAdjustFlag = 1;
    dataApplied = true;
    dataSaved = false;
    addControls();
    ==================================================================================
    Now, when I push the original 'Apply' button, I get the confirmation box just like I expected.
    But when I confirm the question, I get the error at the top of this post.
    If I push the 'dummy button' directly, I do not get the error.
    I do not understand why I should be gettng this error.
    Can anyone give me a clue as to why this change would cause the problem?
    The error is related to an ArrayList.
    I use several of these on the page, but they should be filled with data in the preRender method of the page.
    Can anyone suggest a way that I can add confirmation to a button that is created under program control?
    Thanks

    Make use of the fact that when an onclick event of a button returns 'false', the action will not be taken.
    Pseudocode:<h:commandButton value="submit" action="#{myBean.action}" onclick="return confirm('Are you sure?');" />

  • How to call a dynamic URL on 'button press' event, in MVC-based BSP

    Hi,
    My requirement is as below:
    On selecting a row in table view, and pressing a button, I need to open a browser.
    The Browser URL depends on the row selected.
    The key field from table view, is added at the end of the URL string.
    Shortly, I can say that, I am getting a value on row selection & want to pass it to button event.
    In Views Section, there are 2 tags- (1)table view & (2)button.
    Right now, I have put the code for getting the key field, in DO_HANDLE_DATA method.
    In Button's OnClientClick method, I have called the Javascript to open the browser.
    If I now write the code to concatenate the key field value to form the dynamic URL in 'OnClick' method,
    it will be called only after the browser is opened.
    (as OnClick event is executed only after OnClientClick event is executed)
    Could anyone please tell me what event (and in which tag) can be used to solve this.
    Is there any event which is triggered, as soon as the row is selected, &  before the button press event is triggered ?
    Would really appreciate responses made to this query.
    Thanks,
    Nisha Vengal.

    Hi Nisha,
    The crux of your issue here is that you want to call the event triggered with onClick before calling the event triggered on onClientClick. This can be achieved by the following code in the function called on the onClientClick.
    function fn_button()
               htmlbSL(this,2,'b_row_selection:onInputProcessing()');
               window.open("new_page",target="BLANK");
    Here, fn_button is the javascript function called on button click, and b_row_selection is the event triggered on the onClick event of row selection.
    Try this out and let us know if it works for you.
    Regards,
    Saurabh

  • How do I execute a 'remote' when-button-pressed trigger?

    I am using Forms 6 in an 8i/10g environment. I have a data block (COMPACT) which is on canvas MAIN. Compact has an item (button) called CREATE_COMPACT, with a when-button-pressed trigger. I also have an error canvas which has a button called RESTART, so they can restart the entire build after an error. The restart code is exactly the same as the create_compact code, and, after the restart, I want the focus to be the main canvas, so I would like to just have the restart when-button-pressed trigger shift focus to the CREATE_COMPACT trigger and execute it. I have tried:
    go_item( 'Compact.Create_Compact' );
    do_key( 'Enter' );
    This switched me to CREATE_COMPACT but did not execute the trigger. I then tried:
    execute_trigger( 'Compact.Create_Compact' );
    and then:
    execute_trigger( 'Create_Compact' );
    but neither of these work. I get error FRM-40700 no such trigger. Is there any way to do this short of copying code or creating a pl/sql procedure?
    thanks

    do_key('ENTER') will execute the code in a KEY-ENTER trigger so I suggest you move your code into the KEY-ENTER trigger. On your when-button-pressed trigger you should also use do_key('ENTER');

  • WHEN BUTTON PRESSED TRIGGER

    Hi,
    I've created a form with 4 data blocks (each of which has its' own canvas, items, and window). On my first canvas, I've created "push buttons" for the user to select which canvas (block/window) they go to next. I've attached WHEN-BUTTON-PRESSED triggers to each of these buttons (which execute a go_block command), however, when I first run the form and click on a button, nothing happens. If I execute a query BEFORE I click on a button, they all work fine and take me to the correct canvas. Could someone please tell me how I can get these buttons to work WITHOUT having to execute a query first? I've looked at all the property palettes, etc. and can't see any attribute that I can set.....any help would be greatly appreciated. Thank you. (I'm using Forms 9.0.4.0.19)

    Thank you so much for your responses. I had changed the
    Fire In Enter-Query Mode to No, but that didn't help, however, changing the trigger from WHEN-BUTTON-PRESSED to WHEN-MOUSE-CLICK did the trick - it works fine.
    Can you suggest a good reference for determining which type of trigger you should use?
    Thanks again for your responses - I really appreciate it!

  • Anyone know how to determine Macbook Air screen tech? Causing migraines

    Hi There,
    Last year, I expereinced a lot of mild migraines which I've traced back to a new Macbook Air.
    At first I had no idea of the cause (diet, stress etc) but have noticed that my eyes feel uncomfortable looking at the screen of my Macbook Air (I don't have this issue with my Dell monitor).
    My eyes don't hurt per se, but I can detect a sublte jittering with the screen - which can turn into a migraine.
    After doing a bit of research, it seems like most (but not all) LCD and LED LCD displays use something called pulse-width modulation to control brightness but after calling Apple support, they told me my MBA doesn't use this technology.
    Does anyone know how to determine the underlaying technology in Apple displays so I can research the cauase of my headaches? I found a good Ukranian website (in english) that explained pulse-width modulation but it didn't really talk about other technologies.
    Any pointers in the right direction would be much appreciated.
    Cheers
    Ben

    What version of OS X are you using? If Yosemite, you need to update to 10.10.1 or higher.
    In any case, start by going to the editor preferences>general, clicking this button and restarting the editor:

  • Change control values on button press

    Hi, I've got a situation where I have several numeric controls where you can change different values. I also have several subVIs with control references (as described in this article: http://labviewwiki.org/Control_References) that takes in references to these numeric controls on the mainVI. These subVIs continously read the values in their own threads.
    So whenever I change a value on any of the controls, the values does of course change in the subVIs, since they reference to the value of the control.  How would I make the actual value only change only after I clicked the ok button?
    To illustrate this I made a VI with an event structure and a separate while loop that continoulsy reads a reference to the control and updats an indicator. I can think of a few cumbersome solutions, whereas I have two controls for every value. The second control would then be hidden and only written to in case of the Ok button press. But having two controls to do something simple as this seems superfluous.
    Message Edited by Siniz on 10-20-2009 10:36 AM
    Solved!
    Go to Solution.
    Attachments:
    ValueChangeOnButtonPress.vi ‏19 KB

    Given what you want to do then I would suggest that you use an Action Engine to contain your data. This has the advantage of decoupling the UI from the subtasks. I would recommend that your action engine consist of an array of clusters. Each cluster would contain the data values, in your case Ki, Kd and Kp for each controller. This has the advantage of reducing the individual values you are dealing with and treats the data for a given controller as a whole. The subtasks could either poll the data looking for a value change. You could even keep track of that in your Action Engine so you would only need to poll to see if the data changed. If it did, then read the data. You would need an index or ID to specify which controller's data you would want to access. The action engine allows you to grow your application if more controllers are added. You should use a typedef to define the cluster. If you wanted to make this more event driven you could use a single notifier shared by your subtasks that would simply indicate a data change event. Part of the data for the notifier could specify which data. That way only interested subtasks would take action. This type of architecture wouldn't add lots of wires to your diagram especially if you used a named notifier.
    Regardless of the way you choose to pass the data to the subtasks I would take a look at your UI. I haven't seen it so I can't comment on it specifically. However is you have 40 controls on the front panel at the same time it most likely is a confusing interface. There are ways to reduce the complexity and still provide the same functionality. If you haven't already looked at I would recommend getting the book The LabVIEW Style Book by Peter Blume. If you did reduce your UI to only work with a single controller or a couple of related controllers at a time the Action Engine approach would work nicely since you take your data from the FP and only update the data that has changed. From a UI perspective you have less controls to worry about on your UI and it will probably be easier for the user to understand. From the application's perspective you have decoupled the subtasks from the UI in a very clean way. Another approach would be to use LVOOP for your controller data and processing. Then you simply instantiate a new instance of the class (an object) for each controller that your system is using. This has an added benefit of allowing you to use different controllers and load them at runtime using dynamic dispatching.
    PS You are good for the overall Kudo count. Thanks.
    Message Edited by Mark Yedinak on 10-20-2009 12:33 PM
    Mark Yedinak
    "Does anyone know where the love of God goes when the waves turn the minutes to hours?"
    Wreck of the Edmund Fitzgerald - Gordon Lightfoot

Maybe you are looking for

  • How can I hide the marker button in an ALV GRID line?

    Hi all, I am switching an old program from ALV LIST to ALV GRID. In the old list, I put a checkbox on each line to abilify the user to mark some lines. However, there are some lines that I don't want the user to select. In the list, I set the field f

  • Scratch on screen - anybody know how to get rid of it?

    Hi, I have a deep, but superficial scratch on my Macbook air glossy screen. The scratch is only in the film on top of the LCD display and the hardware underneath is not affected. Does any one know of a polish I could use to get rid of the scratch? I

  • Substitution: optical drive to 3.5mm HD

    Hi all, Can I substitute the optical drive from a mid 2010 MacBok Pro to a 3.5mm Hard Disk, or it must be 2.5mm? Thanks in advance, Pedro.

  • MuseJSAssert Error - Security Error - Chrome

    I am seeing several different JS errors in the posts, but not the exact wording of my issue, which I see when loading exported HTML in Chrome (but not when previewing page in browser!). I have a problem that seems to have come up since the latest upg

  • Dreaded error #2032

    [dumbfounded] I'm trying to access an online PHP file which returns XML. The PHP is passed GET parameters. It works in a browser just fine. A barebones test (see code below) works in an AIR app too while testing from the Flash IDE but testing for Fla