AutoVue API - Create custom entity

All,
Is it possible to extend the AutoVue API to create your own markup entity.
We have been asked to create a button that will allow them to create their own entity which would basically be a compilation of existing entities (dashed and solid lines with arrow heads) but grouped together to form one entity.
We would like to be able to create more than one of these entities too so the group functionality may not help us a great deal here either as it seems to only allow one group of entities. If i try to group another then my first grouping gets undone.
Normally when you select an entity button to draw it, you then hold the left click button and drag across the UI and then let the mouse button go (to complete a line).
We do not have to be able to do this, they could just click a point on the UI and the new entity be created at the point and then allow them to re-size it.
I thought there was documentation to do such a thing but i am unable to locate it if it does exist.
Any help on this would be appreciated as it is not just one custom entity they want and it will also help us in the future to sell AutoVue especially if we can prove such custom things. It also makes it harder to move to another viewer if they come to rely on such custom components.
Nick

- The custom markup entity (e.g. UDEPolygon) should implement the UDEDesigner interface and the custom markup entity spec. should extends UDESpec class.
- Register the UDE designer (MarkupBean mrkBean): mrkBean.registerUdeDesigner()
* Register a UDEDesigner class.
* @param udename The UDE name. Should match string returned by
* UDEDesigner.getName().
* @param classname The fully qualified classname of the UDEDesigner.
public void registerUdeDesigner(String udename, String classname)
- Register your mouse listener to capture and convert to world coordinates mouse point (mrkBean.deviceToWorld(pt))
- Set the custom markup entity class and enter markup ADD mode:
mrkBean.selectionClear();
mrkBean.setMarkupEntityClass("UDEPolygon"); // UDEpolygon is your custom markup entity class name
mrkBean.setActionMode(MarkupBean.ACTION_MODE_ADD);

Similar Messages

  • Approval workflow error when creating a new custom entity in FIM 2010 R2

    Hello,
    i'm hoping somebody here can help, me i've been struggling with this for some time now. On a fresh FIM installation i create a custom entity named "Role" and add a few custom attributes.
    I then create an approval workflow and MPR for normal users to create entities of type Role, but another user must approve this request. The other user has a working mailbox - i've tried firing an action workflow that sends a mail notification when someone
    creates a new role and it is working fine. But, when i enable my approval workflow (the only field i changed from default is the approver) on the MPR, the workflow always failes with the message:
    Error processing your request: The operation was rejected because of access control policies.
    Reason: The server workflow rejected the operation.
    Attributes:
    Correlation Id: 750a558a-d3e4-4216-b16a-e76d79f011ec
    Request Id: feaabbc9-dea4-49a3-8b29-65b77de6f8fd
    Details: The Workflow Instance '04202cc0-14a3-410c-a3fc-2d6e5d25ebe6' encountered an internal error during processing. Contact your system administrator for more information.
     I enabled tracing and this is what i found:
    Microsoft.ResourceManagement Verbose: 0 : Creating WorkflowServiceHost for XOML Definition:\n<ns0:SequentialWorkflow ActorId="00000000-0000-0000-0000-000000000000" RequestId="00000000-0000-0000-0000-000000000000" x:Name="SequentialWorkflow"
    TargetId="00000000-0000-0000-0000-000000000000" WorkflowDefinitionId="00000000-0000-0000-0000-000000000000" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/workflow"
    xmlns:ns1="clr-namespace:System.Workflow.Activities;Assembly=System.WorkflowServices, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856
        ThreadId=8
        DateTime=2013-09-04T15:17:10.0496188Z
    Microsoft.ResourceManagement Information: 1 : 1 :  : Invalid Element 'ReceiveActivity.WorkflowServiceAttributes' found while deserializing an object of type 'Microsoft.ResourceManagement.Workflow.Activities.ApprovalActivity'.
        ThreadId=8
        DateTime=2013-09-04T15:17:10.1277486Z
    Microsoft.ResourceManagement Information: 1 : 1 :  : Invalid data found while deserializing an object of type 'Microsoft.ResourceManagement.Workflow.Activities.ApprovalActivity'.
        ThreadId=8
        DateTime=2013-09-04T15:17:10.1277486Z
    Microsoft.ResourceManagement Verbose: 0 : A WorkflowRuntime is not available for this WorkflowDefinitionVersionKey '20'.
        ThreadId=8
        DateTime=2013-09-04T15:17:10.1277486Z
    Microsoft.ResourceManagement Error: 3 : Workflow host activation failed for workflow definition id : 231457c6-d044-4cc7-839f-98e5cf88f514, version key: 20. Exception: Object reference not set to an instance of an object.   at Microsoft.ResourceManagement.Workflow.Hosting.HostActivator.ActivateHost(ResourceManagementWorkflowDefinition
    workflowDefinition, Boolean suspendWorkflowStartupAndTimerOperations)
       at Microsoft.ResourceManagement.Workflow.Hosting.HostActivator.RetrieveWorkflowDataForHostActivator()
        ThreadId=8
        DateTime=2013-09-04T15:17:10.1277486Z
    Microsoft.ResourceManagement Information: 1 : The service has updated the list of active hosted workflow definitions to sequence number '1'.
    This happened on two separate FIM deployments, but both of them were set up in the same way. What am i missing here?
    Thank you,
    Martin

    (...) What am i missing here? (...) - Sharepoint 2013 and probable bug in FIM related to it. Check this thread for workaround
    and resolution:
    http://social.technet.microsoft.com/Forums/en-US/1b76672d-1276-4c71-b9fc-5bb1fcb36877/event-id-3-with-approval-activity?forum=ilm2
    Tomek Onyszko, memberOf Predica FIM Team (http://www.predica.pl), IdAM knowledge provider @ http://blog.predica.pl

  • How to create Custom WEB ADI using API Only for both Dowload/Upload process

    I am able to create custom WEB ADI using API for upload process. I have written the following code to create custom WEB ADI using API for upload process.
    DECLARE
    v_application_id NUMBER:= 20003;
    v_object_code VARCHAR2(255):='WEBADI_API_DEM_17';
    v_int_user_name VARCHAR2(255):='WEBADI_API_DEM_17';
    v_language VARCHAR2(255):='US';
    v_source_lang VARCHAR2(255):='US';
    v_user_id NUMBER :=1345;
    v_integrator_code VARCHAR2(255);--:='WEBADI_API_DEM_17_INTG';
    v_param_list_code VARCHAR2(255);
    --v_interface_code  VARCHAR2(255);
    v_interface_code VARCHAR2(255);--:='WEBADI_API_DEM_17_INTF';
    p_layout_code VARCHAR2(255):='WEBADI_API_DEM_17_LAYOUT';
    V_MAPPING_CODE VARCHAR2(255);
    BEGIN
    BNE_INTEGRATOR_UTILS.CREATE_INTEGRATOR(P_APPLICATION_ID =>v_application_id,
    P_OBJECT_CODE =>v_object_code,
    P_INTEGRATOR_USER_NAME =>v_int_user_name,
    P_LANGUAGE =>v_language,
    P_SOURCE_LANGUAGE =>v_source_lang,
    P_USER_ID =>v_user_id,
    P_INTEGRATOR_CODE =>v_integrator_code);
    BNE_INTEGRATOR_UTILS.CREATE_INTERFACE_FOR_API (P_APPLICATION_ID =>v_application_id,
    P_OBJECT_CODE =>v_object_code,
    P_INTEGRATOR_CODE =>v_integrator_code,
    P_API_PACKAGE_NAME =>'XXDH_PRICE_LIST_POC_PKG',
    P_API_PROCEDURE_NAME =>'CREATE_PRICE_LIST',
    P_INTERFACE_USER_NAME =>'WEBADI_API_DEM_17',
    P_PARAM_LIST_NAME =>'WEBADI_API_DEM_17',
    P_API_TYPE =>'PROCEDURE',
    P_API_RETURN_TYPE =>NULL,
    P_UPLOAD_TYPE =>2,
    P_LANGUAGE =>v_language,
    P_SOURCE_LANG =>v_source_lang,
    P_USER_ID =>v_user_id,
    P_PARAM_LIST_CODE =>v_param_list_code,
    P_INTERFACE_CODE =>v_interface_code);
    BNE_INTEGRATOR_UTILS.CREATE_DEFAULT_LAYOUT
    (P_APPLICATION_ID =>v_application_id,
    P_OBJECT_CODE =>v_object_code,
    P_INTEGRATOR_CODE =>v_integrator_code,
    P_INTERFACE_CODE =>v_interface_code,
    P_USER_ID =>v_user_id,
    P_FORCE =>FALSE,
    P_ALL_COLUMNS =>TRUE,
    P_LAYOUT_CODE =>p_layout_code);
    BNE_CONTENT_UTILS.CREATE_CONTENT_COLS_FROM_VIEW (P_APPLICATION_ID =>v_application_id,
    P_CONTENT_CODE =>'WEBADI_API_DEM_17'||'_CNT',
    P_VIEW_NAME =>'XXDH_PRICE_LIST_POC_V',
    P_LANGUAGE =>v_language,
    P_SOURCE_LANGUAGE =>v_source_lang,
    P_USER_ID =>v_user_id);
    BNE_CONTENT_UTILS.CREATE_CONTENT_TO_API_MAP (P_APPLICATION_ID =>v_application_id,
    P_OBJECT_CODE =>v_object_code,
    P_INTEGRATOR_CODE =>v_integrator_code,
    P_CONTENT_CODE =>'WEBADI_API_DEM_17'||'_CNT',
    P_INTERFACE_CODE =>v_interface_code,
    P_LANGUAGE =>v_language,
    P_SOURCE_LANGUAGE =>v_source_lang,
    P_USER_ID =>v_user_id,
    P_MAPPING_CODE =>V_MAPPING_CODE);
    END;
    I need to know what are API we can use to create download+upload ADI? anyone has already prepared script....please share it it me. My email id - [email protected]
    Thanks

    Use FNDLOAD, it's the only way.
    There are 2 seperate scripts, 1 for the Integrator and 1 for Layout.
    FNDLOAD apps/<pw> 0 Y DOWNLOAD $BNE_TOP/patch/115/import/bneintegrator.lct <your name>.ldt BNE_INTEGRATORS INTEGRATOR_ASN="XXX" INTEGRATOR_CODE="<your code>"
    FNDLOAD apps/<pw> 0 Y DOWNLOAD $BNE_TOP/patch/115/import/bnelay.lct <your name>.ldt BNE_LAYOUTS LAYOUT_ASN="XXX" LAYOUT_CODE="<your code>"
    Cheers
    Jeroen

  • Dots are appearing on characters after created PDF through *.dwg file using AutoVue API

    Hi,
       I created PDF's through *.dwg file using AutoVue API 20.2.2. I observed in more zoom of PDF, every character or line has dots. At the same time on second page of PDF drawing lines are thicker that first page of PDF.
       Please kindly help on this, how to remove dots and drawing lines are published same as on first page.
    Thanks,
    Siva

    As with any format that does not support zoomable line thickness, the output is dpi dependent
    Imagine the DPI impact on a PDF is similar to the DPI on an image, except you can zoom into the lines, they look smooth (it is vector) but the position for the specific points is not as accurate as it should
    So it all boils down to how are you generating the PDF?

  • Problem with creating customer account using TCA Java API

    Hi,
    I am trying to create customer account using TCA java API. i am getting exception saying PL/SQL numeric error: character to number conversion. but this error raises when calling API method
    HzCustAccountV2Pub.createCustAccount.
    can any body help me in solving this issue, any clue why this exception raises. i have tested even the code given in TCA API user guide. that code also gets same error.

    package client;
    import java.math.BigDecimal;
    import java.sql.Timestamp;
    import java.sql.DriverManager;
    import java.sql.SQLException;
    import oracle.jdbc.driver.OracleConnection;
    import oracle.jdbc.driver.OracleCallableStatement;
    import oracle.jdbc.driver.OracleTypes;
    import oracle.apps.ar.hz.v2api.HzCustAccountV2Pub;
    import oracle.apps.ar.hz.v2api.HzPartyV2Pub;
    import oracle.apps.ar.hz.v2api.HzCustomerProfileV2Pub;
    class CreateCustAccount {
         public static void main(String[] args) throws Exception {
         HzCustAccountV2Pub.CustAccountRec p_cust_account_rec = new HzCustAccountV2Pub.CustAccountRec();
         HzPartyV2Pub.PersonRec p_person_rec = new HzPartyV2Pub.PersonRec();
         HzCustomerProfileV2Pub.CustomerProfileRec p_customer_profile_rec = new      HzCustomerProfileV2Pub.CustomerProfileRec();
         BigDecimal[] x_cust_account_id = new BigDecimal[1];
         String[] x_account_number = new String[1];
         BigDecimal[] x_party_id = new BigDecimal[1];
         String[] x_party_number = new String[1];
         BigDecimal[] x_profile_id = new BigDecimal[1];
         String[] x_return_status = new String[1];
         BigDecimal[] x_msg_count = new BigDecimal[1];
         String[] x_msg_data = new String[1];
         try
         Class.forName ("oracle.jdbc.driver.OracleDriver");
         OracleConnection conn = (OracleConnection) DriverManager.getConnection ("jdbc:oracle:thin:@ebiztst.trianz.int:1526:PATCH","apps","apps");
         HzCustAccountV2Pub custaccountV2Pub = new HzCustAccountV2Pub();
         p_cust_account_rec.account_name = "John Ac";
         p_person_rec.person_first_name = "John";
         p_person_rec.person_last_name = "Smith";
         p_cust_account_rec.created_by_module = "TCA_EXAMPLE";
         HzCustAccountV2Pub.createCustAccount(
         conn
         , "T"
         , p_cust_account_rec
         , p_person_rec
         , p_customer_profile_rec
         , "F"
         , x_cust_account_id
         , x_account_number
         , x_party_id
         , x_party_number
         , x_profile_id
         , x_return_status
         , x_msg_count
         , x_msg_data
         System.out.println( "x_return_status = " + x_return_status[0] );
         System.out.println( "x_msg_count = " + x_msg_count[0] );
         System.out.println( "x_msg_data = " + x_msg_data[0]);
         if (x_msg_count[0].intValue() > 1) {
              OracleCallableStatement ocs = null;
              for (int i=0; i<x_msg_count[0].intValue(); i++) {
              ocs = (OracleCallableStatement)conn.prepareCall(
              "begin ? := fnd_msg_pub.get( p_encoded => ’F’ ); end;");
              ocs.registerOutParameter(1, OracleTypes.VARCHAR);
              ocs.execute();
              System.out.println((i + 1) + ". " + ocs.getString(1));
              conn.close();
              } catch (ClassNotFoundException e) {
              System.out.println("Driver Not Found: " + e);
              } catch (SQLException e) {
              System.out.println("SQL Error." + e);
    }

  • EBS Create Customer API 11.5.10.2

    Is there an API for creating customer in 11.5.10.2. If it is there, will that be supported by Oracle.
    Thanks,
    N

    Please see these docs.
    How to create Customer Account Relationship via TCA API? [ID 224494.1]
    How To Create A Customer Via TCA API ? [ID 189369.1]
    How To Create A Customer Via TCA API [ID 159393.1]
    TCA Customer Interface & API White Paper [ID 201242.1]
    Using TCA API's Including Examples [ID 201243.1]
    Oracle Applications Multiple Organizations Access Control for Custom Code [ID 420787.1]
    Thanks,
    Hussein

  • Error using Quick Create Form on custom entity

    Hello,
    I have a new relationship between opportunity and a custom entity. Now I want to use quick create form for my custom entity. Then from the opportunity form, I click on the "new" action inside the custom lookup field but nothing happens and I have
    a JavaScript error... The quick create form has no JS code. The contact quick create form works fine. And the quick create form for my custom entity works if you click on the Add button on the main ribbon... so I'm lost... I've tried also with Chrome and IE,
    same result. May be I'm doing something wrong...
    Any help will be very apreciated.
    Thank in advance to everybody.
    The error:
    <CrmScriptErrorReport>
      <ReportVersion>1.0</ReportVersion>
      <ScriptErrorDetails>
       <Message>Unable to get property 'getAttribute' of undefined or null reference</Message>
       <Line>16</Line>
       <URL>/_common/JsProvider.ashx?ids=1545465446-1759665639-1968334880-202661451-1025323794-1793205875-1547461133-1992083491-1000289424-159335543-1376927455-1030632819-1181113682-1314140682-1194605645-1039841082-513446117-1625018438-1460109179-1088147315-706656670-342519603-542820515-1946640899-1603536461-468302605-1405388298-1220618931-511599809-1264077421-1188909594-783705869-374257838-502328314-2050812538-512064351&ver=1313516505</URL>
       <PageURL>/main.aspx?etc=3&extraqs=%3fformid%3d5b6f6723-db6e-40f2-9ca5-b78678b1076b%26id%3d%257b4F3786B4-4C0E-E411-93F6-0050569D1A22%257d%26rof%3dtrue%26rskey%3d200436436%26setlastviewed%3dtrue%26theme%3dOutlook15White&pagemode=iframe&pagetype=entityrecord&rof=true&rskey=200436436</PageURL>
       <Function>anonymous($p0){var$v_0=this.getLookupSearchText();this.$2a_4($p0,this.$$d_$3n_4);var$v_1=this.get_$1G_4(),$v_2=$get($v_1),$v_3=$v_2.getAttribute("entityDisplayName"),$v_4=Mscrm.InlineEditUtilities.getLinkedDataObject($P_CRM($v_2)),$v_5=String.format("glob</Function>
       <CallStack>
        <Function>anonymous($p0){var$v_0=this.getLookupSearchText();this.$2a_4($p0,this.$$d_$3n_4);var$v_1=this.get_$1G_4(),$v_2=$get($v_1),$v_3=$v_2.getAttribute("entityDisplayName"),$v_4=Mscrm.InlineEditUtilities.getLinkedDataObject($P_CRM($v_2)),$v_5=String.format("globalqctimestamps_{0}",$v_1),$v_6=null;if(!IsNull($v_4)&&$v_5in$v_4)$v_6=$v_4[$v_5];var$v_7,$$t_A,$$t_B,$v_8=($$t_B=this.$2Y_4($$t_A={val:$v_7}),$v_7=$$t_A.val,$$t_B);Mscrm.GlobalQuickCreate.GlobalQuickCreateBehavior.launchGlobalQuickCreate(this.$1Z_4,$v_3,parseInt($v_2.getAttribute("entityTypeCode")),$v_6,$v_8,$v_7,$v_0)}</Function>
       </CallStack>
      </ScriptErrorDetails>
      <ClientInformation>
       <BrowserUserAgent>Mozilla/5.0 (compatible; MSIE 10.0; Windows NT 6.2; WOW64; Trident/6.0; .NET4.0E; .NET4.0C; .NET CLR 3.5.30729; .NET CLR 2.0.50727; .NET CLR 3.0.30729)</BrowserUserAgent>
       <BrowserLanguage>en-US</BrowserLanguage>
       <SystemLanguage>es-ES</SystemLanguage>
       <UserLanguage>es-ES</UserLanguage>
       <ScreenResolution>1364x768</ScreenResolution>
       <ClientName>Web</ClientName>
       <ClientTime>2014-09-01T16:13:52</ClientTime>
      </ClientInformation>
      <ServerInformation>
        <OrgLanguage>3082</OrgLanguage>
        <OrgCulture>3082</OrgCulture>
        <UserLanguage>3082</UserLanguage>
        <UserCulture>3082</UserCulture>
        <OrgID>{8704CF11-2D0C-E411-93F6-0050569D1A22}</OrgID>
        <UserID>{3DDB30DE-B80C-E411-93F6-0050569D1A22}</UserID>
        <CRMVersion>6.1.0.581</CRMVersion>
      </ServerInformation>
    </CrmScriptErrorReport>
    Francisco

    It looks like product error message.
    If it's happening on production, You can suppress the error message. Settings -> Administration ->Privacy Preferences -> Select Never send error report to Microsoft
    Regards,
    Prabhu
    Prabhu G

  • Possibility on creating custom API's in OCCI

    Hi,
    In OCCI I'm planning to create custom API's i.e. I will pass any kind of query and it should execute and update the database.
    For instance,
    string query = "insert into stu(a,b) values(:1,:2)";
    It will update stu table with data from C++ object suppose 'X'.
    This kind of approach will work or it will not. I'm half way through on insert queries but encountering issues when hard coded and only partial data has to be updated in the table.
    Before continuing further could you please give me commnets on my approach?.
    Thanks
    Vishnu

    Yes, you can. You can insert values for a few columns as you indicated. What issues are you seeing?

  • Oracle.jbo.RowCreateException: JBO-25017: Error while creating a entity row

    Hi all,
    I'm new to OAF,
    I have created a Page, In that i have an LOV to a Message Text input box and it returns values to another 6 text boxes from my custom table(1). and in the same page i have some radio buttons also check boxes and "save","cancel" buttons.here i have created another custom table(2) for store these values if i click save button it has to store the page values to custom table(2) columns.
    But i tried my level and i got the an error message oracle.jbo.RowCreateException: JBO-25017: Error while creating a entity row
    can anyone help me to resolve it.
    Thanks in advance for your help,
    Saravanakumar

    Hi Saravana,
    you mean to say that
    " to display values on the page you are using table1" and when you click on save button "you want to store the same values into Table2".
    if this is the case, we can do this.
    what you need to do is:
    1) create EO for Table2.
    2) Create VO based on Above VO.
    3) Attach this VO to AM(for which you have attached Table1 VO).
    when you click on "Save" Button,
    programmatically assign values from Table1 VO to Table2 VO.
    and commit the transaction.
    I hope it may help you.
    Regards,
    Naren.

  • Error while creating customer

    While creating customer from AR responsibility, I am getting an error while clicking "details" tab for "Ship to"
    error I am getting are
    1. The data that defines the flexfield on this field may be inconsistent. Inform your system administrator that the function: KeyFlexfieldDefinitionFactory.getStructureNumber could not find the structure definition for the flexfield specified by Application = SQLGL, Code = GL# and Structure number =
    2. Application: FND, Message Name: FND_GENERIC_MESSAGE. Tokens: MESSAGE = java.sql.SQLException: ORA-20001: Operating unit -1 does not exist in the target database. ORA-06512: at "APPS.APP_EXCEPTION", line 72 ORA-06512: at "APPS.GL_GLOBAL", line 65 ORA-06512: at line 1 ;
    any idea why is it coming, I checked Operating unit profile option i.e MO: Op Unit and MO: Sec. , all are fine.

    The error is occuring because Oracle is trying to validate/set a DFF.
    Check the DFF attached to the customer entity, address entity or site use entity.
    Especially look at the value sets attached to the DFF.
    Look at the value set definition and the default value for the field.
    Hope this helps,
    Sandeep Gandhi

  • Creating Custom Validators for ADF in JDev 10.1.3.1

    Hi all,
    I'm trying to create a validator to solve a seemingly common problem - that is given 2 dates (startDate & endDate), validate that endDate cannot be earlier than startDate.
    In my case, both startDate and endDate are in the same form. From the ADF Developers Guide, the recommended approach is to create the validation method on the page's backing bean. But in my application, there are many occurrences of startDate and endDate in other forms, therefore having the validation method on the backing bean might not be the best solution.
    I tried to create my own custom validator and tying it to a tag library stated in http://java.sun.com/j2ee/1.4/docs/tutorial/doc/JSFDevelop6.html#wp999130, but that didn't seem to work either. I'm not sure if creating custom validators by extending the ValidatorTag is supported in ADF.
    Would appreciate it if someone has any suggestions on how to create the validator that I need, without having validation methods that does the same thing all over my backing beans.
    TIA.
    Regards,
    Lennard

    Hi,
    of course, ADF Faces supports custom validators because it is compliant to the JSF APIs runnting on the JSF RI.
    Another approach for validation would be on the business service level. Assuming you use ADF BC, the EO can have a method validator defined that is automatically inherited by all its views. The disadvantage though is that the error message would have to come from the server, requiring custom error message handling for user friendly messages as described in the developer guide.
    Looking forward, in a next release of ADF the binding ayer will allow more complex validations thus not requiring to handle complex validation on teh business service.
    So far however I think that using a custom validator is the best you can do. Note that in the case of ADF BC the date is of type oracle.jbo.server.domain.Date and not java.util.Date, which might be a hint to check for your validator issue
    Frank

  • Error while creating customer account sites from backend

    I am creating Customer Account Sites using the TCA API from Toad.
    I am getting the following error
    The operating unit is either invalid or it cannot be derived. Please verify your Multi-Org profile options.
    The Operating unit has been defined.
    I am using the following code:
    DECLARE
    p_cust_acct_site_rec hz_cust_account_site_v2pub.cust_acct_site_rec_type;
    x_return_status VARCHAR2(2000);
    x_msg_count NUMBER;
    x_msg_data VARCHAR2(2000);
    x_cust_acct_site_id NUMBER;
    BEGIN
    p_cust_acct_site_rec.cust_account_id := 9462;
    p_cust_acct_site_rec.party_site_id := 5473;
    --p_cust_acct_site_rec.language := 'US';
    p_cust_acct_site_rec.org_id := 126;
    p_cust_acct_site_rec.created_by_module := 'TCA-EXAMPLE';
    hz_cust_account_site_v2pub.create_cust_acct_site(
    'T',
    p_cust_acct_site_rec,
    x_cust_acct_site_id,
    x_return_status,
    x_msg_count,
    x_msg_data);
    dbms_output.put_line(SubStr('x_return_status =
    '||x_return_status,1,255));
    dbms_output.put_line('x_msg_count = '||TO_CHAR(x_msg_count));
    dbms_output.put_line(SubStr('x_msg_data = '||x_msg_data,1,255));
    IF x_msg_count >1 THEN
    FOR I IN 1..x_msg_count
    LOOP
    dbms_output.put_line(I||'. '||SubStr(FND_MSG_PUB.Get(p_encoded =>
    FND_API.G_FALSE ), 1, 255));
    END LOOP;
    END IF;
    END;
    Thanks and Regards,
    K tanna

    Duplicate post.
    Error while creating customer account sites
    Error while creating customer account sites

  • Error While Creating Customer Account Site.

    Hi ,
    I am creating a customer thru API's.
    I am succesffuly creating location,party,party site,party site use,customer account.But unable to create customer account site. I am getting the below error:
    Unable to process your transaction. The operating unit is either invalid or it cannot be derived. Please verify your Multi-Org profile options.
    Could anyone help me to resolve out this issue.

    Hi,
    What is the application release?
    Did you set the Application/Multi-org context properly before using this API?
    Note: 732671.1 - 'Change PO API' Errors with 'Multi-Org profile options' as Org Context Is Not Set Correctly
    Note: 420787.1 - Oracle Applications Multiple Organizations Access Control for Custom Code
    Note: 209185.1 - How To Set the Applications Context (FND_GLOBAL.APPS_INITIALIZE)
    Regards,
    Hussein

  • Urgent help needed in creating customer ship_to and bill_to site id

    Hi,
    I am using an api to create customer ship_to and bill_to address, in Oracle OM R12 but the api does not return values. I am including the code so any suggestion will be helpful.
    declare
    l_num_billing_site_use NUMBER;
    l_num_cust_site_id NUMBER;
    l_rec_cust_site_use apps.Hz_Cust_Account_Site_V2pub.CUST_SITE_USE_REC_TYPE;
    l_rec_customer_profile apps.Hz_Customer_Profile_V2pub.CUSTOMER_PROFILE_REC_TYPE;
    l_chr_retcode VARCHAR2(20);
    l_chr_errbuf VARCHAR2(200);
    l_num_count NUMBER;
    begin
    -- fnd_global.apps_initialize (1885, 21623, 660); -- user id, --resp_id (OM Super User), appl_id
    -- mo_global.init ('AR');
    -- mo_global.set_policy_context ('S', 511);
    l_rec_cust_site_use.site_use_code := 'BILL_TO';
    l_rec_cust_site_use.cust_acct_site_id := 24919;
    l_rec_cust_site_use.primary_flag := 'N';
    l_rec_cust_site_use.created_by_module := 'CONVERSION'; -- Change
    BEGIN
    apps.Hz_Cust_Account_Site_V2pub.create_cust_site_use( p_init_msg_list => FND_API.G_FALSE
    , p_cust_site_use_rec => l_rec_cust_site_use
    , p_customer_profile_rec => NULL --l_rec_customer_profile
    , p_create_profile => FND_API.G_FALSE
    , p_create_profile_amt => FND_API.G_FALSE
    , x_site_use_id => l_num_billing_site_use
    , x_return_status => l_chr_retcode
    , x_msg_count => l_num_count
    , x_msg_data => l_chr_errbuf);
    EXCEPTION
    WHEN OTHERS THEN
    FND_FILE.PUT_LINE(FND_FILE.LOG,' Unexpected error creating customer site for Cust Site Id ' || l_num_cust_site_id || ' due to: ' || SQLERRM);
    END;
    dbms_output.put_line('cust_site_use:'||l_num_billing_site_use);
    end;
    Thanks,
    Srinivas
    Edited by: user2138419 on Feb 14, 2010 4:46 PM

    It might be a crossdomain.xml problem.
    Please make sure that the server hosting the xml allows the domain where the swf is hosted.
    You can start with:
    <?xml version="1.0" encoding="utf-8" ?>
    <cross-domain-policy>
        <allow-access-from domain="*"/>
        <site-control permitted-cross-domain-policies="master-only"/>
    </cross-domain-policy>

  • Problem when creating CAF Entity Service finder Methods

    Guys,
    Can any one please suggest me appropriatly to the below problem.
    I am using NWDS 7.06. I have no problem when creating CAF project, Application Service and Entity Service even.
    But in the Entity Service:
    1. Add a string or longtext attribute.
    2. try to create a custom finder method in operations tab, during that operation i am  not finding the attribute which i have created in step1.
    That means i am not able to create the my own finder methods with parameters.
    I was able to do that in some version long ago but i have forgotten that NWDS version.
    summary of Problem Is: " Cannot create custom methods with custom parameters in Entity Service"
    Can you please suggest me the right version or a solution to this problem on urgent basis please.
    I promise you that i will give you full points to you who ever gives me the right solution.
    Please mail your suggestions to [email protected]

    Guys,
    I have solved the problem successfully. Thanks for your attention.

Maybe you are looking for

  • Ipod touch 2.1 software upgrade problem

    Hi so i have a first generation ipod touch and i have bought the 2.1 software upgrade but now it is saying that in order to upgrade i have to wipe all content currently on my ipod. This is a problem because I do not have all the files that are on my

  • Regarding conversion of String to Date

    Hi Ravi here and I am getting the following exception when i am working with String to date conversion.As i am working in LAN this code is working for all others .This problem is with my system only.This is not supporting with yyyy-MM-dd format.One m

  • Is there any simple way to close a group of PO's?

    Hello All, I was looking an answer for my question on forum but didn't found anything which could help me to solve my issue. I would like to close a group of PO's in some period of dates. Is there any simple way to do this? I mean transaction for exa

  • Foreign language input on "Solaris 10"

    Hello. I installed "Solaris 10" via 5 CD's (minus the 6th, Languages CD). My question is in what way can the GNOME desktop present an indicator of a language other than English?Via Preferences>Keyboard Layout I added Serbian, German and Bulgarian (it

  • Notify segmentation fault from C++ in JVM

    Hello, I have a Java application which is doing a request to a C++ application through JNI. The Java application does not wait the end of the treatment in the C++ part (The work done in the C++ part is about 30 minutes long). How could I be notified