How can I hide primary key column in BC4J form

I have populated a primary key with dbsequence and how can I hide it on the form. It is populated in the DB by a trigger.

I have populated a primary key with dbsequence and how can I hide it on the form. It is populated in the DB by a trigger. To hide it, edit the attribute using attribute-editor that you bring up by double-clicking on the attribute in the "StructurePane" .
Then go to control-hints panel and mark the attribute setting for Display = Hide.
Then UI wizards will not add the attribute into generated panels.
However once you have UI generated, this hint is no more used.

Similar Messages

  • Can a composite primary key column be null

    Hi All,
    It will be a silly question but still I would like to ask can a composite primary key column be null?
    Thanks,
    Rafi.

    Rafi,
    Why you think it would be allowed?
    SQL> drop table test purge;
    drop table test purge
    ERROR at line 1:
    ORA-00942: table or view does not exist
    SQL> create table test as select * from dba_objects;
    Table created.
    SQL> alter table test add primary key(object_id, owner);
    Table altered.
    SQL> insert into test(object_id, owner) values(null, 'aman');
    insert into test(object_id, owner) values(null, 'aman')
    ERROR at line 1:
    ORA-01400: cannot insert NULL into ("SYS"."TEST"."OBJECT_ID")
    SQL> insert into test(object_id, owner) values(1,null);
    insert into test(object_id, owner) values(1,null)
    ERROR at line 1:
    ORA-01400: cannot insert NULL into ("SYS"."TEST"."OWNER")
    SQL>HTH
    Aman....

  • How to change (decrease) primary key column length?

    Hi all,
    I have plenty of data in the table and I need to decrease the primary key column from CHAR(17) to CHAR(13).
    I try to use:
    ALTER TABLE xx MODIFY (prmy_key (13));
    but Oracle give:
    ERROR at line 1:
    ORA-01441: column to be modified must be empty to decrease column length
    Can anyone give me advice on what is the best way to decrease column length? Thanks in advance for your help.

    To add to the above, I have done a simple test in the lines that I was suggesting the solution for this problem,
       CREATE TABLE testA
       (pk_col   varchar2(20), jd date, constraint pk1 PRIMARY KEY(pk_col));
       --Insert data into testA
       create table testB as select * from testA;
       TRUNCATE table testA;
       ALTER TABLE testA modify(pk_col VARCHAR2(10));   
       INSERT INTO testA SELECT substr(pk_col, 1, 10), jd from testB;
       DROP TABLE testB;
       Select constraint_name, constraint_type, status from all_constraints
       Where table_name = 'TESTA';
       CONSTRAINT_NAME                C STATUS
       PK1                            P ENABLEDAlter command is successful as the table is empty. TRUNCATE flushes the data and resets the high water mark keeping all the constraints. If we safely want to use the TRUNCATE as far as storage issues are concerned,
    TRUNCATE table table_name reuse storage;
    I think, this would accoplish what has been asked.
    Let me know,
    SriDHAR

  • How can i set primary key after creating a table ?

    hi friends
    thank you for all the support you have given me . i have doubt ,can we set primary key for a column after creating the table
    I have added a column named idno after creating the table . i want to set that column as primary key . i tried this
    table name = address
    column name = idno
    ALTER TABLE ADDRESS MODIFY (idno PRIMARY KEY(idno))
    ,but not working
    if anbody knows the solution pls reply
    thanks and regards
    nev

    how does the other users know which is the primary key for this table?....the other user needs to execute this query...and modify the query accordingly
    select aa.table_name,aa.column_name,aa.constraint_name,bb.constraint_type
    from user_cons_columns aa,user_constraints bb
    where aa.constraint_name = bb.constraint_name
    and aa.table_name = 'TEST_EMP' and bb.constraint_type = 'P';

  • Missing primary key column in created form?

    Please help. I am a newbie in apex.
    When i create form and view it later I am missing primary key column.
    HOw to make it show?
    Thanks in advance.

    Hi,
    While creating the form based on a table/view, what have you chosen to populate the primary key value? Existing Triggers or Existing Sequences or Custom PL/SQL function?
    Can you check for the Get PK pl/sql process in the page processing region of the related form page? If that function is missing then do the following steps to create the same,
    Step 1 : Create a new pl/sql process.
    Step 2 : Choose the Process Point as, On Submit After Computations and Validations.
    Step 3 : Write the following block,
    declare
      function get_pk return varchar2
      is
      begin
        for c1 in (select TEST_SEQ.nextval next_val
                   from dual) -- Create a new sequence for your requirement.
        loop
            return c1.next_val;
        end loop;
      end;
    begin
      :P3_TEST := get_pk;  -- Change the item name for your page.
    end;After doing all the above, try executing the page.
    Regards,
    Sakthi.

  • How to generate the primary key item automatically in form region?.

    Hi,
    The primary key item is generated automatically in report region.I already give the pl/sql function for generating of primary key.but I want to generate the primary key value automatically in form region only?.how to do this?.Pls help me..
    Thanks and Regards.

    One of the guidelines when selecting column for a primary key is:
    Choose a column whose data values are never changed. A primary key value is only used to identify a row in the table, and its data should never be used for any other purpose. Therefore, primary key values should rarely or never be changed.
    Cheers!

  • How can i hide and display columns dynamically

    Hi,
    Is such a thing possible in BeX.?????
    Following is the reqiurement.
    Number of columns with the forecast values are to be from Forecast 1&2 till the month before the chosen selection. In order for us to calculate the variance, you should have 2 forecast values. 
    If March is chosen please show Forecast 1& 11, Forecast 2&10
    If April is chosen please show Forecast 1& 11, Forecast 2&10, Forecast 3&9.
    If November is chosen please show Forecast 1& 11, Forecast 2&10, Forecast 3&9, Forecast 4&8, Forecast 5&7…………..Forecast 10&2.
    Please guide how can this be achieved.
    Regards,
    Rathy

    Hi,
    well at least you can use some vba macros to achieve that. Best would be to have a static query embedded in a workbook and a sheet where the results are displayed as copies from the query via a macro.
    regards
    Siggi

  • How to display the Primary key field in Application Form.

    IDFINALNO , USERNAME
    (No view) , RockQin
    I developed one new application form which is including the "Edit" item in every record.
    But I can not find the data that is Primary key field . So how to config the property to display that data.
    Thanks a lot!

    One of the guidelines when selecting column for a primary key is:
    Choose a column whose data values are never changed. A primary key value is only used to identify a row in the table, and its data should never be used for any other purpose. Therefore, primary key values should rarely or never be changed.
    Cheers!

  • How can I hide a menu options programatically in Forms 6i?

    Hi folks:
    I am using a customized menu. Called AEMS001. I have four options: File, Maintenance, Operations, Administration.
    Inside Maintenance, I have 15 different options and I need to hide five of them (Fees, Documents, Legal, Recors, Others) depending of the user role assined.
    How can I do that?
    I try to use set_menu_item_property('FEES', Visible, property_false)
    but it give me an error: FRM-41067: Cannot find menu item: invalid Id
    What do I did wrong?
    thanks a lot.
    Abdel

    hi,
    it might be that there is an initialization error in your code...
    try something like this (you can use visible or enable property).
    tell me your email and i will send you sample form and menu with the following code ...
    declare
    menu_item_name     varchar2(40) := 'MENU2.ITEM23';
    menu_item_id     MenuItem;
    begin
    menu_item_id := find_menu_item(menu_item_name);
    /*if (not id_null(menu_item_id)) then
    if (GET_MENU_ITEM_PROPERTY(MENU_ITEM_NAME, visible)='TRUE') then
         set_menu_item_property(menu_item_id, visible, property_false);
    else
         set_menu_item_property(menu_item_id, visible, property_true);     
    end if;
    else
    message(' cannot find menu item!');          
         raise form_trigger_failure;
    end if;     
    if (not id_null(menu_item_id)) then
    if (GET_MENU_ITEM_PROPERTY(MENU_ITEM_NAME, enabled)='TRUE') then
         set_menu_item_property(menu_item_id, enabled, property_false);
    else
         set_menu_item_property(menu_item_id, enabled, property_true);     
    end if;
    else
         message(' cannot find menu item!');          
         raise form_trigger_failure;
    end if;     
    end;

  • How can we hide the key fields of ztables in sm30 display?

    experts.. pls help me....

    Hi,
    Use events in table maintenance generator '05' and write the code.
    Go to se11-table name-utilities-table maintenance generator-extras-events in table maintenance generator . In the source code
    Put form hide.
    <code>.
    endform.
    Or.
    In SE80
    Goto Function Group
    Then click on Screen
    Then click on Element List Tab
    Below u can see list of ur fields strting with ZTT-......
    And against that u can have to uncheck the checkbox in INPUT column ......
    So that the input for the field will be disabled..... when u go in edit mode......
    Regards,
    Jagadish

  • How can i hide a column using personalization?

    Hi,
    Please help me how can i hide a one column in oracle forms using personalization?
    Thanks

    Hi,
    When you login to My Oracle Support website, enter "458786.1" or "468657.1" in the search box, and you should get the documents.
    Or, use the direct links below to access those documents.
    How To Do Forms Personalization (Doc ID 468657.1)
    https://supporthtml.oracle.com/ep/faces/secure/km/DocumentDisplay.jspx?id=468657.1
    RCVRCERC: When Using Personalization to Remove a Column Receive Error FRM-41017: Cannot set UPDATE ALLOWED (Doc ID 458786.1)
    https://supporthtml.oracle.com/ep/faces/secure/km/DocumentDisplay.jspx?id=458786.1
    Regards,
    Hussein

  • How can I modify a column to a primary key column

    Hi,
    I've created a table with no primary key. How I can set the primary key column now? The datatype of the "primary key" column is Raw(35).
    Thanks,
    Mike

    Mike,
    Issue the following command:
    ALTER TABLE table_name
    ADD CONSTRAINT constraint_name PRIMARY KEY(column_name);
    NOTE: If you want to place the primary key data in a separate tablespace, then you can add the key word USING INDEX TABLESPACE after the column_name.
    Regards,
    John

  • How to know primary key column name form a table name in sql query

    Suppose I only know the table name. How to get its primary key column name from the table name?
    Thanks

    Views don't have primary keys though their underlying tables might. You'd need to pick apart the view to determine where it's columns are coming from.
    You can select the text of the view in question from user_views.

  • How to modify primary key column?

    I want to modify one primary key column, But TT reported error.
    How do I modify primary key column? Thanks first.

    In TimesTen, the values in primary key columns cannot be updated (except for the trivial case where you update the value to the same value as it currently has). If you want to change the values stored in primary key columns the application must insert a new row with the new key values (and of course values for the other columns) and then delete the old row.
    Chris

  • How can I avoid displaying Primary key fields in BC4J .......

    Hi,
    I am using auto-sequencing in the create method to assign values
    to primary keys - therefore I do not need to display these
    primary key columns to the user, etc. How can I do that.
    Thanks in advance.
    KI

    I will try to help you
    1. go to your bc4j
    2. Double click the entity object
    3. Select attributes setting tab
    4. Select your key attribute and unchecked 'mandatory'
    5. Select apply and close this windows
    6. Double click the view object and select the attributes
    setting tab
    7. Select your key attribute and on updatable option
    select 'Never'
    8. Good luck

Maybe you are looking for

  • Can not change files from "Read Only" In Windows 8.1

    I am the only Administrator on my computer, there are no other accounts. Some how all my files now have the read only attribute and I can not change it. It gives me the option to change it and I do and it looks like it got rid of it; but as soon as I

  • Wrong date format by importing event from mail

    When I try to create a new event in ical through a date in mail, it identifies the date in american format (MM/DD/YYYY) instead of the european format (DD/MM/YYYY)/ In the system prefs and in ical itself (when creating a stand-alone event) the format

  • Using iWeb with MobileMe family pack

    I just upgraded to the family pack for mobile me. I had been using it for my homepage, but now I'd like to make a homepage for my son, and my wife wants to make a homepage as well. How is this handled in iWeb? I don't see a way to tell it where to pu

  • SetBounds & setSize bug?

    Hi All, I have a strange problem with my applet, it sometimes does not fully display (Only display half or 1/3 of its height). I tried to add setBounds and setSize calls, I even called to resize using Javascript but the applet still does not display

  • Approver not able to go detail screen to see approve / reject buttons

    Hello friends,      Approver can see the corresponding workitem in his approval inbox. When click on the approval workitem next screen where approve / reject button with item detail screen is not coming. explorer is refreshing and approver workitem s