Entity Serivice with Reference and UI patterns

Hello
I have question.
How can I configure Object Editor in order to have New button on Refence tab of Object Editor?
I have two Entity services. Company and Contacts. BO Contacts is an attribute of BO Company with Relation Type  Association and Cardinality 0..n.
When I configure ObjectEditor and use for the Contacts Relation Tab pattern.
I allowed only add already existing Contact to the Company reference. How can I configure or model my BO in order to have possibility to add new contact "in place"?
Thanks
Andrew

What you suggested about "validation codes on the VO" is not written on the ADF Documentation.
I try to blindly/strictly follow best practices (particularly on Validations, using Declartive and/or built in validators) on most ADF documentation and blogs but there are many scenarios on coding some large ADF projects that I think must veer away from the best practices stated on the documentation or maybe add new rules on the documentation depending on how complex an ADF project would be.
I religiously followed best practices stated on the documentation to use Entity and Attribute Validators when performing validations. What I did was i had created lots of Custom Validators (by implementing JboVAlidatorInterface interface) for each of the attributes on an Entity Object that need validated. So those validator is valid only for one attribute, its not reusable. And those validation codes either have reference to a ViewObject or call some PL/SQL procedure. So at some point are codes became messy.
Ultimately the whole project became harder to manage when the codes became large. Now I am trying to refactor the whole application by separating it into project/package and I am hoping to do it with little Re-coding as possible.
Hope to get your opinion on this one.
regards,
Anton

Similar Messages

  • Copy of attachement in Post with reference and recurring documents

    Hi Gurus,
    While using Post with reference and recurring documents, can we also copy the attachment from the source document?
    Please revert asap
    Thank You

    Hi,
    How you been able to create attachments for a recurring document at all?
    I  could not create any attachment.
    Miroslav

  • Problem with reference and class

    I would like to transit a Data object in member function of another class with Labview 9.0 reference with "In place element structure". I use the reference for optimize allocation memory.
    When i use a dispatch static : Vi is executable  -> "TestRefAppExt Statique.vi"
    With Dispatch dynamic : Vi is not executable (because Read/Write a reference's data value : class's Object in a reference can't be replaced by another) -> "TestRefAppExt DynamiqueWithoutParent.vi"/"TestRefAppExt DynamiqueWityParent.vi"
    When i use Preserve Run-Time Class function the Vi becomes executable
    but it creates some allocations. Labview creates copy of data object
    when i'm running the vi. (increase size of data you'll see)
    The problem is that i can't recuparate the same object without copy in dispatch dynamic. Because LabView can't change the data object transited in a dispatch dynamic function of another class (child class).
    I compared in project labview Execution's performance with and without Reference in dynamic and static and for compare, with Message Box and a Reference of Data object's cluster.
    Without reference, i made three Vi : "TestAppExt Statique.vi", "TestAppExt DynamiqueWithParent.vi" and  "TestAppExt DynamiqueWithoutParent.vi"
    The static's function works well, but when Labview calls dispacth Dynamic functions, it works more slowly.
    With reference, i made three vi too : "TestRefAppExt Statique.vi", "TestRefAppExt DynamiqueWithParent.vi" and "TestRefAppExt DynamiqueWithoutParent.vi" with cast Preserve Run-Time Class.
    All This functions are more slowly than without reference.
    I tried for fun to test with the same class with Message Box : "TestRefAppExt Fifo.vi" and Cluster "TestRefAppExt DynamiqueCluster.vi" with the dynamic function. The result is better than with reference in dynamic.
    "TestRefAppExt StatiqueRef.vi" and "TestRefAppExt DynamiqueRef.vi" are a solution of this problem but it's better to work with In place element structure. And it doesn't resolve reference performance in execution.
    Why it's not possible to recuperate data object after a dispatch dynamic?
    Why the performance is not good with LabView reference 2009?
     I attached the project.
     Could you help me please
    thank you so much.
    Pascal
    Attachments:
    RefTest.zip ‏476 KB

    Yes, it helps but there is one thing that isn't being replicated which is the possibility to remove the link from the generated editor.
    My EMF looks like:
    @gmf.node(label="uri", figure="ellipse", label.edit.pattern="{0}", label.view.pattern="<<Class>> {0}", label.icon="false")
    class Class extends Resource {
    @gmf.link(target="subClassOf", target.decoration="arrow", label.text="subClassOf", label.readOnly="true")
    ref Class[*] subClassOf;
    And when I do the fix with self.subClassOf.remove(self) the link isn't removed (although now the model now passes the validation). Is there any easy way to do that?
    Regards

  • How to make clipping mask with text and vector pattern?

    Hey there guys, any help would be greatly appreciated. Im making a logo for a client and am having a nightmare of a time trying to properly use the clipping masks in illustrator CS5. I copied and pasted the  logo I made behind itself with a different color just for a drop shadow-like effect. And now I'm trying to apply this diagonal line pattern I created over top the "shadow" I made to give it some texture.
    Here's an example of what I'm going for, only imagine the line pattern on the text instead of banner

    Eric,
    As I (mis)understand it, you can either keep the Type live (or outline it) and:
    1) Create one copy of the pattern for each Type object (this will give you the opportunity of having different(ly coloured) patterns;
    2) For each Type object, select the type object and one of the patterns and Object>Clipping Path>Make;
    or you can:
    1) Select both Type objects and Type>Create Outlines, then Object>Compound Path>Make;
    2) Select the compound object and the pattern and Object>Clipping Path>Make.

  • Help needed with hatches and fill patterns

    Hi,
    I'm trying to do an architectural drawing of a building in illustrator. I have the geometry set up in rhino and exported it but I now need to add the brick and pavement patterns to the geometries But I've no idea how to do it accurately?
    I'll attach the drawing as a jpeg as is now so you can see what I mean. Excuse the messiness, still very much a work in progress

    envelope distort might be teh easiest way.
    you could also try using the perspecting grid, but matching the plane can be a pain and sometimes the forshortening is completely the oppositie of what it should be.
    so i'd do envelope. draw the face you want to fil. draw a square with the same proportions of the face you want to fill. fill that square with your pattern at the size that they should be. move that square behing the shape of your plane. then make envelope distort with obejct on top.
    mask out the holes in the shape as needed with a clipping mask or solid shapes.
    play with the envelope handles to adjust for perspective foreshortening.

  • Difference between PO created with reference and without reference(CIN)

    Dear Experts,
    I am working on CIN. I had created a PO(PO # A) and it perfectly captured an Excise invoice(J1IEX_C). I tried to create another PO(PO # B) with same details like Material, Plant, Vendor, everything else remains same, but this time I was not able to capture excise invoice. Under J1IEX_C I am getting an error "Excise Details are not maintanied for Vendor 20033525. Message no. 8I565"
    I again created new PO(PO #C) with reference to PO # A(copy) and for this PO I could capture Excise invoice for PO # C.
    I am confused why is this happening, as my vendor is same in all the cases.
    Thanks and Regards,
    Manish

    Hello
    Genrally it should not happend like that. check the vendor details in j1id ? make sure give all details means each and every field.
    your using ecc6 and updated new support pack then you have to fill all the coloums in ji1d vendor detials.
    so your taking the ref of old po system not asking the details.
    laxman

  • 2008 iMac freezes with black and white patterns

    Hi,
    I'm surfing the web for a hint up and down the last 2 days w/o success.
    The day before my iMac from March 2008 suddenly freezed and showed black and white pattern. A reboot doesn't help, the wheel moves for a while and then freezes. Boot into save mode doesn't work it looks like it loads but then again freezes.
    Screenshot : http://img714.imageshack.us/img714/1751/1319334548189.jpg
    I fear it's the gpu, is this replaceable ? I read a lot yes but seems to depend on the production year.
    If iMac is not useable is it useable as an monitor only ?
    If it's display is it replaceable ?
    Also can someone share how much I can expect for gpu or display repair ?
    Thanks for any hints.

    I brought the iMac today to a service center. 1 hour later they already called me stating that the gpu is dead and they recommend to change for 780 SGD plus 127 SgD for diagnosis which is ard 910 USD (100 USD for diagnosis) :( .
    What a pain. The gpu is 8800 GS after some reading well known for failure, I told that the guy and he said some do and it's still working for a year...well.. 900 bucks is some cash. Since I have all orig apple products, 3 iphones, 2 ipads and the iMac, first time I'm considering to do something not original....
    I've told the guy that I have to sleep over it.
    Anyone who was in the same or similar one way road ? Repair or go for hackintosh or give Apple another chance with a new Mac ?

  • Data Type with reference and view maintenance

    Dear all,
    There are two questions that I want to ask.
    1.     Error when referencing a table with data type = u2018STRINGu2019.
    I have a Z table with some fields = u2018stringu2019, when I use this as a reference, an error prompted.
    "ZTBL_ABC" must be a flat structure. You cannot use internal
    tables, strings, references, or structures as components.-
    2.     Error in generating the View maintenance for field length > 255.
    Actually, I want to create fields with
    1.     data type = char(255),
    2.     data type = text
    3.     data type = char(3000)
    It is okay if I create the field with the selected size, however, when I generate the View maintenance (which can be access through SM30); it does not allow me to do so. It still not working if I change it into string. How can I create such table and use the table maintenance, as well as using that as the reference type of an internal table for another program?
    Regards,
    Mandy Au

    Hello,
    1st of all a table which has a field of type string can be converted in to table maintenance because TM does not support string type as it becomes a very big field to be displayed on screen ... so u need to change that.
    and then about the CHAR of length 3000 is too big ... to have a max limit of 255.
    If you change this both u will be able to generate TM.
    Incase after changing the field length it it gives error in activatin your table then go to SE14 put your table name EDIT and then Adjust n activate it....
    hope this was helpful
    --- Close the post once you get the solution

  • BAPI SALES ORDER & Copy with reference

    Hello,
    I'm creating sales order copied with reference to an invoice. My problem is that the data item is empty. When I create the sales order manually and use the option 'Create with reference' and choose an invoice, the sales order is created with all data item. I don't know how I can get to copy the data item from the invoice in the new sales order. The code that I'm using is the following:
    DATA: order_header_in      LIKE bapisdhd1,
          order_partners       LIKE bapiparnr OCCURS 0 WITH HEADER LINE,
          order_text           LIKE bapisdtext OCCURS 0 WITH HEADER LINE,
          order_header_inx     LIKE bapisdhd1x,
          order_item_in        LIKE bapisditm OCCURS 0 WITH HEADER LINE,
          order_schedules_in   LIKE bapischdl OCCURS 0 WITH HEADER LINE,
          order_conditions_in  LIKE bapicond OCCURS 0 WITH HEADER LINE,
          extensionin          LIKE bapiparex OCCURS 0 WITH HEADER LINE,
          partneraddresses     LIKE bapiaddr1 OCCURS 0 WITH HEADER LINE,
          order_cfgs_ref       like BAPICUCFG occurs 0 with header line.
    DATA: salesdocument LIKE bapivbeln-vbeln.
    DATA: return LIKE bapiret2 OCCURS 0 WITH HEADER LINE.
    order_header_in-doc_type   = 'ZA09'.
    order_header_in-sales_org  = '1700'.
    order_header_in-distr_chan = '01'.
    order_header_in-division   = '01'.
    order_header_in-BILL_DATE   = '20060701'.
    order_header_in-ref_doc    = '0900000019'.
    order_header_in-refdoc_cat = 'M'.
    *order_header_in-REF_DOC_L_LONG = '0900000019'.
    order_header_in-purch_no_c  ='prueba'.
    *order_header_in-ord_reason = '003'.
    *order_header_in-pmnttrms   = '0002'.
    *order_header_in-sales_off  = '2800'.
    order_header_in-ref_doc_l  = 'FACTURA ES'.
    *order_header_in-fix_val_dy = '20060701'.
    *order_header_in-currency   = 'USD'.
    *order_header_in-exchg_rate = '1.2'.
    order_partners-partn_role = 'AG'.
    order_partners-partn_numb = '0000000001'.
    order_partners-langu      = 'EN'.
    order_partners-name       = 'El corte aleman'.
    order_partners-country = 'ES'.
    APPEND order_partners.
    order_partners-partn_role = 'RE'.
    order_partners-partn_numb = 'ARR000'.
    order_partners-addr_link  = '0000030044'.
    APPEND order_partners.
    CALL FUNCTION 'ADDR_GET_COMPLETE_ALL_TYPES'
      EXPORTING
        addrnumber                 = order_partners-addr_link
      PERSNUMBER                 =
        address_object_type        = '1'
      IV_CURRENT_COMM_DATA       = 'X'
    IMPORTING
      ADDR1_COMPLETE             =
      ADDR2_COMPLETE             =
      ADDR3_COMPLETE             =
       ADDR1_COMPLETE_BAPI        = partneraddresses
      ADDR2_COMPLETE_BAPI        =
      ADDR3_COMPLETE_BAPI        =
    EXCEPTIONS
      PARAMETER_ERROR            = 1
      ADDRESS_NOT_EXIST          = 2
      PERSON_NOT_EXIST           = 3
      INTERNAL_ERROR             = 4
      OTHERS                     = 5
    IF sy-subrc <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
            WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.
    data: vl_texto(40) value 'NUEVOOOOO'.
    partneraddresses-name    = vl_texto. clear vl_texto.
    partneraddresses-name_2  = vl_texto.
    partneraddresses-name_3  = vl_texto.
    partneraddresses-name_4  = vl_texto.
    partneraddresses-langu   = 'E'.
    APPEND partneraddresses.
    DATA: vl_cantidad LIKE bapisditm-target_qty.
    vl_cantidad = 1.
    order_item_in-itm_number = 10.
    order_item_in-material = 'HONORARIOS'.
    order_item_in-ref_doc = '0900000019'.
    order_item_in-ref_doc_it = 10.
    order_item_in-ref_doc_ca = 'M'.
    APPEND order_item_in.
    order_schedules_in-itm_number = 10.
    order_schedules_in-req_qty = vl_cantidad.
    APPEND order_schedules_in.
    order_text-text_id = 'Z001'.
    order_text-ITM_NUMBER = ''.
    order_text-langu = 'EN'.
    order_text-text_line = 'Hola, CARACOLAcola'.
    APPEND order_text.
    order_text-text_id = 'Z001'.
    order_text-langu = 'EN'.
    order_text-text_line = 'Adios caracol'.
    APPEND order_text.
    order_text-itm_number = '000010'.
    order_text-text_id = '0001'.
    order_text-langu = 'EN'.
    order_text-text_line = 'Hola, POSICIÓN'.
    APPEND order_text.
    extensionin-structure = 'BAPE_VBAK'.
    extensionin-valuepart1 = '          BCL  7'.
    APPEND extensionin.
    order_cfgs_ref-posex = '10'.
    order_cfgs_ref-config_id = '10'.
    order_cfgs_ref-root_id = '00000001'.
    append order_cfgs_ref.
    CALL FUNCTION 'ZBAPI_SALESORDER_CREATEFROMDT2'
      EXPORTING
       SALESDOCUMENTIN               =  salesdocument
        order_header_in               =  order_header_in
       ORDER_HEADER_INX              =  order_header_inx
      SENDER                        =
      BINARY_RELATIONSHIPTYPE       =
      INT_NUMBER_ASSIGNMENT         =
      BEHAVE_WHEN_ERROR             =
      LOGIC_SWITCH                  =
      TESTRUN                       =
      CONVERT                       = ' '
    IMPORTING
       salesdocument                 = salesdocument
      TABLES
        return                        = return
        order_items_in                = order_item_in
      ORDER_ITEMS_INX               =
        order_partners                = order_partners
        order_schedules_in            = order_schedules_in
      ORDER_SCHEDULES_INX           =
        order_conditions_in           = order_conditions_in
      ORDER_CONDITIONS_INX          =
        ORDER_CFGS_REF                = order_cfgs_ref
      ORDER_CFGS_INST               =
      ORDER_CFGS_PART_OF            =
      ORDER_CFGS_VALUE              =
      ORDER_CFGS_BLOB               =
      ORDER_CFGS_VK                 =
      ORDER_CFGS_REFINST            =
      ORDER_CCARD                   =
        order_text                    = order_text
      ORDER_KEYS                    =
       extensionin                   = extensionin
        partneraddresses              = partneraddresses
    PERFORM  report TABLES return.
    *DATA: salesdocument LIKE bapivbeln-vbeln.
    *DATA: return LIKE bapiret2 OCCURS 0 WITH HEADER LINE.
    *refresh return.
    *CALL FUNCTION 'BAPI_SALESDOCUMENT_COPY'
    EXPORTING
       salesdocument          = '0400000191'
       documenttype           = 'ZA04'
      TESTRUN                = ' '
    IMPORTING
       SALESDOCUMENT_EX       = salesdocument
    TABLES
       RETURN                 = return
    *PERFORM  report TABLES return.
    *write: / salesdocument.
    CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'
    EXPORTING
      WAIT          =
    IMPORTING
      RETURN        =
    *&      Form  report
          text
         -->P_MENSAJE  text
    FORM report  TABLES   p_mensaje STRUCTURE bapiret2.
      DATA: vl_mensaje TYPE string.
      LOOP AT return.
        CLEAR vl_mensaje.
        MESSAGE ID     return-id
                TYPE   return-type
                NUMBER return-number
                INTO   vl_mensaje
                WITH   return-message_v1
                       return-message_v2
                       return-message_v3
                       return-message_v4.
        WRITE: / vl_mensaje.
      ENDLOOP.
    ENDFORM.                    " report

    Hi Manuel,
    There are some function modules which is there to copy the order details. I am not sure about the function module name. But you can search in SE37. But bapi for creating the sales order does not have the functionality of copying the data from one document to another document.
    You can try using this function module.
    BAPI_SALESDOCUMENT_COPY
    Data will be copied based on the copy control routines that is set between the two document types.
    Thanks,
    Arun

  • Sales order with reference to quotations.

    Hello Experts ,
    I want to know how can a sales order be created with reference to more than one quotation??
    Is there a transaction to do this ?? or else its a process?? Please guide. points will be rewarded to the answers.
    Thanks,
    Arathi

    Hi Arathi Rajan,  ALL ARE GIVEN WRONG ANSWERS TO YOU : SORRY TO SAY THAT ....
    YES YOU CAN CREATE ONE SALES ORDER WITHR EFERENCE TO MULTIPLE QUOTATIONS:
    FOLLOW ME:
    1). GO TO VA01 SCREEN ENTER ORDER TYPE : OR
    ENTER SALES AREA
    2). SELECT THE ICON " WITH REFERENCE TO QUOTATION"
    AND THEN COPY THE 1 QUOTATION DETAILS, THEN IT WILL TAKE YOU TO SALES ORDER SCREEN, THERE U WILL FIND ONE LINE ITEM . OK
    3). THEN, IF U WANT TO ENTER MULTIPLE QUOTATIONS:
    SALES DOCUMENT- SELECT CREATE WITH REFERENCE AND SELECT THE MULTIPLE QUOTATIONS LIKE THIS:
    4). NOW U CAN ABLE TO CREATE THE SALES ORDER WITH REFERENCE TO MULTIPLE QUOTATIONS.
    HOPE IT HELPS YOU ,
    Thanks&Regards
    Venkat.Dhanemkula

  • Copy with reference to Customer Master

    Hi experts,
    If the user creates customer master(XD01) with reference to another customer master then system should not copy all the fields say Name and contact number. How can I restrict this in SAP.
    Can any body helps???
    Thanks!!!
    Poorna

    Hi.
    Normally when we copy existing customer to a new  customer we use XD01 with reference and we don't select the items we don't want to copy or we delete the value when we are copying.
    But if you want user to have a feature through which  when ever they create a new customer using the existing customer they should not  copy the recon a/c for Ex, than you have  to create a Z transaction by  copying the orignial XD01 and have your restrictions coded there..
    Regards

  • Return order with reference to the billing document created via IDOC.

    Dear Colleagues,
    I’m struggling to understand and confirm whether standard functionality of ORDERS05 idoc allows creating a return order with reference to existing billing document?
    I have tried using standard segment E1EDK02 and E1EDP02 with qualifiers 009,010,011,087 but unfortunately idol is not creating a return order with reference and ignoring this segment.
    Have any one came across similar problem? If yes then will be grateful for sharing his experience.
    Best regards,
    AL

    Dear Friend
    Welcome to SDN
    Return order is itself a challenge to SAP standard settings
    There are some scenarios
    1. Return order qty should not be increasesd say Billed qty of material X is 20 units
    While returning Material X should be a maximum of 20 units
    If made 21 it should throw error T code OVAH message class V4 message no 299 convert from warning to error thro customization
    2.Return order should be created only once referencing billing doc
    To control that T code SE91 message class V1 message no 499 convert from warning to error thro ABAP help
    3 Your issue is same like case 1 but the material X is entered as second line item in the return order with some qty
    This case system is not throwing even a warning
    Yes correct
    This is to be handled with userexit
    Discuss the same with ABAPer
    Check these threads on return issues which is of different scenario than of yours
    Forum post in ERP - Sales and Distribution (SD) General: Order Qty.
    Order Qty.
    Forum post in ERP - Sales and Distribution (SD) General: Return order
    Return order
    Regards
    Raja

  • VS 2013 template with references not working properly

    I'm trying to create a set of templates that contain references to dlls. When I create a project with references and then export it the references are saved into the template but the files aren't copied.
    I have created a class that implements iWizard and copies the remaining file types (.dll, .xml etc.) in the correct folder when you create a new template. This is also working.
    Now the problem was that I needed the project to know that it should use the dlls that are copied into the project folder. So I edited the .vbproj file and inserted the path manually, i.e. I found the reference tags and removed the path information so they
    only referred to the file itself. Like this:
      <Reference Include="MyDll"><HintPath>MyDll.dll</HintPath></Reference>
    This workaround is almost working. VS finds the dlls and lets me use them, but only if I go to project -> properties and then clock on the reference tab. The classes are not recognized until I do this. I get the usual  type or class not defined error
    until I simply click on the reference tab in project properties.
    It seems to me that I have missed a step when I was doing my workaround and Visual Studio completes it when I click on references. I just don't know what that is or what a good alternative to my solution would be.

    Hi Mongan,
    I have been researching this issue these days. You can check whether there are some differences in MyTemplate file and the project file before and after you click the references tab in project properties? Maybe you will get some information.
    In addition, I doubt maybe you missed something in your iWizard extension. the following link introduced detailed ways and code to create project template using IWizard interface, you can reference it to check whether it can help you.
    http://www.codeproject.com/Articles/391989/Working-with-Project-Template-and-Wizard-Extension
    The following threads suggested adding the project reference in the ProjectFinishedGenerating() method to add a reference to project template:
    https://social.msdn.microsoft.com/Forums/vstudio/en-US/f57d8eed-ba7a-4e82-bed4-1dd4b8a3a288/custom-wizard-adding-references-dlls-to-a-project?forum=vsx
    https://social.msdn.microsoft.com/Forums/vstudio/en-US/b4d4f816-70b6-4042-bb34-324a7da1a3e2/custom-wizard-is-it-possible-to-add-a-dll-reference-to-a-project-on-creation-from-a-custom-wizard?forum=vsx
    If the suggestions above does not help you, I find that
    Visual Studio Integrate forum:
    https://social.msdn.microsoft.com/Forums/vstudio/en-US/home?forum=vsx is a better forum because you are using iWizard to create project template. You can open a new thread about
    your current issue and post some code about iWizard  there, Visual Studio Extension experts will provide you better support.
    Thank you for your understanding.
    Have a nice day:)
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • Unable to create Instance with Object Editor and Attachment Pattern

    Hi Experts,
    I created a simple entity service with some attributes and a document reference.
    I also configured an object editor pattern and assigned a attachment pattern. The created object editor works as long as I don't attach a file. But if I attach a file and want to save it I get an error message "cannot create"
    In the default log.trc I have some entries
    Cannot read associated instance with MOF ID 105D8E0C4F02D45AFFD5B9D6A09EFB7A of MOF Layer 2 for (6DC24B80F6004CDBF4FA6C560AEDD33C,<null>)
    and
    refPackageM1(com.sap.ip.bi.sdk.dac.olap.query) failed RepositoryDBMemory. Using generic one.
    I configured the j2ee engine according the tutorial "Integrating KM with CAF UI Patterns"
    So what is wrong?
    Best regards Manuel

    Hi,
    From the stacktrace I assume that the following happens (please correct me, if I'm wrong):
    <b>*</b> Some time based event mechanism sends an event to your custom event handler code. That code is execute in some system context.
    <b>*</b> Your handler uses the RF API to create a collection. All this is perfectly OK. Here my assumptions end, the next steps are solid facts.
    <b>*</b> Within the RF all property filters are informed that a resource is about to be created. One of the filters is trying to obtain a lock from a system provided Locking Service.
    <b>*</b> That service refuses to grant the lock, telling that system users are not allowed to do so.
    Most proably you cannot do anything to solve this problem by yourself. When I ran into the same Exception once, I could avoid to have my code run in a system thread. Well you might try to do the same.
    Otherwise please open a customer message and complain about the restiction in the locking behaviour.
    Best regards,
    Michael

  • Problem with trigger and entity in JHeadsart, JBO-25019

    Hi to all,
    I am using JDeveloper 10.1.2 and developing an application using ADF Business Components and JheadStart 10.1.2.27
    I have a problem with trigger and entity in JHeadsart
    I have 3 entity and 3 views
    DsitTelephoneView based on DsitTelephone entity based on DSIT_TELEPHONE database table.
    TelUoView based on TelUo entity based on TEL_UO database table.
    NewAnnuaireView based on NewAnnuaire entity based on NEW_ANNUAIRE database view.
    I am using JHS to create :
    A JHS table-form based on DsitTelephoneView
    A JHS table based on TelUoView
    A JHS table based on NewAnnuaireView
    LIB_POSTE is a :
    DSIT_TELEPHONE column
    TEL_UO column
    NEW_ANNUAIRE column
    NEW_ANNUAIRE database view is built from DSIT_TELEPHONE database table.
    Lib_poste is an updatable attribut in TelUo entity, DsitTelephone entity, NewAnnuaire entity.
    Lib_poste is upadated in JHS table based on TelUoView
    I added a trigger on my database shema « IAN » to upadate LIB_POSTE in DSIT_TELEPHONE database table :
    CREATE OR REPLACES TRIGGER “IAN”.TEL_UO_UPDATE_LIB_POSTE
    AFTER INSERT OR UPDATE OFF lib_poste ONE IAN.TEL_UO
    FOR EACH ROW
    BEGIN
    UPDATE DSIT_TELEPHONE T
    SET t.lib_poste = :new.lib_poste
    WHERE t.id_tel = :new.id_tel;
    END;
    When I change the lib_poste with the application :
    - the lib_poste in DSIT_TELEPHONE database table is correctly updated by trigger.
    - but in JHS table-form based on DsitTelephoneView the lib_poste is not updated. If I do a quicksearch it is updated.
    - in JHS table based on NewAnnuaireView the lib_poste is not updated. if I do a quicksearch, I have an error:
    oracle.jbo.RowAlreadyDeletedException: JBO-25019: The row of entity of the key oracle.jbo. Key [null 25588] is not found in NewAnnuaire.
    25588 is the primary key off row in NEW_ANNUAIRE whose lib_poste was updated by the trigger.
    It is as if it had lost the bond with the row in the entity.
    Could you help me please ?
    Regards
    Laurent

    The following example should help.
    SQL> create sequence workorders_seq
      2  start with 1
      3  increment by 1
      4  nocycle
      5  nocache;
    Sequence created.
    SQL> create table workorders(workorder_id number,
      2  description varchar2(30),
      3   created_date date default sysdate);
    Table created.
    SQL> CREATE OR REPLACE TRIGGER TIMESTAMP_CREATED
      2  BEFORE INSERT ON workorders
      3  FOR EACH ROW
      4  BEGIN
      5  SELECT workorders_seq.nextval
      6    INTO :new.workorder_id
      7    FROM dual;
      8  END;
      9  /
    Trigger created.
    SQL> ALTER SESSION SET NLS_DATE_FORMAT = 'DD-MON-YYYY HH24:MI:SS';
    Session altered.
    SQL> insert into workorders(description) values('test1');
    1 row created.
    SQL> insert into workorders(description) values('test2');
    1 row created.
    SQL> select * from workorders;
    WORKORDER_ID DESCRIPTION                    CREATED_DATE
               1 test1                          30-NOV-2004 15:30:34
               2 test2                          30-NOV-2004 15:30:42
    2 rows selected.

Maybe you are looking for

  • How to load a class , which isn't in the classpath environment variable.

    Hi, you folks. I have one problem. I want to load a class, which isn't in the classpath environment variable and I don't want to put into classpath. which method JVM can use to load it? Waitting for your sage advice. Regareds Hunter.Xiao

  • Automation Testing on Webcenter Sites

    Hello, How do I automate content creation using any automated test tool? Thanks, Sushanth

  • How to calculate percentage based on key figure maximum value

    Hello everybody! I need your expertise on a query 'issue' I'm facing. Let's say I have a query getting me the Number of Open Items per Week (starting from billing document's Issue Date). My client wants to be able to see the percentage per week and n

  • Run Time Error '13' Type Mismatch in SAP BEx

    Hello, SAP World! If i try to see "Query Properties" in Excel 2007 in BEx Analyzer, getting the error: Run-time error '13' Type Mismatch. Plz, Help! For Excel 2003 this error is not occured. GUI 6.40 File Ver. 6405.5.27.3058 Patch Level: 27 SAP BW 35

  • Reinstalling Facebook Apps

    after deleting twice facebook apps on my ipad mini, i cannot re install for the third time..but before deleting it, there is another problem, i canoot logged in my fb account so i deleted it and reinstall it, i did it twice..and now i cannot reinstal