How to refer global simple types in another schema?

Hello All,
Any help would be greatly appreciated. My problem is , I have a global.xsd schema which declare simple types such as
<xsd:simpleType name="DecimalMin1Max14Places2Type">
<xsd:restriction base="xsd:decimal">
<xsd:totalDigits value="14"/>
<xsd:fractionDigits value="2"/>
</xsd:restriction>
</xsd:simpleType>
I am referring to this type in my another schema forms.xsd. It is used as an attribute to an element. for example an element in forms.xsd is
<xsd:element name="BudgetFourthYearAmount" type="glob:DecimalMin1Max14Places2Type"/>
where glob is the prefix associated with global.xsd
I am sucessfully able to register global.xsd in xdb, but when i try to register forms.xsd, i get sql mapping error. Oracle is able to resolve all the global elements from global.xsd , but it cannot resolve the global simple types i declared.
My question is how i can refer global simple types declared in one xsd and use them in another xsd?
Thank you,
Maninder

Using an include statement in forms.xsd to import in the global.xsd
<xs:include schemaLocation="Global.xsd"/>
If Global.xsd was the shcema_url that you registered the first xsd to.
Regards
Coby

Similar Messages

  • How to use an Object Type from Another Database

    Hi,
    I have this requirement that I need to call a stored procedure from another DB (db1) but I am having a problem with this because one of the input parameters uses an object type defined in that DB (db1). Is it possible to use an object type from another database? TIA!

    Sven W. wrote:
    At least for queries, but I think also for procedure arguments..You (both) probably missed my post?
    We can't use a remote type as procedure argument, even with the same OID.
    It's OK for query on a remote object column though :
    SQL> conn remote_user@remote_db
    Entrez le mot de passe :
    Connecté.
    SQL> create type mytype oid '19A57209ECB73F91E03400400B40BBE3'
      2  as object (att1 number);
      3  /
    Type créé.
    SQL> create table mytable (col1 mytype);
    Table créée.
    SQL> insert into mytable values (mytype(777));
    1 ligne créée.
    SQL> create or replace function myfunc (p_in in mytype) return number
      2  is
      3  begin
      4   return p_in.att1;
      5  end;
      6  /
    Fonction créée.
    SQL> disconn
    Déconnecté de Oracle Database 10g Enterprise Edition Release 10.2.0.4.0 - 64bit Production
    With the Partitioning, OLAP, Data Mining and Real Application Testing options
    SQL>
    SQL>
    SQL>
    SQL>
    SQL>
    SQL> conn my_user@local_db
    Entrez le mot de passe :
    Connecté.
    SQL> create type mytype oid '19A57209ECB73F91E03400400B40BBE3'
      2  as object (att1 number);
      3  /
    Type créé.
    SQL> select * from mytable@test_dbl;
    COL1(ATT1)
    MYTYPE(777)
    SQL> declare
      2   res number;
      3  begin
      4   res := myfunc@test_dbl(mytype@test_dbl(777));
      5  end;
      6  /
    res := myfunc@test_dbl(mytype@test_dbl(777));
    ERREUR à la ligne 4 :
    ORA-06550: Ligne 4, colonne 26 :
    PLS-00331: référence non valide à REMOTE_USER.MYTYPE@TEST_DBL.WORLD
    ORA-06550: Ligne 4, colonne 2 :
    PL/SQL: Statement ignored
    SQL> declare
      2   res number;
      3  begin
      4   res := myfunc@test_dbl(mytype(777));
      5  end;
      6  /
    res := myfunc@test_dbl(mytype(777));
    ERREUR à la ligne 4 :
    ORA-06550: Ligne 4, colonne 9 :
    PLS-00306: numéro ou types d'arguments erronés dans appel à 'MYFUNC'
    ORA-06550: Ligne 4, colonne 2 :
    PL/SQL: Statement ignored

  • How do I view package bodies in another schema ?

    For purposes of SOX and security/audit control, we log in under our network id's in our production environment. We have sourcecode compiled into Oracle seeded schemas ( APPS ) so that scheduled jobs are able to run with submitted from the Oracle Applications environment. We don't compile code into our personal network account areas.
    I know how to GRANT EXECUTE privs so that we can execute a package in another schema, but what I want to do is to be able to view the sourcecode in another schema. Compile into APPS but be able to see the package body from my network id schema account.
    I can't seem to find what the correct permission is anywhere. Granted I can look at DBA_SOURCE to get to it, but I want to use a tool like SQL Developer or TOAD to look at the code in a more presentable and easier to debug manner.
    Any help ?

    I did some more searching on the forum... seems its already a request... TOAD gives access to DBA_Views to resolve the issue... SQL Developer has not integrated that functionality yet, but forum entries seem to indicate that it is on the horizon.
    Thanks for responding though.
    ~Barry

  • How to copy all vpd policies to another schema ?

    Hi all,
    I have two schema :
    app_test
    app_live
    app_test has 70 VPD policies implemented.
    How to copy those policies to be implemented also in app_live ?
    (to avoid runnng the script one by one again ?)
    Thank you,
    xtanto

    To another schema?
    You will need to run all the scripts again, in another schema.

  • How to work with tables located into another schema ?

    Hi
    I have created an application named OBSERVATOIRE and a schema named "OBSERVATOIRE" for it into my db. I created into this schema a few tables like "AGENT" for example.
    Now I am designing another application named TELEGESTION located in another schema named "SIVOA" and I need to display and to use tables located into the schema OBSERVATOIRE.
    I added the schema OBSERVATOIRE into my application TELEGESTION.
    In my new application TELEGESTION, when I try to create a report with a simple request like this
    select * from observatoire.agents
    I get this error :
    Query cannot be parsed, please check the syntax of your query. (ORA-00942: Table ou vue inexistante)
    What should I do in order to work with tables in another schema ?
    Thank you very much
    Christian

    Vajrad and Dan,
    Thank you very much for your suggestions.
    At this point I am wondering if It would be better for me to change the way I began work.
    These two applications will be used by the same users into an intranet (a private network of our company). I wonder if the better would be to import the tables and my application OBSERVATOIRE into the schema SIVOA and get rid of these problems of access.
    Historically, the schema SIVOA contains a lot of tables already used by a previous network.As i was beginner with APEX I created a schema "OBSERVATOIRE" to be "safe". But this schema contains a small amounbt of tables, i can easily tranfers them into the schema "SIVOA"
    But now as I see that that having two schemas is complexifying the developpement and also I am thinking to the login page, I do'nt want to force the user to login each times a switch from one application to the other, etc... I want some kind of "single sign on".
    Whad would be you advise ?
    Thank you for your time.
    Christian

  • Simple Question -- How to use global variables in an another function??!

    Function named globalLeftMargin that has:
    Global NumberVar LeftMargin := 5;
    HOW DO I USE THIS IN ANOTHER FUNCTION?  B/C IT DOES NOT RECOGNIZE IT AND GIVES THIS ERROR:
    The ) is missing.
    The other function is:
    Space(LeftMargin)

    Hi Ajay,
    Add WhilePrintingRecords at the beginning of each formula like:
    WhilePrintingRecords;
    Global NumberVar LeftMargin := 5;
    WhilePrintingRecords;
    Global NumberVar LeftMargin;
    Space(LeftMargin)
    Good luck,
    Brian

  • How to create table from one to another schema?

    Hi,
    There is two schema A and B. schema A want to create table on Schema. which privilege we need to provide? how to create?
    thanks in advance
    Thanks,

    user2017273 wrote:
    Hi,
    There is two schema A and B. schema A want to create table on Schema. which privilege we need to provide? how to create?
    thanks in advance
    Thanks,When you give CREATE ANY TABLE TO A then user A will create table on any schema.But you can create stored PROCEDURE on schema B for creating table and give GRANT EXECUTE <PROC NAME> to A.

  • How to use simple types for table column names ?

    Hi,
    can any one tell how to to use simple types for table column names?
    It is required in internationalizing of webdynpro applications.
    Regards,
    Rajesh

    Hi,
    1: define required column names in <SimpleType>
    2:use the following code to get those values
    3:bind 'text' property of Column headers to context attributes
    4:take a context attribute 'Value' as type of <SimpleType>
    5:set these values to context attributes
    IWDAttributeInfo objAttrInfo=wdContext.getNodeInfo().getAttribute(IPrivate<ViewName>View.IContextElement.VALUE);
    ISimpleTypeModifiable simple=objAttrInfo.getModifiableSimpleType();
    Map m=simple.getEnumerationTexts();
    Collection c=m.values();
    Iterator it=c.iterator();
    if(it.hasNext())
    wdContext.currentContextElement.set<att1>(it.next().toString);
    if(it.hasNext())
    wdContext.currentContextElement.set<att2>(it.next().toString);
    if(it.hasNext())
    wdContext.currentContextElement.set<att3>(it.next().toString);
    Regards
    LakshmiNarayana

  • How to refer to a protected class outside the enclosing package

    Hi all,
    At the page 357 of the book Java Language Specification(Second Edition), when saying about checking accessibility of Type and Method, they concern Let C be the class containing the method invovation T.m, if T is in a different package than C, and T is protected then T is accessible if and only if C is a subclass of T. I just wonder how to refer a protected type outside the package it declared.
    For example,
    package test;
    public class test {
    static protected class protectedTest {
    public void foo() {..}
    in another package
    import test.*;
    class subtest extends test.protectedTest {  <- error
    Anyone can give me an example showing an invocation directly to foo() declared in class test.protectedTest ? The invocation should appear outside package test.
    Thanks,
    Ha Chau

    The protected inner class would be accesible only within a class which extends test, where you could either use or extend it as in:
    class subtest extends test {
        private static class sub2 extends protectedTest {
               }

  • Read enumaration list of simple type

    Hi,
    I want to read enumaration list of simple type and compare it with user input. Simple type is not bound to any attribute.
    How can I read enumeration list values?
    Regards,
    Apurva

    Hi,
    Thanks for replies.
    I wanted to use simple type as storage space for Enumeration list. So, I can refer to this list and fill values from this list as required in the valueset.Not all values, based on some condition, some of the values in the list, will be added in the dropdown.
    Now, if I cant refer to simple type without creating attribute, I will have to create redundant attribute just to access Enumeration list values.
    Can I avoid it? Is there any better way of achieving this?
    Regards,
    Apurva

  • Missing simple type - Resource

    Hi,
      I am working on file upload/download tutorial from <a href="https://www.sdn.sap.comhttp://www.sdn.sap.comhttp://www.sdn.sap.com/irj/sdn/webdynpro?rid=/library/uuid/49f2ea90-0201-0010-ce8e-de18b94aee2d#41">file uploading tutorial</a> . First I tried tutorial from point a) . This tutorial is telling how to upload files in netweaver 2004s and How to use new simple type - Resource. But in my case I cannot find such type in com.sap.ide.webdynpro.uielementsdefinitions . And I am absolutley sure that I am using NW 2004s. Maybe some jar file is missing in my classpath?

    HI
    Ok Then try to create a simple types in Dictionary>Local Dictionary> Simpletype
    Then Right click and create new simple type
    Click the Browse button corresponding to the Base type
    Then a pop up will open There you can find the com.sap.webdynpro.uielementdefinitions
    if this not helps , Then close and start the NWDS again and try out this again
    Please revert to me for further
    Thanks and Regards,
    Arun

  • How do I get enumeration description from simple type?

    Hello!
    I want to display the value of a simple type in a table and display the description in a tool tip for the cell, how do I do that?
    I'm using Web dynpro for java 7.0 ehp1.
    I'm using an enumeration with 5 possible values with corresponding descriptions.
    If I use a (read only) dropdownByKey the description is shown in the drop down, but I only want to show it as a tooltip since it takes up some screen space.
    I would like to use a textview, is there a simple way to get the description as a tooltip? I thought about doing a calculated attribute that gets the description but I'm not sure about how to do it or if its the easiest way.
    Thank you for any help!

    Hi Richard,
    for getting the description of the simple type attribute ( Ex.X) create a context attribute of type string (Ex. Y) and bind it to the tooltip property of table cell editor.
    Set the read only and calculated property of the attribute Y to true.
    Put this code in the automatic generated method for calculated attribute :-
    String value1 = nodeElement.getX;
    IWDAttributeInfo attInfo = wdContext.getNodeInfo().getAttribute("X");
    ISimpleValueSet valueset = attInfo.getModifiableSimpleType().getSVServices().getValues();
    if(valueset.containsKey(value1)){
    String value2 = valueset.getText(value1);
    wdContext.node<NodeName>.setY(value2);
    By this way you can set the description of the simple type as tooltip but by using dropdown by key and index you cannot  show the valueof the simple type in the UI.
    So another way is bind the simple type attribute to a inputfield uielement in the table column.  Your simple type enumeration data will come as a F4 help in the UI and after selection you will be able to see value in inputt field and description as a tooltip.
    Regards
    Ravindra

  • How to bind simple type to a table column

    Hi All,
    I have created a simple type in Dictionary. With some Key and value pair. I want to bind this simple type to a table column.
    Does any body have suggestion how can I do that?
    Regards,
    Maya.

    Hi Maya,
    There is another solution for ur Prblm.
    Plz let me know if ur table is having any key,Value(desc) for that perticular dropdown.If it is ther means u can populate the dropdown By using this code.
    1.ISimpleTypeModifiable objXX = null;
    2.IModifiableSimpleValueSet objYYY = null;
    objXX =      wdThis.wdGetAPI().getContext().getModifiableTypeOf("ctx_ConveyanceType");
    objYYY =                objSimpleTypeConveyanceTypeData.getSVServices().getModifiableSimpleValueSet();
    3.Get the size of that Table and get the Key and Value Descriptions.
    4.Finally set it to DropDown
    ex:objYYY .put(key,ValueDesc);
    One more thing u need to create one string attribute for that Dropdown lik:ctx_strXX,type is string.
    Populate this dropdown using above Code.
    This method is applicable only for table coontains Key,Value for that Dropdown.
    Let me know if u hav any doubts,
    Regards,
    Lavanya.G

  • How to refer one view from another view?

    Hi,
    I have 2 views in my Adobe Flash Builder mobile app. I need to refer the first view in my second view.
    How to refer one view from another view? Or how to create a reference to a view wherever needed?

    I don't need any data from my first view. In a certain flow, I need to make my first view to be invisible.
    for eg., My First view is in portrait mode. I change the device to Landscape. In the landscape mode, I want to show a completely different view (second view).
    In this case, what happens is, I see my first view in Landscape mode for a second. Then the second view appears. When I change to Landscape mode, only the second view should be seen. I need to make my first view to be completely invisible in the OnOrientationChanging event of
    StageOrientationEvent
    As stage object and StageOrientationEvent works at application level, I need to know how to refer my first view object in the application level.
    private function onOrientationChanging(soe:StageOrientationEvent):void
          MyFirstView.Visible = False; ====> don't know how to refer MyFirstView here
    Is my question clear now?

  • How can i change a pdf file type to another file type

    how can i change a pdf file type to another file type

    You can copy the contents and paste it into a Word file. Just don't expect everything to transfer or to retain all of the formatting.

Maybe you are looking for

  • How many times can i redownload an app on the same iphone?

    i have heard that I can download an app on 5 devices but what about the same device?

  • Terms of Payment table

    Hi All, Can you please help me to find out the table name forTerms of Payment key where I can see the changes made to them by user id and date etc?. Thanks, -Kumar

  • Oracle utilities for PDF handling?

    Hello, Considering that Reports generates PDF:s, are there any Oracle utility jars that would help me extract a java BufferedImage (or such) from a page in an existing PDF document? I am trying to write a FAX destype but the fax interface wants an Im

  • Flash CS 5.5 - loading recent item fails

    Flash CS 5.5 (11.5.1.349) Mac OS 10.6.8 Situation: Work on a file, save it, and close it (example file is stored on local drive). Attempt to reload the file using the recent items list from the splash screen: File does not load, and output screen mes

  • ClassNoFound Exception

    Hi, After I call java.rmi.Naming.loopup ("xxx"); I got a message about java.lang.NoClassDefFoundError: yyy (1) Server and Client both on the same machine. (2) I used Naming.list to make sure "xxx" is there and registed. (3) the "yyy" is set on my CLA