Change Event problem

Is there anything wrong with this code?
if(this.rawValue == 1 &&form1.Data.options.feesG.fees == 1)
form1.Page1Subform.Space.presence = "hidden";
else
form1.Page1Subform.Space.presence = "visible";
When I put it in the change event of a checkbox, I receive a Runtime error and LC shuts down.
Any help would be appreciated.
thanks.

The only thing is the second condition should have a rawvalue on it ....also ....I would wrap the different conditions in their own brackets like this:
If ((this.rawValue == 1) && (for,m1.Data.options.feesG.fees.rawValue == 1))
Neither of those should cause a crash ...if it continues post the form and I will have a look.
paul

Similar Messages

  • Problem Changing Event Banners

    I can no longer change event banner images after I've created an event. The first banner I upload when creating the event works, but it does not work if I try to change to a different banner image later. I either still see the original image or a blank space appears instead. I've tried with multiple file types and in different browsers, but the problem persists. Has anyone else experienced this problem? Is there a way to fix it?

    @Grlobi - We're having the same problem, but we just see a giant blank space where the large, small and speaker banners should be. It just happend today and we can't find any information on how to go about fixing it.
    Has anyone had this issue before and was able to resolve it?

  • How to tackle the dataflow problem when Value Change event always triggers after another GUI event

    We know that Value change event always triggers after another GUI event. Eg, the user modifies string control, the user clicks on a boolean control. Then event boolean clicked is triggered before event string control value change.
    Now suppose somehow the GUI event that must happen to subsequently trigger the Value change event can potentially affect the data that Value change event is supposed to work on. How can we tackle this problem ?
    For example, in a mockup application that the grand purpose is to have user entered values in a textbox logged to a file (no missing information is accepted, and there is a boolean to determine how the information is logged).
    There are 2 controls, boolean A when clicked (mouse down) will load random number in text box B. Text box B is designed with event structure VALUE change which saves whatever values user enters into text box B to a log file.
    There are 3 problems when instead of clicking anywhere on the front panel after modifying text box B, the user ends up clicking on boolean control A.
    1. Event mouse down on Boolean control A will execute first, modifying text box B content before the user entered values in B get saved.
    2. The value of boolean A can potentially affect how textbox B is loggged.
    3. The value of boolean A affects how the file is logged and this is indeterminate. Somehow when running this VI with no Highlighting, the textbox B Value change event executes -before- boolean A value is updated (F to T). When running this VI with Highlighting, the boolean A value is updated (F to T) (because we click on it) -before- textbox B value change event occurs. Why is it like this ?
    Now the situation I made up seems non-sense, but I believe it resembles one way or another a problem that you might run into. How would you solve this problem elegantly ?
     

    You can set the string control to "update while typing".
    Are you sure appending the log to itself is reasonable? Wouldn't it grow without bounds if the users keeps entering strings or pressing the ingore button?
    Why isn't the "constant" a diagram constant instead of a control. Is the user allowed to change it?
    To reset just write empty strings or a false to local variables of the controls (renit to defaults" seems a bit heavy handed).
    All you probably need is a single event case for "ignore:value change" and "String" value changed", no need for the local variable..
    Also add a stop button and an event for it.
    You don't need the timeout event.
     

  • How to populate data in the data table on combo box change event

    hi
    i am deepak .
    i am very new to JSF.
    my problem is i want to populate data in the datatable on the combo box change event.
    for example ---
    combo box has name of the city. when i will select a city
    the details of the city should populate in the datatable. and if i will select another city then the datatable should change accordingly..
    its urgent
    reply as soon as possible
    thanks in advance

    i am using Rational Application Developer to develop my application.
    i am using a combo box and i am assigning cityName from the SDO.
    and i am declaring a variable in the pageCode eg.
    private String cityName;
    public void setCityName(String cityName){
    this.cityName = cityName;
    public String getCityName(){
    return cityName;
    <h:selectOneMenu id="menu1" styleClass="selectOneMenu" value="#{pc_Test1.loginID}" valueChangeListener="#{pc_Test1.handleMenu1ValueChange}">
                        <f:selectItems
                             value="#{selectitems.pc_Test1.usercombo.LOGINID.LOGINID.toArray}" />
                   </h:selectOneMenu>
                   <hx:behavior event="onchange" target="menu1" behaviorAction="get"
                        targetAction="box1"></hx:behavior>
    and also i am declaring a requestParam type variable named city;
    and at the onChangeEvent i am writing the code
    public void handleMenu1ValueChange(ValueChangeEvent valueChangedEvent) {
    FacesContext context = FacesContext.getCurrentInstance();
    Map requestScope = ext.getApplication().createValueBinding("#{requestScope}").getValue(context);
    requestScope.put("login",(String)valueChangedEvent.getNewValue());
    and also i am creating another SDO which is used to populate data in datatable and in this SDO in the where clause i am using that requestParam .
    it is assigning value in the pageCode variable and in the requestParam but it is not populating the dataTable. i don't no why??
    it is possible that i may not clear at this point.
    please send me the way how my problem can be solved.
    thanks in advance

  • No Data Change event generated for a XControl in a Type Def.

    Hello,
    Maybe I am missing something but the Data Change event of a XControl is not called when the XControl is used in a Type Def. or Strictly Type Def. (see the attached file).
    There may be some logics behind it but it eludes me. Any idea of why or any idea of a workaround still keeping the Type Def. ?
    Best Regards.
    Julian
    Windows XP SP2 & Windows Vista 64 - LV 8.5 & LV 8.5.1
    Attachments:
    XControl No Data Change event.zip ‏45 KB

    Hi TWGomez,
    Thank you for addressing this issue. It must be a XControl because it carries many implemented functions/methods (though there is none in the provided example).
    Also consider that the provided non-working example is in fact a reduction of my actual problem (in a 1000-VI large application) to the smallest relevant elements. In fact I use a  typedef of a mix of a lot of different XControls and normal controls, some of them being typedef, strictly typedef or normal controls and other XControls of XControls (of XControls...) in a object oriented like approach...
    Hi Prashant,
    I use a typedef to propagate its modifications automatically everywhere it is used in the application (a lot of places). As you imply a XControl would do the same, though one would like to construct a simple typedef when no additional functionality is wanted.
    The remark "XControl=typedef+block diagram" is actually very neat (never thought of it that way) because it provides a workaround by transforming every typedef into a XControl. Thanks very much, I will explore this solution.
    One issue remains: All normal controls update their displayed value when inserted into a typedef but not XControls. Data change event is not triggered. I known that XControls have some limitations (no array of XControls) but I would say, like TWGomez, that this is a “bug” considering the expected functionality.

  • Double value change event if cursor is set busy (LV2009)

    Hello everybody,
    I just migrated from LV 8.0 to LV 2009 (on linux) and now got problems with a value change event. I want to send a command if a button is pressed and send another one if the button is released. After sending the command I need to wait for an acknowledge from the receiver and to avoid user interaction in between I lock the cursor with "set busy" VI until the acknowledge is received. To see, when the button is pressed or released, I use a value change event. Inside the event structure the cursor is set busy.
    This worked reliable in LV 8.0 but not any more in LV 2009. The button's mechanical action is set to "switch until released" and if I press the button and keep it pressed it is reset to false automatically. The value change event is fired twice instead of only once (see attached vi) and "new value" is one time true and one time false. This doesn't happen if the mechanical action is set to "switch when pressed".
    Does anybody have an explanation or a workaround for this behaviour? Am I doing something wrong or is this a bug in LV? For now I'll just keep the cursor unlocked.
    Thanks for your help.
    Attachments:
    setMouseBusy_01.vi ‏11 KB

    Hi ckis,
    attached you'll find your modified example, it should do the trick now.
    Regards,
    Bernd
    Attachments:
    setMouseBusy_01.vi ‏9 KB

  • Getting the rawValue of a Drop-Down list on the "change" event

    I am having problems getting the rawValue of a Drop-Down list on the "change" event. It seems that you have to select the same item twice in a row to get the rawValue to be the value of the selected item.
    ::dropdownlist onChange event::
    xfa.host.messageBox(this.rawValue);
    On the first time a value is selected you get 'null'. The second time the same value is selected, you get the selected value.
    Does anyone have any thoughts on why this is happening? Also, I CANNOT use xfa.event.newText, I need to use the rawValue of the dropdownlist.
    Thanks

    The change event occurs before the rawValue is changed. If you NEED to use the rawValue you'll need to use a later event. Perhaps you could use exit so that it gets triggered when the field loses focus?
    Chris
    Adobe Enterprise Developer Support

  • Possible bug - Missing click event when handling change event

    Using Flex 4.5 SDK, I have a spark ComboBox and a Button next to it for applying a filter according to ComboBox selection.
    I listen to both the ComboBox's change event & the Button's click event (for different functions).
    When I manually delete the ComboBox text value from its TextInput (i.e. changing selected index to -1) and immediately click on the Button,
    the click event-handler function is not being called and only the ComboBox's change event-handler function is executed.
    (Selecting a value from the ComboBox's list and clicking on the button triggers both methods on the right order.)
    There's also a state definition for the module, but it isn't being changed during these operations...
    Is this a bug or a correct behavior? Am I missing something here?
    Any workaround suggestions?
    (I thought of listening also to mouse-down or mouse-up on the button instead, but haven't tried it yet...)
    *** UPDATE ***
    When using the Button's mouseDown event the behavior is as expected, so there's a simple workaround.
    However, it seems to me like there's a bug with the Button's click event listener or something...
    *** UPDATE #2 ***
    I created a test application for that and couldn't reproduce the problem.
    Then I figured out the problem and solved it.
    It's a bit emmbarrasing, but I actually disabled the button (enabled=false) as in a child method of the change handling code...
    (If there is no value, don't allow applying the filter - It makes sense! )
    Anyway... No issue after all.
    However, I choose to leave this post (and not delete it) as an example of identifying and resolving a strange behavior in a complex application.

    There's no need.
    Please read the section UPDATE #2.

  • Labview event problem

    Hi guys
    I have a problem with the event case. I have a Button called "CON". This Button have to start two deferent Event Structurs by change his value, but not on the same time.
    Between the Event Structurs i have two Case structurs with other stuff. Wehn i first press the button, it will be make the stuff twice (like i press the button twice). I have no idea why.
    thanks for Help

    Because each event structure has its own event queue.  So when you press the button, all event structures that are registered for that value change event will have it queued up.  So your first event structure sees the event and runs that event case.  The second event structure can't run yet due to data flow, but it has the event queued up.  So when that second event structure is reached, it can run that event case.
    In general, your VI should only have 1 event structure.  This makes handling events A LOT simpler.  Look into the state machine.  That will help you handle your events properly and in a central location.
    There are only two ways to tell somebody thanks: Kudos and Marked Solutions
    Unofficial Forum Rules and Guidelines

  • No sourceSet nodes in the change event??!, help!

    I have Acrobat 9 pro and it comes with Lifecycle 8.2 ES
    I decided to try the data drop down with an address block for a simple database hello world form.
    I have read every web reference to this (on the surface) simple hello world style forms project.
    In the process I’ve learned formCalc, accessors, clone(1), Ref, the XML form model, sourceSet,
    binding, nodes, items, shortcut formCalc notation, form vars, defining OLEDB and OLEDB ODBC (tried both).
    I’ve coded the change event at least 30 different ways using both formCalc and javascript.
    I still can’t get this to work. I belive in RTFM but this has finally kicked my a** and I need some help.
    I know what the problem is, I don’t believe it. The sourceSet node in the change event has 0 nodes even though I have two data connections and I can access them in the initialize event. Did they remove access to the sourceSet in the change event completly in Acrobat 9 and just didn’t tell anyone?
    My database is SQL server with two tables.
    A customer table with Name and CustomerID
    An Address Table with CustomerId and address information
    I set up the data drop down to display the Name and then in the change callback I tried to get the CustomerId
    and query for the data in the second table. I’ve bound the address block data to fields in the second table and set the second table to delayed open.
    I’ve tried this with every possible way of coding an accessor. When coded directly (using the intellsence thing) I get unknown accessor for the error. When using the index method and searching for it with a while, I get index out of range with an index value of 0.
    Here is a formCalc version of the change callback:
    ========================
    $host.messageBox(“In Change”)
    var sName = xfa.event.newText
    var sCustomerId = $.boundItem(sName)
    var oDataConn = Ref($sourceSet.DataConnectionCRM.clone(1))
    $host.messageBox(sCustomerId )
    oDataConn.#command.query.commandType=”text”
    oDataConn.#command.query.select = Concat(“SELECT [Name], Customer.[CustomerId], [AddressLine1], [AddressLine2], City, State, Zip FROM [DSD_JDEPROD].[dbo].[Customer] join [DSD_JDEPROD].[dbo].[Address] on PrimaryAddressId = Address.AddressId where Customer.CustomerId = ‘”, sCustomerId ,”‘;”)
    oDataConn.open()
    ========================
    This version of the code has the unknown accessor error at this line:
    var oDataConn = Ref($sourceSet.DataConnectionCRM.clone(1))
    I’ve coded this line many different ways using xfa notation, $sourceSet notation, resolveNode notation, but in the end it doesn’t matter
    because this message box:
    $host.messageBox(Concat(“sourceSet=”,xfa.sourceSet.nodes.items.length))
    returns a 0 count in the change event.
    I’ve check the XML and I have sourceSet in there and as I’ve said, the intellisense thing works and
    the initialize callback works. The dropdown is correctly populated.
    Note: I do realize I’m going to have to do something different in order to get the customerId as this:
    var sCustomerId = $.boundItem(sName)
    doesn’t work due to the way the initialize event populates the drop down. I’m sure I can fix that.
    I just can’t get past the problem of no sourceSet nodes in the change event.
    Thanks for your help!

    I have done the samething and here is the code that I used .....are you by chance using Reader to run this form?
    Paul
    //get the input from the DDlist
    var inName = xfa.event.newText;
    if (inName == ""){
    app.alert("You must enter a valid name - try again!")
    var nIndex = 0;
    while(xfa.sourceSet.nodes.item(nIndex).name != "DataConnection2")
    nIndex++;
    var oDB = xfa.sourceSet.nodes.item(nIndex).clone(1); // the node pertaining to the data connection specified
    //app.alert(oDB.saveXML("pretty"));
    //set up sql call to DB to get specifics about employee
    oDB.nodes.item(1).query.setAttribute("text", "commandType");
    oDB.nodes.item(1).query.select.nodes.item(0).value = "Select * from table1 where AcctNumber = '" + inName + "'";
    //app.alert(oDB.nodes.item(1).saveXML("pretty"));
    //now connect to DB and get a record
    oDB.open()
    //close the connection when finshed
    oDB.close();

  • Workflow Change Event Issue

    Hello Experts,
    We have a workflow wherein 2 levels of approvals are needed. One level of approval is handled thru workflow mails/BSP.
    After first level approval, using some logic I will find a value like 6 or 5. Which will be updated as trip status.
    After that there is a Z program which will be used by admin to select the trips which has status 6 or 5. And then does the final approval.
    In short
    1.     Manager approval. If approved step 2. Else exit.
    2.     Set trip status as 6 or 5 (decide using a logic and then set the status)
    3.     Wait for Admin app/rejection
    4.     Final approval in z program..
    5.             Control comes back to workflow(thru wait events), does some  logic and sends a mail and stop
    The problem I am facing here is step 2 triggers a change event (after status set) and ends the workflow .. (as the workflow is designed to end as soon as change event is triggered)
    Very few times it works fine and waits in 3rd step ..
    Please let me know how to handle this.
    Thanks
    Meenakshi

    Hi,
    Are you using wait for event step in your workflow that waits for the changed event. I guess this is happening because as soon as the first approver is done the trip status changes and change event is triggered. Try to use some logic over there and avoid triggering of this event if only the trip status is changed.
    Hope it helps.
    Regards,
    Raj

  • InputField fire event problem in webDynpro

    I have one validation or Fire Event problem with respect to Inputfield in web Dynpro.
    I have one Input filed and created the context varible for that, then i mapped the context varible to the InputField, and i changed the context varible type as date.So , when i run the view , it will show the calender near to the text box to select the perticular date. On select of the perticular date. It will populate selected  date in to the inputField.
    On selection of the perticular date. Based on the date i want to generate the next 12 months date at runtime in different text boxes. But the only event available for the InputField is only "onEnter". This is not useful in my case, bcz on selection of the Date , the user may not use the Enter key. so , how can use the other events like onSelection or onChange events in the InputFields to reach my needs.
    Any one  give me the idea to solve this problem.
    Vijay

    Hello Vishal,
    You may also refer the sample code in the below link
    <a href="http://sdn.sap.comhttp://www.sdn.sap.comhttp://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/0c0dcacd-0401-0010-b4bd-a05a0b4d68c8">http://sdn.sap.comhttp://www.sdn.sap.comhttp://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/0c0dcacd-0401-0010-b4bd-a05a0b4d68c8</a>
    Regards,
    Sudeep.

  • Data change Event for Information Broadcasting

    Hello Forum
    This is regarding problem with "Data change Event for Information Broadcasting".
    We have integrated the evening in a separate chain which is scheduled after the transaction data load.
    In the settings for the event we have mentioned the infoprovider name based on which the reports are to be distributed.
    Now, when the process chain is executed it does not distributes any reports though the data is changed in the infoprovider.
    However when executed again its distributing it,any ideas what the problem is ?
    Regards
    Ashish

    Hi,
    Check out the t.code  RSRD_LOG.
    have a check at the below link for monitoring via email
    http://help.sap.com/saphelp_nw04/helpdata/en/44/5b2341144ba52fe10000000a155106/frameset.htm

  • Dynamic Change event getting error with cascading LOV's

    Hi all,
    In my application (v4.0.0), I have two sets of cascading drop-down select lists, these each make up a date (year, month, day) plus a time value (not cascading).
    I also have a dynamic action that gets the hours difference between the two dates set above. This fires on the change event.
    When I change, say the month drop-down, the day list is refreshed. But before it is refreshed, it looks to be emptied and the change event fires. I then get an error from the dynamic action because the day value passed to the query is empty (confirmed when looking at POST data).
    Can anyone think of a workaround idea for this? e.g. a way to set the dynamic action to conditional?
    Thanks!

    Hi Peter
    Thanks for the tip, I have tried this and it has helped, although not solved the problem. I was originally getting two errors appear ("AJAX call returned server error ORA-01843: not a valid month for Set Value.") and this has removed one of them...
    When looking in Firebug, it seems to me that although the dynamic actions (cascading update + set value) are running one before the other, the values aren't updated in order. e.g. the cascading update is not applied before the set value action is run.
    Could this be a bug with dynamic actions?

  • [svn:osmf:] 14474: Adding a 'dispatchInitialChangeEvent' parameter to the ' watch' method in order to allow the initial change event from being dispatched, continued.

    Revision: 14474
    Revision: 14474
    Author:   [email protected]
    Date:     2010-02-28 23:53:31 -0800 (Sun, 28 Feb 2010)
    Log Message:
    Adding a 'dispatchInitialChangeEvent' parameter to the 'watch' method in order to allow the initial change event from being dispatched, continued.
    Modified Paths:
        osmf/trunk/framework/OSMF/org/osmf/metadata/MetadataWatcher.as

    *Feedback*
    "Use the form below to send us your comments. We read all feedback carefully, but please note that we cannot respond to the comments you submit."
    http://www.apple.com/feedback/ipad.html
    We can complain about Apple's business decisions, but these discussions are user to user talk about possible solutions.
    Here are the places to report bugs:
    Get an account at
    http://developer.apple.com/  then submit a bug report to http://bugreporter.apple.com/
    Once on the bugreporter page,
       -- click on New icon
       -- See if you need to attach a log file or log files, clicking on Show instructions for gathering logs.  Scroll down to find the area or application that matches the problem.
       -- etc.

Maybe you are looking for

  • Automatic PO form goods receipt without reference Movement type 501

    Hi, My client receive sample material from the vendor that is without reference to PO, but upon approval of sample the vendor has to make the payment for which i do not have the reference document number. To arive at the solution i wanted to generate

  • Mixer not connecting correctly Firewire 800

    Hello, I was hoping someone could help me out. I have a Phonic Helix 18 MK II Firewire mixer connected to my mac mini osx 10.6 via 9 pin to 6 pin firewire cable. First off the mixer is not defective as it works perfectly on my PC Vista (Via 4 pin to

  • PLD amount as per Indian Localization (High Priority)

    Dear All, I am Using SAP B One 2007B SP00 PL 07 Problem is as follows: For example if the amount is 144400.44 INR. This amount is displayed as follows in PLD IN Figure: 144,400.44 In words: one hundred and fourteen thousand four hundred and forty fou

  • Assign plant to company code

    Hello, I am trying to assign plants to a company code and i get the message: "Company code and rating code must be the same.  Message no. CZ290" I have set valuation level at company code.

  • Idoc generation

    HI All, If I enter the necessary data in tcode ME21 for purchase order and click on save button, corresponding idoc is to be generated. This is my requirement. For this, I worked out and came to know that I have to configure the following steps: RFC