Disable a field of a detail block

Hi. I am working on master-detail form.i want to disable my detail block field when execute.
But no error no changes.Here is my code
TRIGGER:POST-QUERY
IF :XXTT_KONTRAT_LINES_V.TIP=2 THEN
  fnd_message.set_string('1');fnd_message.show();
--SET_ITEM_INSTANCE_PROPERTY('XXTT_KONTRAT_LINES_V.SS_NO', CURRENT_RECORD, enabled, PROPERTY_true);
SET_ITEM_INSTANCE_PROPERTY('XXTT_KONTRAT_LINES_V.SS_NO', CURRENT_RECORD, insert_allowed, PROPERTY_true);
SET_ITEM_INSTANCE_PROPERTY('XXTT_KONTRAT_LINES_V.SS_NO', CURRENT_RECORD, update_allowed, PROPERTY_true);
SET_ITEM_INSTANCE_PROPERTY('XXTT_KONTRAT_LINES_V.SS_NO', CURRENT_RECORD, NAVIGABLE, PROPERTY_true);
else
  fnd_message.set_string('2');fnd_message.show();
SET_ITEM_INSTANCE_PROPERTY('XXTT_KONTRAT_LINES_V.SS_NO', CURRENT_RECORD, insert_allowed, PROPERTY_false);
SET_ITEM_INSTANCE_PROPERTY('XXTT_KONTRAT_LINES_V.SS_NO', CURRENT_RECORD, update_allowed, PROPERTY_false);
END IF;

mustafa_yilmaz wrote:
Hi. I am working on master-detail form.i want to disable my detail block field when execute.
--SET_ITEM_INSTANCE_PROPERTY('XXTT_KONTRAT_LINES_V.SS_NO', CURRENT_RECORD, enabled, PROPERTY_true);
You can't ENABLE or DISABLE an item in a multi-row block using the Set_Item_Instance_Property() built-in.  Take a look at the Forms Help system on this built-in and you will find that you can only set the following properties using this built-in:  BORDER_BEVEL, INSERT_ALLOWED, NAVIGABLE, REQUIRED, UPDATE_ALLOWED, and VISUAL_ATTRIBUTE.
In order to make a field in a multi-row block disabled, you have to emulate a disabled field.  In other words, you can set the INSERT/UPDATE_ALLOWED properties as you are doing and I would recommend you also set the NAVIGABLE property to FALSE in your ELSE clause as well.  If you need the field to appear as if it is disabled, then I recommend you create a set of visual attributes; one for a disabled field and one for an enabled field.  Something like: DISABLED_FIELD and ENABLED_FIELD.  Then you can use the Set_Item_Instance_Property() built-in to set the visual attribute in addition to the other properties you are setting.  This will give the field the appearance that it is disabled.
Hope this helps.
Craig...

Similar Messages

  • Disable Field for Line Details Form

    How do I trap an event on a Line Details form to disable a field?
    The FormType for all the Line Details forms is 1 so I cannot differentiate one from the other. Also, there does not seem to be a Form Mode for Line Details forms so I cannot differentiate Add mode from Update.
    Any insight is appreciated.
    Thanks.

    Don't think you can disable a field in line detail. You can only disable a column... SDK didn't even allow you to disable a row in a line details-matrix, let alone a field... Let us pray then

  • Update detail block based on FROM QUERY

    I have 2 blocks in master-detail relation. The master is based on a table, the detail on from query. The Insert works fine... but whenever i want to update any field from the detail block, the items (text, lists, whatever) don't allow any updating.
    Is there some workaround?
    Thank you for the help
    NR

    RTM on blocks based on from-query.
    If I recall well, it says that you shoud write the DML code in on-insert, on-update and on-delete triggers - and, anyway, if I do not remember well the manual, that's what I do.
    So, the on-insert trigger should have an insert into <my_dml_table>...
    The on-update trigger sould have an update <my_dml_table>... where ... And there's a thing: you may have the rowid of <my_dml_query> fetched - which would be the best - or use some primary key for that table for update (not so good performance).
    The on-delete trigger somewhat like the on-update trigger.
    Moreover, I believe it would be better to have procedures for on-insert, on-update and on-delete grouped in one package in the database - again, this is what I use to do.

  • Hide detail block while inserting

    when in the master block, if I click Insert button, I'd like to hide the detail block, and then display it back upon clicking Save button. Is that possible?

    In the layout view, add a stacked canvas to the content canvas (don't wory about size or position).
    drag the mouse around the fields of the detail block to select them all, press f4 for the property pallet and set the Canvas property to the new canvas for all the fields, then set the same property for the block. If you have graphics relating to the detail block then in the object navigator select those and drag them to the new canvas.
    Back in the layout editor, resize the new canvas so all the components can be seen, and reposition them (just drag around them all to select, then move them all closer to the top of the canvas). resize and position the stacked canvas and you're done.

  • Populating the detail block

    Hi Gurus,
    I have a master block and a detail block. the detail block should be always disabled for user entry.
    Master block is based on table X and detail block on Table Y.
    In the master block there is a field A . When this filed is entered with a value, when it is in insert mode, I have to execute a procedure which populates the detail block (the expected data has to be derived from another table based on the value of field A. But if Block A is in query mode the detail block is populated throu relationship.
    Now having the detail block as insert not allowed and update not allowed, my procedure is not able to populate the block. But if I changed insert allowed yes and update allowed =yes, the procedure populates the block. But I make the user enter values on the block which is not entertained. Please help me how can I achieve this?
    Thanks and Regards,

    try setting INSERT/UPDATE allowed = 'NO' for the all the detail fields, rather than
    block. should work.

  • Unable to see the values in detail block

    Hello,
    I have a master detail block, when I query the form, I am unable to see the values for a particular field(Column), all other columns appear properly in the details block, Upon checking the same table(s) in SQL ( by using the JOIN defined in the where clause of the relationship in Forms) , it shows the relevant records for all fields. So what could be wrong with the Form, please advise.
    Thanks
    FM

    IQ wrote:
    I have just checked the field its a non-database field which is being used as a LOV column to display a value derived from LOV. How do I make this populate at Query time, as obviously this works when the Form is in a insert mode but not for Query mode. How to make it work for Query ? As it for LOV column and non-database filed, ignore my first suggestion.
    Does your non-database filed has associate any column ?
    For example, you have SUPPLIER_ID (database column) and SUPPLIER_NAME (non-database column). SUPPLIER_NAME has LOV column. And when selecting supplier name from LOV value also assign at supplier_id.
    Now to show supplier name when querying, you have to write POST-CHANGE trigger at supplier_id. like
    SELECT ASSC_CODE INTO :MST_SUPPLIER.ACC_CODE
    FROM ACC_SUB_SUB_CONTROL
    WHERE ASSC_ID=:MST_SUPPLIER.SUPP_ASSC_ID;Hope this helps

  • How to query the master block based on one of the values in detail block

    Hi,
    In version 6i forms, I have a field in data block which is not set as a database item. I am using that field to store a value from detail block. If I want to query the form using that field (which represents one of the values from detail block), how do I do that? Any pointers?
    TIA,

    Do you want to query a master, which contains a specific detail? If so, here's an example how you could do it with a PRE-QUERY-trigger:
    DECLARE
      vcQuery VARCHAR2(4000);
    BEGIN
      IF :MASTERBLOCK.THE_DETAIL_SEARCH_ITEM IS NOT NULL THEN
        -- Build up an exists Sub-Query
        vcQuery:=' MASTERBLOCKID IN (SELECT FK_TO_MASTERBLOCK FROM DETAILTABLE WHERE DETAIL_COLUMN=''' || :MASTERBLOCK.THE_DETAIL_SEARCH_ITEM|| ''')';
      END IF;
      SET_BLOCK_PROPERTY('MASTERBLOCK', DEFAULT_WHERE, vcQuery);
    END;

  • Disable certain fields during the creation of SC using "create limit item"

    Hi,
    I have a requirement to disable certain fields from the role "SHOP" associated with the operational purchaser role. I would like to disable the fields "Unlimited check box", "Service Agent", " Invoice Only radio button", "Unknown account assignment radio button" from the screen I get during creation of SC using the option "Create Limit Item". Also i need to disable the option "Good / Service" entry box as we are using only free text items and donu2019t want this option to be seen in the screen when using the operational purchaser role.
    Please advise how can I achieve this.
    Regards
    GGL

    Hi,
    I have a same requirement to disable certain fields from the Shopping Cart Limit Item. I would like to disable the fields  "Service Agent", "Unknown account assignment radio button" from the Detail  screen. during creation of SC using the option  Limit Item .  Also i need to make default Value "Known" and "Invoice Only". But this is in SRM 7.0. Notes You have mentioned supports only Release 5.5, But I am in Release 7.0. Any idea?
    I appreciate your help
    Thanks,
    Monica

  • Oracle Forms : Master Detail : Cannot query detail block

    MY requirement is: when user enters records in master block, the corresponding records should be displayed in the detail block. (Detail block is just for viewing).
    Master block is a database block based on a custom table. All fields are enetereble in this block.
    Detail block is a a database block based on view which is built joining the custom table(on which master block is built) & a standard table. None of the fields in detail block are editable. they are just display only. For detail block, set the Key Mode=Non-Updatable, Enabled a field as Primary Key.
    I have created a relation between the 2 blocks. (Deferred=No, AutoQuery=No, Delete Record Behaviour=Isolated.). There is a join between master table & this view.
    But when I enter record in master block & save. the detail block records are not displayed. (Message : No Navigable Items in Detail Block).
    Yes, there are no navigable items in detail block, because its just for viewing purpose. How can this be achieved.
    Thanks,
    Naveen

    Thanks for your inputs. I got the solution for this. Earlier all items in the block were DISPLAY_ONLY. Now, I have selected them as TEXT_ITEMS (even though they are not updatable). It is working fine now. Thanks.

  • Disabling certain fields on the selection screen.

    Hi all,
              I want to disable certain fields on selection screen of my program, also i want to display certain fields on selection screen only if a particular field on the selection screen is checked or selected. Please guide me how this can be achieved via coding in a program.
    Thanks & regards,
    Chetan.

    Hi Chetan,
    try this.
    SELECTION-SCREEN BEGIN OF BLOCK b1 WITH FRAME TITLE text-001.
    PARAMETERS: pa_file TYPE rlgrap-filename MODIF ID abc,
    pa_lifnr TYPE lfa1-lifnr MODIF ID abc,
    pa_vkorg TYPE vbak-vkorg MODIF ID abc.
    SELECTION-SCREEN END OF BLOCK b1.
    SELECTION-SCREEN BEGIN OF BLOCK b2 WITH FRAME TITLE text-002.
    PARAMETERS: pa_kunnr TYPE vbak-kunnr MODIF ID def.
    SELECT-OPTIONS: s_lifnr FOR gs_lfa1-lifnr MODIF ID def,
    s_date FOR gs_lfa1-erdat MODIF ID def,
    s_augru FOR gs_vbak-augru MODIF ID def,
    s_vbeln FOR gs_vbak-vbeln MODIF ID def.
    SELECTION-SCREEN END OF BLOCK b2.
    SELECTION-SCREEN BEGIN OF BLOCK b3 WITH FRAME TITLE text-003.
    SELECTION-SCREEN BEGIN OF LINE.
    PARAMETERS: pa_upd RADIOBUTTON GROUP g1 USER-COMMAND uc01 DEFAULT 'X'."#EC *
    SELECTION-SCREEN COMMENT 3(60) text-004 FOR FIELD pa_upd.
    SELECTION-SCREEN END OF LINE.
    SELECTION-SCREEN BEGIN OF LINE.
    PARAMETERS: pa_rep RADIOBUTTON GROUP g1 ."#EC *
    SELECTION-SCREEN COMMENT 3(60) text-005 FOR FIELD pa_rep.
    SELECTION-SCREEN END OF LINE.
    SELECTION-SCREEN END OF BLOCK b3.
    IF pa_rep EQ gc_x.
    LOOP AT SCREEN.
    IF screen-group1 = gc_abc.
    screen-input = gc_zero_num.
    ELSEIF screen-group1 = gc_def.
    screen-active = gc_one_num.
    ENDIF.
    MODIFY SCREEN.
    ENDLOOP.
    ELSEIF pa_upd EQ gc_x.
    *For Reprocessing
    LOOP AT SCREEN.
    IF screen-group1 = gc_def.
    screen-input = gc_zero_num.
    ELSEIF screen-group1 = gc_abc.
    screen-active = gc_one_num.
    ENDIF.
    MODIFY SCREEN.
    CLEAR pa_upd.
    ENDLOOP.
    ENDIF.
    REPORT zrich_001.
    PARAMETERS: p_rad1 RADIOBUTTON GROUP grp1 DEFAULT 'X'
    user-command chk,
    p_rad2 RADIOBUTTON GROUP grp1.
    SELECT-OPTIONS: s_datum1 FOR sy-datum MODIF ID d1,
    s_datum2 FOR sy-datum MODIF ID d2.
    AT SELECTION-SCREEN OUTPUT.
    LOOP AT SCREEN.
    IF p_rad1 = 'X'
    AND screen-group1 = 'D2'.
    screen-active = '0'.
    ENDIF.
    IF p_rad2 = 'X'
    AND screen-group1 = 'D1'.
    screen-active = '0'.
    ENDIF.
    MODIFY SCREEN.
    ENDLOOP.
    reward if useful.
    regards,
    sravanthi.

  • Calculation in a detail block based on condition

    Hi guys,
    Well I want to calculate the SUM of some records in a detail block based on a condition.
    Like my block that is based on a table consist these fields,
    FUND_ID, NOMINEE_ID, FUND_PERCENTAGE
    Now I want to validate record the percentage user enter for each fund must not exceed 100%.
    Like for FUND_ID = 1 the number of records user enter for this FUND_ID 1 in the detail block in the percentage field must not increase 100% - like user can enter multiple record and any ratio of percentage. Like for rec1 FUND_PERCENTAGE can be 50% for rec2 its again 50%.
    In the same Block user can also enter percentage of the FUND_ID = 2 but I have to calculate for each FUND_ID.
    How can I calculate the fields based on a condition in a detail block.
    Pliz help,
    Imran

    referesing my question....

  • Detail block is not populated

    Hi,
    Please suggest me best way to do it. Create a form with two blocks
    1.Master block1 has items client,dc,sku,fromlocation,tolocation which is fetching data
    from RFlog table in RFWH schema
    2.Second block has items client,dc,sku,location which is fetching data from Inv_detail table in MPROD schema.
    These tables are not linked but we can join them using client,dc,sku columns.When click on row in Master
    block then corresponding data from Inv_detail table should display in detail block.
    When there is value in Fromlocation(tolocation will be Null) then detail should show same location and viceversa tolocation.
    problem is there is no way to find in inv_detail which is tolocation or fromlocation.
    sample date
    Master block
    Client        Dc        Sku      fromlocation   tolocation
    10             ABC     Pen         001            
    10             ABC     Pen                            002
    Detail block
    Client      DC     Sku     Location
    10         ABC    Pen       001
    10         ABC    Pen       002My approach: Created master data block based on RFlog then created detail data block based on Inv_detail and unchecked auto-join ,created link with client,dc and sku. in detail block where clause used below query
    :inv_location.location=:rf_blk.fromlocation
    OR :inv_location.location=:rf_blk.tolocationProblem: when ran this form it shows data in all fields of master-data-block and Client,DC,Sku field of detail DB
    there is no data in location field. In detail client,dc and sku item proeprty palatte has COPY_value_item = Mblock.client
    respectively.
    Thanks a lot in advance
    sandy
    Edited by: sandy162 on Jul 20, 2009 3:53 PM

    Let me clarify:
    Your master block rf_blk and detail block inv_location.
    New non-database item location_m added in Master block. This item can be Visible=No and canvas = null (Just don't forget to put formula in this one)
    Do not specify any Where Clause in Master block nor in Detail Block.
    Manually create relation and specify Join Condition like this:
    inv_location.location=rf_blk.location_m
    AND inv_location.client=rf_blk.client
    AND inv_location.dc=rf_blk.dc
    AND inv_location.sku=rf_blk.skuNow you should see that property "Copy value From Item" in inv_location.location is set to rf_blk.location_m, inv_location.client set to copy from rf_blk.client etc.

  • Change primary key field in Master-Detail Form (Urgent)

    Hi,
    Can some experts share your valuable experience on the problem below?
    We have created a form Master-Detail relation. For some reasons, we have to allow the primary key field to be editable. But we couln't achieve it in Form 6i. It gives update error during commit.
    Your kind help will be highly appreciated.
    Regards,
    YM

    Hi there,
    I think the problem is because u are updating the primary key in the master block but since it is a master detail block u need to update it in the detail block as well.so what i suggest u to do is in the pre-insert trigger assign the value of master primarykey to the detail primary key....
    just check this out hopefully this shud help u.
    Bye
    Atul

  • Disabling custom fields when Equipment type is M

    Hi all,
    I modified the IE02 transaction by adding 5 custom fields
    to the screen SAPLITO0 1050.
    Now i have the requirement to disable these fields when eqtyp is 'M'.
    Is there any userexit available for this purpose or i have to modify the PBO module of the screen.
    Any help will be appreciated.
    regards
    chandu.

    Hi Sai,
    Did you place your PBO module in the screen 1022's flow
    logic? The PBO logic should some what like following,
    general dynpro settings
      MODULE DYNPRO_INIT_SUB_ALL.
    specific dynpro settings
      MODULE DYNPRO_INIT_1022.   "This is your module here..
    restore active cursor position and set it
      MODULE DYNPRO_CURSOR_SET.
    And then in the PBO Module DYNPRO_INIT_1022 (which I assume is created in the include LIO0O01),
    MODULE DYNPRO_INIT_1022 OUTPUT.
    ****Your screen modification logic here..
    ENDMODULE.
    Also did you activate/generate both the screen and program?
    Please check that as well.
    When you debug put a break-point in your PBO module and see whether the control goes there..
    Hope this helps..
    Also if possible could you give me the detailed steps that you have followed? (In case it doesnt workout after checking every thing)
    Sri

  • Two masters and one detail block

    Hello All,
    I have three tables Person_master, Addr_master, person_address_link.
    Person_master -
    Person_id number (8), fname, lname and other fields,
    Addr-master -
    Address_id number(9), addr_1, addr_2 and other fields
    Person_address_link
    Person_id, Address_id, Module_id.
    ...person_master and address_master are not related to each other but
    they are related to each other in person_address_link detail block...
    ...how to design this form...
    ...also i want to take care of the cases when person,his addresses and
    their link exists, and in addition want to add new address, whose link
    will then be stored in person_address_link...

    Can
    block 1 = Person_master
    block 2 = Person_address_link
    block 3 = Addr-master
    Block 1 relates to block 2 via Person_id
    and block 2 relates to block 3 via Address_id
    Regards

Maybe you are looking for

  • PC Suite not updating contact properly

    Hi, My system: Windows Vista (SP1), Nokia PC Suite 6.86.9.0, Nokia 6120, Bluetooth. Problems: see attached (I delete some phone number for confidentiality). I entered Julia Chin contact wrongly few days ago but managed to rectify it 2 days ago (5705

  • Check broken links in Adobe Acrobat

    Hey everybody, I am searching for a Plugin for Adobe Acrobat 9.0 Professional, which check brocken links in a pdf-document and create a report with all brocken links. Here I mean links like www.microsoft.com. A broken link link is www.12nmu8098.com .

  • SBH52 detection problem with Nokia 108 (BT 3.0)

    Hello there, i'm facing problems in pairing my Nokia 108 candybar GSM with Bluetooth 3.0 with the SBH52. No similar issues with Ipad, Xperia Z, etc... Anyone a suggestion in order to solve this issue? Thanks in advance! Frank

  • Multiple Location of datafiles in Data Guard Environment

    I have Data Guard setup in my oracle 10g database. Uptil now , all the datafiles were at same location, therefore db_file parameter setting in pfile was fine. Now I want to move my few of the datafiles at another location. Say, few of my datafiles wo

  • Black Screen after I shut and open the lid

    Recently I updated the driver of my graphics card. Earlier it was showing my graphics to be AMD HD 6490M series but after update it shows graphics to be AMD Radeon HD 7400M Series. And I did theupdate from official AMD website. Everything works fine