Unable to reset the variable value in the method value change event and use

Hi ,
int i=4;
public changevalue(ValueChangeEvent ValueChangeEvent)
//some code
i=5;
system.out.println("in changevalue method="+i)// this prints i value as 5
public void submit(ActionEvnet actionEvent){
//somecode
system.out.println("in submit="+i) // this prints value 4;though its value is changed as 5 in above mehtod
how can i get the value as i=5 in second method(i.e, in submit method)??

Hi 980230,
When I tried the same thing it gives me 5 in the submit method.
Are you sure that ValueChange method is getting invoked before the actionEvent method?
Its better to debug the application, you will get the exact flow and error if any....
Thanks
--NavinK                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               

Similar Messages

  • How to link the variable entry with the planning function execution

    Hi All,
    I am new to IP , we have a requirement where the user enters the value 2008 for a variable year. Then we are supposed to copy the same combinations for the next four years against which the user will be able to input the key figure values. But i have only 2008 data in the cube, so i need to generate new records for the same characteristic combinations as present for 2008 for the next four years. I am planning to use a copy function for this but how can i trigger this planning function once the user enters the value for the year variable. I want the planning function to get executed once the user clicks OK after the variable entry. Request your valuable inputs on the same.

    Hi Tilak,
    for this u have an option of executing the planning sequence when the web template loads ie. after the variable screen.
    open the WAD.
    go to the properties of Web Template web item. Under the section standard action of the webtemplate, we have a n option to include planning functions under action before rendering.
    If u include your planning sequence in this this will get executed every time the layout loads.
    guess this is usefull to u.
    Regards.
    Shafi.

  • Hi , I have an iPhone 5S and I have got a problem with the app store : iI can't update my apps  , it is asking me to change frim the UK store to go to the french one , but i have already changed it and I am in the French one !! Help ! :(

    Hi , I have an iPhone 5S and I have got a problem with the app store : iI can't update my apps  , it is asking me to change frim the UK store to go to the french one , but i have already changed it and I am in the French one !! Help !

    Have you tried signing out of your iTunes & App Store on your device and then back in again - Settings>iTunes & App Store, click on Apple ID, then on Sign Out. Then sign in again and see if it accepts the password.
    If that doesn't resolve the issue,  try resetting your device (nothing will be lost): Hold down the Home and Power buttons at the same time and continue to hold them down until the Apple appears (up to 30 seconds). Once the reset is complete, the Slide to Unlock screen will display. See if the problem is resolved.
    Cheers,
    GB

  • TS1398 I can no longer sign in to my home fi (bt hub) with my iphone 4. Yet I can get on wireless with my laptop so the hub is working. The only thing Ive done different recently is download and use an app called Onavo mobile ltd which Ive now deleted, he

    I can no longer sign in to my home fi (bt hub) with my iphone 4. Yet I can get on wireless with my laptop so the hub is working. The only thing Ive done different recently is download and use an app called Onavo mobile ltd which Ive now deleted, help pls?

    Read another post in the forum about this and it appears this app also installs a profile with a proxy service that you will have to try and delete as well. Check that out.

  • Declare the internal table with only one 10 character  field and use

    Hi,
    I want to declare the internal table with only one 10 character  field and use.
    Jaya

    Hi,
    Go ahead. U can declare IT with only one field
    Example:
    data: begin of zcustlist occurs 1000,
                   custmer(10)  type c,
             end of zcustlist.
    Narendra Reddy.
    Edited by: Narendra Reddy C on Aug 8, 2008 11:39 AM

  • It is very difficult to navigate on facebook via safari. The IPAD does not allow other browsers to download and use it almost prevents the facebook app and the lack of scrolling the page.

    It is very difficult to navigate on facebook via safari. The IPAD does not allow other browsers to download and use it almost prevents the facebook app and the lack of scrolling the page.

    I also have problems with Facebook on my iPad 2. I don't do a lot with Facebook and generally only post on my feed page. Sometimes hitting return on the keyboard enters the comment, sometimes not. Sometimes the comment will show on my iPad but if I revisit that page I find that the comment has disappeared. So I'd say that Facebook and my iPad are not totally compatible with each other.
    I looked into Friendly and was about to purchase this free ap. But before I did I went to the Friendly web page for more info. There I found a page with users comments. One after another users complained about bugs with Friendly. The developers claimed a fix was coming but the user comments complained about the lack of response and support. One of the fixes suggested by the developers was to log out of Friendly then log back in. One user complained that doing this three times in ten minutes was not very helpful. Because of this I decided to avoid Friendly.
    I did find a Facebook developed ap but it was for the iPhone. I presume that iPhone aps will work on the iPad but I'll wait until Facebook releases an iPad compatible ap. If there is an ap developed by Facebook for the iPad that I missed please let me know.

  • I change ISP and use ms explorer to set on to new ISP. Internet options has the new ISP address but Firefox does not pick it up and is still using the old ISP. Can find no way to set firefox to new ISP. How do i do it?

    I changed ISP and used ms explorer to set up on to new ISP. Internet options has the new ISP address but Firefox does not pick it up and is still using the old ISP address. Can find no way to set firefox to new ISP address. How do I do it? edit

    -> Tap ALT key or press F10 to show the Menu Bar
    -> go to Tools Menu -> Options -> Advanced -> Network -> Connection section -> click '''Settings...''' button -> change these settings in accordance with Internet Options settings that work on MS Internet Explorer -> click OK
    Check and tell if its working.

  • How to verify that the variable "does not contain" a value?

    Hi
    I am using CP 7.0.1.237.
    We want to use Text Area widget for a custom quiz and verify an answer. While we figured out how to verify the existence of certain keywords, we are not able to figure out how to verify that the content should NOT contain certain keywords. For example, we want to ensure that the text entered in this widget should not contain "Transformation" and "Non-compliant".
    Is this possible at all?
    Thanks
    Sreekanth

    Here's what the solution might look like in JavaScript.  This would be for SWF output and aimed at Cp 7.  For Cp 8, this would still work for SWF output, but you'd probably want to take advantage of the new unified JS API that gets and sets Cp variables for both SWF and HTML5 output.  You can read more about that here:  Common JS interface
    //Get the text area value from Captivate (SWF output Only)
    var cpTextAreaValue = document.Captivate.cpEIGetValue('m_VarHandle.v_TextArea);
    //convert the value to lower case to properly compare
    cpTextAreaValue = cpTextAreaValue.toLowerCase();
    //Check if text area value contains the words "transformation" or "non-compliant"
    if(cpTextAreaValue.indexof('organizational') > -1 && cpTextAreaValue.indexof('behavioral ') > -1 && cpTextAreaValue.indexof('managerial') > -1 && cpTextAreaValue.indexof('transformation') < 0 && cpTextAreaValue.indexof('non-compliant') < 0){
      //the text area has the correct answer so increment varScore
      //get the current score from Captivate
      var score = document.Captivate.cpEIGetValue('m_VarHandle.varScore');
      //increment score by 1
      score++;
      //set score in Captivate
      document.Captivate.cpEISetValue('m_VarHandle.varScore', score);
    } else {
      //the text area does not have the correct answer so show message to user inside of Captivate
      document.Captivate.cpEISetValue('m_VarHandle.v_message', 'Answer is not correct');
    This JS has not been tested.  Note that the "does not contain" operator is done using the "indexof" operator in JS. 
    Jim Leichliter

  • What is the "variable" field in the timer.swf widget for?

    I have captivate 7, and would like to know what the variable field is for in the timer widget and how to use it...
    Thank you!

    Hi Lilybiri,
    I am playing with $$cpInfoElapsedTimeMS$$....
    I have an action attached to a button in my project that assigns my variable $$TimeSoFar$$ with $$cpInfoElapsedTimeMS$$.  That is all this action does.  I also have a text caption that includes $$TimeSoFar$$ on the same slide.  When I enter the slide  $$TimeSoFar$$ in the text caption is 0, as that is the original value I set to the variable.  This makes sense. When I trigger the for the first time with the button, I receive a negative number in my text caption as the value for $$TimeSoFar$$.  When I trigger that action a second time, it seems to be correct ans is the correct value of $$TimeSoFar$$ . It is also correct everytime after that.
    Any idea why this is happening?
    Thank you !
    Ryan

  • How can i read all the lines from a text file in specific places and use the data ?

    string[] lines = File.ReadAllLines(@"c:\wmiclasses\wmiclasses1.txt");
    for (int i = 0; i < lines.Length; i++)
    if (lines[i].StartsWith("ComboBox"))
    And this is how the text file content look like:
    ComboBox Name cmbxOption
    Classes Win32_1394Controller
    Classes Win32_1394ControllerDevice
    ComboBox Name cmbxStorage
    Classes Win32_LogicalFileSecuritySetting
    Classes Win32_TapeDrive
    What i need to do is some things:
    1. Each time the line start with ComboBox then to get only the ComboBox name from the line for example cmbxOption.
       Since i have already this ComboBoxes in my form1 designer i need to identify where the cmbxOption start and end and when the next ComboBox start cmbxStorage.
    2. To get all the lines of the current ComboBox for example this lines belong to cmbxOption:
    Classes Win32_1394Controller
    Classes Win32_1394ControllerDevice
    3. To create from each line a Key and Value for example from the line:
    Classes Win32_1394Controller
    Then the key will be Win32_1394Controller and the value will be only 1394Controller
    Then the second line key Win32_1394ControllerDevice and value only 1394ControllerDevice
    4. To add to the correct belonging ComboBox only the value 1394Controller.
    5. To make that when i select in the ComboBox for example in cmbxOption the item 1394Controller it will act like i selected Win32_1394Controller.
    For example in this event:
    private void cmbxOption_SelectedIndexChanged(object sender, EventArgs e)
    InsertInfo(cmbxOption.SelectedItem.ToString(), ref lstDisplayHardware, chkHardware.Checked);
    In need that the SelectedItem will be Win32_1394Controller but the user will see in the cmbxOption only 1394Controller without the Win32_
    This is the start of the method InsertInfo
    private void InsertInfo(string Key, ref ListView lst, bool DontInsertNull)
    That's why i need that the Key will be Win32_1394Controller but i want that the user will see in the ComboBox only 1394Controller without the Win32_

    Hello,
    Here is a running start on getting specific lines in the case lines starting with ComboBox. I took your data and placed it into a text file named TextFile1.txt in the bin\debug folder. Code below was done in
    a console app.
    using System;
    using System.IO;
    using System.Linq;
    namespace ConsoleApplication1
    internal class Program
    private static void Main(string[] args)
    var result =
    from T in File.ReadAllLines(Path.Combine(AppDomain.CurrentDomain.BaseDirectory, "TextFile1.txt"))
    .Select((line, index) => new { Line = line, Index = index })
    .Where((s) => s.Line.StartsWith("ComboBox"))
    select T
    ).ToList();
    if (result.Count > 0)
    foreach (var item in result)
    Console.WriteLine("Line: {0} Data: {1}", item.Index, item.Line);
    Console.ReadLine();
    Please remember to mark the replies as answers if they help and unmark them if they provide no help, this will help others who are looking for solutions to the same or similar problem. Contact via my webpage under my profile but do not reply to forum questions.

  • I installed the add-on "customizable shortcuts" - how do I find and use it?

    It is listed under my add ons, but I have no idea how to actually use it. It doesn't open up as a feature. I just need to stop the alt key from stopping my typing every time I accidentally hit it.

    You dont need an addon to disable it, see
    In order to change your Firefox Configuration please do the following steps :
    # In the [[Location bar autocomplete|Location bar]], type '''about:config''' and press '''Enter'''. The about:config "''This might void your warranty!''" warning page may appear.
    # Click '''I'll be careful, I promise!''' to continue to the about:config page.
    # look for '''ui.key.menuAccessKey''' and change its value to '''0''', look also to '''ui.key.menuAccessKeyFocuses''' change its value to '''false'''
    Also:
    *[http://kb.mozillazine.org/About:config]

  • HT1848 I cant sync my ipad with a new imac. It only syncs the purchased music. How do I change this and change the ipad and iphone to this new computer. my devices still show my old PC. Please help

    Im trying to sync my new imac with my ipads and iphones, I have alot of music on my devices and when I plug them in to the new imac i get a message that states this devise is paired to another computer (my opd PC ) When I logged into Itunes it uploaded my music the I had purchased in the past , But for the music that was burned from CDs it doesn't.   I dont want to lose my music. what can I do?
    Also, How do I change the computer that my devices are linked too. My old PS is broken and I will not be syncing my devices with it any longer.

    how to use iTunes to sync is in the
    http://www.apple.com/support/itunes
    For MacBook Pro community and OS X
    MacBook Pro
    https://discussions.apple.com/community/notebooks/macbook_pro 
    https://discussions.apple.com/community/mac_os?view=discussions
    http://www.apple.com/support/macbookpro
    While it isn't as easy to just use a Mac iDevice as media storage as Android and Windows, you can add documents and such like Word, PDF and others manually in iTunes to have them sync as well.
    http://support.apple.com/kb/HT1386
    http://support.apple.com/kb/HT1351
    They are all there searchable from Bing, Google or every Mac product has a support page.
    http://www.apple.com/support/

  • Yahoo displays in line form other than the standard Yahoo screen, How do I change this and why does it keep changing on its own?

    I have Yahoo as my default search engine. When I enter through FireFox the display comes up as a line display instead of the standard Yahoo Screan with photos etc. I need to know what is causing this to happen and how to change it back? when Yahoo is accessed through other browsers this is not a problem. Any suggestions?

    Clear the cache and the cookies from sites that cause problems.
    "Clear the Cache":
    *Tools > Options > Advanced > Network > Cached Web Content: "Clear Now"
    "Remove Cookies" from sites causing problems:
    *Tools > Options > Privacy > Cookies: "Show Cookies"
    Start Firefox in <u>[[Safe Mode|Safe Mode]]</u> to check if one of the extensions or if hardware acceleration is causing the problem (switch to the DEFAULT theme: Firefox/Tools > Add-ons > Appearance/Themes).
    *Don't make any changes on the Safe mode start window.
    *https://support.mozilla.org/kb/Safe+Mode
    *https://support.mozilla.org/kb/Troubleshooting+extensions+and+themes

  • I filled in a PDF form. When finished, I could not find how to save the completed form. So I took a chance and used the phone's back button. A message popped up saying the form was saved and to go to the cloud to view it. What cloud?

    I tried all I could think of but found nothing. In addition, I checked the phone's memory and found the file with a created date/time only about 15 minutes old. When I opened it, I was at first relieved. The portion showing on the screen was filled in. Then I looked at the other 3 and ¾ pages. All fill spaces are empty! What's up with that? And where do I find the finished form in that illusive cloud?

    Form document will automatically be saved after closing the file. As far as cloud message is concerned, it seems your Mobile link setting has been turned on. When you pressed device back button after filling the form, it was saved to your Acrobat.com account. You can access this document by going to Acrobat.com tab present in left pane. Its a cloud storage area where you can upload/save any document.
    Thanks,
    Adobe Reader Team

  • TS4036 My contact changes on one device are not automatically updating to my others. I have the iPhone 4, MacBook Pro & the latest iPad.  All are running on iOS6 and use Safari. What am I missing?

    Contacts are not syncing on my MacBookPro, iPhone4 &amp; my iPad.

    On iOS devices, go to Settings>icloud, be sure each is connected to the proper icloud account and that the Contacts on/off switch is turned ON.  Check a similar things on the mac (system preferences).
    Also, contacts are listed as being either in the "iCloud" group or the "On My Mac" (or iPad, iPhone).  Anything in the "On My Mac" (or whatever device it is) does not sync via icloud, only contacts in "iCloud" sync.

Maybe you are looking for