Form value is not updating

Hi all,
I use netbean 5.5 (visual midlet) to develop my J2ME application.
Very headache with my form's value that is not updating whenever i reopen the same form.
Lets say I have FormA, FormB.
First, I go to FormA. I enter my name "John" to save in rms.
Then I go to FormB. FormB will display "John" and allow me to edit.
So now I edit the name to "Muthu".
But when I go back to formA, the name still display "John".
While I check the Output from Netbeans when emulator is running, I found that the application does not load to FormA when I go to FormA again. I wonder it is because FormA has been loaded in the memory, when I try to reload the FormA again, I actually read from memory. (correct me if wrong)
I think the main reason to cause this is that netbean will generate (if xxx == null) everytime create a new function (screens/ commands / etc)
example :
public List get_list1(){
if (list1 == null)
bla bla ...
I've stupidlly to add the following line before the if condition to make it reload again and retrieve new data.
list1 = null;
I think there should have some way that allow me to unload FormA when I go to FormB, then reload again when I go to FormA...
Any ideas?

so what's the problem
keep the values in a global static variable
and after each write to rms update it and during navigation call a method
to update values from this global variable wherever you want
for list there are function to set values

Similar Messages

  • Form values are not submitting to ActionForm class

    Hi All,
    I have a problem with <html:form> tag. When i am submitting the form using the submit button it is going to the Struts-config.xml file and getting the action mapping for the HazSummary.do. It is getting the HazardSummaryAction class and getting the input from HazardSummary Form class. If result is sucees it is going to the next jsp page.
    All above things are happening properly. But the form values are not getting in to the HazardSummaryForm.jav.
    Here in this case Action class is HazardSummaryAction.java, Action Form class is HazardSummaryForm.java and jsp page is Hazard.jsp.
    Here is the code for Hazard.jsp
    <html:form action="/HazSummary.do">
    <table width="100%" border="0" style="border-collapse: collapse" bordercolor="#111111" cellpadding="0" cellspacing="0">
         <tr colspan="4"><td>
         <%String jd="jmd";
         String st="closed";%>
         <input type="text" name="wkploc" value=<%=jd%>>
         <input type="text" name="hastat" value=<%=st%>>
    <html:submit property="action">
    <bean:message key="haz.save.label"/>
    </html:submit>
         </td></tr>
    </table>
    </html:form></body>
    Here is the code for HazardSummaryAction.java
    package com.prospecta.WSOProject.action;
    import java.io.IOException;
    import javax.servlet.ServletException;
    import javax.servlet.http.HttpServletRequest;
    import javax.servlet.http.HttpServletResponse;
    import javax.servlet.http.HttpSession;
    import org.apache.struts.action.Action;
    import org.apache.struts.action.ActionForm;
    import org.apache.struts.action.ActionForward;
    import org.apache.struts.action.ActionMapping;
    public class HazSummaryAction extends Action{
         public String hazstatus;
         public String workplace;
         public String prin1;
         public ActionForward execute(ActionMapping mapping, ActionForm form, HttpServletRequest request, HttpServletResponse response) throws IOException, ServletException
              HazardSummaryForm hsf = new HazardSummaryForm();
              HttpSession session = request.getSession(true);
         try{
         hazstatus=hsf.gethastat();
         System.out.println(hazstatus);
         workplace=hsf.getwkploc();
         System.out.println(workplace);
         session.setAttribute("stat",hazstatus);
         session.setAttribute("loc",workplace);
         return mapping.findForward("success");
         catch(NullPointerException nex){
              return mapping.findForward("failure");
              }catch(Exception e)
         e.printStackTrace();
         return mapping.findForward("failure");
    Here is the code for HazardSummaryForm.java
    package com.prospecta.WSOProject.action;
    import org.apache.struts.action.ActionForm;
    public class HazardSummaryForm extends ActionForm {
         public String wkploc;
         public String hastat;
         public void setwkploc(String wkploc)
              this.wkploc=wkploc;
         public String getwkploc()
              return this.wkploc;
         public void sethastat(String hastat)
              this.hastat=hastat;
         public String gethastat()
              return this.hastat;
    Here is the code for Struts-config.xml file
    <?xml version = '1.0' encoding = 'windows-1252'?>
    <!DOCTYPE struts-config PUBLIC "-//Apache Software Foundation//DTD Struts Configuration 1.1//EN" "http://jakarta.apache.org/struts/dtds/struts-config_1_1.dtd">
    <struts-config>
         <form-beans>
    <form-bean name="HazSumForm"     type="com.prospecta.WSOProject.action.HazardSummaryForm">
                   <form-property name="wkploc" type="java.lang.String"/>
                   <form-property name="hastat" type="java.lang.String"/>
         </form-bean>     
         </form-beans>
    <action-mappings>
    <action path="/HazSummary" input="/HazSumForm" name="HazSumForm" scope="request" validate="false" type="com.prospecta.WSOProject.action.HazSummaryAction">
                   <forward name="success" path="/HazardSummary.jsp"/>
                   <forward name="failure" path="/Hazard.jsp"/>
              </action>                                         
         </action-mappings>
         <controller processorClass="fr.improve.struts.taglib.layout.workflow.LayoutRequestProcessor" locale="true"/>
         <message-resources parameter="com.prospecta.WSOProject.ApplicationResources"/>
         <plug-in className="org.apache.struts.tiles.TilesPlugin">
              <set-property property="definitions-config" value="/WEB-INF/tileDefinitions.xml"/>
         <set-property property="moduleAware" value="true"/>
         <set-property property="definitions-parser-validate" value="false"/>
         </plug-in>
         <plug-in className="org.apache.struts.validator.ValidatorPlugIn">
         <set-property property="pathnames" value="/WEB-INF/validator/validator-rules.xml,/WEB-INF/validator/validations.xml"/>
         </plug-in>
    </struts-config>
    i followed the same process for previous pages which they are working. But in this case it was not working properly.
    Please resolve this problem ....................

    Hi Sreelatha,
    When you develop any interactive form please keep in mind the below things which you need to check:
    1. The layout type of the form should be ZCI. Select it from the form properties tab in SFP t-code.
    2. In web dynpro application (in case you are using for the form), the form type should be selected as native.
    3. In the form layout insert web dynpro script using menu->utilities->insert web dynpro script.
    4. After that come out of the form and run the report FP_ZCI_UPDATE giving your form name, also select the update check box in the report.
    Once these things are done your form should work fine.
    Regards,
    Vaibhav

  • Open value is not updating in credit workbench

    Hi
    we are using crm 7 ehp2 system currently facing issue in our credit scenario which is integrated with ERP credit configuration.
    Open value is not updating in Credit Analyst Workbench(CRM_CAWB) and the same is not updating in erp t-code FD32   field sales value.
    I have tried to run the initial load CMDOC_NOTIFY to update opened order value but its showing below error.
    The following Errors/Warnings occured. Do you want to continue?
        Message no. SMOF164
    The data replication requires the processing of single BDoc instances
       Message no. SMOF197
    Pl advise how we can resolve this issue.
    thanks Warm Regards
    Manoj

    Hi
    we have resolved this issue. please follow below solution hope it will help you
    SPRO - Customer Relationship Management - Basic Functions - Credit Management - General Settings - Maintain Credit Group
    Mark flag in the credit update field for the relevant credit group.
    Best Regards
    Manoj

  • Excise values are not updating in factory sales

    Dear SCN's,
    I'm facing an issue while doing factory sales, while creating sales order and billing I'm using J1IIN for excise invoice and then updating in J1I5 transaction but the values are not updating in table J_2IRG1BAL. Can anyone suggest what to do in order to get the values updated in table.
    Thanks & Regards,
    Kumar

    The following note explains how you need to update J_2IRG1BAL table.
    Note 951955 - CIN: General clarifications for RG1 goods
    Have a look at this.
    G. Lakshmipathi

  • Asset acquisition value is not updating in Asset history sheet & AW01N

    Hi,
    The issue is the asset acquisition values are not updated in AW01N & Asset history sheet report for particular asset acquisition transaction only.
    it`s showing in asset history sheet but its nt added in the current APC value in the asset history report & also its showing in AW01N transaction but in acquisition change column its not updating.
    I have also checked the below link but still i am persisting the same problem.
    Asset acquisition value not updating
    Regards
    Amit

    Hi Amit,
    check note  366848.
    Implement reports RACORR110_B and the report RACORR55 from the note 366848 in your system.                                                                               
    At first run the report RACORR110_B. Check the  field ANLC-ANSWL bevor and after running the report.                   
    The report RACORR110_B accumulates the values of the asset line items  and writes the result in the field ANLC-ANSWL.                                                                               
    After this, please start the report RACORR55. This report forwards the  values in the following year.
    (If this is not the reason (ANLC is correct), the report makes nothing.) 
    Regards Bernhard

  • Condition Value is not updated

    Hi All,
    I am using bill of services, so i have a sales order and as a subsequent document a service entry sheet, my invoice is created with reference to the service entry sheet.
    In my price procedure i have a percentage guarantee condition.
    In the sales order i insert a percentage for the condition, afterwards i create a service entry sheet with reference to the sales order and all the conditions values are copied correctly, till here everything ok.
    In the SES i change the guarantee condition value and then i create the invoice, but the guarantee condition value is not updated and takes the value i inserted before in the sales order.
    I already tried to change the condition copy control but no sucess.
    Anyone can help me with this issue??
    Thank you.
    Best Regards,
    Tiago Ferreira

    Hi Madhu,
    Here is my code:
        SALES_CONDITIONS_IN-ITM_NUMBER = I_UPLOAD-ITMNUMBER.
        SALES_CONDITIONS_IN-COND_TYPE = I_UPLOAD-COND_TYPE.
        SALES_CONDITIONS_IN-COND_VALUE = I_UPLOAD-COND_VALUE / 10.
        APPEND SALES_CONDITIONS_IN.
        CLEAR SALES_CONDITIONS_IN.
        SALES_CONDITIONS_INX-ITM_NUMBER = I_UPLOAD-ITMNUMBER.
        SALES_CONDITIONS_INX-COND_TYPE = I_UPLOAD-COND_TYPE.
        SALES_CONDITIONS_INX-UPDATEFLAG = 'U'.
        SALES_CONDITIONS_INX-COND_VALUE = 'X'.
        APPEND SALES_CONDITIONS_INX.
        CLEAR SALES_CONDITIONS_INX.
    I am just creating a CMR with reference to billing document. Its creating condition recod 'ZAP0' correctly, which i am passing manally. But, its not  populating condition value to levy condition it should determine automatically.
    Please suggest.
    Regards,
    Srikanth.

  • Custom propertie's values are not updated for workflow metadata

    Hi,
    I've a requirement where I need to add and update some properties. to /etc/workflow/instance/<Instancename>/data/metadata node.
    I've two workflow Process steps,
    Process step 1:
        Adds some properties to metadata.
    Process step 2:
        Updates the propertie's values which are added in Process step 1.
    But the issue is update is not working when the node is /etc/workflow/instance/<Instancename>/data/metadata.
    i.e. In the step 1, Properties are added to metadata node but In the step 2 propertie's values are not updated to the same node.
    Here is my process code:
    =================================================
    import java.util.Locale;
    import java.util.StringTokenizer;
    import javax.jcr.Node;
    import javax.jcr.Session;
    import org.apache.felix.scr.annotations.Component;
    import org.apache.felix.scr.annotations.Properties;
    import org.apache.felix.scr.annotations.Property;
    import org.apache.felix.scr.annotations.Reference;
    import org.apache.felix.scr.annotations.Service;
    import org.osgi.framework.Constants;
    import javax.jcr.Value;
    import com.adobe.granite.workflow.WorkflowException;
    import com.adobe.granite.workflow.WorkflowSession;
    import com.adobe.granite.workflow.exec.WorkItem;
    import com.adobe.granite.workflow.metadata.MetaDataMap;
    import com.adobe.granite.workflow.exec.WorkflowProcess;
    import com.adobe.granite.workflow.model.WorkflowModel;
    import org.apache.sling.api.resource.ResourceResolver;
    import org.apache.sling.api.resource.ResourceResolverFactory;
    import org.apache.sling.jcr.resource.JcrResourceUtil;
    import org.apache.sling.api.resource.PersistableValueMap;
    import org.apache.sling.api.resource.PersistenceException;
    import org.apache.sling.api.resource.Resource;
    @Component
    @Service
    @Properties({
           @Property(name = Constants.SERVICE_DESCRIPTION, value = "Test"),
           @Property(name = Constants.SERVICE_VENDOR, value = "Adobe"),
           @Property(name = "process.label", value = "Test 1")})
    public class Test1 implements WorkflowProcess
        @Reference
        private ResourceResolverFactory resourceResolverFactory;
              public void execute(WorkItem workItem, WorkflowSession wfsession, MetaDataMap metadata)
                                  throws WorkflowException {
                        System.out.println("Testing");
            try{
                ResourceResolver resolver;
                resolver = resourceResolverFactory.getAdministrativeResourceResolver(null);
                String instancePath = workItem.getWorkflow().getId();
                Node instanceNode=null;
                Session jcrSession = wfsession.adaptTo(Session.class);
               String payload = (String) workItem.getWorkflowData().getPayload();
               //instanceNode=JcrResourceUtil.createPath(payload+"/jcr:content", "nt:resource","nt:resource", jcrSession, true);
                                  instanceNode=JcrResourceUtil.createPath(instancePath+"/data/metaData", "nt:resource","nt:resource", jcrSession, true);
                                  System.out.println("Test: instance PAth:"+instanceNode.getPath());
                Resource resource = resolver.getResource(instanceNode.getPath());
                    if(resource != null)
                        PersistableValueMap valueMap= resource.adaptTo(PersistableValueMap.class);
                        valueMap.put("name", "Rajesh");
                        valueMap.put("id", "A002");
                        valueMap.put("designation","SE");
                        valueMap.save();
                        System.out.println("Name:"+valueMap.get("name"));
                        System.out.println("Id:"+valueMap.get("id"));
                jcrSession.save();
                resolver.close();
            }catch(Exception e)
                System.out.println("Exception:"+e.getMessage());
    ===================
    The code works fine when the node is payload/jcr:content.
    Note : Process 1 and Process 2 code is same expect the values I'm passing to the PersistableValueMap.
    Any pointers would be more helpful..
    Thanks
    Siva

    Is there anything wrong in my code/ it's a bug..  
    Thanks
    Siva

  • J_1IRG23D Excise Duty Base Value is not Updated

    Hi all,
    while doing the Depot sales after Depot Excise Invoice J1IJ the Excise Duty Base Value is not updated in J1iDEPOTSTOCK1 (display depot stock) and also in table J_1IRG23D.

    hi
    check this SAP Notes
    1348970 Incorrect Ship to / Sold to party filled in J1IJ 11.06.2009
    1322071 RG23D entry deleted from J_1IRG23D in case of cancellations 16.04.2009
    1233836 Additional depot EI status set as 'C' for partial reference 20.03.2009
    1263061 J1IJ - material quantity conversion leads to rounding error

  • Condition value is not updating in shipment cost documents.

    We are creating a shipment cost document and condition value is not updating automatically when we enter the amount.
    Regards,
    Jagadeesh

    Dears,
    The material master of the material is not maintained with gross weight and net weight, hence automatic updation for condition value is not taking place, i resolved the issue.
    Thanks,
    Jagadeesh

  • KP06 Plan Values are not updating in Cost center  report

    Hi,
    I have configured KP06 and uploaded through excel,It is getting uploaded successfully.
    But after uploading planned values are not updating in the S_ ALR_87013611 Report.
    What could be the reason.kindly give me some inputs regarding this.
    Thanks
    Supriya

    Hi Supriya,
    After uploading the entries have you saved or have you verified with excel values.
    Please check.
    Sateesh

  • Value is not updating to infoobject

    Hi experts,
    I am facing a strange issue.
    Issue is , Value is not updating to the infoobject in master data attribute.
    I am able to see the value at PSA level.
    what may be the reason, the object is consistent.
    regards,
    rajesh.

    Check the transformation for the master data attribute and make sure it is mapped to the right field from source.
    Also check if there is any start routine written and if you are deleting records in that.
    Make sure that once the load is completed, the request is green, available for reporting and some records have been addes as well.
    Another thing need to be checked is if you have written any routine for the attribute which may cause no data because of the logic in that code.
    Do these checks and provide some more details if issue is not resolved.
    Regards,
    Gaurav

  • Forms values are not displayed correctly

    This is happening on the client view. I have a custom form and after some Windows updates on user's laptop, the text field values started stopping to display in the form. If I click on View mode then the text values shown and change back to Edit the form
    now text values show up in the text field.
    Another thing is when trying to print the view out, text values are not shown up at all. I tried to upgrade user to IE11 and same issue. Using Firefox then text values are shown in print preview but not in Editing. I don't want users to use different browser
    rather than IE.
    Any thoughts on this would be much appreciated.

    Hi,
    Since the issue happens after some Windows Updates, I would suggest the user log on another machine and see if the issue persists. If the issue only happens on this laptop, you can manually uninstall the update patch you doubt to test
    the issue. Go to Control Panel->Programs and Features->View installed Updates->”right click” and “uninstall”.
    Meanwhile, add the SharePoint sites to a trusted zone in IE settings.
    Thanks.
    Tracy Cai
    TechNet Community Support

  • Contract Release value is not updated with Limit item value

    We have SRM 4.0 with ECS scenario.
    Contract are created in SRM and replicated to ERP.
    If we create PO with Service line and Limit line using contract in both of these line items, contract Release value is getting updated only with Service line item value.
    But the contract Total value is the addition of Service and Limit value of PO.
    Why Contract Release value is not getting updated with Limit item value. Please help as early as possible.

    Hi Sandeep
    Yes. there are various reasons .upon your contract incorrect status and linkage not establised / or more attachment in SRM GOA.
    what type of contract are you using? GOA or CCTR
    If it is GOA - which version of SRM and service pack ?are you in ?
    If it is a GOA , BLAREL idoc might failed to post the release value in the SRM .
    How contracts are created material / mat group ?
    to fix or understand the issue, you need to recreate the issue.
    what is the ERROR in BLAREL in SRM idoc monitoring ?

  • Contract Release Value is not updated with Confirmation or Invoice value

    The release value for a contract in SRM EBP shows the value of purchase orders created using that contract.  It does not take into account confirmation and/or invoice values.
    For example I create a PO for 10 items at £100/each using Contract ABC.  The total value of the PO is £1000 and the release value contract ABC would be £1000.  If I then only confirm and invoice 5 items (£500) for the PO, the release value of contract ABC stays at £1000 even though I would expect it to update to £500
    Therefore the release value of the contract could be incorrectly overstated if purchase orders are created against the contract but not actually invoiced/confirmed for their total value.
    Please could you confirm the correct functionality and how I could find out the the true invoice value of purchases made using a contract?

    Hi
    <u>Which SRM and R/3 versions are you using ?</u>
    <b>Meanwhile, please go through the following SAP OSS Notes, which will help in this case -></b>
    Note 622045 Net value in release overview of contract is incorrect
    Note 493519 Release quantities are not updated
    Note 1108322 BBP_CONTRACT_CHECK wrong calculation of values
    Note 1102886 Contracts: Lesser Field length for Target Value
    Note 1082548 Check of Released quantity and released value in contract
    Note 656181 Release synchronization of releases on services
    Note 874920 Currency not allowed to be changed for a 'Released' Contract
    Note 703771 Resetting release values during purchase order item deletion
    Note 643823 BLAREL: Incorrect values in service segment
    Note 519879 BBP_CTR_MAIN: No message when values in Contract are reset
    Note 520734 Target value not converted if currency is changed
    Note 528897 Documents not displayed in contract release order overview
    Note 430373 BBP_CON_MNT: No releases available
    Note 491993 Entry of contracts with target values
    Note 437491 Purchase contract: Incorrect update of the call-off values
    Note 406799 BBP_CON_MNT: Fields after contract release ready for input
    Note 398168 Purchase contract: Target value is not changed
    <b>Do let me know.</b>
    Regards
    - Atul

  • Sales value is not updated in fd33

    Dear Team,
    I have an issue, Full Advance payment has been received from the customer, after Sales order has been created against this customer, Even Credit Exposure Value shows the more than the order values, but the order still goes for credit block,
    There is no open due items for this customer,
    When I checked in FD 33, Sales Value(the one which is raised currently) is not updated it shows 0.01, Sales Order is open now with credit block, Can any body clarify why the sales order value is not get updated in FD33.
    How do i re update the value and remove the block without releasing from VKM3,
    Thanks in Advance,
    Muralidharan S

    *

Maybe you are looking for

  • How to get Difference of a Result set in reports

    Hello, I am trying to get difference (variance) of sales in past year and current year. Below is the report which accumulates the sales for 2013 and 2014 and also accumulates the Sales for both year , but how can we get the difference of sales in Yea

  • Giving a phone to another family member who is also a verizon customer

    When  you give a family member your old phone and they activate it under their number does it it wipe out all your contact info, photos, and messages?

  • R12 Payment outbound xml

    Hi, We are doing an upgrade from 11i to R12. The client currently generates a custom XML file to send payment details to the bank. I understand that in R12 there is an Oracle provided data defintion for funds disbursements avaialable and the extract

  • Strange hangup problem - can anyone help me?

    I found my eMac suddenly turned off last evening. I restarted it with the power button and it ran for about three minutes before the screen started shrinking from the sides and the keyboard and mouse stopped working. I tried disconnecting all USB plu

  • Download I OS 5 and now I can't download anything.

    Okay so I updated my iPad to I OS 5 and now I can't download anything. It just gives me a waiting on apps and books. As for the videos and music I get preparing to download. My router looks like its download even when I stop the download. It blinks e