Unable to create Table Bean advanced search criteria

Hi,
I want to create new search criteria for advanced search region. The reason being new search criteria i tried to add by personalization it didnt worked may be guessing construction mode is autocustomization mode. Somewhere i have seen if resultsbased it will work. Can someone confirm on this??
I'm trying to create new bean for search criteria at the specified location under <oa:table akRegionCode="EAM_AD_ASSET_RESULTS_TABLE" but unable to do so:
Here is the part of the page
<?xml version = '1.0' encoding = 'UTF-8'?>
<!-- dbdrv: exec java oracle/jrad/tools/xml/importer XMLImporter.class java &phase=dat+24 checkfile(120.15.12000000.2=120.18)(115.26=120.1):~PROD:~PATH:~FILE &fullpath_~PROD_~PATH_~FILE -username &un_apps -password &pw_apps -dbconnection &jdbc_db_addr -userId "1" -rootPackage /oracle/apps/~PROD -rootdir &fullpath_~PROD_mds_directory -->
<page xmlns="http://xmlns.oracle.com/jrad" xmlns:ui="http://xmlns.oracle.com/uix/ui" xmlns:oa="http://xmlns.oracle.com/oa" xmlns:user="http://xmlns.oracle.com/jrad/user" file-version="$Header: EAM_AD_ADVSEARCH_PAGE.xml 120.18.12010000.3 2009/02/11 09:21:55 smrsharm ship $" version="10.1.3_1147" xml:lang="en-US" xmlns:jrad="http://xmlns.oracle.com/jrad">
<content>
<oa:pageLayout id="EAM_AD_ADVSEARCH_PAGE" akRegionCode="EAM_AD_ADVSEARCH_PAGE" regionName="Asset Search" amDefName="oracle.apps.eam.asset.server.AdvSearchAM" controllerClass="oracle.apps.eam.asset.webui.AdvSearchPageCO" appMenu="EAM_MAIN_SS" amStateRequired="false" helpTarget="EAM_AD_ADVSEARCH_PAGE">
<ui:corporateBranding>
<oa:image id="corporateBranding" source="/OA_MEDIA/FNDSSCORP.gif" shortDesc="Oracle"/>
</ui:corporateBranding>
<ui:productBranding>
<oa:image id="productBranding" source="/OA_MEDIA/EAMBRAND.gif" shortDesc="Asset Management"/>
</ui:productBranding>
<ui:contents>
<oa:query id="EamAssetQueryRegion" mode="autoCustomizationCriteria" dispSimple="true" dispCustomized="true" dispAdvanced="true" defaultPanel="customized" controllerClass="oracle.apps.eam.asset.webui.AdvSearchSearchCO" simpleSearchPanelButtonLabel="Simple Search" viewConfPanelButtonLabel="Views" advSearchPanelButtonLabel="Advanced Search" customizePanelTitle="Views" saveSearchButtonText="Save Search">
<oa:simpleSearchPanel>
<oa:defaultSingleColumn id="AssetSimpleSearchRegion" headerDisabled="false" text="Simple Search">
<ui:contents>
<oa:messageTextInput readOnly="false" columns="25" prompt="Asset Number" rows="1" secret="false" maximumLength="30" shortDesc="Asset Serial Number" id="EamAssetNumber" promptTranslationExpansion="100%" user:akAttributeCode="EAM_ASSET_NUMBER" user:akAttributeApplicationId="426" required="no" selectiveSearchCriteria="true"/>
<oa:messageLovInput externalListOfValues="/oracle/apps/eam/lov/webui/EAM_ASSET_CATEGORY_LOV" readOnly="false" columns="25" prompt="Category" rows="1" secret="false" id="EamAssetCategory" promptTranslationExpansion="100%" user:akAttributeCode="EAM_ASSET_CATEGORY" user:akAttributeApplicationId="426" selectiveSearchCriteria="true" shortDesc="Category">
<lovMappings>
<lovMap criteriaFrom="EamAssetCategory" lovItem="EamAssetCategory" id="lovMap1"/>
<lovMap resultTo="EamAssetCategory" lovItem="EamAssetCategory" id="lovMap2"/>
<lovMap id="lovMap39" lovItem="EamAssetCategoryId" resultTo="EamAssetCategoryId"/>
</lovMappings>
</oa:messageLovInput>
<oa:messageChoice readOnly="false" prompt="Asset Route" pickListViewDef="oracle.apps.eam.asset.server.PicklistYesNoVO" pickListDispAttr="Meaning" pickListValAttr="LookupCode" id="EamNetworkAsset" promptTranslationExpansion="100%" user:akAttributeCode="EAM_NETWORK_ASSET" user:akAttributeApplicationId="426" shortDesc="Asset Route" allowBlankValue="false" defaultValue="N"/>
<oa:formValue id="EamAssetCategoryId" dataType="NUMBER"/>
</ui:contents>
</oa:defaultSingleColumn>
</oa:simpleSearchPanel>
<oa:simpleSearchMappings>
<oa:queryCriteriaMap id="AssetNumberMapSS" criteriaItem="EamAssetNumber" resultsItem="AssetNumber1"/>
<oa:queryCriteriaMap id="AssetCategoryMapSS" criteriaItem="EamAssetCategory" resultsItem="AssetCategory1"/>
<oa:queryCriteriaMap id="AssetRouteMapSS" criteriaItem="EamNetworkAsset" resultsItem="AssetRoute"/>
<oa:queryCriteriaMap id="AssetCategoryIdMapSS" criteriaItem="EamAssetCategoryId" resultsItem="AssetCategoryId"/>
</oa:simpleSearchMappings>
<ui:contents>
<oa:tableLayout akRegionCode="EAM_AD_ADVSEARCH_RESULTS" regionName="Results" controllerClass="oracle.apps.eam.asset.webui.AssetResultsCO" addChildren="true" id="EamResultsNr" user:akAttributeCode="EAM_RESULTS_NR" user:akAttributeApplicationId="426">
<ui:contents>
<oa:tableLayout id="ResultsTableLayout2" width="100%" rendered="true">
<ui:contents>
<oa:rowLayout id="RowLayoutRegion2">
<ui:contents>
<oa:cellFormat id="CellFormatRegion2">
<ui:contents>
<oa:switcher id="MappedTableRegion">
<ui:case name="ShowTable" id="ShowTable">
<oa:table akRegionCode="EAM_AD_ASSET_RESULTS_TABLE" regionName="Asset Search" blockSize="25" standalone="true" height="1" id="MappedTable" user:akAttributeCode="EAM_RESULTS_NR" user:akAttributeApplicationId="426" width="100%" rendered="true" userCustomizable="true" shortDesc="Mapped Table">
<ui:contents>
<oa:messageStyledText id="AssetNumber1" viewName="AdvSearchVO" viewAttr="InstanceNumber" shortDesc="Serial Number" prompt="Asset Number"/>
<oa:messageStyledText id="AssetDescription1" viewName="AdvSearchVO" viewAttr="DescriptiveText" shortDesc="Asset Description" prompt="Asset Description"/>
<oa:messageStyledText id="AssetCategory1" viewName="AdvSearchVO" viewAttr="AssetCategory" shortDesc="Asset Category" prompt="Asset Category"/>
I tried several ways :
OAPageLayoutBean pageLayout = oapagecontext.getPageLayoutBean();
OAQueryBean query=(OAQueryBean)pageLayout.findChildRecursive("EamAssetQueryRegion");
OATableBean oawebbeantb = (OATableBean)query.findChildRecursive("EAM_AD_ASSET_RESULTS_TABLE");
OAMessageLovInputBean ccidbean = (OAMessageLovInputBean)oapagecontext.getWebBeanFactory().createWebBean(oapagecontext, OAWebBeanConstants.LOV_TEXT, null, "xxValidation");
if (oawebbeantb==null){                    
throw new OAException("Error this is a test!", OAException.ERROR);
oawebbeantb.addIndexedChild(ccidbean); --here it getting null
OR
OATableBean oawebbeantb = (OATableBean)oawebbean.findIndexedChildRecursive("EAM_AD_ASSET_RESULTS_TABLE");
OAMessageLovInputBean ccidbean = (OAMessageLovInputBean)oapagecontext.getWebBeanFactory().createWebBean(oapagecontext, OAWebBeanConstants.LOV_TEXT, null, "xxValidation");
oawebbeantb.addIndexedChild(ccidbean); --here it getting null
Please someone help me on this..
thanks,
mallik

1) Search panel textinput item should be search allowed true and prompt is need. no other property need to set.
HERE YOU DONT WANT TO SET VIEW INSTANCE AND ATTRIBUTE SINCE WE ARE DOING FOR EXTENDED VO ITEM AS SEARCH ITEM.THAT'S OK. I TRIED WITH YOUR COMMENTS FOR TEXTINPUT ITEM TOO.
Comment--
textinput item created is a simple item without any VO instance , etc.
There is no question of extended VO item, its a simple textinput item.
value in this field is going to compare with the values in result table.
2) Search mapping, only search item id and result item id need to set.
I'M DOING HERE MAPPING FOR ABOVE SEARCH ITEM ID AND RESULT ITEM ID
Comment-- Perfect !!
3) Item created in table , after you extended Vo, view instance and attribute needs to set.
WHERE DO YOU WANT THIS TO BE SET?? CAN YOU ELABORATE THIS MORE PLEASE.MAY BE I'M MISSING HERE SOMETHING.
Comment-- you must have created message styled text item in adv table bean, assign VO instance and attribute to it, right?
4) One more thing Parag, do i need to include where clause for extended VO item in view object??
for ex:
where attribute(this is extended vo item)=:4
Comment-- No need. this will be handled by point#2 above, i.e. criteria and result items.
--Parag Narkhede                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       

Similar Messages

  • Reduce advanced search criteria LOV

    I have created OAF page with resultsBasedSearch = advanced panel Query Region. In advanced search criteria, I see four values in LOV - "is, is not, after, before". I want to limit options to "is" and "after". Is it possible to do this? If so, can you tell me in detail how?

    Hi.
    please try put your locale en tag view.
    <f:view locale="it">
    in Jdev 11.1.1.4 works!!

  • UCM - Unable to create table 'WebdavUserPaths'.

    Hi,
    we have UCM Version:10.1.3.5.1 (091014) (Build:7.2.4.29). It runs on production environment and also we have a test instance.
    It runs fine for long time. Yesterday I stopped the content server on test environment. Problem is that I am not able to start it anymore. While starting I am receiving this error:
    Unable to create table 'WebdavUserPaths'. ORA-00955: name is already used by an existing object
    ORA-00955: name is already used by an existing object
    intradoc.common.ServiceException: !csDbUnableToPerformAction_create,WebdavUserPaths!$ORA-00955: name is already used by an existing object
    While analyzing this, I found there is the table WebdavUserPaths in the database and it is empty. This table is present in both databases - PROD and also in TEST. In both envs it is empty.
    I found out that when I disable CoreWebdav component in ComponentWizard, then the content server starts up fine, bud WebDav is not working of course...
    I would need to solve this issue, but I do not want to start immediately dropping that tables, etc... without knowing what is it used for, why content server wants to recreate the tables, etc...
    Any body has an ideas?
    Thanks.

    Thanks for pointing me towards dba_lobs
    SQL> select TABLE_NAME,INDEX_NAME from dba_lobs where OWNER='AEE' and index_name like 'LI_AURULD%';
    TABLE_NAME INDEX_NAME
    BIN$XdjCvAyQhMrgQBCsZat/dQ==$0 LI_AURULD_RULEDATA
    I purged the recyclebin and all was ok

  • How to search in a table according to search criteria for many fields ??

    Hello all,
    I required any suggestion regarding easy method for searching a table according to search criteria.
    I have 7 dropdown list in the userinterface and user can select 1 dropdown or many according to his choice. After selecting 1 or many dropdown list when he clicks SEARCH button the related records for filled dropdown list should be displayed if present in table. But the problem is that its getting complecated as I have to code for 7 dropdown list. many combinations comes in the way.
    So can anybody  tell me that how to getrid of this complicated process and is there any easy method for this...??
    thanks,
    Simadri

    Hi.,
    It wont get complicated.,  try this.,
    Let us say you have 3 drop down lists., for ID, Name , Priority., now in OnActionSearch.,
    DATA:RT_RANGES_ID TYPE RANGE OF ZDE_ID,  " Data Element for ID
              RS_RANGES_ID LIKE LINE OF RT_RANGES_ID,
              RT_RANGES_NAME TYPE RANGE OF ZDE_NAME, " Data Element for Name
              RS_RANGES_NAME LIKE LINE OF RT_RANGES_NAME,
              RT_RANGES_PRI TYPE RANGE OF ZDE_PRIORITY, " Data Element for Priority
              RS_RANGES_PRI LIKE LINE OF RT_RANGES_PRI.
    *Read the Values in Drop down List using get_attribute( ).
    now.,
    *Appending ID to Range Table
    if  lv_id is not initial.                              " here lv_id is the drop down value in Drop Down List for ID
       RS_RANGES_ID-OPTION = 'EQ'.
        RS_RANGES_ID-LOW    =  lv_id.    " appending ID
        RS_RANGES_ID-SIGN   = 'I'.
        APPEND RS_RANGES_ID TO RT_RANGES_ID.
    endif.
    if  lv_name is not initial.
       RS_RANGES_Name-OPTION = 'EQ'.
        RS_RANGES_NAME-LOW    =  lv_name.    " appending Name
        RS_RANGES_NAME-SIGN   = 'I'.
        APPEND RS_RANGES_NAME TO RT_RANGES_NAME.
    endif.
    if  lv_priority is not initial.
      RS_RANGES_PRI-OPTION = 'EQ'.
        RS_RANGES_PRI-LOW    =  lv_priority.   " appending Priority
        RS_RANGES_PRI-SIGN   = 'I'.
        APPEND RS_RANGES_PRI TO RT_RANGES_PRI.
    endif.
    * Fetching Values for Selction Criteria
    Select  * from <TABLE> into lt_int_tab where ID IN RT_RANGES_ID
                                                                     AND NAME IN RT_RANGES_NAME
                                                                     AND PRIORITY IN RT_RANGES_PRI.
    similarly You do for your 7 Drop Downs..
    hope this helps u.,
    Thanks & Regards,
    Kiran

  • Adding Campaign element desc in advance search criteria for campaigns

    Hi,
    We would like to add Campaign element description in the advance search criteria of the campaigns. The field is not available in the available list. How do we add it in the list so that we can make it searchable?
    Thanks
    A

    Hi Aman,
                      You can add a UI field from the view of the search component and write the search logic in any suitable badi. There are many threads based on search . Check in SAP SOlutions-> WEb UI category.
    Hope this helps.
    Regards,
    Ruby.

  • Issue with programmatically created LOV on Advanced Search Screen in OCO.

    Hi All,
    I am trying to create a LOV programmatically on Advanced search screen of Oracle Customer's Online module for the country field present there, i have extended a controller and
    in it i am carrying out the creation for this.
    i am using the below code to do this.
    i am able to access the particular rowlayout bean and code below is starting after that.
    OARowLayoutBean CountryRowLayoutBean =
                            (OARowLayoutBean)RgtColTableLayoutBean.getIndexedChild(8);
                        if (pageContext.isLoggingEnabled(PROCEDURE))
                            pageContext.writeDiagnostics(this,
                                                         "CountryRowLayoutBean: " +
                                                         CountryRowLayoutBean,
                                                         PROCEDURE);
                        int CountryRowLytChldCount =
                            CountryRowLayoutBean.getIndexedChildCount();
                        if (pageContext.isLoggingEnabled(PROCEDURE))
                            pageContext.writeDiagnostics(this,
                                                         "CountryRowLytChldCount : " +
                                                         CountryRowLytChldCount,
                                                         PROCEDURE);
                        OAMessageTextInputBean CountryMsgTxt =
                            (OAMessageTextInputBean)CountryRowLayoutBean.getIndexedChild(2);
                        if (pageContext.isLoggingEnabled(PROCEDURE))
                            pageContext.writeDiagnostics(this,
                                                         "CountryMsgTxt : " +
                                                         CountryMsgTxt,
                                                         PROCEDURE);
                        CountryMsgTxt.setRendered(false);
                        OAMessageLovInputBean CountryLOV =
                            (OAMessageLovInputBean)createWebBean(pageContext,
                                                                 LOV_TEXT, null,
                                                                 MatchRuleAttrId); //MatchRuleAttrId - the fields are rendered through DQM so, this is the Id for the text input , same is taken as id for LOV, to enable search later.
                        if (pageContext.isLoggingEnabled(PROCEDURE))
                            pageContext.writeDiagnostics(this,
                                                         "CountryLOV : " + CountryLOV,
                                                         PROCEDURE);
                        CountryRowLayoutBean.addIndexedChild(CountryLOV);
                        Integer webBeanRegionAppId =
                            (Integer)webBean.getAttributeValue(REGION_APPLICATION_ID);
                        CountryLOV.setAttributeValue(REGION_APPLICATION_ID,
                                                        webBeanRegionAppId);
                        // Specify the path to the base page.
                        CountryLOV.setAttributeValue(REGION_CODE,
                                                        "/oracle/apps/imc/ocong/search/webui/ImcSearchPage");
                                  CountryLOV.setAttributeValue(LOV_REGION_APPLICATION_ID,
                                                        webBeanRegionAppId);
                        // Specify the LOV region definition.
                        CountryLOV.setLovRegion("/oracle/apps/ar/hz/address/webui/HzCountryLOV",
                                                   webBeanRegionAppId.intValue()); //Standard LOV region used
                        // Validation should be enabled for LOVs unless it's essential for the field to allow a partial value (in a "Search" region, for example).
                        CountryLOV.setUnvalidated(false);
                        CountryLOV.setAttributeValue(SELECTIVE_SEARCH_CRITERIA,
                                                        true);
                        CountryLOV.setAttributeValue(SEARCH, true);
                        // Configure the LOV mappings.
                        // Note that you must call this method after you add the messageLovInput item
                        // to the web bean hierarchy.
                        // base page item
                        // lov item
                        // direction
                        if (pageContext.isLoggingEnabled(PROCEDURE))
                            pageContext.writeDiagnostics(this,
                                                         "webBeanRegionAppId : " +
                                                         webBeanRegionAppId,
                                                         PROCEDURE);
                        if (pageContext.isLoggingEnabled(PROCEDURE))
                            pageContext.writeDiagnostics(this,
                                                         "MatchRuleAttrId : " +
                                                         MatchRuleAttrId,
                                                         PROCEDURE);
                        CountryLOV.addLovRelations(pageContext,
                                                      MatchRuleAttrId,
                                                      "TerritoryShortName",
                                                      LOV_RESULT,
                                                      LOV_REQUIRED_NO); // base page item
                        // lov item
                        // direction
                        CountryLOV.addLovRelations(pageContext,
                                                      MatchRuleAttrId,
                                                      "TerritoryShortName",
                                                      LOV_CRITERIA,
                                                      LOV_REQUIRED_NO);
    I am facing the issue that the torch icon is visble on the screen but when i click on it, it does not display the LOV region and a blank page saying website declined to show the page is displayed.
    Please suggest what needs to be added that i am missing right now.
    Thanks,
    Mayank

    on the first option I mean you can add new region  programaticaly like this on Processrequest
                OAStackLayoutBean newLocationLovs=
                    (OAStackLayoutBean)createWebBean(pageContext
                                                        ,"/yandex/oracle/apps/csi/instance/location/webui/YaLocationLovsRN"
                                                        , "xxnewLocationLovs"
                                                        ,true);
                  webBean.addIndexedChild(newLocationLovs);   

  • Query Bean Advanced Search not showing more than four criuteria

    Hi,
    I am new to using Query bean for Simple/Advanced Search. I have 6 criteria under the advancedSearchPanel criteria. In advancedSearchMapping, I am mapping all the six conditions. However when I run the Page, only the first four are shown. I am not sure as to why the other two are not rendering.
    I modified the order of the conditions and after that again the first four conditions are being shown. I am not sure of the bahaviour as to why this is happenning.
    Please help me figure out the issue.
    Thanks
    Sumit

    Hi (sorry, I am re-opening a very very old post)
    I was looking for a way to display more than 4 criterias in the advanced search panel, and I found this topic.
    So if I understand, there is no way we can display more than 4 criterias at the opening of an advanced search page ??!!
    I really need to display default 9 criterias in this panel (my customer really need it)
    1) Is there anyway to do it?
    2) When I add a new criteria (a LOV), the only search operators I have are "is" and "is not", while in the standard criteria items, there is more operators ("begins with", "contains", ... ). Why?
    thank you

  • Displaying Advanced Search Criteria

    Hi All,
    My question is about the Application Sourcing
    At an Advanced Table, I have added several Search Criteria using jDeveloper. Those criteria can be selected from a drop down list where the user can select; then click "Add" and then perform the search.
    When the user goes to the page only the first 4 criteria appear.
    Is it possible to have more than 4 initially appear at the page without having to add them from the drop down list?
    Thanks

    Hi,
    Its discussed earlier. Please see below thread. May answer your query.
    Re: How to display more than 4 criteria items on startup of Advanced Search LOV
    Abdul Wahid

  • Unable to create table because object exists. Where do I find object ?? :-0

    Hi,
    I deployed some scripts to a database, had to roll it back and then deployed again but I'm unable to create a particular table. The error says an object already exists but I can't find it. Hope this isn't a dumb question. Oracle 10.2.0.4 2 node RAC on Linux
    I have looked through dba_objects for anything called LS_AURULD_RULEDATA or LI_AURULD_RULEDATA.
    Here is the command and error..........
    CREATE TABLE aee.T_AUDITRULEDEFINITION
    2 (
    OBID RAW(16) CONSTRAINT NN_AURULD_OBID NOT NULL,
    SECURE_COMPANY_FK RAW(16) CONSTRAINT NN_AURULD_SCFK NOT NULL,
    AUDITRULESET_FK RAW(16),
    AUDITRULECLASST_FK NUMBER(2,0),
    DESCRIPTION NVARCHAR2(128),
    FAILUREACTION_FK NUMBER(2,0),
    RULEDATA NCLOB,
    RULETYPE NVARCHAR2(50),
    SEQUENCENUMBER NUMBER(10,0),
    TAG NVARCHAR2(64)
    LOB(RULEDATA) STORE AS LS_AURULD_RULEDATA (INDEX LI_AURULD_RULEDATA)
    15 TABLESPACE MOTOR_TABLES;
    LOB(RULEDATA) STORE AS LS_AURULD_RULEDATA (INDEX LI_AURULD_RULEDATA) *
    ERROR at line 14:
    ORA-00955: name is already used by an existing object
    Any help appreciated

    Thanks for pointing me towards dba_lobs
    SQL> select TABLE_NAME,INDEX_NAME from dba_lobs where OWNER='AEE' and index_name like 'LI_AURULD%';
    TABLE_NAME INDEX_NAME
    BIN$XdjCvAyQhMrgQBCsZat/dQ==$0 LI_AURULD_RULEDATA
    I purged the recyclebin and all was ok

  • Unable to create tables through dbms_sql

    Hai
    I got the below error when i am createing table through dbms_sql package at any user except sys user.Our database is 8.1.6 standard edition
    SQL>CONNECT MOHAN/MOHAN;
    SQL> CREATE OR REPLACE Procedure EXECUTESQL (SQLStatement IN VARCHAR2) IS cursor
    _name INTEGER; ret
    2 INTEGER; BEGIN cursor_name := DBMS_SQL.OPEN_CURSOR; DBMS_SQL.PARSE(cursor_n
    ame, SQLStatement,
    3 DBMS_SQL.native); ret := DBMS_SQL.Execute(cursor_name); DBMS_SQL.CLOSE_CURS
    OR(cursor_name); END;
    4 /
    Procedure created.
    SQL> exec EXECUTESQL('create table test(name number)');
    BEGIN EXECUTESQL('create table test(name number)'); END;
    ERROR at line 1:
    ORA-01031: insufficient privileges
    ORA-06512: at "SYS.DBMS_SYS_SQL", line 782
    ORA-06512: at "SYS.DBMS_SQL", line 32
    ORA-06512: at "MOHAN.EXECUTESQL", line 2
    ORA-06512: at line 1
    Any idea about that
    Thanks in advance
    mohan

    Since you are using Oracle 8.1.6, you can use EXECUTE IMMEDIATE instead of DBMS_SQL. Make sure that the necessary privileges have been granted directly, not through roles. Click on the link below for more about privileges and roles and the error message that you got:
    http://osi.oracle.com/~tkyte/Misc/RolesAndProcedures.html
    Once you have the privileges granted properly, you should be able to use the code below. I should point out that this is still doing things the hard way. You can just issue the create table statement from the SQL prompt. I must assume that this is just a minimal experiment and that the eventual code involves more.
    SQL> CREATE OR REPLACE PROCEDURE executesql
      2    (SQLStatement IN VARCHAR2)
      3  IS
      4  BEGIN
      5    EXECUTE IMMEDIATE SQLStatement;
      6  END executesql;
      7  /
    Procedure created.
    SQL> EXEC executesql ('CREATE TABLE test (name NUMBER)')
    PL/SQL procedure successfully completed.
    SQL> DESC test
    Name                                      Null?    Type
    NAME                                               NUMBER

  • Unable to create table in Dictionary DC

    Hi All,
    I m trying to add one more table to my Dictionary DC.
    I created table and nothing is getting attached to the Activity that I created for this !!!
    So when m adding it to DTR manually (right click -> add to DTR),  it is showing error pop up msg saying
    "BIT_ROLEDESC: Could not connect to name server" 
    and in error log following is the error displayed:-
    com.sap.dictionary.tools.nameserver.ReservationException: BIT_ROLEDESC: Could not connect to name server
         at com.sap.dictionary.tools.nameserver.DtrPropertySetter.createProperties(DtrPropertySetter.java:115)
         at com.tssap.dii.dtri.actions.file.FileAddAction.run(FileAddAction.java:144)
         at com.tssap.selena.model.extension.action.SelenaActionCollector$GenericElementActionWrapper.run(SelenaActionCollector.java:229)
         at com.tssap.util.ui.menu.MenuFactory$MuSiAction.saveRunAction(MenuFactory.java:1425)
         at com.tssap.util.ui.menu.MenuFactory$MuSiAction.run(MenuFactory.java:1391)
         at com.tssap.util.ui.menu.MenuFactory$DelegateAction.processInternal(MenuFactory.java:616)
         at com.tssap.util.ui.menu.MenuFactory$DelegateAction.access$100(MenuFactory.java:586)
         at com.tssap.util.ui.menu.MenuFactory$DelegateAction$BusyProcessWorker.run(MenuFactory.java:716)
         at org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator.java:69)
         at com.tssap.util.ui.menu.MenuFactory$DelegateAction.process(MenuFactory.java:610)
         at com.tssap.util.ui.menu.internal.MenuListenerFactory$ProcessAdapter.widgetSelected(MenuListenerFactory.java:172)
         at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:89)
         at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:81)
         at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:840)
         at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:2022)
         at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:1729)
         at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:1402)
         at org.eclipse.ui.internal.Workbench.run(Workbench.java:1385)
         at com.tssap.util.startup.WBLauncher.run(WBLauncher.java:79)
         at org.eclipse.core.internal.boot.InternalBootLoader.run(InternalBootLoader.java:858)
         at org.eclipse.core.boot.BootLoader.run(BootLoader.java:461)
         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
         at java.lang.reflect.Method.invoke(Method.java:324)
         at com.sap.ide.eclipse.startup.Main.basicRun(Main.java:286)
         at com.sap.ide.eclipse.startup.Main.run(Main.java:795)
         at com.sap.ide.eclipse.startup.Main.main(Main.java:602)
    Why is this happening?? What shud be done to get it rite??
    Pls help as my work is stuck in table creation !!!
    regards,
    Amey

    Ok...
    So if I set this property then it will work fine right? Can you pls elaborate the procedure ??
    But one thing I dont understand is how come all other tables got generated properly and got attached to their activities ???
    Why problem is coming with this particular table?
    regards,
    Amey
    Edited by: Amey Mogare on May 27, 2008 5:58 AM

  • Unable to create Tables in design view

    One of the two problems I am having (the other will also be
    posted) is that I am no longer able to use Design View to Insert
    Tables at all - I get the following error message: (I made a
    printscreen of the error but not sure how to embed the picture in
    this post so here is the message verbatim).
    "While executing objectTag, the following JavaScript error(s)
    occured:
    At line 26 of file "Macintosh HD:Applications:Macromedia
    Dreaweaver 8:Configuration
    bjects:Common:Table.htm":
    Type Error: cmdDOM.parentWindow.createTableStr is not a
    function"
    I can create tables only if I type the html for them by hand
    into the code pane. The file that the error message references does
    exist, and appears to look fine (code-wise). I've also tried
    uninstalling and reinstalling DW8, removing and recreating the
    Configuration Folder as well as the site prefs and site definitions
    - nothing has cured this problem.
    I am using DW8 v. 8.0.2 on a Mac Quad G5 running OS X 10.4.6.
    I am positive that I did not have this problem, or any of the other
    current problems, with DW MX , and I installed DW8 as a stand-alone
    app so that I could still use MX if needed. This and the other
    problems don't occur with MX but I would really like to get them
    solved because 8 offers other benefits that I want to be able to
    use.
    I'm wondering if anyone else has had this problem and managed
    to find a fix for it.

    One of the two problems I am having (the other will also be
    posted) is that I am no longer able to use Design View to Insert
    Tables at all - I get the following error message: (I made a
    printscreen of the error but not sure how to embed the picture in
    this post so here is the message verbatim).
    "While executing objectTag, the following JavaScript error(s)
    occured:
    At line 26 of file "Macintosh HD:Applications:Macromedia
    Dreaweaver 8:Configuration
    bjects:Common:Table.htm":
    Type Error: cmdDOM.parentWindow.createTableStr is not a
    function"
    I can create tables only if I type the html for them by hand
    into the code pane. The file that the error message references does
    exist, and appears to look fine (code-wise). I've also tried
    uninstalling and reinstalling DW8, removing and recreating the
    Configuration Folder as well as the site prefs and site definitions
    - nothing has cured this problem.
    I am using DW8 v. 8.0.2 on a Mac Quad G5 running OS X 10.4.6.
    I am positive that I did not have this problem, or any of the other
    current problems, with DW MX , and I installed DW8 as a stand-alone
    app so that I could still use MX if needed. This and the other
    problems don't occur with MX but I would really like to get them
    solved because 8 offers other benefits that I want to be able to
    use.
    I'm wondering if anyone else has had this problem and managed
    to find a fix for it.

  • Unable to create table with column default value with date interval

    Please help to create table with calculated date defaullt value:
    CREATE TABLE emp (
      birth_date  DATE  DEFAULT sysdate + interval '3' day NOT NULL
    or
    CREATE TABLE emp (
      some_date DATE,
      birth_date  DATE  DEFAULT some_date NOT NULL
    or
    CREATE TABLE emp (
      some_date DATE,
      birth_date  DATE  DEFAULT some_date + interval '3' day NOT NULL
    below syntax error:
    TT1001: Syntax error in SQL statement before or at: "+"

    I'm afraid this is not possible; as per the SQL Reference, TimesTen only supports 'constant expressions' for the DEFAULT clause and none of these are constant expressions.
    Chris

  • Help...Unable to create table.

    I'm trying to create a table using following syntax and it's throwing "ORA-22809: nonexistent attribute" error. I've used the same script before on 10gR1 and it was fine. Now, I'm trying to test this on 10gR2 and it's not working. Any ideas?
    Schema
    DECLARE
    xmlblurb CLOB
    := '<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:xdb="http://xmlns.oracle.com/xdb" version="1.0" xdb:storeVarrayAsTable="true">
    <xs:element name="docattribs" type="DocAttribsType"/>
    <xs:complexType name="DocAttribsType" xdb:SQLType="DOCATTRIBS_T">
    <xs:sequence>
    <xs:element name="brandgroups" type="BrandGroupsType" xdb:SQLName="BRANDGROUPS"/>
    <xs:element name="messagegroups" type="MessageGroupsType" xdb:SQLName="MESSAGEGROUPS"/>
    <xs:element name="sources" type="SourcesType" xdb:SQLName="SOURCES"/>
    <xs:element name="contentgroups" type="ContentGroupsType" xdb:SQLName="CONTENTGROUPS"/>
    <xs:element name="authors" type="AuthorsType" xdb:SQLName="AUTHORS"/>
    <xs:element name="themes" type="ThemesType" xdb:SQLName="THEMES"/>
    <xs:element name="entities" type="EntitiesType" xdb:SQLName="ENTITIES"/>
    </xs:sequence>
    </xs:complexType>
    <xs:complexType name="BrandGroupsType" xdb:SQLType="BRANDGROUPS_T">
    <xs:sequence>
    <xs:element name="bg" type="IdMentionsToneType" minOccurs="0" maxOccurs="unbounded" xdb:SQLName="BG" xdb:SQLCollType="IDMENTIONSTONE_COLL"/>
    </xs:sequence>
    </xs:complexType>
    <xs:complexType name="MessageGroupsType" xdb:SQLType="MESSAGEGROUPS_T">
    <xs:sequence>
    <xs:element name="mg" type="MessageGroupType" minOccurs="0" maxOccurs="unbounded" xdb:SQLName="MG" xdb:SQLCollType="MG_COLL"/>
    </xs:sequence>
    </xs:complexType>
    <xs:complexType name="MessageGroupType" xdb:SQLType="MESSAGEGROUP_T">
    <xs:sequence>
    <xs:element name="bg" type="IdType" minOccurs="0" maxOccurs="unbounded" xdb:SQLName="BG" xdb:SQLCollType="ID_COLL"/>
    </xs:sequence>
    <xs:attribute name="id" type="xs:integer" xdb:SQLName="ID"/>
    </xs:complexType>
    <xs:complexType name="SourcesType" xdb:SQLType="SOURCES_T">
    <xs:sequence>
    <xs:element name="source" type="IdType" minOccurs="0" maxOccurs="unbounded" xdb:SQLName="SOURCE" xdb:SQLCollType="ID_COLL"/>
    </xs:sequence>
    </xs:complexType>
    <xs:complexType name="ContentGroupsType" xdb:SQLType="CONTENTGROUPS_T">
    <xs:sequence>
    <xs:element name="pcg" type="ParentContentGroupType" minOccurs="0" maxOccurs="unbounded" xdb:SQLName="PCG" xdb:SQLCollType="PCG_COLL"/>
    </xs:sequence>
    </xs:complexType>
    <xs:complexType name="ParentContentGroupType" xdb:SQLType="PARENTCONTENTGROUP_T">
    <xs:sequence>
    <xs:element name="cg" type="IdType" minOccurs="0" maxOccurs="unbounded" xdb:SQLName="CG" xdb:SQLCollType="ID_COLL"/>
    </xs:sequence>
    <xs:attribute name="id" type="xs:integer" xdb:SQLName="ID"/>
    </xs:complexType>
    <xs:complexType name="AuthorsType" xdb:SQLType="AUTHORS_T">
    <xs:sequence>
    <xs:element name="author" type="NameType" minOccurs="0" maxOccurs="unbounded" xdb:SQLName="AUTHOR" xdb:SQLCollType="NAME_COLL"/>
    </xs:sequence>
    </xs:complexType>
    <xs:complexType name="ThemesType" xdb:SQLType="THEMES_T">
    <xs:sequence>
    <xs:element name="theme" type="IdType" minOccurs="0" maxOccurs="unbounded" xdb:SQLName="THEME" xdb:SQLCollType="ID_COLL"/>
    </xs:sequence>
    </xs:complexType>
    <xs:complexType name="EntitiesType" xdb:SQLType="ENTITIES_T">
    <xs:sequence>
    <xs:element name="af" type="IdMentionsType" minOccurs="0" maxOccurs="unbounded" xdb:SQLName="ANALYST_FIRMS" xdb:SQLCollType="IDMENTIONS_COLL"/>
    <xs:element name="a" type="IdMentionsType" minOccurs="0" maxOccurs="unbounded" xdb:SQLName="ANALYSTS" xdb:SQLCollType="IDMENTIONS_COLL"/>
    <xs:element name="b" type="IdMentionsType" minOccurs="0" maxOccurs="unbounded" xdb:SQLName="BRANDS" xdb:SQLCollType="IDMENTIONS_COLL"/>
    <xs:element name="c" type="IdMentionsType" minOccurs="0" maxOccurs="unbounded" xdb:SQLName="COMPANIES" xdb:SQLCollType="IDMENTIONS_COLL"/>
    <xs:element name="l" type="IdMentionsType" minOccurs="0" maxOccurs="unbounded" xdb:SQLName="LOCATIONS" xdb:SQLCollType="IDMENTIONS_COLL"/>
    <xs:element name="m" type="IdMentionsType" minOccurs="0" maxOccurs="unbounded" xdb:SQLName="MESSAGES" xdb:SQLCollType="IDMENTIONS_COLL"/>
    <xs:element name="p" type="IdMentionsType" minOccurs="0" maxOccurs="unbounded" xdb:SQLName="PEOPLE" xdb:SQLCollType="IDMENTIONS_COLL"/>
    </xs:sequence>
    </xs:complexType>
    <xs:complexType name="IdMentionsType" xdb:SQLType="IDMENTIONS_T">
    <xs:attribute name="id" type="xs:integer" xdb:SQLName="ID"/>
    <xs:attribute name="mentions" type="xs:integer" xdb:SQLName="MENTIONS"/>
    </xs:complexType>
    <xs:complexType name="IdMentionsToneType" xdb:SQLType="IDMENTIONSTONE_T">
    <xs:attribute name="id" type="xs:integer" xdb:SQLName="ID"/>
    <xs:attribute name="mentions" type="xs:integer" xdb:SQLName="MENTIONS"/>
    <xs:attribute name="toneid" type="xs:integer" xdb:SQLName="TONEID"/>     
    </xs:complexType>
    <xs:complexType name="IdType" xdb:SQLType="ID_T">
    <xs:attribute name="id" type="xs:integer" xdb:SQLName="ID"/>
    </xs:complexType>     
    <xs:complexType name="NameType" xdb:SQLType="NAME_T">
    <xs:attribute name="name" type="xs:string" xdb:SQLName="NAME"/>
    </xs:complexType>
    </xs:schema>';
    BEGIN
    dbms_xmlschema.registerschema ('cymfony_docattribs.xsd',
    xmlblurb,
    TRUE,
    TRUE,
    FALSE,
    FALSE
    END;
    Create table syntax:
    CREATE TABLE xml_docattributes (
    docid NUMBER,
    docdate DATE,
    statusid NUMBER)
    TABLESPACE data_10m_a
    ALTER TABLE xml_docattributes
    ADD (docattributes XMLTYPE)
    XMLTYPE COLUMN docattributes STORE AS OBJECT RELATIONAL
    XMLSCHEMA "cymfony_docattribs.xsd" ELEMENT "docattribs"
    VARRAY docattributes."XMLDATA"."brandgroups"."bg" STORE AS TABLE xml_brandgroups
    ((constraint pk_xml_brandgroups PRIMARY KEY (NESTED_TABLE_ID, ARRAY_INDEX))
    ORGANIZATION INDEX)
    VARRAY docattributes."XMLDATA"."messagegroups"."mg" STORE AS TABLE xml_messagegroups
    ((CONSTRAINT pk_xml_messagegroups PRIMARY KEY (NESTED_TABLE_ID, ARRAY_INDEX))
    ORGANIZATION INDEX)
    VARRAY "bg" STORE AS TABLE xml_brandgroup
    ((CONSTRAINT pk_xml_brandgroup PRIMARY KEY (NESTED_TABLE_ID, ARRAY_INDEX))
         ORGANIZATION INDEX)
    VARRAY docattributes."XMLDATA"."sources"."source" STORE AS TABLE xml_sources
    ((CONSTRAINT pk_xml_sources PRIMARY KEY (NESTED_TABLE_ID, ARRAY_INDEX))
    ORGANIZATION INDEX)
    VARRAY docattributes."XMLDATA"."contentgroups"."pcg" STORE AS TABLE xml_contentgroups
    ((CONSTRAINT pk_xml_contentgroups PRIMARY KEY (NESTED_TABLE_ID, ARRAY_INDEX))
         ORGANIZATION INDEX)
    VARRAY "cg" STORE AS TABLE xml_contentgroup
    ((CONSTRAINT pk_xml_contentgroup PRIMARY KEY (NESTED_TABLE_ID, ARRAY_INDEX))
              ORGANIZATION INDEX)
    VARRAY docattributes."XMLDATA"."authors"."author" STORE AS TABLE xml_authors
    ((CONSTRAINT pk_xml_authors PRIMARY KEY (NESTED_TABLE_ID, ARRAY_INDEX))
         ORGANIZATION INDEX)
    VARRAY docattributes."XMLDATA"."themes"."theme" STORE AS TABLE xml_themes
    ((CONSTRAINT pk_xml_themes PRIMARY KEY (NESTED_TABLE_ID, ARRAY_INDEX))
    ORGANIZATION INDEX)
    VARRAY docattributes."XMLDATA"."entities"."a" STORE AS TABLE xml_analysts
    ((constraint pk_xml_analysts PRIMARY KEY (NESTED_TABLE_ID, ARRAY_INDEX))
    ORGANIZATION INDEX)
    VARRAY docattributes."XMLDATA"."entities"."af" STORE AS TABLE xml_analystfirms
    ((constraint pk_xml_analystfirms PRIMARY KEY (NESTED_TABLE_ID, ARRAY_INDEX))
    ORGANIZATION INDEX)
    VARRAY docattributes."XMLDATA"."entities"."b" STORE AS TABLE xml_brands
    ((constraint pk_xml_brands PRIMARY KEY (NESTED_TABLE_ID, ARRAY_INDEX))
    ORGANIZATION INDEX)
    VARRAY docattributes."XMLDATA"."entities"."c" STORE AS table xml_companies
    ((constraint pk_xml_companies primary key (NESTED_TABLE_ID, ARRAY_INDEX))
    ORGANIZATION INDEX)
    VARRAY docattributes."XMLDATA"."entities"."l" STORE AS table xml_locations
    ((constraint pk_xml_locations primary key (NESTED_TABLE_ID, ARRAY_INDEX))
    ORGANIZATION INDEX)
    VARRAY docattributes."XMLDATA"."entities"."m" STORE AS table xml_messages
    ((constraint pk_xml_messages primary key (NESTED_TABLE_ID, ARRAY_INDEX))
    ORGANIZATION INDEX)
    VARRAY docattributes."XMLDATA"."entities"."p" STORE AS table xml_people
    ((constraint pk_xml_people primary key (NESTED_TABLE_ID, ARRAY_INDEX))
    ORGANIZATION INDEX)
    /

    At the end of the day there were a number of typos in the ALTER TABLE ADD statement. Here's a debugged version based on the orignal annotated XML Schema..
    SQL> var schemaURL varchar2(256)
    SQL> var schemaPath varchar2(256)
    SQL> --
    SQL> begin
      2    :schemaURL := 'cymfony_docattribs.xsd';
      3    :schemaPath := '/public/cymfony_docattribs.xsd';
      4  end;
      5  /
    PL/SQL procedure successfully completed.
    SQL> call dbms_xmlSchema.deleteSchema(:schemaURL,4)
      2  /
    Call completed.
    SQL> declare
      2    res boolean;
      3    xmlSchema xmlType := xmlType(
      4  '<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:xdb="http://xmlns.oracle.com/xdb" version="1.0" xdb:storeVarrayAsTable="t
    rue">
      5     <xs:element name="docattribs" type="DocAttribsType"/>
      6     <xs:complexType name="DocAttribsType" xdb:SQLType="DOCATTRIBS_T">
      7             <xs:sequence>
      8                     <xs:element name="brandgroups" type="BrandGroupsType" xdb:SQLName="BRANDGROUPS"/>
      9                     <xs:element name="messagegroups" type="MessageGroupsType" xdb:SQLName="MESSAGEGROUPS"/>
    10                     <xs:element name="sources" type="SourcesType" xdb:SQLName="SOURCES"/>
    11                     <xs:element name="contentgroups" type="ContentGroupsType" xdb:SQLName="CONTENTGROUPS"/>
    12                     <xs:element name="authors" type="AuthorsType" xdb:SQLName="AUTHORS"/>
    13                     <xs:element name="themes" type="ThemesType" xdb:SQLName="THEMES"/>
    14                     <xs:element name="entities" type="EntitiesType" xdb:SQLName="ENTITIES"/>
    15             </xs:sequence>
    16     </xs:complexType>
    17     <xs:complexType name="BrandGroupsType" xdb:SQLType="BRANDGROUPS_T">
    18             <xs:sequence>
    19                     <xs:element name="bg" type="IdMentionsToneType" minOccurs="0" maxOccurs="unbounded" xdb:SQLName="BG" xdb:SQLCollType
    ="IDMENTIONSTONE_COLL"/>
    20             </xs:sequence>
    21     </xs:complexType>
    22     <xs:complexType name="MessageGroupsType" xdb:SQLType="MESSAGEGROUPS_T">
    23             <xs:sequence>
    24                     <xs:element name="mg" type="MessageGroupType" minOccurs="0" maxOccurs="unbounded" xdb:SQLName="MG" xdb:SQLCollType="
    MG_COLL"/>
    25             </xs:sequence>
    26     </xs:complexType>
    27     <xs:complexType name="MessageGroupType" xdb:SQLType="MESSAGEGROUP_T">
    28             <xs:sequence>
    29                     <xs:element name="bg" type="IdType" minOccurs="0" maxOccurs="unbounded" xdb:SQLName="BG" xdb:SQLCollType="ID_COLL"/>
    30             </xs:sequence>
    31             <xs:attribute name="id" type="xs:integer" xdb:SQLName="ID"/>
    32     </xs:complexType>
    33     <xs:complexType name="SourcesType" xdb:SQLType="SOURCES_T">
    34             <xs:sequence>
    35                     <xs:element name="source" type="IdType" minOccurs="0" maxOccurs="unbounded" xdb:SQLName="SOURCE" xdb:SQLCollType="ID
    _COLL"/>
    36             </xs:sequence>
    37     </xs:complexType>
    38     <xs:complexType name="ContentGroupsType" xdb:SQLType="CONTENTGROUPS_T">
    39             <xs:sequence>
    40                     <xs:element name="pcg" type="ParentContentGroupType" minOccurs="0" maxOccurs="unbounded" xdb:SQLName="PCG" xdb:SQLCo
    llType="PCG_COLL"/>
    41             </xs:sequence>
    42     </xs:complexType>
    43     <xs:complexType name="ParentContentGroupType" xdb:SQLType="PARENTCONTENTGROUP_T">
    44             <xs:sequence>
    45                     <xs:element name="cg" type="IdType" minOccurs="0" maxOccurs="unbounded" xdb:SQLName="CG" xdb:SQLCollType="ID_COLL"/>
    46             </xs:sequence>
    47             <xs:attribute name="id" type="xs:integer" xdb:SQLName="ID"/>
    48     </xs:complexType>
    49     <xs:complexType name="AuthorsType" xdb:SQLType="AUTHORS_T">
    50             <xs:sequence>
    51                     <xs:element name="author" type="NameType" minOccurs="0" maxOccurs="unbounded" xdb:SQLName="AUTHOR" xdb:SQLCollType="
    NAME_COLL"/>
    52             </xs:sequence>
    53     </xs:complexType>
    54     <xs:complexType name="ThemesType" xdb:SQLType="THEMES_T">
    55             <xs:sequence>
    56                     <xs:element name="theme" type="IdType" minOccurs="0" maxOccurs="unbounded" xdb:SQLName="THEME" xdb:SQLCollType="ID_C
    OLL"/>
    57             </xs:sequence>
    58     </xs:complexType>
    59     <xs:complexType name="EntitiesType" xdb:SQLType="ENTITIES_T">
    60             <xs:sequence>
    61                     <xs:element name="af" type="IdMentionsType" minOccurs="0" maxOccurs="unbounded" xdb:SQLName="ANALYST_FIRMS" xdb:SQLC
    ollType="IDMENTIONS_COLL"/>
    62                     <xs:element name="a" type="IdMentionsType" minOccurs="0" maxOccurs="unbounded" xdb:SQLName="ANALYSTS" xdb:SQLCollTyp
    e="IDMENTIONS_COLL"/>
    63                     <xs:element name="b" type="IdMentionsType" minOccurs="0" maxOccurs="unbounded" xdb:SQLName="BRANDS" xdb:SQLCollType=
    "IDMENTIONS_COLL"/>
    64                     <xs:element name="c" type="IdMentionsType" minOccurs="0" maxOccurs="unbounded" xdb:SQLName="COMPANIES" xdb:SQLCollTy
    pe="IDMENTIONS_COLL"/>
    65                     <xs:element name="l" type="IdMentionsType" minOccurs="0" maxOccurs="unbounded" xdb:SQLName="LOCATIONS" xdb:SQLCollTy
    pe="IDMENTIONS_COLL"/>
    66                     <xs:element name="m" type="IdMentionsType" minOccurs="0" maxOccurs="unbounded" xdb:SQLName="MESSAGES" xdb:SQLCollTyp
    e="IDMENTIONS_COLL"/>
    67                     <xs:element name="p" type="IdMentionsType" minOccurs="0" maxOccurs="unbounded" xdb:SQLName="PEOPLE" xdb:SQLCollType=
    "IDMENTIONS_COLL"/>
    68             </xs:sequence>
    69     </xs:complexType>
    70     <xs:complexType name="IdMentionsType" xdb:SQLType="IDMENTIONS_T">
    71             <xs:attribute name="id" type="xs:integer" xdb:SQLName="ID"/>
    72             <xs:attribute name="mentions" type="xs:integer" xdb:SQLName="MENTIONS"/>
    73     </xs:complexType>
    74     <xs:complexType name="IdMentionsToneType" xdb:SQLType="IDMENTIONSTONE_T">
    75             <xs:attribute name="id" type="xs:integer" xdb:SQLName="ID"/>
    76             <xs:attribute name="mentions" type="xs:integer" xdb:SQLName="MENTIONS"/>
    77             <xs:attribute name="toneid" type="xs:integer" xdb:SQLName="TONEID"/>
    78     </xs:complexType>
    79     <xs:complexType name="IdType" xdb:SQLType="ID_T">
    80             <xs:attribute name="id" type="xs:integer" xdb:SQLName="ID"/>
    81     </xs:complexType>
    82     <xs:complexType name="NameType" xdb:SQLType="NAME_T">
    83             <xs:attribute name="name" type="xs:string" xdb:SQLName="NAME"/>
    84     </xs:complexType>
    85  </xs:schema>');
    86  begin
    87    if (dbms_xdb.existsResource(:schemaPath)) then
    88      dbms_xdb.deleteResource(:schemaPath);
    89    end if;
    90    res := dbms_xdb.createResource(:schemaPath,xmlSchema);
    91  end;
    92  /
    PL/SQL procedure successfully completed.
    SQL> begin
      2    dbms_xmlschema.registerSchema
      3    (
      4      :schemaURL,
      5      xdbURIType(:schemaPath).getClob(),
      6      TRUE,TRUE,FALSE,FALSE
      7    );
      8  end;
      9  /
    PL/SQL procedure successfully completed.
    SQL> set pages 0 lines 150
    SQL> --
    SQL> column column_name format A20
    SQL> column data_type format A20
    SQL> column qualified_col_name format A60
    SQL> --
    SQL> DROP TABLE DOCATTRIBUTES
      2  /
    Table dropped.
    SQL> CREATE TABLE docattributes
      2  (
      3    docid NUMBER,
      4    docdate DATE,
      5    statusid NUMBER
      6  )
      7  TABLESPACE USERS
      8  /
    Table created.
    SQL> ALTER TABLE docattributes ADD
      2  (
      3    docattributes XMLTYPE
      4  )
      5  XMLTYPE COLUMN docattributes
      6  XMLSCHEMA "cymfony_docattribs.xsd"
      7  ELEMENT "docattribs"
      8  VARRAY docattributes."XMLDATA"."BRANDGROUPS"."BG"
      9         STORE AS TABLE xml_brandgroups
    10         (
    11           (CONSTRAINT pk_xml_brandgroups PRIMARY KEY (NESTED_TABLE_ID, SYS_NC_ARRAY_INDEX$))
    12            ORGANIZATION INDEX OVERFLOW
    13         )
    14  VARRAY docattributes."XMLDATA"."MESSAGEGROUPS"."MG"
    15         STORE AS TABLE xml_messagegroups
    16         (
    17           (CONSTRAINT pk_xml_messagegroups PRIMARY KEY (NESTED_TABLE_ID, SYS_NC_ARRAY_INDEX$))
    18           ORGANIZATION INDEX OVERFLOW
    19           VARRAY "BG"
    20           STORE AS TABLE XML_BRANDGROUP
    21           (
    22             (CONSTRAINT pk_xml_brandgroup PRIMARY KEY (NESTED_TABLE_ID, ARRAY_INDEX))
    23             ORGANIZATION INDEX OVERFLOW
    24           )
    25         )
    26  VARRAY docattributes."XMLDATA"."SOURCES"."SOURCE"
    27         STORE AS TABLE xml_sources
    28         (
    29           (CONSTRAINT pk_xml_sources PRIMARY KEY (NESTED_TABLE_ID, ARRAY_INDEX))
    30           ORGANIZATION INDEX OVERFLOW
    31         )
    32  VARRAY docattributes."XMLDATA"."CONTENTGROUPS"."PCG"
    33         STORE AS TABLE xml_contentgroups
    34         (
    35           (CONSTRAINT pk_xml_contentgroups PRIMARY KEY (NESTED_TABLE_ID, ARRAY_INDEX))
    36            ORGANIZATION INDEX OVERFLOW
    37            VARRAY "CG"
    38            STORE AS TABLE xml_contentgroup
    39            (
    40              (CONSTRAINT pk_xml_contentgroup PRIMARY KEY (NESTED_TABLE_ID, ARRAY_INDEX))
    41              ORGANIZATION INDEX OVERFLOW
    42            )
    43         )
    44  VARRAY docattributes."XMLDATA"."AUTHORS"."AUTHOR"
    45         STORE AS TABLE xml_authors
    46         (
    47           (CONSTRAINT pk_xml_authors PRIMARY KEY (NESTED_TABLE_ID, ARRAY_INDEX))
    48           ORGANIZATION INDEX OVERFLOW
    49         )
    50  VARRAY docattributes."XMLDATA"."THEMES"."THEME"
    51         STORE AS TABLE xml_themes
    52         (
    53           (CONSTRAINT pk_xml_themes PRIMARY KEY (NESTED_TABLE_ID, ARRAY_INDEX))
    54           ORGANIZATION INDEX OVERFLOW
    55         )
    56  VARRAY docattributes."XMLDATA"."ENTITIES"."ANALYSTS"
    57         STORE AS TABLE xml_analysts
    58         (
    59           (constraint pk_xml_analysts PRIMARY KEY (NESTED_TABLE_ID, ARRAY_INDEX))
    60           ORGANIZATION INDEX OVERFLOW
    61         )
    62  VARRAY docattributes."XMLDATA"."ENTITIES"."ANALYST_FIRMS"
    63         STORE AS TABLE xml_analystfirms
    64         (
    65           (constraint pk_xml_analystfirms PRIMARY KEY (NESTED_TABLE_ID, ARRAY_INDEX))
    66           ORGANIZATION INDEX OVERFLOW
    67         )
    68  VARRAY docattributes."XMLDATA"."ENTITIES"."BRANDS"
    69         STORE AS TABLE xml_brands
    70         (
    71           (constraint pk_xml_brands PRIMARY KEY (NESTED_TABLE_ID, ARRAY_INDEX))
    72           ORGANIZATION INDEX
    73         )
    74  VARRAY docattributes."XMLDATA"."ENTITIES"."COMPANIES"
    75         STORE AS table xml_companies
    76         (
    77           (constraint pk_xml_companies primary key (NESTED_TABLE_ID, ARRAY_INDEX))
    78           ORGANIZATION INDEX
    79         )
    80  VARRAY docattributes."XMLDATA"."ENTITIES"."LOCATIONS"
    81         STORE AS table xml_locations
    82         (
    83           (constraint pk_xml_locations primary key (NESTED_TABLE_ID, ARRAY_INDEX))
    84           ORGANIZATION INDEX
    85         )
    86  VARRAY docattributes."XMLDATA"."ENTITIES"."MESSAGES"
    87         STORE AS table xml_messages
    88         (
    89           (constraint pk_xml_messages primary key (NESTED_TABLE_ID, ARRAY_INDEX))
    90           ORGANIZATION INDEX
    91         )
    92  VARRAY docattributes."XMLDATA"."ENTITIES"."PEOPLE"
    93         STORE AS table xml_people
    94         (
    95           (constraint pk_xml_people primary key (NESTED_TABLE_ID, ARRAY_INDEX))
    96           ORGANIZATION INDEX
    97         )
    98  /
    Table altered.
    SQL>and here's the actual alter table statement source
    CREATE TABLE docattributes
      docid NUMBER,
      docdate DATE,
      statusid NUMBER
    TABLESPACE USERS
    ALTER TABLE docattributes ADD
      docattributes XMLTYPE
    XMLTYPE COLUMN docattributes
    XMLSCHEMA "cymfony_docattribs.xsd"
    ELEMENT "docattribs"
    VARRAY docattributes."XMLDATA"."BRANDGROUPS"."BG"
           STORE AS TABLE xml_brandgroups
             (CONSTRAINT pk_xml_brandgroups PRIMARY KEY (NESTED_TABLE_ID, SYS_NC_ARRAY_INDEX$))
              ORGANIZATION INDEX OVERFLOW
    VARRAY docattributes."XMLDATA"."MESSAGEGROUPS"."MG"
           STORE AS TABLE xml_messagegroups
             (CONSTRAINT pk_xml_messagegroups PRIMARY KEY (NESTED_TABLE_ID, SYS_NC_ARRAY_INDEX$))
             ORGANIZATION INDEX OVERFLOW
             VARRAY "BG"
             STORE AS TABLE XML_BRANDGROUP
               (CONSTRAINT pk_xml_brandgroup PRIMARY KEY (NESTED_TABLE_ID, ARRAY_INDEX))
               ORGANIZATION INDEX OVERFLOW
    VARRAY docattributes."XMLDATA"."SOURCES"."SOURCE"
           STORE AS TABLE xml_sources
             (CONSTRAINT pk_xml_sources PRIMARY KEY (NESTED_TABLE_ID, ARRAY_INDEX))
             ORGANIZATION INDEX OVERFLOW
    VARRAY docattributes."XMLDATA"."CONTENTGROUPS"."PCG"
           STORE AS TABLE xml_contentgroups
             (CONSTRAINT pk_xml_contentgroups PRIMARY KEY (NESTED_TABLE_ID, ARRAY_INDEX))
              ORGANIZATION INDEX OVERFLOW
              VARRAY "CG"
              STORE AS TABLE xml_contentgroup
                (CONSTRAINT pk_xml_contentgroup PRIMARY KEY (NESTED_TABLE_ID, ARRAY_INDEX))
                ORGANIZATION INDEX OVERFLOW
    VARRAY docattributes."XMLDATA"."AUTHORS"."AUTHOR"
           STORE AS TABLE xml_authors
             (CONSTRAINT pk_xml_authors PRIMARY KEY (NESTED_TABLE_ID, ARRAY_INDEX))
             ORGANIZATION INDEX OVERFLOW
    VARRAY docattributes."XMLDATA"."THEMES"."THEME"
           STORE AS TABLE xml_themes
             (CONSTRAINT pk_xml_themes PRIMARY KEY (NESTED_TABLE_ID, ARRAY_INDEX))
             ORGANIZATION INDEX OVERFLOW
    VARRAY docattributes."XMLDATA"."ENTITIES"."ANALYSTS"
           STORE AS TABLE xml_analysts
             (constraint pk_xml_analysts PRIMARY KEY (NESTED_TABLE_ID, ARRAY_INDEX))
             ORGANIZATION INDEX OVERFLOW
    VARRAY docattributes."XMLDATA"."ENTITIES"."ANALYST_FIRMS"
           STORE AS TABLE xml_analystfirms
             (constraint pk_xml_analystfirms PRIMARY KEY (NESTED_TABLE_ID, ARRAY_INDEX))
             ORGANIZATION INDEX OVERFLOW
    VARRAY docattributes."XMLDATA"."ENTITIES"."BRANDS"
           STORE AS TABLE xml_brands
             (constraint pk_xml_brands PRIMARY KEY (NESTED_TABLE_ID, ARRAY_INDEX))
             ORGANIZATION INDEX
    VARRAY docattributes."XMLDATA"."ENTITIES"."COMPANIES"
           STORE AS table xml_companies
             (constraint pk_xml_companies primary key (NESTED_TABLE_ID, ARRAY_INDEX))
             ORGANIZATION INDEX
    VARRAY docattributes."XMLDATA"."ENTITIES"."LOCATIONS"
           STORE AS table xml_locations
             (constraint pk_xml_locations primary key (NESTED_TABLE_ID, ARRAY_INDEX))
             ORGANIZATION INDEX
    VARRAY docattributes."XMLDATA"."ENTITIES"."MESSAGES"
           STORE AS table xml_messages
             (constraint pk_xml_messages primary key (NESTED_TABLE_ID, ARRAY_INDEX))
             ORGANIZATION INDEX
    VARRAY docattributes."XMLDATA"."ENTITIES"."PEOPLE"
           STORE AS table xml_people
             (constraint pk_xml_people primary key (NESTED_TABLE_ID, ARRAY_INDEX))
             ORGANIZATION INDEX
    /

  • How to update all the record for a particular column in a table based on search criteria.

    Hi All,
    I am new to ADF. I have a requirement, where i have to perform mass update on a table.
    Scenario:
    Ex: I have a dept manual search region. where i search with deptId: 20. I get 20 records in my table. now i have  another region where i have a inputchoice list which contains all the columns names that exists in dept table. Beside that i have a input text box and an update button
    Now user, first searches with dept id:20 and clicks on search button, where it shows 20 record in the table. He then select a column from input choicelist(ex: ManagerId), then enters new value in the input box(ex: abc) then clicks on update button.
    Now i want, all the records in the ManagerId column with dept id:20 to be updated with the new value "abc"
    Can anyone help me with the code.
    Thanks in advance..

    Hi,
    If you go to your VO and generate the ViewObjectImpl, in there you can create a method which will contain two parameters, 1 the attribute name and 2 the value.
    Then you can follow something like explained in this post:
    ADF Tutorial: How to apply bulk actions to a view object rows
    The only difference is that you will need to create a method like this:
    public void updateAttribute(String attribute, Integer value){
            RowSetIterator iter = createRowSetIterator(null);
            while (iter.hasNext()){
                Row row = iter.next();
                row.setAttribute(attribute, value);
    Then you expose that as a client interface and then after you filter your table by your criteria you just need to execute this method passing the right parameters.
    Regards

Maybe you are looking for

  • Inserting dynamic image doesn't work for range of records

    Hi, I'm using BI Publisher 5.6.3 and E-business Suite 12.1.3. I have set up my RTF template so that it brings in a logo image dynamically onto an invoice. The code in the "alt text" field behind my dummy image is: url:{concat('${OA_MEDIA}/',//CF_LOGO

  • Drag and dropping music, i cant do it any more

    i cannot drag and drop any of my music to my phone anymore it comes up with a black circle with a line through it... can anyone help?? i used to be able to do it fine, it has unclicked the 'manually manage music' box now when i tick it it tells me th

  • IMac Screen Malfunction

    I have a 24" iMac which I bought in late 2008 and tonight the screen malfunctioned... has anyone seen this before and is there a solution?

  • Create the executable jar's file

    Hi guys, I am working on java desktop's application where a user will be able to run the application by double click the executable jar file. I followed the description of "Creating and Deploying a Simple Archive to Your File System of the help. Afte

  • Connecting WRT160N with DSL in windows 7 ultimate - A big Challenge!

    Hello! Connecting the Router wrt160n v3 with DSL connection in windows 7 ultimate has become a great challenge for me. I have been trying for the last two days. I have read and tried all the suggestions as advised to others in this forum, but unfortu