Enabling and disabling the button in the multi record block

hi all,
i am using
Forms [32 Bit] Version 6.0.8.24.1 (Production)
Oracle Database 10g Release 10.2.0.1.0 - Production
i have a multi record block each block contains a button(button is to approve the record in terms of changing the status)
i have the items like date,remarks and button
the button should be enabled if the remarks is not null otherwise it should be disabled.
for this in pre-record trigger i have written
if :record is null then
   set_item_property('button',enabled,property_false);
else
      set_item_property('button',enabled,property_false);
end if;what problem is enable and disable is impacting on all the buttons in the block. in other words if first record's remarks is null then all the records button is disabled. if first record's remarks column is not null then all the records of the button column is enabled.
i have to make enable and disable the button for the corresponding record.that means if first record's remarks column is not null then only first records button should be enabled others should be disabled.
Thanks..

You need to set the No. of items displayed to 1 as Ammad had said, additionally you can set the X and Y Position (Just Y will do and having fixed X) of the button depending upon the current record.
can u explain this part alone bit more (setting the position of x and y)You need to calculate the variable Y_POS depending upon the current position of the cursor that is the current record.
You can find the current record Y_POS using combination of
V_CURRENT_RECORD := :SYSTEM.CURSOR_RECORD;
V_TOP_RECORD := GET_BLOCK_PROPERTY ('BLOCK_NAME', TOP_RECORD);
V_ITEM_Y_POS := GET_ITEM_PROPERTY ('ITEM_NAME', Y_POS);
-- Also needs to add the Y_POS of the relative other items in the muti-record block
V_HEIGHT := GET_ITEM_PROPERTY ('BUTTON_NAME', HEIGHT);
-- Note :- TOP_RECORD  Returns the record number of the topmost visible record in the given block.
V_Y_POS := V_ITEM_Y_POS + ((V_CURRENT_RECORD - V_TOP_RECORD) * V_HEIGHT);
-- You will need to add Distance between Items in records if anyThen you can Set the current Y_POS of the button.
SET_ITEM_PROPERTY ('BUTTON_NAME', Y_POS, V_Y_POS);
[/code[
Hope this helps
Best Regards
Arif Khadas
Edited by: Arif Khadas on Feb 24, 2011 4:58 PM                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       

Similar Messages

  • Disabling a button in a multi record block

    Hi everyone,
    I have a multi record block with a button on each record, I have to be able to disable a button at runtime (following some conditions).
    the SET_ITEM_INSTANCE_PROPERTY (item, record, enabled, property_false) does not work !
    Any idea on how can I do it ?
    Thanks for any help.

    I don't think "enabled" is a valid property for SET_ITEM_INSTANCE_PROPERTY. You were probably thinking of SET_ITEM_PROPERTY but this won't work for you at the record level.
    The only thing I can think of right off hand is to set the visual attribute using SET_ITEM_INSTANCE_PROPERTY to make each button look enabled or disabled. You could define 2 visual attributes, say something like VA_BUTTON_ENABLE and VA_BUTTON_DISABLE.
    If you want the button to look enabled then:
    SET_ITEM_INSTANCE_PROPERTY(item, record, visual_attribute, 'VA_BUTTON_ENABLED'');
    If you want the button to look disabled then:
    SET_ITEM_INSTANCE_PROPERTY(item, record, visual_attribute, 'VA_BUTTON_DISABLED');
    Then, in your WHEN-BUTTON-PRESSED trigger, look at the visual attribute for that record using the GET_ITEM_INSTANCE_PROPERTY, and if the visual attribute is VA_BUTTON_ENABLED then execute your button code otherwise don't do anything.
    Give it a try and see if that works for you.
    Hope it helps.
    Travis

  • Is it possible to enable & disable a field in a multi record block

    When I enable a field in the multi record block all the records for that field are enabled or vice versa. I don't want that.
    If I enable a field for one record the rest of them should stay as it is.
    Thanks for any help.
    Syed Jaleel.

    You can set update_allowed,insert_allowed, Navigable false for
    field in multirecord block using
    Set-Item_Instance_Property;
    Eg:
    Set_Item_Instance_Property('BlkName.item_name',Record_number,Insert_Allowed,Property_False);

  • How to make the column in multi-record block resizable?

    I am using Form6o, can I make the column in a multi-record block resizable?
    Thanks!

    I don't know exactly how they did it, but I have seen it done in Forms 6i. It is not exactly Excel style, but it comes close. You can use when-mouse-down and when-mouse-up triggers to determine start and end position of the mouse (with system.mouse_x_pos) and then set the width property.
    So, when you drag the mouse, you don't see the column size increase, you only see the result after you let go of the mouse button.

  • Another multi-record block question

    I have always struggled with this. I have a muti-record block(10 records displayed). Eventhough my block is a db block, I have not assigned it a table. Hence, it is a non-db block. If I set enabled on a txt box, it
    is enabling the entire column. I need to enable only the text box on which the cursor is/user navigated to.
    How to do it?
    Thanks,
    Chiru
    Edited by: Megastar_Chiru on Sep 21, 2010 2:03 PM

    ok..here is the explanation of the issue
    in my multi-record block, there is a drop down list column with 2 values "Monthly %" and "Half-Rent". So, for example, in record 1, the drop-down could be chosen as "Monthly %" while in rec2, it could be "Half-rent". Right next to this list column, I have a text box. When the user chooses "Monthly %", the text box need to be enabled to allow keying a % value (say 5%). While in rec2, since the user chooses "Half-rent", the text box needs to be disabled for this record. How to accomplish this?
    Thanks,
    Chiru

  • Web Form Hangs When Scrolling through Multi-Record Block

    Hello!
    I have a web-deployed form that uses the Sun Java JVM and utilizes WebUtil.
    We are using JDK v1.4.2.
    When I open this form using the Java plug-in and try to scroll through a multi-record block ... it will hang at various points and eventually I have to close the form because it won't respond.
    This does not happen if I simply access the form through the Microsoft JVM.
    Any suggestions?

    That's a know solved bug. You must install AS10g patchset 9.0.4.2.
    For me it solved the problem.
    Bug 3557904: Forms hangs (deadlocks) when scrolling on XP under some circumstances
    Joao Oliveira

  • Enable and Disable the file paths

    Hai i have two file paths one logical file path and other is physical file path.
    I took two radio buttons.
    How can i enable and disable the file paths by using these radio buttons.
    When i select the 1st radio button then 1st file path is in enable and second file path in disable mode similarly for the second radio button also.
    It is very urgent .
    With Regards,
    Prasad.Tallapudi.

    i answered in your other post....here is the code again....
    SELECTION-SCREEN BEGIN OF BLOCK B1 WITH FRAME TITLE TEXT-001.
    PARAMETERS: logfile type string default 'Z_DATALOAD',
    FILE(128) TYPE C DEFAULT 'nittest.txt' LOWER CASE.
    SELECTION-SCREEN END OF BLOCK B1.
    SELECTION-SCREEN BEGIN OF BLOCK B2 WITH FRAME TITLE TEXT-001.
    PARAMETERS: P_LFILE RADIOBUTTON GROUP G1 USER-COMMAND C1 DEFAULT 'X',
    P_PFILE RADIOBUTTON GROUP G1.
    SELECTION-SCREEN END OF BLOCK B2.
    at selection-screen output.
      if p_lfile eq 'X'.
        loop at screen.
          if screen-name = 'LOGFILE'.
            screen-input = '1'.
            endif.
            if screen-name = 'FILE'.
              screen-input = '0'.
              endif.
              modify screen.
          endloop.
        endif.
        if p_pfile eq 'X'.
          loop at screen.
          if screen-name = 'LOGFILE'.
            screen-input = '0'.
            endif.
            if screen-name = 'FILE'.
              screen-input = '1'.
              endif.
              modify screen.
          endloop.
          endif.
    if the problem gets solved...please close both the posts

  • Can i export a list of all the webpages in my site, enabled and disabled?

    Hey Guys,
    Can i export a list of all the webpages in my site, enabled and disabled?
    I saw you could view all pages in the advanced view - but i am not sure if you can then export that as an excel file.

    hey Liam -
    but ftp doesnt show you what is enabled and disabled.
    also I don't think you can export an excel file from this?
    Pretty much i want this list - in an excel format!

  • My mac is the OS X 10.8.3.  I tried to update the latest Adobe flash player and kept getting 'Actionlist not found.'  I have uninstalled, enabled and disabled plug-ins and am still unable to download the update and now have no flashplayer at all.  Help!

    My mac is the OS X 10.8.3.  I tried to update the latest Adobe flash player and kept getting 'Actionlist not found.'  I have uninstalled, enabled and disabled plug-ins and am still unable to download the update and now have no flashplayer at all.  Help!
    PS I'm still new to Macs so the more broken down the better.

    Adobe Flash Player 11.8.800.42 is the most recent version from Adobe. It is a pre-release version. I am using it without any noticeable problems.
    The current stable version is Download 11.7.700.169.

  • I want to check the main diffrence in Pop up block enabled and disabled.But,i don't get any difference.Would u please help me to understand the difference using one practical example of website

    I want to check the main diffrence in Pop up block enabled and disabled.But,i don't get any difference.Would u please help me to understand the difference using one practical example of website

    Here's two popup test sites.
    http://www.kephyr.com/popupkillertest/test/index.html
    http://www.popuptest.com/

  • My Apple iPod Nano stops playing shortly after plugging in the correct headset, but works on docking station. I've tried enabling and disabling crossfade in settings. Any suggestions?

    My apple ipod Nano stops playing shortly after plugging in the correct headset. I've tried enabling and disabling crossfade in settings. Any suggestions?

    Make sure your headphones are plugged ALL the way in, meaning the white part of the headphones is flush with the Nano and you cannot see any silver from the plug still showing.
    B-rock

  • Can I enable and disable the system speaker under program control

    Can I enable and disable the system speaker under program control?
    I'm using LabVIEW 2010.
    The PC is running Windows XP Pro.
    Thank you

    A song???  I wouldn't exactly play them a "song" if you get my drift...
    Bill
    (Mid-Level minion.)
    My support system ensures that I don't look totally incompetent.
    Proud to say that I've progressed beyond knowing just enough to be dangerous. I now know enough to know that I have no clue about anything at all.

  • Accessing bits of the data bytes and enable and disabling

    Hello i want to send data byte to the CAN and enable and disable one of its bits how to do?

    Hey Uday,
    I am unsure of what CAN device you are using, as well as what type of programming language you would like to develop in. With that being said I will assume one of our PCI CAN cards and that you will be using LabVIEW to program. Please take a look at the NI-CAN manual for help on programming your CAN card, specifically with reference to chapter 7.
    Thanks again and have a great day!
    Regards,
    Nicholas K
    National Instruments
    Applications Engineer

  • Messaging Server 3.x: Is there an option to enable and disable the ETRN function?

    Is there an option in Messaging Server to enable and disable the ETRN function?
    <P>
    Yes. You can add the option for enabling and disabling the ETRN function by
    modifying the code in the file <BR>
    <P>
    <I>server-root</I>
    bin/mail/admin/html/SMTPChannelOptions.html
    <P>
    The original code to be modified will appear as follows:<BR>
    <P>
    <!-- ELEM txt="Allow SMTP command 'EXPN': " -->
    <!-- M_RADIO n="SMTP-Accept/Config/AllowEXPN" v="yes" -->
    Yes
    <!-- M_RADIO n="SMTP-Accept/Config/AllowEXPN" v="no" -->
    No
    <P>
    Modify the code to look like this:<BR>
    <P>
    <!-- ELEM txt="Allow SMTP command 'EXPN': " -->
    <!-- M_RADIO n="SMTP-Accept/Config/AllowEXPN" v="yes" -->
    Yes
    <!-- M_RADIO n="SMTP-Accept/Config/AllowEXPN" v="no" -->
    No
    <!-- ELEM txt="Allow SMTP command 'ETRN': " -->
    <!-- M_RADIO n="SMTP-Accept/Config/AllowETRN" v="yes" -->
    Yes
    <!-- M_RADIO n="SMTP-Accept/Config/AllowETRN" v="no" -->
    No
    <P>
    Making these changes will create an extra option to enable and disable the ETRN
    function on the SMTP Options page in the Administration Server.

    Yes, this is possible. In Cisco Webex Administration->Settings->Audio you can choose your audio (system-wide) options:
    WebEx Audio:
    Call In and Call Me service – Enables users to attend a teleconference by calling specified phone numbers or by receiving a Call Me call from the system.
    Call In – Enables users to attend a teleconference by calling specified phone numbers.
    OFF – Disables all calling features.
    Voice connection using computer
    ON
    OFF
    See also this section in the administartion guide.

  • I have tried all the steps you listed in your FAQ sextion on enabling and disabling cookies but I am still getting the error message "cookies not enabled" on certain websites. Now what do I do?

    I have tried every step you have listed in your FAQ section for enabling and disabling cookies but I am still getting error messages "cookies not enabled" on certain websites? Why is this and what do I need to do to fix this?

    I have STILL NOT received an answer to my question as of this date. I am VERY disappointed in Firefox support.

Maybe you are looking for