Not Refresh Value After Add New Record used with RPC Component

This is my code in the class Users.as
package inthanous
import mx.controls.Alert;
import mx.rpc.http.HTTPService;
import mx.rpc.events.ResultEvent;
import mx.rpc.events.FaultEvent;
public class Users
private var service:HTTPService;
[Bindable]
public var xmllist_user:XMLList;
public function Users(){
service = new HTTPService();
service.method = "POST";
service.useProxy = false
service.resultFormat = "e4x";
public function listUser():void{
service.url = "/user/get_all_user_group_name";
service.addEventListener("result", httpResultListUser);
service.addEventListener("fault", httpFaultListUser);
xmllist_user = new XMLList();
service.send();
private function httpResultListUser(event:ResultEvent):void{
service.removeEventListener("result", httpResultListUser);
service.removeEventListener("fault", httpFaultListUser);
xmllist_user = new XMLList(service.lastResult.children());
listAllUser();
private function httpFaultListUser(event:FaultEvent):void{
var faulstring:String = event.fault.message;
service.removeEventListener("result", httpResultListUser);
service.removeEventListener("fault", httpFaultListUser);
Alert.show(faulstring,"Error");
public function createUser(_xml:XML):void{
service.url = "/user/create_user";
service.addEventListener("result", httpResultCreateUser);
service.addEventListener("fault", httpFaultCreateUser);
service.send({firstName: _xml.firstName,
lastName: _xml.lastName,
gender: _xml.gender,
login: _xml.login,
pwd: _xml.pwd,
dtBirth: _xml.dtBirth,
telephone: _xml.telephone,
idGroup: _xml.idGroup
private function
httpResultCreateUser(event:ResultEvent):void{
service.removeEventListener("result", httpResultCreateUser);
service.removeEventListener("fault", httpFaultCreateUser);
listUser();
clearUserDetail();
private function httpFaultCreateUser(event:FaultEvent):void{
var faulstring:String = event.fault.message;
service.removeEventListener("result", httpResultCreateUser);
service.removeEventListener("fault", httpFaultCreateUser);
Alert.show(faulstring,"Error");
This code i used with Ruby on Rail to connect with MySQL.
When i used with FireFox browse after i create new user
success it refresh the new record in Datagrid. But for the Internet
Explorer Datagrid not refresh it because of it display the old
recode before create.
So i don't know it problem by Internet Explorer or my script.
i hope someone can help me the solve this problem.
thanks

If you restrict the selection, a record value outside of that selection is not acceptable and will give you this error. This is how BPS works.
You need to restrict on some other char so BASIC1 doesn't come in, but this value should be part of any selection on ZSEGMENT field for it to be accepted back.

Similar Messages

  • Help!!! error after add new field use EEWB

    Hello,
    I add a new field through EEWB. The new field is add on Complaints header called Internal Reference.
    I use wizard of EEWB to add new field , business object: CRM business transaction, then in the wizard, I choose complaints as the type of the transaction, and I check the "search" box for the field, because I also need to use it as search criterial.
    Then I go into the BSP_WD_CMPWB, the new field is already available for component BT120H_CPL, view Details. And it is also available for the search view.
    So far, everything looks fine.
    But when I go into the UI for testing, when I perform the complaints search and click one record to go into the complaints view, it gives me a exception on header. I use SAAB to check the details, it like following:
    BTExtRefSet.BTEXTREF/MainWindow
    An exception has occurred Exception Class  CX_BSP_WD_INCORRECT_IMPLEMENT - Define Application Component 'BTExtRefSet'. 
    Method:  CL_BSP_WD_REPOSITORY=>GET_CMP_USAGE_DEF 
    Source Text Row:  9
    Is there anything I missing to do so I get such error message???
    Edited by: SAP-Basis on Dec 1, 2008 5:12 PM

    Hi All,
    I have the same error but I am not usig EEWB.
    I am trying to display my custom set types as assignment blocks in the Web UI on 'objects' view. I able to see my set type as assignment block, but when I click on it, I have this error:
    ZXXX.PRDGENSET/SLSetOVE
    An exception has occurred Exception Class CX_BSP_WD_INCORRECT_IMPLEMENT - Define Application Component 'ZXXX'.
    Method: CL_BSP_WD_REPOSITORY=>GET_CMP_USAGE_DEF
    Source Text Row: 9
    ZXXX - set type name.
    I doubt my enhancement set is not getting loaded.
    Could you please let me know how do I solve this error.
    Thanks,
    Aditya.

  • Can not refresh page after save properly(When not saving master record)

    I am using jdeveloper 11g R2 (11.1.2.3) JSF Facelet
    In some use case I have Address as master table and Person as detail table
    For some business reason I need to don't save same addresses
    eg:
    If +1 Test St+ is in database already and new user coming and adding this address with new person
    I need to use the row in database not creating a new address
    I do saving in doDML method of Address with some hashing algorithm and it is fine
    My problem is that I can not refresh page after save properly
    User coming to page think Adding a new address and a new person but in fact no new
    address added because of business I describe above
    Any ideas how I can implement this?
    Appreciate that
    Regards
    Mohsen

    Hi,
    from your description it is not clear why the page doesn't refresh. It could be a problem in your implementation code - who knows. What if you perform the address check on a command button that actually submits the new address? If the check returns true (address exists) you would call row.refresh(forget new row); and re-query the view object so the address coming from the database is displayed. If you wanted to use the doDML then yuou need to be aware that doDML doesn't help removing the row the user created. It just ignores the database update but the entity is still around, which in my suggested solution wont be the case.
    Frank

  • To add new record into the table Data Service client

    When I am trying to add new record into the table Employeedetails using Data Service client it is giving a sql exception: "java.sql.SQLException: Violation of PRIMARY KEY constraint 'PK__EmployeeDetails__6383C8BA'. Cannot insert duplicate key in object 'EmployeeDetails'. Severity 14, State 1, Procedure 'PC-P41403 null', Line 1."
    Code:
    DataService ds=DataServiceFactory.newDataService(getInitialContext(),"EmplDetApp","ld:EmplDetAppDataServices/EmployeeDetails");
    EmployeeDetailsDocument edoc=EmployeeDetailsDocument.Factory.newInstance();
    edoc.addNewEmployeeDetails();
    //here I set the primary key value empid
    edet.setEmpid("1212");
    edet.setEmpname("manu");
    ds.submit(edoc);
    Error
    EmpName 5 java.sql.SQLException: Violation of PRIMARY KEY constraint 'PK__EmployeeDetails__6383C8BA'. Cannot insert duplicate key in object 'EmployeeDetails'. Severity 14, State 1, Procedure 'PC-P41403 null', Line 1
    com.bea.ld.dsmediator.DataServiceException: java.sql.SQLException: Violation of PRIMARY KEY constraint 'PK__EmployeeDetails__6383C8BA'. Cannot insert duplicate key in object 'EmployeeDetails'. Severity 14, State 1, Procedure 'PC-P41403 null', Line 1
         at com.bea.ld.dsmediator.update.JDBCAdaptor.save(JDBCAdaptor.java:247)
         at com.bea.ld.dsmediator.update.DataServiceMediator.submit(DataServiceMediator.java:528)
         at com.bea.ld.dsmediator.update.DataServiceMediator.submit(DataServiceMediator.java:245)
         at com.bea.ld.ServerBean.submit(ServerBean.java:529)
         at com.bea.ld.Server_ydm4ie_EOImpl.submit(Server_ydm4ie_EOImpl.java:910)
         at com.bea.ld.Server_ydm4ie_EOImpl_WLSkel.invoke(Unknown Source)
         at weblogic.rmi.internal.BasicServerRef.invoke(BasicServerRef.java:492)
         at weblogic.rmi.cluster.ReplicaAwareServerRef.invoke(ReplicaAwareServerRef.java:108)
         at weblogic.rmi.internal.BasicServerRef$1.run(BasicServerRef.java:435)
         at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:363)
         at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:147)
         at weblogic.rmi.internal.BasicServerRef.handleRequest(BasicServerRef.java:430)
         at weblogic.rmi.internal.BasicExecuteRequest.execute(BasicExecuteRequest.java:35)
         at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:224)
         at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:183)
         at java.lang.Thread.startThreadFromVM(Unknown Source)
    Caused by: java.sql.SQLException: Violation of PRIMARY KEY constraint 'PK__EmployeeDetails__6383C8BA'. Cannot insert duplicate key in object 'EmployeeDetails'. Severity 14, State 1, Procedure 'PC-P41403 null', Line 1
         at weblogic.jdbc.mssqlserver4.TdsStatement.processWarning(TdsStatement.java:1178)
         at weblogic.jdbc.mssqlserver4.TdsStatement.parseMsWarning(TdsStatement.java:1089)
         at weblogic.jdbc.mssqlserver4.TdsStatement.getMoreResults(TdsStatement.java:756)
         at weblogic.jdbc.mssqlserver4.TdsStatement.execute(TdsStatement.java:210)
         at weblogic.jdbc.mssqlserver4.TdsStatement.executeUpdate(TdsStatement.java:97)
         at weblogic.jdbc.mssqlserver4.TdsStatement.executeUpdate(TdsStatement.java:1455)
         at weblogic.jdbc.wrapper.PreparedStatement.executeUpdate(PreparedStatement.java:147)
         at com.bea.ld.dsmediator.update.JDBCAdaptor.save(JDBCAdaptor.java:151)
         ... 15 more
    But I am not sure why it is giving an exception as Violation of PRIMARY KEY.
    The update method works fine for the same client.
    The exception only happens when I am trying to insert a new record.
    Please help me to figure out this problem.

    If you are absolutely sure that you do not have such a row already in your table, open a case with customer support and reference CR321312. I believe the work-around is to put ld-server-core.jar in your client classpath.
    Correction: put ld-server-app.jar in the client classpath
    Edited by mreiche at 09/17/2007 3:28 PM

  • Cannot Add new line using BI IP query

    Hi All,
    We have created a planning application (BI IP Query) and used it in VC 7.1 model using BI Query Wizard service. Now we are able to customize existing rows ( existing rows are using flat file upload)... we can able to change the existing record values and save it.
    But we are not able to add new line... its going to dump... We are able to add new line using WAD with same query but not in VC 7.1
    This issue is same as below 2 threads...
    Re: How to create new records through a VC form in an input-ready query??
    Re: Cannot add new records through VC form when consuming IP write back query?
    Thanks,
    PradeeP

    Its working now... SAP has given the fix (patch) for this issue when we deployed it, everything is working fine... I think they will release this fix (patch)soon...
    Raise an Sap OSS message for solution

  • How to create a new record using a custom method?

    Hi I want to create Jdev 11 a new record using the contructor following in the footsteps of http://www.oracle.com/webapps/online-help/jdeveloper/10.1.3/state/content/navId.4/navSetId._/vtAnchor.CACCIJAG/vtTopicFile.adfdevguide%7Cweb_adv~htm/.
    My problem is the following.
    Messages for this page are listed below.
    Error
    JBO-29000: Unexpected exception caught: javax.ejb.EJBException, msg=java.lang.IllegalArgumentException: Object: null is not a known entity type.; nested exception is: java.lang.IllegalArgumentException: Object: null is not a known entity type.
    Error
    java.lang.IllegalArgumentException: Object: null is not a known entity type.; nested exception is: java.lang.IllegalArgumentException: Object: null is not a known entity type.
    Error
    Object: null is not a known entity type.
    Someone can help me?
    Cristian.

    Hello Frank, this tutorial make it and was successful but, what I am trying to do is add a new record in the table departments. The steps undertaken are suguientes
    drag over page the contructor department, with a submit, this will drag on the button, the method presistencia, set binding action with "$ (bindings.Departments.result)", and when running the application gives me the error
    Nov 2, 2007 10:06:22 PM oracle.adf.controller.faces.lifecycle.FacesPageLifecycle addMessage
    WARNING: ADFc: JBO-29000: Unexpected exception caught: javax.ejb.EJBException, msg=java.lang.IllegalArgumentException: Object: null is not a known entity type.; nested exception is: java.lang.IllegalArgumentException: Object: null is not a known entity type.
    oracle.jbo.JboException: JBO-29000: Unexpected exception caught: javax.ejb.EJBException, msg=java.lang.IllegalArgumentException: Object: null is not a known entity type.; nested exception is: java.lang.IllegalArgumentException: Object: null is not a known entity type.
    I need to know if what I am doing is right, because I followed the steps of the tutorials and it is not functioning the insertion of a new record.
    Thank you thank you.

  • Opened ical and all my events were erased and all my calendar accounts were gone and it will not allow me to add new events or new accounts

    I opened my ical and all my events had been erased and all my claendar accounts were gone and it will not allow me to add new events or accounts.

    Hi John,
    Thanks so much for wading in. I did exactly what you suggested - glad you gave me the hint about how to access my library files. There was only one document that seemed to have anything to do with cache, and that was called Calendar Cache. (I've attached a screen capture of all the files incase I should have deleted something else as well.) I deleted Calendar Cache then restarted iCal, but after updating I was still unable to add new events.
    Is there anything else you can suggest?
    Thanks again,
    Susan

  • Automatically calculate depreciation after add new asset in CAPEX

    Hi,
    My client wants the system automatically calculate depreciation after add new asset in CAPEX, not click one-by-one asset and calculate depreciation. Please help.

    Hi,
    Can you please help me the algorithms for the code? My IT department can't write that without a algorithms and I don't know much about essbase coding algorithms :) . Thank you so much.

  • Add new fields using BADI DNO_EVENT_SAVE in Solution Manager

    Hi,
    I would like to add new fields using BADI DNO_EVENT_SAVE. How can I add new fields? Thanks.

    Hi,
    This is the blog which explains how to add custom fields for CRM_DNO_MONITOR.
    /people/bruyneel.guillaume/blog/2008/06/13/service-desk-implementation-guide-part-ii
    Instead of looking or changing the BAdI, you can copy the program of CRM_DNO_MONITOR and modify it.
    Please check this thread:
    Reg : CRM_DNO_MONITOR
    Regards,
    Sanjai

  • Ever since downloading Itunes 11 I have not been able to add new cds to my library.  I keep getting a message that an error occured while converting the file.  An unknown error occured (-69).

    Ever since I downloaded Itunes 11 I have not been able to add new CDs to my library.  I keep getting this message: Error occured while converting the file "..." An uknown error occured (-69).

    Did you already try to restore your device? Restoring iPod to factory settings
    Other solutions for this errror are mentioned here: iTunes: Error 13019 during sync

  • Extended Purchase Info Record using with LSMW

    HI guru's,
    How to extend purchase infor record using with LSMW programm.. what is the T.Code and important fields.
    regards
    JK

    Hi,
    You will need to create an LSMW programme for this, the source fields will be as below
    LIFNR     Account Number of the Vendor
    MATNR     Material Number
    EKORG     Purchasing Organization
    WERKS     Plant
    MAHN1     Number of days for first reminder/urging letter (expediter)
    MAHN2     Number of days for second reminder/urging letter (expediter)
    MAHN3     Number of days for third reminder/urging letter (expediter)
    APLFZ     Planned delivery time in days
    UNTTO     Underdelivery tolerance limit
    EKGRP     Purchasing group
    NORBM     Standard purchase order quantity
    MWSKZ     Tax on Sales/Purchases Code
    NETPR     Net price in purchasing info record
    WAERS     Currency Key
    LTEX1_02     Long Text
    LTEX2-02     Long Text
    LTEX3-02     Long Text
    LTEX4-02     Long Text
    LTEX5-02     Long Text
    LTEX6-02     Long Text
    LTEX7-02     Long Text
    Regards
    Merwyn

  • BC4J tag - add new record only in child table using join query

    Hi,
    I have developed the struts base jsp for BC4J component application using jdeveloper wizard.
    i have first developed the BC4J component. using emp table and dept table,
    also developed the association between emp and dept , and create view object using created association.
    when i haae developed the the struts base jsp for BC4J applicaion using alerady created view object. it creates automatically DataEditComponent.jsp and DataTableComponent.jsp and etc...
    and when i want to add new row or record it automatically add the entry in both table ,
    in above scenario i have used dept as master and emp as child table.
    what is the solution , if i want to add row or record in only emp table.
    please help me

    Hi Reetesh,
    I have written following code into the ADD ROW button
    System.out.println("Coming in Click Event");
    OAApplicationModuleImpl am = (OAApplicationModuleImpl) pageContext.getApplicationModule(webBean);
    OAWebBean innerTablebean = (OAWebBean)webBean.findChildRecursive("region12");
    OATableBean innerTable = (OATableBean)webBean.findChildRecursive("innerTablebean");
    OAInnerDataObjectEnumerator enum = new OAInnerDataObjectEnumerator(pageContext,innerTablebean);
    while(enum.hasMoreElements())
    RowSet innerRowSet = (RowSet) enum.nextElement();
    Row []rowsInRange = innerRowSet.getAllRowsInRange();
    OARow newRow = (OARow) innerRowSet.createRow();
    OADBTransaction dbt = am.getOADBTransaction();
    Number b = dbt.getSequenceValue("PK_XX_BATCH_PROGRAM_PARAMETERS");
    newRow.setAttribute("ProgramId", b);
    newRow.setAttribute("ProgramParmId",b);
    newRow.setAttribute("ParameterName",new String(""));
    newRow.setAttribute("ParameterDataType",new String(""));
    newRow.setAttribute("ParameterInOutType",new String(""));
    innerRowSet.insertRow(newRow);
    Now the problem occurs only when there are more than one rows in parent table... As many rows are there in parent table that many times the rows are being added.
    With Regards,
    Sandip

  • Set atribute value from session bea while creating new record using ADF BC

    hi,
    i want to set the value of new record attribute from session bean while
    using ADF BC using creation form. how can i set the value of a perticular arribute of a record to the value stored in session bean.

    Chapter 9 in the ADF Developer's Guide for Forms/4GL Developers (available on the ADF Learning Center at http://www.oracle.com/technology/products/adf/learnadf.html ) describes how to accomplish this along with other typical kinds of programmatic business logic.

  • After loading, why does adobe flash not show up in add on manager - using firefox 5.0

    Loaded adobe flash 10.3.181.34 and it worked fine. However, it does not show up in Firefox add-on manager - using Firefox version 5.0. Running win xp pro sp-3

    shows up as shockwave not flash

  • How do I copy over "Created By" & "Modified By" field values to a new library, using PowerShell?

    I have a site that was migrated from SP 2007 to 2013, using a docave tool...this works fine and everything seems to be okay. However I now have to move documents from one Library to a new one, along with all associated metadata. I have a PowerShell script
    I am using to do this and it is working...for the most part...except for copying the authoring metadata. So when I run this PowerShell script, I get my "Created By" and "Modified By" fields updated with the "WindowsAccount" user
    account that performed the migration. This is what is confusing to me...after the migration, when I look at my Library, these fields are displayed correctly. Meaning I have documents that were created by John Smith, and modified by Jane Smith, showing up with
    the right metadata in the library after migration...but when I run my script to copy the documents to a new library, the output is not John Smith or Jane Smith but the "windowsAccount" user that performed the migration. Here is what my script looks
    like, in trying to get the right values to show.
    $sWeb = Get-SPWeb $SourceWebURL
    $sList = $sWeb.Lists | ? {$_.Title -eq $SourceLibraryTitle}
    $dWeb = Get-SPWeb $DestinationWebURL
    $dList = $dWeb.Lists | ? {$_.title -like $DestinationLibraryTitle}
    $AllFolders = $sList.Folders
    $RootFolder = $sList.RootFolder
    $RootItems = $RootFolder.files
    foreach($RootItem in $RootItems){
    $sBytes = $RootItem.OpenBinary()
    $dFile = $dList.RootFolder.Files.Add($RootItem.Name, $sBytes, $true)
    $AllFields = $RootItem.Item.Fields | ? {!($_.sealed)}
    $User = $sWeb.EnsureUser($RootItem.Author)
    $UserField = New-Object Microsoft.SharePoint.SPFieldUserValue($sWeb,$User.ID,$User.LoginName)
    write-host "User's Name: "$UserField.User.Name.ToString()
    Has anyone experienced something like this before? If so, what is causing this and how can I get my script to start displaying the right data for "Created By" and "Modified By"?
    Thanks,

    This is the expected behavior. Both "Created By" (internal name Author) and "Modified By" (internal name Editor) will be set to the user running the script. In order to update theses fields in the destination item with the values present
    in source item, the script needs to be modified. Read the values of these fields in source and update them in destination using SplistItem.SystemUpdate() method, like:
    $Author = $sWeb.EnsureUser($RootItem.Author) $Editor = $sWeb.EnsureUser($RootItem.Editor) $destinationItem["Author"] = $Author$destinationItem["Editor"] = $Editor$destinationItem.SytemUpdate()
    Blog | SharePoint Learnings CodePlex Tools |
    Export Version History To Excel |
    Autocomplete Lookup Field

Maybe you are looking for