activation and deactivation of a button

Guys, I was wondering if you could help me here. I have a multi block record of 10 records, I also have a button which I want to only activate if the user navigates to a record where a certain column = 'Y' so that the user goes up and down through the recordings the Activate button wil and deactivate accordingly. I am just wondering if this is possible and if yes, how would go to do that. What specific trigger should I be looking at.

Thanks for any help I receive.

What is your version of forms? The small piece of code only works with Forms 9i or later version.

BEGIN
   IF ( :certain_column != 'Y' ) THEN
      Set_Custom_Property('YOUR_BLOCK.ITEM_NAME',:SYSTEM.TRIGGER_RECORD, 'ENABLED', FALSE);
   END IF;
END;

as the user goes up and down through the recordings the button wil activate and deactivate accordingly.

If the value of CERTAIN_COLUMN does not change, I would put the code in the trigger after request. Then you are not toggle button for navigation. Simply, the button would be disabled for the lines where CERTAIN_COLUMN! = « Y ».

Hope this helps,
Craig B-)

If someone useful or appropriate, please mark accordingly.

Published by: Silvere on 16 January 2013 14:05

Don't forget that ENABLED with the built-in Set_Custom_Item_Property() property definition defines the physical element container not each unique element value. Therefore, the best option is to imitate the properties ENABLED using a unit of program (procedure). For example:

/* This procedure assumes you have a VISUAL_ATTRIBUTE                 */
/* created called 'ENABLED' and 'DISABLED'.  In my example,           */
/* I created the DISABLED visual attribute with following properties: */
/*  Foreground Color = DarkGray                                       */
/*  Background Color = gray12                                         */
/* The ENABLED visual attribute does not specify any properties so it */
/* sets the above properties back to                     */
PROCEDURE enable_item (inItem VARCHAR2, inRecord NUMBER, inEnabled BOOLEAN )IS
     paramCount     NUMBER := 0;
BEGIN
     IF ( inEnabled ) THEN
          Set_Item_Instance_Property(inItem, inRecord, INSERT_ALLOWED, PROPERTY_TRUE);
          Set_Item_Instance_Property(inItem, inRecord, UPDATE_ALLOWED, PROPERTY_TRUE);
          Set_Item_Instance_Property(inItem, inRecord, NAVIGABLE, PROPERTY_TRUE);
          Set_Item_Instance_Property(inItem, inRecord, VISUAL_ATTRIBUTE, 'ENABLED');
     ELSE
           Set_Item_Instance_Property(inItem, inRecord, INSERT_ALLOWED, PROPERTY_FALSE);
          Set_Item_Instance_Property(inItem, inRecord, UPDATE_ALLOWED, PROPERTY_FALSE);
          Set_Item_Instance_Property(inItem, inRecord, NAVIGABLE, PROPERTY_FALSE);
          Set_Item_Instance_Property(inItem, inRecord, VISUAL_ATTRIBUTE, 'DISABLED');
  END IF;
END enable_item;

Now call the Enable_Item procedure in your trigger as follows:

BEGIN
   IF ( :certain_column != 'Y' ) THEN
      Enable_Item('YOUR_BLOCK.ITEM_NAME',:SYSTEM.TRIGGER_RECORD, FALSE);
   END IF;
END;

Craig...

Tags: Oracle Development

Similar Questions

  • activation and deactivation of the button in the block record multi

    Hi all
    I use
    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 (the button is to approve the record in terms of change of status)
    I have elements such as the date, remarks and button
    the button should be enabled if the remarks is not null in the case otherwise it should be disabled.
    I wrote to this effect in the pre-record trigger
    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 has repercussions on all the buttons in the block. in other words, if the remarks of the first record is null then all records button is disabled. If the observations of the first record column is not null, then all the records in the column of buttons is enabled.
    I have to enable and disable the button for the corresponding record.that ways if the remarks of the first record column is not null not so only records first button should be activated and others should be disabled.

    Thank you...

    Hello

    but I'm not able to do.

    You can find the current record Y_POS 
    

    This means that whatever the user record navigates according to whether the button position gets her past set.but not.
    for example the user navigates up to the fourth record that will settle the position of the button but if user navigates back to the first record. the position of the button is going to the fifth record?

    V_ITEM_Y_POS: = GET_ITEM_PROPERTY ("NOM_ELEMENT", Y_POS);

    Please note that do not use the button element to get the Y_POS.
    This should be another element in the block, then button as a buttons position will continue to change on
    What you are to get the Y_POS of button which is the fourth position of the record for the first time so, it is fair,
    second time you set Y_POS button which is 4th record + first recording which is the fifth album,.
    you need to find is the Y_POS from a fixed point in the block.

    in your description what do you mean by top_record. Why I ask, is because it is multi record block(showing_10_records).so will appear every 10. no record may be hiding.

    Top of page record is the first record in the block.
    For example, in a record 10 block, if there are 20 records then if you navigate the records, if you go to the 11th, 12th, 13th, 14th... the other then your TOP_RECORD be record No 2, 3, 4,... is the first record that is displayed in the block that is not always 1, and will be 1 only for the first 10 rcords.
    If we use: system.cursor_record we will not be able to get the Y_POS exact numbers of superior record then 10 which will put the button located under the last (10th) record, which is not what we want, so need to find the TOP_RECORD.

    Best regards

    Arif Khadas

  • activation and deactivation of buttons in actionscript

    in flex I like using the option enabled for the buttons (so when the user has not yet selected something in a datagrid or if a variable in the app is not set correctly the button will not be enabled and is grayed out... but once the condition is true the button becomes automatically activated) like this:

    < mx:Button

    " label = ' Save the changes "icon =" " @Embed(source='images/disk.png') "click ="saveData ();"

    enabled ='

    {thenID! = 0 & amp; & amp; changesMade == true} " />

    I have a control bar that has buttons, but if the user is an administrator they have additional buttons (which i created using actionscript in a function initApp () after the application initializes like this):

    if (adminList.indexOf (Application.application.parameters.emplid)! = - 1) {}

    var but: Button = new Button() ;

    but.label =

    "Remove account" ;

    but.addEventListener)

    'click' , confirm);

    but.setStyle)

    "icon" , deleteIcon);

    ce .toolbar.addChild (purpose);

    }

    How can I encode the activated function, I use I mxml into actionscript in the code above?

    I create all the buttons in MXML and then when the application starts, remove the admin if the user is not an administrator.  Or make them you invisible in the MXML and set visible = true when the application starts if admin is true.

    This way you can continue to use the MXML syntax which you are used to.

  • Activation and deactivation for Adobe Acrobat 7.0

    Hello, my company has a license of the standard AD 7.0 on CD with serial number using my desktop Windows 7, and it has been improved to the standard X after several updates of current system.  My work computer has recently been improved with a new laptop to the title of Windows 10 operations, we want to transfer the license from the computer desktop to the new laptop.  We have successfully installed CD form AD 7.0 in the new laptop, but the program activation request after launch that we have no idea how activate it as the phone activation is no longer available. We are invited to visit www.adobe.com/go/activation we tried but has not found a solution to activate the program because there is no option to "turn off" after launching the program under Help menu and internet activation does not work, or we feel lost and cannot reach a workable solution, or to get the authorization code to complete the activation on the new laptop.  The program allows a temporary 30 day access until activate us, and we have more than 28 days to solve the problem of activation.  Is there a feasible solution to offer?

    Thank you.

    Jess

    Hello

    Acrobat 7 is not a version compatible with the latest version 10 of Windows.

    You would experience issues even if you are able to activate the product.

    Also, please see the following link.

    Error: "Activation Server is not available. CS2, Acrobat 7, pass a hearing 3

    Concerning

    Sukrit diallo

  • using the cloud in more than 2 computers - activation and deactivation of issue

    I want to use the cloud in a third computer. Should I disable among the used laready and activate in the third. How can ofter I do?

    Hello

    To use creative cloud on 3rd computer you disable one of the old computer.

    You can turn it off by disconnecting from the desktop creative cloud application.

    Connect and disconnect activate Cloud Creative applications

    You can also view the document - help "Activation limit reached" or "connection error impossible ' with Adobe applications

    * whenever you want to activate on the 3rd computer you must sign a form from your old computer (on which the CC is active)

    Hope that answers your query.

  • Adobe Activations and deactivations...

    have 1 laptop at work and at home 1... it broke down so am unable to disable adobe inorder to elements to put on my new... y at - there a way to reset by adobe or something?

    do not want to buy a whole new elements adobe... Thanks in advance!

    Hi jadesim79,

    Please see the article: http://helpx.adobe.com/x-productkb/policy-pricing/error-activation-limit-reached-starting. html and contact our chat are supported.

    Kind regards

    Romit Sinha

  • Software activation and deactivation

    Hello

    have a new laptop and decativated (DW CS6, Photoshop Elements 10) Adobe software. But how do I download software on my new laptop?

    Thank you

    You can download Dreamweaver CS6 from the following page: http://www.adobe.com/cfusion/tdrc/index.cfm?product=dreamweaver

    Download Photoshop elements 10, follow these steps:

    1. go to Photoshop elements 11 page: http://www.adobe.com/cfusion/tdrc/index.cfm?product=photoshop_elements&loc=us

    2. make sure you are signed in with your Adobe ID

    3 copy and paste the following link on the address bar, one at a time and hit enter.

    Adobe Photoshop elements 10 English Windows

    http://trials3.Adobe.com/AdobeProducts/PSE/10/Win32/PhotoshopElements_10_LS15.7z

    http://trials3.adobe.com/AdobeProducts/PSE/10/Win32/PhotoshopElements_10_LS15.exe

    4. save the two files.

    5. once the two files were registered, run the .exe file to start the installation.

  • Activation and deactivation of row in a table by programming

    Hello

    I have an AdvancedTable based on the relationship of the master / detail.
    for a particular header Id, table displays data in rows in the advanced table.
    My requirement is to implement functionality to update for an ID of selected header.
    Now, in an array of lines, I have a LineStatus attribute whose values can be "Approved" and "rejected".
    Now when the user calls a page to update for the specific header id, it must be able to see the "Approved" lines (ie the lines approved for LineStatus "") a mode off user cannot update the lines, and it should be able see the lines enabled only when the LineStatus is 'rejected' so it can update these lines and submit for approval again.

    I tried after things but no luck...

    OAViewObject vo = (OAViewObject) am.findViewObject ("XXVO2");
    Row1 XXVORowImpl = (XXVORowImpl) vo.first ();
    int fetchedRowCount = vo.getRowCount ();
    If (fetchedRowCount > 0)
    {
    for (int k = 0; k < fetchedRowCount; k ++)
    {
    System.out.println ("TeamLeadId for the line" + (k + 1) + "is:" + row1.getTcLineStatus ());
    If ("approved". Equals (row1.getTcLineStatus ()). "APPROVED"is row1.getTcLineStatus ()).
    {
    System.out.println ("a line" + (k + 1));

    projectLovBean.setDisabled (true);
    montextBean.setDisabled (true);
    }
    else {}
    projectLovBean.setDisabled (false);
    montextBean.setDisabled (false);

    }
    Row1 = (XXVORowImpl) vo.next ();
    }
    }

    Please guide me to achieve this functionality.

    Thank you

    Published by: user13304085 on January 12, 2011 01:12

    Hello

    As suggested by Anil, you can achieve this requirement by using PPR and SPEL.

    Lode steps below:

    -Create transitional attr in vo:

    Name: ReadOnlytr
    Type: Boolean
    Updatble: always

    -Preapare SPEL syntax:

    ${oa. ViewObject1.ReadOnlytr}

    -In Advancetable region of the elements the ReadOnly value:

    ReadOnly: ${oa. ViewObject1.ReadOnlytr}

    Code:

    OAViewObject vo = (OAViewObject) am.findViewObject ("XXVO2");
    Row1 XXVORowImpl = (XXVORowImpl) vo.first ();
    int fetchedRowCount = vo.getRowCount ();
    for (int k = 0; k)<>
    {
    If ("approved". Equals (row1. GetAttribute ("LineStatusAttr")))
    {
    Row1.SetAttribute ("ReadOnlytr", Boolean.true);
    }
    else {}
    Row1.SetAttribute ("ReadOnlytr", Boolean.false);
    }
    Row1 = (XXVORowImpl) vo.next ();
    }

    -It should work... If you complete the following steps... :))

    Note:

    -I hope this method by calling processReq co...

    Concerning
    Meher Irk

  • I have a problem with the cookies not enabled. I followed the guide "Activation and deletion of cookies", but it did not save new settings to my computer. What should I do?

    I'm trying to connect to Facebook. I get the error message

    Cookies required

    Cookies are not enabled on your browser. Please adjust your security preferences before continuing.

    I followed the direction of Firefox for privacy settings, but they are not saved. What I am doing wrong?

    If you block cookies, make an exception. If you're not blocking cookies, make sure that you block the site with one exception. Compare your settings to

    Some references:

  • What is the purpose for the activation and the deactivation of the modules? (Symantec Corp.Norton 360: "Symantec Intrusion Prevention add-on")

    What is the purpose for the activation or deactivation of the modules? Initially, Symantec Intrusion Prevention module is disabled, I should allow it, and how might it affect my computer?

    Not a Windows issue. Best thing is to visit the Norton FAQ or read the help files.

  • Size buttons menu custom for active and roll over the State

    Hello.

    I'm looking to create a navigation menu (simple rectangles with text) in which the role active and several indicate the box will be larger in height.

    I wish well for on roll over the button to magnify and others to shrink, then for there great when selected.

    In the example below, this is what I want it to look for the apps page.

    I'm stuck as the menu widget only allows them to be on only one size. Any ideas how I can achieve this?

    Kind regards

    Sean

    Screen Shot 2014-11-18 at 20.20.14.png

    Post edited by: Sean Bird

    You can add effects to an active state on the menu which items when in active State will show different from the menu SUP normal items.

    Thank you

    Sanjit

  • iPhone 6 more issues activation and network on the latest iOS 9.3.2

    I have an iPhone 6 it is having problems with Activation and networking connectivity. I activated via iTunes and updated to the latest iOS 9.3.2 this morning. The phone remain active for a period of time and then come back to need activation.

    Using WiFi it is full bars but no connection. I'm typing this from my iPad on the same WiFi connection, so not the network. If I turn off WiFi and cell there still no connection. The phone will receive calls (even when stuck in the activation state) and can make calls after you have enabled from iTunes.  She was released a couple of times, but always the same question.

    I tried to erase and reload from iTunes to the top, but the restore function requires that find my iPhone service shut down on the phone and this step requires access to complete network.

    Try the following steps:

    • Try connecting your device to your computer and launch iTunes. Choose your device and click on summary > update.
    • If this does not work, make sure you have the latest version of iTunes installed on your computer and restart your computer.
    • When it restarts load iTunes and try to select your device and click on summary > update again.
    • If this does not work, it's time to try a restore. Press and hold the sleep/wake and home buttons on your iPad or your iPhone until iTunes gives you the option to restore your device.
    • When it's over, you can restore a backup, and you should be good to go with 9.3 running iOS.
  • I get a must activate windows error when trying to log in. I run windows activation and it is said that the product is already activated, click ok

    I reinstall windows xp on an old pc with my xpsp2 cd. I used the key of xp on the sticker and when you restart the computer after the initial installation I got a must activate windows to continue. I went through the process on the phone and typed in a bunch of numbers and then it came up saying that windows is activated. He put me to the login screen, when I click on administrator I always get the must activate windows. When I select ok to activate it comes up saying that I must activate windows and will not let me continue. any ideas on how to solve this problem?

    You might be able to solve your immediate problem of the 30-day activation grace period has expired by resetting it. Follow these steps:

    1. If the computer can be started in a safe mode command prompt, do.

    2. at the command prompt, type this command exactly (space, caps and comma are required):

    Rundll32.exe syssetup, SetupOobeBnk

    3. restart.

    If you did it, your activation grace period will have been reset, giving you more time to work on the problem.

    Once done, please post a MGADiag report...

    To analyze and solve problems for Activation and Validation, we need to see a full copy of the report produced by the MGADiag (download and save to the desktop - http://go.microsoft.com/fwlink/?linkid=52012 ) tool
    Once saved, run the tool.
    Click on the button continue, which will produce the report.
    To copy the report in your response, click the button copy in the tool (ignore the error at this stage), and then paste (using r-click and paste or Ctrl + V) in your response.
    -* in your own thread *, please

    Please also state the Version and edition of Windows cited on your COA sticker (if you have one) on the case with your machine, but do NOT quote the key on the sticker!
     http://www.Microsoft.com/howtotell/content.aspx?PG=COA

  • Problem activation and again reinstall Windows 7 Pro help please!

    I don't have an activation link when I right click on computer-properties... I'm trying to enter my activation code. A window appears and says to activate it. Where can I activate my new reinstall of windows 7 pro?

    1 million thanks (you're always this GREAT help)

    How to activate Windows 7 or Vista manually (activate by phone)
    http://support.Microsoft.com/kb/950929/en-us

    1) click Start and in the search for box type: slui.exe 4
    (2) press the ENTER"" key.
    (3) select your "country" in the list.
    (4) choose the option "activate phone".
    (5) stay on the phone * do not select/press any option * and wait for a person to help you.
    (6) explain your problem clearly to the support person.
    (7) the person must give you a confirmation ID, copy it down on paper,
    (8) check that the ID is correct in reading the support person.
    (9) to enter the ID number, then click 'Next' to complete the activation process.

    Activation and registration of a Microsoft product
    http://support.Microsoft.com/?kbid=326851
    Windows activation: (888) 571-2048
    (888) 725-1047 or 800-936-5700

    ----------------------------  Alternatives -------------------------------------

    To enable the use of the phone

    1. open Activation of Windows by clicking on the Start button, right click on computer, clicking Properties.
    then by clicking on activate Windows now. ?

    2. click on show me other ways to activate.

    3 type your Windows 7 product key, and then click Next.

    4. click on use the automated telephone and then click Next.
    If you are prompted for an administrator password or a confirmation, type the password or provide confirmation.

    5. click on the location nearest you from the drop-down list, and then click Next.

    6. call one of the available phone numbers listed. An automated system will guide you through the activation process.

    7. When prompted, enter the installation ID that is listed on your screen in your phone keypad.

    8 Note the confirmation ID the phone system gives you.

    9. under the terms of step 3, type the confirmation ID in the space provided, click Next, and then follow the instructions.

    10. If the activation is not successful, stay on the line to be transferred to a product activation agent who can help you.

    How to contact a Microsoft Product Activation Center by phone
    http://support.Microsoft.com/kb/950929

    Microsoft Activation centers worldwide telephone numbers:
    http://www.Microsoft.com/licensing/existing-customers/activation-centers.aspx
    (This site is for activating Volume License, but if you call, they will help you)

    The phone number is not working:
    Microsoft Wordwide contacts: http://www.microsoft.com/worldwide/default.aspx

    Register Windows 7
    http://Windows.Microsoft.com/en-us/Windows7/help/register
    Register Windows 7 and you automatically receive a series of three welcome to Windows e-mails
    filled with tips, creative tips and other information to you help get the most out of Windows 7.
    You also get a subscription to the monthly newsletter of Windows Explorer,
    where you will find other tips and tricks, as well as special offers.

    Learn about Activation:
    http://TechNet.Microsoft.com/en-us/library/ff793423.aspx

    J W Stuart: http://www.pagestart.com

  • Why timelines in Active AND inactive what is the purpose?

    Insert a button box or click on and the object appears in the panel mounting with an icon pause in the middle. On the left, the subject is active and inactive right.

    What is the possible purpose of adding something that is not active?

    The object can be modified to be active for the duration of the timeline required - in order to drag the object in the timeline as needed and no need to add a little more for inactivity (useless)

    Am I missing something here?  Can I do a button - then inactive - active assets then again along the timeline?

    Yes I am new but this logic fails me, unless there is some use or better yet, it can be changed to ' all the assets "when placed

    A click box is by default invisible to the user, never inactive a period as you say. The suspension with a click box, always at the end of his timeline, which means she is always active for its entire duration.

    A button, a button of form (and a text entry area) are visible to the user. In the default configuration, they stop to 1.5secs regardless of the duration of their chronology. Before the point of interruption, they are active. What happens when the button is clicked, is defined in its success (or as the last attempt for a valid BER) action. If you decide that the head of continuous play, the shape of the button/box/TEB will not disappear, but they will be inactive. As long as you do not release the playhead with this action, the user can use the object again.

    You can change the time of the break in the distribution panel, or by dragging the thin vertical line on the timeline. I'm perfectly happy with the current situation, because I have total control over what is happening. The limit is that you can have a single asset and inactive a period, because there is only one suspension point possible.

    You want to add this link if you want to learn more about the timeline. I should update (when I have time) because Captivate 9 effects timelines are integrated within the timeline of the slide.

    Small timeline Tidbits - Captivate blog

Maybe you are looking for