Change visual_attribute on current item at block level

Hello everybody.
Is there anyway to apply visual_attribute on current item at block level ? Explanation: i have block with a lot of items, so it's really hard to create many POST-TEXT-ITEM triggers on every item and apply visual_attribute on it...
Thx in advance.
Adnan
Edited by: adnanBIH on Dec 7, 2009 11:38 AM

Hi,
You can set the visual attribute using the following as per your requirement:
This is for item instance
Set_Item_Instance_Property( 'Your item', CURRENT_RECORD, VISUAL_ATTRIBUTE,'Custom_attribute'); for item
Set_Item_Property( 'Your item', VISUAL_ATTRIBUTE,'Custom_attribute'); regards
knick
Edited by: knick on Dec 7, 2009 10:46 AM

Similar Messages

  • Current item Background Color

    Hello Friends,
    I am facing some problem in changing the bachgroud color of the selected field in block,
    Basically i want to make visible the current field in a record,not the enire record but just the current item.
    thanks to all;

    Create WNII and POST-TEXT-ITEM triggers (block level) with command
    Set_Item_Instance_Property(:SYSTEM.CURRENT_ITEM, CURRENT_RECORD, VISUAL_ATTRIBUTE, <VA_NAME>);
    Note! Current record VISUAL ATTRIBUTE of block must be <NULL>.

  • When-validate-item at form level do not fire

    Hi, I wrote a when-validate-item at form level to do same check in all items of a screen and note that this trigger do not fire when executing the form. does someone know why this form-level when-validate item do not fire. Are there some conditions i probably forgot to have? Thnaks very much.

    Hi, if you also have a validate-item trigger on the item itself, this may be overriding the form-level validate item.
    At the ITEM-LEVEL:
    if a when-validate-item trigger exists and the Execution Hierarchy property of the trigger is set to override then the item-level trigger will fire instead of any trigger by the same name at any higher scope.
    So make sure you do not have validate-item triggers at the item or block level that may be overriding the form-level when-validate-item.
    To see the properties of a trigger, highlight the trigger and press F4
    Hope this helps!

  • How to change the Height of item....!!!! in multi record block

    Here is the problem I want to change one item height in multiple records block..
    I tried to do the following
    set_item_instance_property(:system.mouse_item,:system.current_record,height,50);
    But this didn't work as the property for height couldn't be used with this built in..
    Can any one tell me any other suggestion to move around
    Thanks and best regares

    If you just have two sizes to display - e.g. normally the item is 1 line high but in the current item you want to show more information and want to make it say 2 lines high, then you can use a Mirror item to do this.
    Create another item in the block - set the Synchronize With Item property to the base item you want to "Resize".
    Set the Records Displayed property to 1 for this extra field.
    Put this field on a stacked canvas that is just big enough to hold it.
    The in your When-New-Record Instance trigger you can pop the stacked canvas up over the normal version of the field.
    That should do the trick.

  • BAPI_SALESORDER_CHANGE - how to change item delivery block(VBEP-LIFSP)

    HI all,
    I have to change on item delivery block (VBEP-LIFSP)  and header level delivery block (VBAK-LIFSK) ,
    In my report i`am using BAPI_SAILBOARDER_CHANGE,
    for header:
    LT_BAPISDH1X-UPDATEFLAG = 'X'.
             LT_BAPISDH1X-DLV_BLOCK = 'X'.
            LT_BAPISDH1-DLV_BLock = '
    for item
    LT_BAPISCHDLX-UPDATEFLAG = 'U'.
          LT_BAPISCHDLX-REQ_DLV_BL = 'X'.
          LT_BAPISCHDLX-SCHED_LINE = '0001'.
          LT_BAPISCHDLX-ITM_NUMBER = '10'.
          LT_BAPISCHDL-REQ_DLV_BL = ' '.
          LT_BAPISCHDL-SCHED_LINE = '0001'.
          LT_BAPISCHDL-ITM_NUMBER = '10'.
    For header it`s working properly, but for item - not at all - message: "Field header_inx-updateflag is not an input field"
    CALL FUNCTION 'BAPI_SALESORDER_CHANGE'
          EXPORTING
            SALESDOCUMENT               = L_SPETAB-vbeln
            ORDER_HEADER_IN             = LT_BAPISDH1
            ORDER_HEADER_INX            = LT_BAPISDH1X
          TABLES
            RETURN                      = LS_RETURN
            SCHEDULE_LINES              = LT_BAPISCHDL
            SCHEDULE_LINESX             = LT_BAPISCHDLX
    Any suggestions? Thank you

    Hi,
    In your code, please change the following:
    FROM:
    LT_BAPISCHDLX-UPDATEFLAG = 'U'.
    LT_BAPISCHDLX-REQ_DLV_BL = 'X'.
    LT_BAPISCHDLX-SCHED_LINE = '0001'.
    LT_BAPISCHDLX-ITM_NUMBER = '10'.
    TO:
    LT_BAPISCHDLX-UPDATEFLAG = 'U'.
    LT_BAPISCHDLX-REQ_DLV_BL = 'X'.
    LT_BAPISCHDLX-SCHED_LINE = 'X'.
    LT_BAPISCHDLX-ITM_NUMBER = 'X'.
    Please take note that in changing Sales Order, Purchase Orders, etc using BAPI's, there are always two tables to which you need to modify. As you did, you use the table LT_BAPISCHDLX.  Take not the suffix "X" of this table. X means "to change". So in this case, you need to change 3 fields. So like what you did, you pass the values into table LT_BAPISCHDL and in table LTBAPISCHDLX, you need to tell that you are changing these fields via marking them with X.
    Moreoever, when updating line items, do it one at a time. Clear your tables before filling them again. For example, you have 4 items in your order, and you want to update two of them, you can't update them at the same time. What you need is to update it one at a time.
    Finally, you have to commit your work using BAPI_TRANSACTION_COMMIT.
    I hope it helps. cheers

  • Sales order item assignemnt block ,if we click edit extra blank line on items level i want remove that line how to do it?

    Hi Team,
    Sales order item assignemnt block ,if we click edit ,Item assignment block extra blank line on items level is showing , i want remove that line how to do it?
    Thanks&regards
    Kalpana

    Hi Ravi,
    With the help of Dharmakasi Thotakura...
    As suggested to do changes in DO_INITCONTEXT and GET_I_T_TABLE methods ....i have implemented these two methods...Now problem only one column ITEM_NO will be disabled  remaining cloumns not disabled...i want to disable entire column including ACTION column also..Action Column contains INSERT and DELETE buttons.how to do it?
    METHOD
    do_init_context.
    CALL METHOD SUPER->DO_INIT_CONTEXT.
    DATA : lr_ent TYPE REF TO cl_crm_bol_entity,
    lr_btadminh TYPE REF TO cl_crm_bol_entity,
    lv_object_id TYPE string,
    lo_context TYPE REF TO /RCRM/15IT__ITEMS_CN00.
    * gv_flag TYPE crmt_boolean.
    lr_ent ?= me->typed_context->btitems->collection_wrapper->get_current( ).
    lr_btadminh ?= lr_ent->get_parent( ).
    lv_object_id = lr_btadminh->get_property_as_string( iv_attr_name = 'OBJECT_ID' ).
    lo_context ?= me->typed_context->btadmini.
    clear lo_context->gv_flag.
    IF lv_object_id IS NOT initial.
    lo_context->gv_flag = abap_true.
    ELSE.
    CLEAR lo_context->gv_flag.
    ENDIF.
    ENDMETHod
    METHOD
    get_i_t_table.
    CALL METHOD super->get_i_t_table
    EXPORTING
    index = index
    component = component
    RECEIVING
    rv_disabled = rv_disabled.
    DATA: lv_component TYPE name_komp,
    lo_entity TYPE REF TO cl_crm_bol_entity,
    lo_property TYPE REF TO cl_crm_bol_entity,
    lv_string TYPE string.
    IF rv_disabled = 'FALSE'.
    lv_component = component.
    lo_property ?= collection_wrapper->find( iv_index = index ).
    lo_entity ?= lo_property.
    lv_string = lo_entity->get_property_as_string( iv_attr_name = lv_component ).
    IF lv_string IS INITIAL or lv_string = '0000000000'.
    IF gv_flag IS NOT INITIAL.
    rv_disabled = 'TRUE'.
    ENDIF.
    ENDIF.
    ENDIF.
    ENDMETHOD.
    Thanks
    Kalpana

  • Block level changes on linux when a datafile is reduced by resize

    Hi All,
    Does anyone know what happens at the block level on Linux when an oracle datafile has its size reduced. For instance, if I have a 6gb datafile with has had the extents written to but the current HWM is 2gb and i then reduce this datafile size from 6gb to 2gb. On the file system the file is resized to 2gb but what actually happens to the blocks on the OS? The reason I am asking is because I am running Linux on vmware and the vmware file is replicated at the block level. How much additional data would be replicated if I reduced the datafile with a resize. Would it replicate the 4gb difference, or is only the end of the datafile changing and if so are only a few blocks changing. Oracle seems to reduce the file size quickly so I am assuming it is not changing many blocks. Any ideas?
    cheers,
    Matt
    Edited by: user10993370 on Jul 30, 2011 5:59 AM

    Hi Matt,
    Are your datafiles on ASM? Raw? Filesystem?
    I have not tested it, but I suspect that Oracle simply re-writes the extent map, whether that's in ASM, on the raw device, or on the filesystem.
    -Mark

  • How to change the current item background color

    I m working in forms 6.0.
    I want to mak the background color of the current item (whatsoever the item name is ) as 'yellow'. How can i do that.How can i accoplish that? I've tried
    set_item_property(:system.cursor_item,background_color,'yellow');
    in Pre_text_item
    set_item_property(:system.cursor_item,background_color,'white');
    in post_item_item
    at block level
    But i failed to do that
    anyone to help me plz
    Riaz Shahid

    hi riaz,
    i think instead of pre-text-item put the code in when new item instance.or try creating a visual attribute with background color as yellow and attach that using set_item_property in when new item instance or check for help on DISPLAY_ITEM built in in forms help.I think one of these should definitely help u.
    bye
    Atul

  • Sales order display-how to change color of item with high level 0

    Please does anyone know how can i chenge the color of item with high level 0 in display of sales order in red or yellow so it can be seen better for better searching on page?
    thank you in advance...
    regards..

    You'd probably have to do a modification in SD for that. But what you can do, is make the higher level item not changeable. You could also set the display range to UHAU to only see the main items, do this in transaction VOV8. Or you could change your item category in VOV7 only to show main items.
    good luck

  • When-validate-item firing on block level.

    Hi all
    i have six fields and when-validate-item trigger is working on block level, i want to display records in one field,i want when-validate-item trigger work on item level not on block level,any help will be greatly appreciated.
    here is the code.
    When-Validate-Item Trigger.
    declare
         Str_Space VARCHAR2(20);
    begin
    Str_Space := ' ';
    :ins1.ref := :ins1.branch || Str_Space || :ins1.class || Str_Space || :ins1.year || Str_Space || :ins1.serial || Str_Space || :ins1.cno || Str_Space || :ins1.edno;
    end;
    sarah

    Francois Degrelle.
    just look the following code.
    DECLARE
         Str_Space VARCHAR2(20);
    begin
         Str_Space := ' ';
    :ins1.ref := :ins1.branch || Str_Space || :ins1.class || Str_Space || :ins1.year || Str_Space || :ins1.serial || Str_Space || :ins1.cno || Str_Space || :ins1.edno;
    END;
    by using the above code i am passing branch,class,year,serial,cno and edno to Ref column( 1 G01 2009 13112 00 01). and Str_space variable is creating space for each item.i want the above code work at item leavel instead of block level.Is it poassibl?
    sarah

  • SPL block when changing the Address manually at Sales order level

    Hello all,  I hope every one doing well
    I am facing one problem in SAP system, when I am chanigng the Partner address at sales order level , system giving the SPL block , without screening even though the customer is a good customer.
    I checked in Img: GTS -> SAP Compliance Management->"Sanctioned Party List Screening" Service->Control Settings for "Sanctioned Party List Screening" Service->Sanctioned Party List Screening Strategy for Customs Docs tested with  as " Status check of unchanged Addresses( Partner Address) and New check of changed Addresses.
    I didn't find any difference. Sales order getting block for the above cases when changing the Address at Sales/Create document level.
    Please let me know  how to resolve it.
    Is it related to configuration  if yes how  ? pr
    do we  have any OSS Notes to Rescreen the Sales orders with compliace even though changing the Address at sales order level ( ship to party address changes like Name, city, email id, of fax )?
    or
    do we need to do the Enhancement for Rescreening when changing the ship to party adress (changes like Name, city, email id, of fax )
    manually at sales order level ?
    Thanks in Advance
    NVR

    hello Sameer,
    1. Whether your Embargo service is activated for the Country of Plant from which your order is getting shipped. -- Yes I have activated the Country under Embargo list.
    2. Whether the partner function for which you changing the county detail has been added in into the Partner group which is assigned to Embargo services.( GTS)-- Assinged the Sold to Party ( AG) for PGEMB2- Partner group
    3. Whether the country which u putting as Embargo has been maintianed under Embargo country list,
    - yes
    What I am doing exactly is , I am creating sales order with US customer master , but I am chaning the Country Key as Embargo country ( Ex: CU, SY, IR) at VA01 , or VA02 level Sales order header Partner tab level for Sold to party address ( changing only country key as embargo country) , not to ship to party  ( ship to party still US country key only), at that time system not blocking the sales order as embargo.
    please let me know if any once come across this sistuation..
    Thanks in advance
    NVR

  • Changing the color of the current item in a link bar

    It seems that the currrent item and the disabled color are
    the same. How can I have the current item stand out in a link bar?
    I see styles for Selected but not for the current item.
    thanks
    bruce

    I tried with keylistener but it is not working.What is not working, the KeyListener or the coloring of cells? Don't make us guess.
    If you need further help then you need to create a [Short, Self Contained, Compilable and Executable, Example Program (SSCCE)|http://homepage1.nifty.com/algafield/sscce.html], that demonstrates the incorrect behaviour.
    Don't forget to use the [Code Formatting Tags|http://forum.java.sun.com/help.jspa?sec=formatting], so the posted code retains its original formatting.

  • How to compare, current value in :block.text_item with the database value

    Hi
    Could you please tell me
    How to compare the current value in :block.text_item with the corresponding database column value.
    I am using forms 10g
    There is block and there is an text Item in that block.
    When I run the form and query the block (tabular), the :block.text_item shows me, whatever value there in the database.
    Now I add some value in the :block.text_item to the existing value.
    now
    the :block.text_item contains old+ new added value
    whereas
    the database table contains 'old' value
    Now on a button click , I want to find out what is the value that I have added
    Could you please tell me, is it possible without writing a select query?

    Hello,
    Now on a button click , I want to find out what is the value that I have addedSo you mean always user will add value in the existing value. Because this way will fail in one case. Let say
    Value in Database is = ABCD
    User opened the form and he removed the D and write E and now value is ABCE and length is still same 4. So, there is no addition.
    Anyway you can know the database value at runtime there is one property for item called DATABASE_VALUE. It gives the value which is in database while you are running the form before save. and you can use like this..
    Trigger = WHEN-MOUSE-DOUBLE-CLICK on item level
    DECLARE
      vItemValue DATATYPE; -- Set the data type according to your desired field.
      vValueAdded DATATYPE; -- Set the data type according to your desired field.
    BEGIN
      vItemValue:=GET_ITEM_PROPERTY('ITEM_NAME',DATABASE_VALUE);  -- It will return you the database value in vItemValue variable.
      IF LENGTH(vItemValue)>LENGTH(:FORM_ITEM_NAME) THEN  -- It mean something change or added
        vValueAdded:=SUBSTR(:FORM_ITEM_NAME,LENGTH(vItemValue)+1);
        MESSAGE('Added value is : '||vValueAdded);  -- It will show you the added value.
      END IF;
      -- now suppose you want to show the old and new value in message not the added one
      -- Then no need of IF condition. You can just use message like this
      -- And i would prefer to use like this way
      MESSAGE('Old Value : '||vItemValue||'  New Value - '||:FORM_ITEM_NAME);
      MESSAGE('Old Value : '||vItemValue||'  New Value - '||:FORM_ITEM_NAME);
    END;Hope it is clear.
    -Ammad

  • Using WHEN-LIST-CHANGED on T-list to navigate block records

    I have a form on which I use a T-List to list all of the child records in a block based on the selected parent record of the form. I am using the T-List almost strictly for navigational purposes (and eventually later for delete purposes as well). Above my T-List on the form is all of the individual fields that display the details of the record that is selected in the T-List. My POST-QUERY trigger on the block populates the T-List with all of the child records, and also uses the value of the highest (max value) child record to updated all of the detail fields for the block. I also have a program unit that updates all of the detail fields for the block that gets called from my WHEN-LIST-CHANGED trigger for the T-List. It passes the key value from the T-List to the program unit and updates all of the child record detail information.
    My problem comes when I attempt to actually update the currently selected child record. I've tried a number of different things to get this to work, but none of them have completely worked, and I'm coming to the end of my knowledge base and can't figure out how to make this update the child record correctly. Initially I was having a problem where the form actually WAS performing the update, but it was always (no matter which list item I had selected) updating the same record, which was the first record that was retrieved for the block. I've run the form in debug mode, and checked the actual values of the child record fields after I've changed the selected item in the list, and all of those fields are actually the correct values corresponding to the selected item in the list, but for some reason, it won't update the record that is currently in those fields when I do a save. From what I can tell, I need to be able to somehow actually navigate the records in that block when I click on an item in the list (i.e. perform next_record or previous record until the block gets to the record that corresponds to the item selected in the list) so that the form recognizes and attempts to update the correct record.
    Has anyone out there tried this before? Does anyone know of a solution for how to do this? Any help would be greatly appreciated. Thanks in advance.
    -::YEX::-
    <)))><

    1. WHEN-LIST-CHANGED trigger is not for items it is for List items (Pop , COMBO, Tlist)
    2. Try to write a code on WHEN-VALIDATE-ITEM at field level with code similar to this
    if :custname is not null then
    begin
          select ship_to_location into :ship_to_location
            from tablename
         where custcd = :custcd;
    exception when no_data_found then
          ----call some alert and error message.........
    end;
    else
      :ship_loc := null;
    end if;plz mark it helpful/correct if it is

  • Issue with PO change output - Service line items

    Hi All,
    This is issue with PO change output. We have PO with line item 10, 20 and item 10 has 4 service line items. PO is approved and initial print out is taken.
    Some one goes and makes changes to 1st service line items of PO line item 10.
    A change output gets triggered. When this output is printed, it prints line item 10 details. This is standard functionality as this item is changed. But its printing all the service line items for this PO line item. Consider a case where there are 3000 service lines for a PO item. If I add 1 service item to this PO line item, the change form prints 3001 services for that line item. There were no changes done to first 3000 service line items.
    Currently PO change form takes care of changes at PO line item but it does not take care of changes at service line item level.
    Is there any setting that needs to be done for this so that it only considers the changes at Service line item level also.
    Regards,
    Shahu

    If you're using a standard form, send a message to SAP. Otherwise make a change in the form.

Maybe you are looking for

  • PSC 2350 Blue Screen Error

    Hi, Recently my PSC 2350 has been having a recurring error while printing.  It will print 1/4 of a page and then stop.  The printer's display screen turns blue and show an error code of 0x887929e.  I have not been able to find any references that wil

  • Keynote html export not displaying correctly in Internet Explorer

    I exported a Keynote presentation to html, uploaded it to my server, and only half of the slide shows in Internet Explorer. Every other browser displays the presenation just fine. Any ideas how to correct the Explorer error?

  • Imac startup: three beeps continuously, monitor remains dark.

    imac startup: three loud beeps continuously, monitor remains dark.

  • Selecting path / anchor point

    Hi guys! I am just browsing around the trial Ai CS5 version and there is something, which I do not really understand... When I use Selection Tool {V}, it works pretty fine, but when using Direct Selection Tool {A}, I can not select the path or anchor

  • Trying to download from LP

    I am trying to download from an LP through a pre-amp and amplifier to the audio input port. Why do I get nothing?