How to programmatically signaling Menu selection (User)

I have an event case handling Menu selection(User) event. Now I wish to programmatically signaling the Menu selection (User). Is that possible in LV?
WT
LV2013SP1

Well then you could have a state machine, where you go to the "Menu Selected" state when the event is generated.  Or you can choose to go to that state in your application whenever you want.  Now you don't have code duplication and have once case that handles doing the work, and you can get there from multiple methods.
Unofficial Forum Rules and Guidelines - Hooovahh - LabVIEW Overlord
If 10 out of 10 experts in any field say something is bad, you should probably take their opinion seriously.

Similar Messages

  • Menu Selection (App) catches Menu Selection (User)

    In 2010 I would use the same case in an event structure to handle both Menu Selection (App) and Menu Selection (User) events.
    I've recently upgraded to 2012 and started seeing duplicates of my User menu events. I separated the Menu Selection (App) and Menu Selection (User) events into separate cases. I still see duplicates. The event is being caught in both the Menu Selection (App) and Menu Selection (User) cases. (App) menu items are only caught in the Menu Selection (App) case. If I use Menu Selection? (App) I don't see the duplicate events.
    I don't like that solution as I would like to only have one case in the event structure to handle all menu events. Is there a fix short of upgrading to a new version?
    Thanks,
    Jason

    Jason,
    What you have found is a known bug in LabVIEW 2012.  I was able to recreate your issue and tried to find a workaround for what you were doing, but aside from simply building in logic to reject the menu selection event if it occurrs too close to the previous event, what you have found is probably the simplest solution.
    If this is a reason you choose to upgrade to a newer version you have not yet installed I will give you a friendly warning that this bug still exists in LabVIEW 2013 SP1 but seems to be fixed as of 2014.
    Matt J
    Professional Googler and Kudo Addict
    National Instruments

  • How to Enable Authentication to Selected Users

    1. How to enable SAP and AD authentication only for selected users in infoview login page ?
    2. How to disable(remove) enterprise options in down arrow selection in infoview login page for some users?
    We have to make some changes in web.xml?
    Can anyone help me out.
    Thanks!
    Milton

    You have to enable authentication for your application.
    However, for the public pages, you disable this by setting the page's security attribute Authentication to "Page is public".

  • PDA Menu Selection (user) Item Tag returns Item Name

    Using LV Mobile 8.6.1 with iPAQ on Windows Mobile 5.0 (5.1.1702) I have a custom run-time menu.  The Item Tags are shortened versions of the full Item Name.  The event structure provides the Item Tag, but the actual string value returned is the full Item Name.  The Item Path returns the complete hierarchy of the menu selection, but also contains the Item Name.
    Michael Munroe, ABCDEF
    Certified LabVIEW Developer, MCP
    Find and fix bad VI Properties with Property Inspector

    Hi David,
    My PDA application has a custom run-time menu of 20 items.  Some menu items are up to 4 words in length, so I used unique single-word names for the item tag to differentiate the commands.  Debugging my code, only the single word menu items executed correctly.   All others ended up in the default case.
    This has to be a bug in LabView, that the event structure returns the Item Name in place of the cluster element labeled Item Tag.  The same problem exists in the Get Menu Selection.vi.
    The work around was to change all the case elements to match the item name and not the tag.  The item tag then is never used.
    Michael Munroe, ABCDEF
    Certified LabVIEW Developer, MCP
    Find and fix bad VI Properties with Property Inspector

  • How to make dropdown menu selection create more text fields?

    I did some searching and am unable to find an answer for this. It could be because I don't know the name of what I'm trying to do (I'm a total LiveCycle Designer noob). I tried to find guides but they seem to be for newer versions of Designer (I'm using 8.2) so I'll ask here:
    I'd like specific text fields to appear after a pulldown menu option is selected (empty fields w/ the captions already filled in). How can I go about doing this?
    Thanks in advance!

    The script I see when I click on the dropdown menu in question:
    form1.#subform[0].DropDownList4::initialize - (FormCalc, client)
    form1.#subform[0].DropDownList4::enter - (FormCalc, client)
    form1.#subform[0].DropDownList4::exit - (FormCalc, client)
    form1.#subform[0].DropDownList4::calculate - (FormCalc, client)
    form1.#subform[0].DropDownList4::validate - (FormCalc, client)
    form1.#subform[0].DropDownList4::preOpen - (FormCalc, client)
    form1.#subform[0].DropDownList4::postOpen - (FormCalc, client)
    form1.#subform[0].DropDownList4::mouseEnter - (FormCalc, client)
    form1.#subform[0].DropDownList4::mouseExit - (FormCalc, client)
    form1.#subform[0].DropDownList4::change - (FormCalc, client)
    form1.#subform[0].DropDownList4::full - (FormCalc, client)
    form1.#subform[0].DropDownList4::mouseUp - (FormCalc, client)
    form1.#subform[0].DropDownList4::mouseDown - (FormCalc, client)
    form1.#subform[0].DropDownList4::click - (FormCalc, client)
    form1.#subform[0].DropDownList4::preSave - (FormCalc, client)
    form1.#subform[0].DropDownList4::postSave - (FormCalc, client)
    form1.#subform[0].DropDownList4::prePrint - (FormCalc, client)
    form1.#subform[0].DropDownList4::postPrint - (FormCalc, client)
    form1.#subform[0].DropDownList4::preSubmit:form - (FormCalc, client)
    form1.#subform[0].DropDownList4::postSubmit:form - (FormCalc, client)
    form1.#subform[0].DropDownList4::docReady - (FormCalc, client)
    form1.#subform[0].DropDownList4::docClose - (FormCalc, client)
    form1.#subform[0].DropDownList4::ready:form - (FormCalc, client)
    form1.#subform[0].DropDownList4::ready:layout - (FormCalc, client)

  • How to programmatically manage Remote Desktop Users?

    Hi,
    I want to know if it esists a method to programmatically set/get the Remote Desktop Users list, such as add/remove an user and so on.
    Thank you all in advance
    Best Regards
    Antonino

    Hi,
    first of all, I want to thank you for reply. But, what I'm looking for is to programmatically view the list of the users for the Remote Desktop Control. With Remote Desktop Control I mean the way I let some other users over the network to operate with my own desktop in Windows XP (that is what you find in system->properties->remote desktop->advanced...and so on).
    Antonino

  • How can we make the selected Debug User Agent Netscape 7.0 stick?

    To get into http://gap.com I have to go to the Debug menu, choose User Agent and choose Netscape 7.0.
    It works Ok.
    Then I quit Safari. Get back into Safari. User Agent is back to Automatically Chosen, and gap.com to not working.
    How can we make the selected User Agent stick?
    Thanks,
    Roberto

    Unfortunately, I don't think there is an automated way of going about this. To begin with, the 'Debug' menu was never meant to be user accessible in the most common context.
    However, that said, you could lessen the pain by assigning a keyboard shortcut to the 'Netscape 7.0' menu-item in the 'Keyboard & Mouse' preference pane (under the 'Keyboard Shortcuts' tab). Hope that helps, somewhat.
    Yang

  • How to programmatically mimic the user action of selecting a button ?

    I am using JAVA Swings to build a desktop application. The application has many buttons, lists and text boxes etc. I have created actionPerformed methods that monitor the source for user action. I am able to execute the code whenever an action is performed by user manually.
    I also require to save the choices, and texts entered by a user during his active run with the application. This is to avoid user to re-enter all the information once again.
    The problem is to programmatically select those buttons and lists which were saved during users earlier session. How can I perform the action event of selecting a radio button from my java code.

    Kiran,
    Your approach is missing the whole idea of Model-View-Controller. I suspect that somewhere you are saving the data of the user's choices. For example, if you have a checkbox, I suspect you have a java bean somewhere containing a boolean value that is set to true when the checkbox is selected, and false when the checkbox is unselected. This process is mediated by a controller, which has a references to the model (the data) and the view (the UI). The controller sets up as a listener to the actions within the UI, and, when notified, sets the appropriate properties of the data, usually into one or more java beans.
    So, on the reverse side of things, the data is read into the java bean(s), and the controller uses that data to set the state of the UI elements. So, your controller can do something like this:
        uiThing.initUI(yourBean);And in the initUI method you have:
        public void initUI(DataBean data) {
             cbxBlue.setSelected(data.isBlue());
             txtLastName.setText(data.getLastName());
             // etc...
        }If you take that general approach, you'll find you don't need to simulate user actions.
    In the few cases within the UI where you think you do, you really don't. An ActionListener is just a receiver of when something like a button is pressed. If your program needs to do the same thing as when the button is clicked, create a method to perform the processing, and invoke it directly, rather than trying to figure out how to programmatically press a button.
         public void actionPerformed(ActionEvent e) {
              if (e.getActionCommand().equals("BlueButton"))
                  this.setBlue();
              //... etc.
         private void setBlue() {
             // whatever
         // somewhere else in the code
         private void someProcess() {
              // other work
              // other work
              if (someCondition) this.setBlue();  // rather than forcing an action event
              // other work
              // other work
         }

  • Programmatically simulate the Get Menu Selection vi

    Hi,
    I'm using LabVIEW 8.5 base version (no event handling). I have created a custom RTM (Run-Time Menu) and use the Get Menu Selection vi wired to a Case structure to handle all the items. (Part of the handling it to put a check mark next to the selected menu item and clearing the check mark from all other items using the Set Menu Item Info vi. Too bad it doesn't do that automatically. Maybe it does in newer versions, but I digress.)
    My application can save and recall setups. When I recall a setup I would like to programmatically call the respective Case, as is done by the Get Menu Selection vi, even though the menu is not actually clicked by the user. I cannot find a way to do this. Is is possible?
    Thank you.
    Ed
    Solved!
    Go to Solution.

    Edjsch wrote:
    Thank you for your reply. It looks like there is no convenient way to "simulate" a Windows "event" with the base version. Duh! 
    I'd take that a step further and say there is no convenient way to write software without the event structure.  I don't know how people write code without it.  This limitation has been removed and the event structure comes with all versions of LabVIEW as of 2012.
    As for my virtual keyboard trick, here is a better one I didn't get a chance to check the link previously.
    https://decibel.ni.com/content/docs/DOC-15310
    With that you can call a subVI that will invoke the Alt+F or whatever to open menus.
    Edjsch wrote:
    Note that in the Get Menu Selection vi's Case structure, I had to actually clear each check mark and set the one for the current selection, since the RTM does not handle check marks automatically, as, for example, Visual Basic does. Again, maybe newer versions do.
    They do not, you are welcome to make an idea exchange for it, but I'm fine with toggling that bit myself.  But then again I can't think of a time when clicking on a checked item, shouldn't uncheck it so I can see your point.
    Edjsch wrote:
    Let me know if anyone would like to see screen shots of that area of my block diagram.
    Never post screenshots. 
    When posting code post the actual code not a screenshot.  You wouldn't take a screenshot of a text file and post it on a text language forum.  Upload the actual VI, or zip several files and upload the zip.  The exception to this rule is when uploading a VI Snippet.  This is an image with the VI embedded in it, so the source is still intact.
    Unofficial Forum Rules and Guidelines - Hooovahh - LabVIEW Overlord
    If 10 out of 10 experts in any field say something is bad, you should probably take their opinion seriously.

  • How can i create a new user in OID DIT tree programmatically  ?

    Dear All,
    How can i create a new user object in the OID DIT tree programmatically ?
    any help will be appreciated.
    Regards,
    Mohammed Amin

    Dear Eng. Jaime.. 
    Thank you so much  for replay...
    Can yon  explain 
    Do you want to create a contact in Jabber?
    Do you want to enable Jabber for a user?
    And what you meant last question..

  • How do I make a drop down menu selection show up in another web page?

    What I am trying to accomplish is this.  I have a page with various drop down menu selections that I want to transfer the selection to a secured web page. What happens now is once the selection is made it goes to the secure page but then the user has to again select the choice again.  Is there way to keep the selection chosen in the linked page?

    You can set the "selected" value in the second page based on the input from the first page.
    Ignor the language referance used below for the example and simple use the concept with your desired language.
    Second Page form:
    <form id="form1" name="form1" method="post" action="">
      <select name="testing" id="testing">
        <option value="Value 1" <% if ( Passed values == Value 1 ) { %>selected="selected"<% } %>>Lable 1</option>
        <option value="Value 2" <% if ( Passed values == Value 2 ) { %>selected="selected"<% } %>>Lable 2</option>
      </select>

  • In the Date Picker, How can I default to select * dates if the user does ..

    In the Date Picker, How can I default to select * dates if the user does not select a date.
    Thanks,
    Doug

    Doug,
    Now lets say l want everythingCould you post some sample data and the output that you want to get..? It would be much easy to understand the requirements...
    When you mean everything, I am assuming you need all possible dates possible between date1 and date2.
    you can use... (from asktom.oracle.com).
      1  select to_date('12-jan-2009','DD-MON-YYYY') + rownum -1
      2    from ALL_OBJECTS
      3    where rownum <= (to_date('20-jan-2009','dd-mon-yyyy') -
      4*                     to_date('12-jan-2009','DD-MON-YYYY') +1 )
    sql> /
    TO_DATE('
    12-JAN-09
    13-JAN-09
    14-JAN-09
    15-JAN-09
    16-JAN-09
    17-JAN-09
    18-JAN-09
    19-JAN-09
    20-JAN-09
    9 rows selected.
    For your case, since you have date1 and date2...
    select to_date(:p12_date1,'DD-MON-YYYY') + rownum -1
      from ALL_OBJECTS
      where rownum <= (to_date(:p12_date2,'dd-mon-yyyy') -
                        to_date(:p12_date1,'DD-MON-YYYY') +1 )Should work.. in my opinion...Haven't tested the second one in Apex .
    Is this what you were looking for ..?? If not, please elaborate...
    Thanks,
    Rajesh.

  • How to add folder from KM content to Portal Favorites for selected users

    Hi all,
    I have cretaed  a folder in KM content (In documents) for uploading implementation related ddocuments.
    how to add this folder in "Portal Favorites" of selected users only.
    Please guide.
    Thanks in advance.

    Hi,
    well one way could be the following.
    Go into KM-Content --> Repository "userhome" --> select the user you want --> navigate into his folder Favorites --> create a new internal link in this folder to the folder you want
    In the favorites of the user there is now a link to the desired folder and after clicking a new window will be opened. You can copy this internal link to the favorites folder of the other users you want.
    Regards
    Alex
    Edited by: Alexander Götz on Apr 16, 2009 5:12 PM

  • How to make a listbox selected item highlight color from code the same as if user click on item?

    Hi all,
    I have a listbox that gets filled with data when my program starts. I save the last selectedItem value so I set it when the program start again. But the color that the selected item has is not the same as if the user click on it (pictures below).
    The color when I set the selectedIndex=someItem is black on light grey (background)
    The color when the user clicks on the item is white on blue (background)
    Any way to make them both white on blue (background)?
    Thanks
    This is the user clicking on it:
    This is the code:

    I think the difference is focus.  When you use the mouse to select it also sets focus to the listbox so you would have to set focus to the listbox when you set the selected item.  How are you setting your selected item?  I think that by
    using a property to hold the selected item rather than setting the index that might also fix the problem.
    Lloyd Sheen

  • How to display complete menu tree for a particular SAP user in UI5

    Hi Experts,
    I am trying to display menu tree for a particular SAP user on click of button placed in shell content.
    I am referring this link
    Displaying the Complete Menu Tree - User Interface Add-On for SAP NetWeaver - SAP Library
    But I am not getting the exact process.
    Can anyone please provide some help.
    Thanks in advance.

    >
    cranjith kumar wrote:
    > I am displayed a user name and password columns in
    > screen painter.if i will not fill any one of the two fields
    > means then a message will be display.
    > My requirement is if i wont fill the "username field"
    > means then the cursor should not move to the
    > "password"  field (i.e we should not able to enter passwords)
    > and a message should be displayed to indicating that
    > user name is invalid.
    > Kindly send me the coding for this one immediately.....
    How about you immediately try to figure it out for yuorself?  Read the SAP help on screen development and search these forums.  Here's a hint, look at things like FIELD and CHAIN in your PAI...

Maybe you are looking for

  • New MBP on the way...... from China?

    I got a notification that my MBP was shipping yesterday and today checked to see its status, excited that it was on the way. However, the Fedex Tracking information is showing it coming from China... Is this normal? I've never ordered anything and ha

  • Flag to identify if Partial payment made to Accoutning document

    Hi, I've an issue with a scenario presented to me. I'm an ABAPer. I have a set of FI documents in a Z-table which are open. We check if they have migrated to BSAD (Customer Closed AR) and decide if they are open or closed. The issue currently is; if

  • Bid approval workflow - adding approvers

    Hi experts - We are implementing the n-level bid award approval workflow (WS14500044).  We would like the approvers to be able to add approvers/users once the workflow has started. We can see that you can add approvers before the bid is awarded (ie:

  • How to read properties stored in jar file

    Hello I got one question. I created properties file in my project, which contains some texts for panels. When I start application from JBuilder all works fine. This priperies file is stored in path "cmt/locales/CMTModule.properties". Problem is only

  • I have a upgrade from elements 9 to elements 11

    Hi I have a mac and Elements 9 and an upgrade to Elements 11 serial < removed by forum host>. Can all the Adobe Photoshope Elements 9 and 11 be deleted and I start the loading again will this fix? When I upgraded to 11 the first time with the trial i