Default clause in tables

Hi,
I'm using java API to deploy my publication and publication items.
The problem is that, on client side, the tables are generated without
the default clause on columns.
I'm using this method:
createPublicationItem(java.lang.String name, Consolidator.PubItemProps pi_props)
with      pi_props.setDfltColOptions = true
Any help is highly appreciated.
Regards

How did you test this? Did you just do a DESC on your table and not see the defaults?
Here is what I use and I haven't had an issue:
cm.createPublicationItem(
table.getName(), // name
SCHEMA, // owner
table.getStore(), // store
table.getRefreshMode(), // refresh mode
table.getSelectStmt(), // select stmt
null, // callback package owner
null); // callback package name
cm.addPublicationItem(
PUBLICATION,
table.getName(),
null,
table.getUpdateable(),
table.getConflictRule(),
null,
table.getWeight(),
null,
true,
(table.getShared().compareToIgnoreCase("Y") == 0) ? true : false, null);

Similar Messages

  • Looking help in Default clause with CASE statement ?

    I have a table perform(timings date , Mor_Eve varchar2(20) )
    Requirements is
    (a) If time in timing column is < 12:00 then automatically insert 'MORNING' in Mor_Eve column
    ELSE
    automatically insert 'EVENING' in Mor_Eve column.
    Is there any way of using default clause in create table that insert Morning or Evening in the Mor_Eve column automatically depending on the Timings column ?

    Hi,
    Welcome to the forum!
    All the responses above are good.
    Why do you need to store this at all?
    If you want to display it automatically, create a view, like this:
    CREATE OR REPLACE VIEW     perform_v
    AS
    SELECT     timings
    ,     CASE     TO_CHAR (timings, 'AM')
             WHEN  'AM'     THEN  'MORNING'
             WHEN  'PM'     THEN  'EVENING'
                   ELSE  'NOT ENTERED'     -- Skip this line if you want NULL
         END     AS mor_eve
    FROM     perform
    ;Always do DML on the table, but query the view when you want to see mor_eve.
    I'm not saying there's no reason to store this; I'm just asking if you have one.
    If you must store it, a DEFAULT clause won't work.
    Starting in Oracle 11, you can have a virtual column. (You can have an index on a virtual column, but why would you want an index on a column that only had 2 values?)
    In any version, you can write a trigger that autmoatically populates the mor_eve column whenever you INSERT or UPDATE.

  • How to remove default value from table definition?

    Hi,
    running 9.2
    Following problem :
    I need to remove default value from table.
    Example
    CREATE TABLE MY_TABLE(
    NAME VARCHAR2(50) DEFAULT 'NAME',
    AGE NUMBER DEFAULT 0
    Now even when I use MODIFY like
    ALTER TABLE MY_TABLE MODIFY (NAME VARCHAR2(10) );
    The default is still there:
    SELECT DATA_DEFAULT FROM USER_TAB_COLUMNS WHERE TABLE_NAME = 'MY_TABLE';
    Is there any way?
    Thanks

    Thanks,
    found the answer. It is not possible!!!!
    http://download.oracle.com/docs/cd/B19306_01/server.102/b14200/statements_3001.htm
    Note:
    If a column has a default value, then you can use the DEFAULT clause to change the default to NULL, but you cannot remove the default value completely. That is, if a column has ever had a default value assigned to it, then the DATA_DEFAULT column of the USER_TAB_COLUMNS data dictionary view will always display either a default value or NULL

  • Deleting DEFAULT clause

    Hi,
    How can I delete DEFAULT clause from column definitions without dropping
    column itself?
    After:
    CREATE TABLE my_table (my_column DATE DEFAULT SYSDATE);
    all worked fine. Now I don't need in this DEFAULT clause.
    So I tried
    ALTER TABLE my_table MODIFY (my_column);
    but it had no effect.
    I can do
    ALTER TABLE my_table MODIFY (my_column DEFAULT NULL);
    and it works, but how to delete "empty" DEFAULT clause completely?
    Thank for your help.

    Hi user594985,
    Do you want your own custom login page or are you trying to have no login requirement and just go straight to a home page for the app of some sorts?
    If it is the former then by all means just edit your existing login page (101 by default) or create your own from scratch and define it as your login page. To do this just edit your application attibutes to point to this new page on login, logout and session timeout etc...
    Cheers,
    Mike
    PS: Please update your user name to something a little "friendlier"

  • By default In a table Data should be Displayed.before clicking the search b

    Hi All,
    I m using adf11g.I have taken adf query with panel(thrgh Drag&drop in named Criteria).after that i have taken table(Drag Drop in a form ) from Data Control.
    So My Requirement is By default In a table Data should be Displayed.after that clicking the search button *then thrgh criteria then data should be displayed.So plz any body help me this question to the answer.I m waiting for ur reply.
    Thanks&Regards
    Anup
    Cell-9987984070
    Edited by: user13098384 on May 10, 2010 12:32 AM
    Edited by: user13098384 on May 10, 2010 12:44 AM

    Hi All,
    Same problem i m getting.By default Data is not comming bfr search button,if search button then data is comming.Plz give me reply.
    Thanks
    Anup

  • Derive found flag in SQL with where clause using TABLE(CAST function

    Dear All,
    Stored procedure listEmployees
    ==========================
    CREATE OR REPLACE TYPE STRING_ARRAY AS VARRAY(8000) OF VARCHAR2(15);
    empIdList STRING_ARRAY
    countriesList STRING_ARRAY
    SELECT EMP_ID, EMP_COUNTRY, EMP_NAME, FOUND_FLAG_
    FROM EMPLOYEE WHERE
    EMP_ID IN
    (SELECT * FROM TABLE(CAST(empIdList AS STRING_ARRAY))
    AND EMP_COUNTRY IN
    (SELECT * FROM TABLE(CAST(countriesList AS STRING_ARRAY))
    =================
    I have a stored procedure which lists the employees using above simple query.
    Here I am using table CAST function to find the list of employees in one go
    instead of looping through each and every employee
    Everything fine until requirements forced me to get the FOUND_FLAG as well.
    Now I wanted derive the FOUND_FLAG by using rownum, rowid, decode functions
    but I was not successful
    Can you please suggest if there is any intelligent way to say weather the
    row is found for given parameters in the where clause?
    If not I may have to loop through each set of empIdList, countriesList
    and find the values individually just to set a flag. In this approach I can’t use
    the TABLE CAST function which is efficient I suppose.
    Note that query STRING_ARRAY is an VARRAY. It is very big in size and this procedure
    suppose to handle large sets of data.
    Thanks In advance
    Regards
    Charan
    Edited by: kmcharan on 03-Dec-2009 09:55
    Edited by: kmcharan on 03-Dec-2009 09:55

    If your query returns results, you have found them... so your "FOUND" flag might be a constant,...

  • How to add one default value in table type value set?

    Hi All
    I have the below requirement:
    Need to display all the organization ids in the parameter for one concurrent program along with one default value of 'ALL'.
    I have created a table value set which picks up the organization name from hr_all_organization_units. But while submitting the program I should also be able to give 'ALL'.
    Any pointer/idea how to achieve this will be highly appreciated!!
    Thanks in Advance!!
    Regards,
    Shashank Mishra

    HI
    i get below error when i change the script 
    PS C:\scripts> C:\Scripts\updatedefaultvalue.ps1
    Cannot index into a null array.
    At C:\Scripts\updatedefaultvalue.ps1:8 char:7
    + IF($i[ <<<< "Title"] -eq $null)
        + CategoryInfo          : InvalidOperation: (Title:String) [], RuntimeExce
       ption
        + FullyQualifiedErrorId : NullArray
    $web = Get-SPWeb http://tspmcwfe:89/
    $list = $web.Lists["test"]
    $item = $list.Items | Where { $_["Name"] -eq "Emc" }
    foreach($i in $items)
    IF($i["Title"] -eq $null)
             $i["Title"] = "test"
           $i.Update()
    adil
    Why are you piping a where in the items? Do you only want to add the "test" to ones matching
    a name?
    If you have ISE installed on your server I recommend you put your code in there and debug it. 
    If this is helpful please mark it so. Also if this solved your problem mark as answer.

  • Default value to Table Control?

    DearAll,
    How to assign a default value to any field of Table Control at runtime?
    Regards,
    Dharmesh

    hi vyas,
    you can do thru interface workarea TABLES.
    say for eg you have defined your table control structure with ref to KNA1 table then in the PBO of the screen you can move the values to the structure,say
    KNA1-KUNNR = 'VYAS'.This way you can assign default values..
    Cheers,
    Abdul

  • How can I set the default font in tables

    I am using Pages "09 4.3.  I use Myriad in Table cells and have to change the font in about 6 cells in a table before Pages accepts that is the one to use.  I would like to be able to determine the default font in one operation when I first set the document up.  Does anyone know if this can be done and how please?

    Find out what the Paragraph Style is that is used in the table by selecting some text. Change it to what you want.
    Open the Styles Drawer > click on the red arrow next to the style > Update it > When you are finished save it as a Template
    Peter

  • Where Clause in Table Lookups for Data Load

    Hello,
    In Shared Components I created in Data Load Table. In this Data Load Table I added a Table Lookup. On the page to edit the Table Lookup, there is a field called Where Clause. I tried to add a Where Clause to my Table Lookup in this field but it seems that it has no effect on the Data Load process.
    Does someone know how to use this Where Clause field?
    Thanks,
    Seb

    Hi,
    I'm having the same problem with the where clause being ignored in the table lookup, is this a bug and if so is there a work around?
    Thanks in advance

  • Default values in tables for function module

    Hi,
    We've created a function module and it is their requirement to have a default value for the tables in the FM? How do we do this? Cause if it is just an import parameter there is a column for default values, but for tables there is none. How do we code this?
    Thanks.

    Hi,
    In the start of the function module you can check the table and set your default values.
    FUNCTION ...
    "Check whether the table is initial
    "Do not override the value passed by the user
    IF itab[] IS INITIAL.
    itab-field = 'DEFAULT'. "Set your default value
    APPEND itab.
    ENDIF.
    - - - Your functionality
    Regards
    Wenceslaus.

  • Displaying a row by default in ALV table

    Hi all,
    I have created an alv table in which i have to display a row by default. I have set all the fields of the table as editable.
    Also I have created the total calculation for the amount field by using the aggregation method, I want to displat the total grid also to be displayed by default.
    How can I set that value?? Please give some suggestions.
    Thanks in advance,
    Nalla.B

    Hi Nalla,
    As you know you should call the agregation methode for displaying the total row :
    DATA : alv_config_table  TYPE REF TO cl_salv_wd_config_table.
    DATA : lr_field TYPE REF TO cl_salv_wd_field.
    alv_config_table->if_salv_wd_std_functions~set_aggregation_allowed( abap_true ).
    lr_field =  alv_config_table->if_salv_wd_field_settings~get_field( 'CARRIED' ) . "The column name for which total needs
    lr_field->if_salv_wd_aggr~create_aggr_rule( aggregation_type =  if_salv_wd_c_aggregation=>aggrtype_total ).
    OK, i guess this is done in a specific methode 'METHODE_ALV' for the ALV settings.
    Row by default :
    Try to populate a line in your internal table, and bind it to the reference context of the ALV in WDDOINIT.
    and call the METHODE_ALV
    Sum row :
    Check if you are implementing a methode that intercept the ON_DATA_CHECK event, if yes try to recall the METHODE_ALV.
    > The aggregation methode must be recalled.
    Best regards.

  • By default in a table,adf query panel should be executed first time output

    Hello all,
    I am using adf 11g. I have taken adf query panel and i have taken seperate another table.My Requirement is first time in table ,query should be executed after that in search button then according to date/query should be executed in a table.
    Thanks in advance.
    Anup

    Hi All,
    Same problem i m getting.By default Data is not comming bfr search button,if search button then data is comming.Plz give me reply.
    Thanks
    Anup

  • Generate the tablespace clause for tables and indexes

    How can I make Designer generate the tablespace clause for the create table and create index statements?
    I assigned tables and indexes to Tablespaces objects in designer but they don't seem to have any effect on the generator.
    I am using the latest version of Oracle Designer.
    Thanks
    Message was edited by:
    bikerc

    Guess I am not real clear what you want.
    In the DB admin tab you will need to create the tablespace with the data file.
    Then you need to assign the table space to the table.
    You will need to generate from the DB Admin tab.
    Hope this helps.
    Michael

  • What index will be created by default when new table is created

    Hi Team,
    1.  When creating new table, what type of index wil be created in sql server ?
    2.  what is the table name if we create new table without primary key?
    Please help me on this
    Anand Rajagopal

    Hi Anand,
                    Your Question is quite wide in range and I am agree the other answers too. I would like to talk about your second question first because it will depend upon the first one.
                    When we creating a fresh table without specified any primary key it is called "Heap" table. A Heap table is not containing clustered index but it can non-clustered index (but not automatically we have
    to create explicitly). It means the data is not in order and we have to apply ORDER BY clause to short the data. Heap structure is not good for big tables which requires filtration frequently. 
                     When we create a table without specifying primary key, then none of indexes created on table. but if we specify primary key then it will create a clustered index with it. It means it is now physically
    shorted. But It doesn't guarantees that if you fire SELECT statement then It will fetch record in same order (It seems but it is not) because the RDBMS is based on "SET THEORY" and it doesn't guarantee the shorting order or records.
                     Also have a look on "Create Table", "Indexes" & "Table Scan", "Table Seek" for better understanding.
    Shivendra

Maybe you are looking for

  • Web sharing/Apache not working

    My web sharing doesn't seem to be working. When I have it enabled in the Sharing panel of the System Preferences, I try to click on the link My Computer's Website http://myIPaddress I get an error message, in both Safari and Firefox, saying that I ca

  • Mouse pointer flickers when moved on a pdf viewed in Safari. Any ideas ?

    Same thing happens when trying to capture a screen area with Shift-Cmd-4.

  • Link to WSDL

    Hi, When defining an webservice i go to the Integration Directory and calls the function Tools->Define Web Service and the i get an WSDL which i can download and send to somebody. But is there no option for the developers to call a link where they ca

  • Posting Date for Rebate Agreement (extended)

    Hi , When doing settlement for the extended rebate, is it possible to input manually the posting date of the CM? Currently, it gets the valid to date of the agreement.  What if the settlement is done 2-3months after the validity period of the agreeme

  • JavaHelp for web app?

    Hello, I'm trying to include JavaHelp for our web application. Has anyone used this tool or any other tool with javascript for displaying help for web apps? I tried to follow the browser demo that is in applet and comes with javahelp zip. It worked f