Programmat​ic change in multicolum​n listbox value ignored by internal key event handler

The attached LabVIEW 8.5 vi demonstrates a problem I noticed using multicolumn listboxes.  Upon changing the value (selected row) of the listbox programmatically, the very next press of the up or down arrow key behaves as if the value was never changed.  For example, if the 3rd row is selected and then the listbox value is changed programmatically via a local variable or the value property to select the 0th row, pressing the down arrow key should now select the 1st row, but instead the 4th row is selected.
A workaround is to handle the Key Down? event myself as I've demonstrated in the attachment, but if this is a bug, I hope it can be corrected in a future release.
Larry
Attachments:
MC Listbox Bug.vi ‏30 KB

Hi Larry,
Pnt is correct and this is a known bug and relates to how the current row/ active row is handled when changing the values programmatically.  Perhaps if you post your code we both can have a look and provide additional guidance.
Alternatively this forum post is related to your work around for using the event handler.
Regards,
Rishi L
National Instruments
Applications Engineer

Similar Messages

  • Is there any way to send value to my attribute through event handler method

    While I give value to the img array it does not print while I call object for this class. Is there any way that I could give value for img attribute
    // Attribute
    public var img:Array;
    // Constructor
    public function ReadXML(myfile:String) {
                img=new Array();
                xmlFile=myfile;
                var loader:URLLoader=new URLLoader;
                var url:URLRequest=new URLRequest(xmlFile);
                loader.addEventListener(Event.COMPLETE,onXMLLoad);
                loader.load(url);
    // Event handling Method
            function onXMLLoad(event:Event):Array {
                var xml:XML=new XML(event.target.data);
                //trace(xml);
                //trace("Number of Contacts : " + xml..person.length());
                //trace("First contact’s favorite food : " + xml.contacts.person[0].@favoriteFood);
                img["height"]=100;
                img["width"]=200;
                return img;

    what are you trying to do?
    if img has anything to do with an image, explain.
    if img is supposed to be an associate array, use:
    var img:Object;
    img=new Object();
    etc

  • Multicolum​n listbox value change and mouse up event in one case of event structure

    Hello All,
    Am facing two problems:
    1. I have two multicolumn events, one is value change for deleting the rows of Multicolumn listbox and another one is mouse up for sorting the columns. But I can't combine both the events in one case. And if I create two separate cases then each time the event of mouse up executes and sorting takes place irrespective of selection of delete event.
    2. I have a selection VI in which user selects which parameter he wants to show it in a multicolumn listbox. I want this parameters to be retain or stored when next time I run the VI after closing it.
    Am using LabVIEW 11. Pls reply soon.
    Thanks & Regards,
    Manisha 

    try this
    Beginner? Try LabVIEW Basics
    Sharing bits of code? Try Snippets or LAVA Code Capture Tool
    Have you tried Quick Drop?, Visit QD Community.
    Attachments:
    Untitled 2.vi ‏12 KB

  • How to configure which changes in the document triggers Event Handler again

    Hi Experts
    Due to some reason after creation of Purchase Order, the event handler is not created in EM system. Now is there any way to resend this PO to EM? For example, is it possible to trigger Event Handler by changing some field in PO? If it is possible that way, Could you guide how to configure which changes in the document (PO/SO/Delivery/Shipment) can trigger Event Handler in EM system?
    Thanks
    Ravi

    Hello Ravi,
    if you change the PO Header/Item the respective EH  should be created if the Relevance condition is fullfilled.
    I'm not sure if it also works in the case that you change the PO Header and EH for PO Items will be created.
    Best regards,
    Steffen

  • How is possible to change reaction of multicollum listbox on keyboard events?

    >How is possible to change reaction of multicolumn
    >listbox on key events in Labview? For instance, I
    >would like to program such reaction of listbox, if
    >you select one of the row in listbox and then another
    >one pressing SHIFT >key, all rows between them should
    >be highlighted. Standard reaction of list box is that
    >only chosen rows highlighted but not rows between
    >them".
    >Thank you. Timur.
    Hallo all,
    Matt thank you for the answer.
    Unfortunately I must change behavior of listbox and may be there is way to change it programmatically?
    For example, catch KEYFOCUS event from listbox then get selected line , make array with lines you want to be highlighted and then write back
    in listbox.
    But it is not really nice solution and also there is problem that it is not possible to select lines for example 1, 3, 7, now all lines between 1 and 7 will be highlighted.
    May be somebody know better way how to do it.
    P.S.
    I attached example in case somebody has time and willingness to look at it and give idea.
    Thanks, Teimur
    Attachments:
    example.vi ‏22 KB

    Teimur,
    I would suggest posting this question to the LabVIEW Discussion Forum instead of DSC. You will be posting to the group that has more detailed knowledge on these aspects of LabVIEW.
    Regards,
    Mike
    NI

  • Dashboard - ListBox value to populate into Table

    hi,
    I'm creating a dashboard using a listbox that will need to populate the value into a table/result section. Is this possible?
    The value from the listbox do not come from the database, it is manually enter into the listbox. Once the user select the listbox value it need to populate into table or result section. It need to display on the report and maintain the value until future changes.
    Kindly advise will Hyperion 9.3.1 able to do that...?
    Thank you.
    lieming

    Not really what a Query and Analysis tool is designed to do.
    If you really need IR to do this then look at using SendSQL to update a database table.
    wayne

  • How to change the manual condition type value in change sales order BAPI

    Hi All,
    My scenario here is, i want to either add/change the manual condition type value during change of SO.
    When i'm trying to pass the  order_conditions_in and  order_conditions_inx tables in  'BAPI_SALESORDER_CHANGE'.
    Condition type is coming at item level but the value is setting to zero. Pls. help if anyone has any idea how to handle this.

    Siva,
       I guess you posted in Wrong Thread. You need to post in WAS section.
       check for any BAPI's available in CRM.
    Nagesh Ganisetti.

  • BED change in capture excise(J1IEX)-value moved from Inventorized duty to Credit available

    Dear Friends,
    Scheduling Agreement has  a material which is subject to non-setoff JMIP(inventorized). WhileGR(105) posting, excise is only captured.
    When Excise number is checked in J1IEX, excise inventory value is displayed under Duty Values tab and in Inventorized duty field(because it's JMIP).
    Now due to some reason captured excise's BED needs to be changed from 12% to 10% under Duty Rates tab in BED field. Now when this BED percentage change is done, inventorized duty value(in Duty Values tab) becomes ZERO and new value is updated in Credit available field(in Duty Values tab). Now this Credit available field is used for SETOFF values which update CENVAT.
    Could anyone please why SAP is behaving in such a way? According to me, new BED value should be updated in inventorized duty value.
    Thanks & Regards,
    Mihir

    What i understood from your post is that you have changed the Excise rates from J1IEX transaction from 10 to 12% for example. After doing this, these values are appearing in Set off values instead of Inventorized values. Let me know whether my understanding is correct?
    If this is the case, you better cancel the GRN document and Cancel the excise invoice (Provided Excise invoice is not yet posted) and Change the Purchase order / Scheduling agreement (Change Condition records in FV12)  and redo the GRN against Purchase order / Scheduling agreement.
    For me, this seems to be bug. You have two options, one is changing the duty back to Inventorizable in Excise tables or raise an oss message for SAP to revert with the correction instruction.

  • Change the Condition type to Value Field Assignment in KE4I

    Hi All,
    I have a requirement where a condition type which has been assigned to a Value Field needs to be changed/re-assigned to a different value field.
    There are already some postings into the current value field.
    How can I handle these postings once I change the assignment in KE4I.
    Please help me.
    Thanks in advance,
    erp.warrior.

    Hi
    Once you change in KE4I - It would impact only the subsequent postings... Historical postings wont be impacted...
    If you want to impact them as well - Follow one of these 2 approaches
    a. Then reverse the billing documents which have posted to this Value Field.... Change KE4I and post them again...
    b. Do a KE21N upload i.e. a -ve amount on the Old value field and a +ve amount on the new value field
    Regards
    Ajay M

  • Programmatic to change the Frame title

    Hi all
    It's not possible programmatic to change the Frame title. Is there any way (not-documented) to change it?

    If I am understanding your question, you could do this:
    Set_Window_Property('WINDOW NAME', TITLE, 'ANY TITLE');
    I have used this on the When-New-Form-Instance trigger.
    Edit: Sorry I miss-read your question. My solution is for the window's title not the frame.
    Sure wish there was a way to delete my incorrect post.
    Edited by: Darksky on Mar 18, 2010 10:53 AM

  • Change the amount & its corresponding values in Billing conditions

    HI,
               i need solution for changes in amount & its corresponding values in Billing conditions . i have a contract & it hv a 3 line items . in 1st  line item i hv sm condition value at the time of contract creation . but i want to change this condition value at the time of  billing posting. its is possible thru manually but in my case sm calculations is done on the bases of 1st line item condition value & i want to change old condition values with the new one . is there sm one who knows any  user exit to change this values .
    regards ,
    swarnim
    Edited by: swarnim mayee richa gupta on Aug 18, 2010 12:30 PM

    code in my jspx:
    <af:selectOneChoice value="#{bindings.BannerTextView1PagegroupName.inputValue}"
    label="#{bindings.BannerTextView1PagegroupName.label}"
    binding="#{backing_BannerTextDorpDownUpdate.selectOneChoice1}"
    id="selectOneChoice1" autoSubmit="false"
    valuePassThru="true"
    onchange="this.form.submit()" valueChangeListener="#{backing_BannerTextDorpDownUpdate.newItemCodeChanged}">
    <f:selectItems value="#{bindings.BannerTextView1PagegroupName.items}"
    binding="#{backing_BannerTextDorpDownUpdate.selectItems1}"
    id="selectItems1"/>
    </af:selectOneChoice>
    <af:inputText value="#{bindings.BannerTextView1BottomHeadingLarge.inputValue}"
    simple="true"
    required="#{bindings.BannerTextView1BottomHeadingLarge.mandatory}"
    columns="#{bindings.BannerTextView1BottomHeadingLarge.displayWidth}"
    binding="#{backing_BannerTextDorpDownUpdate.inputText1}"
    id="inputText1">
    <af:validator binding="#{bindings.BannerTextView1BottomHeadingLarge.validator}"/>
    </af:inputText>
    valueChangeListner in my backing bean:
    public void newItemCodeChanged(ValueChangeEvent valueChangeEvent) {
    List vObject = (List)project1.backing.JSFUtils.resolveExpression(FacesContext.getCurrentInstance(),"#{bindings.BannerTextView1PagegroupName.items}");
    System.out.println("JSFUtil test......"+vObject);
    SelectItem vItem = (SelectItem)vObject.get(Integer.valueOf((String)valueChangeEvent.getNewValue()));
    ..... my business logic code
    I've created association and view link for changing the values on dropdown selection. Its just the association of primary keys of the 2 tables which I use for the fields in the form.

  • [svn:fx-trunk] 8530: Change Slider and NumericStepper default value

    Revision: 8530
    Author:   [email protected]
    Date:     2009-07-13 11:17:46 -0700 (Mon, 13 Jul 2009)
    Log Message:
    Change Slider and NumericStepper default value
    http://bugs.adobe.com/jira/browse/SDK-18380 - FxHSlider and FxVSlider have default max of 100, should be 10
    Changed the default value for Slider by setting the value to 10 in the constructor. I changed NumericStepper?\226?\128?\153s implementation to match Slider. The problem with NumericStepper?\226?\128?\153s previous implementation was that it wasn?\226?\128?\153t calling Range?\226?\128?\153s maximum setter. Thus there was some important logic in Range.commitProperties that wasn?\226?\128?\153t called. 
    QE Notes: Update tests with new default
    Doc Notes: Update docs with new default
    Bugs: SDK-18380
    Reviewer: Hans
    Ticket Links:
        http://bugs.adobe.com/jira/browse/SDK-18380
        http://bugs.adobe.com/jira/browse/SDK-18380
    Modified Paths:
        flex/sdk/trunk/frameworks/projects/spark/src/spark/components/NumericStepper.as
        flex/sdk/trunk/frameworks/projects/spark/src/spark/components/supportClasses/Slider.as

  • Change the volume image flags values

    Hi
    I am using Windows 8.1 Update and Windows ADK.
    Without using the ImageX command, how do I change the volume image flags values displayed with the Dism /Get-ImageInfo /ImageFile:"<WIM_File_Path>\<WIM_Name.wim" /Index:<Image_Index> command?
    Where are these values ​​stored?
    Thanks
    Bye
    Balubeto

    Hello,
    If you want change the value, you can use the command line (imagex) or one tools (Gimagex)
    https://www.autoitscript.com/site/autoit-tools/gimagex/

  • Use event handler programmatically

    Hello, I use the Labview 8.2.1 and I would like to ask something about event handler.
    I have some buttons and I use an event handler to perform their tasks. The buttons are used only with the mouse and not programmatically.
    Now, I want to use a button programmatically without pressing it. I didn't find how to do this, so I created a boolean variable and I added to the event handler of a button a second "Event Specifier" of that boolean variable with the event "value change".
    I assumed that it would work, but it does not, that is, the event handler is not used when the value of the boolean variable changes.
    How can I solve it?
    Thank you in advance.
    Solved!
    Go to Solution.

    Write to the Value(Sgnl) property node of the variable you want to change.  This will set off an event programatically.
    - tbob
    Inventor of the WORM Global

  • Sales order value flow to internal order without cost elements.

    Dear Sap Friends,
    My client have a requirement, when sales people creating a sales order, sales value flow into internal order without a cost elements. normal case when SO, Deleivery, and billing data automatically can flow into CO-PA. Here i want to know how value can flow into I.O. without a cost elements please give me advise.
    i created a  statistical internal order  and that internal order i assigned in sales order account assingment. but i know that there is no value going to flow this  I.O. becasue there is no cost elements.(becasue client dont want to create a cost element for internal order)
    There is any option when i crate a sales order  values can go into internal order without cost elements or i can create a statistical Internal Order and assigned into  CO-PA? if i can dothatt what is the steps. kindly explain to me. if some have can explain to me please leave contacts number or send me reply.
    Regards
    Paul

    By standard configuration itr is not possible.
    You ought to have user exit in place.
    For DC A & B, where you need a redetermination of pricing component, take help of an ABAPer for user exit USEREXIT_XKOMV_FUELLEN (module pool SAPLV61A, program RV61AFZB).
    So now, for DC C, you need to change the copying control in VTFL - item, where your pricing type ought to be D-Copy pricing elements unchanged.
    Regards
    JP
    ASSUMPTION: I assume that your all DC uses the same Sales Doc type & Billing Doc type

Maybe you are looking for