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

Tags: Oracle Development

Similar Questions

  • check the entry of duplicate data in the block record multi, which is a required field

    Hi all
    I have a situation where I have to check duplicate data entry (on a domain, which is a field, i.e. mandatory. it cannot be ignored by the user without entering a value) in key-in data in a Multi Record block.

    With regard to the reference I used logic, such as
    1 > trigger in a when-validate-Record of this block I assign the value of the current element in the variable of type array (collection type)
    as this trigger every time I leave this record, so its by assigning the value of the current time. And this process continues

    then
    2 > wrote in a when-validate-item trigger of the corresponding element (i.e., the relaxation is at the element level), where he compares the value of the current item and the value stored in the variable of type table trigger when-validate-Record (type of collection). If the value of the current element is mapped to a value stored in the variable of type table I shows following message ("Duplicate Record") raise_form_trigger default


    This code works very well for the double value of this record multi field check

    The problem is that if the user enters the value of this field and then go to the next field, enter the value in this field, and then press 'Enter Query' icon, Validate bolt trigger fires. As a result first when - validate record fires, that stores this value, and then when-validate-point fire, so it shows message duplicate record


    Please give me a code or a logical sense to solve this problem



    Any other logic to solve this problem is also welcome

    If you query the data and it shows two unique values in the block, then it should work as expected. But if you don't ask and just open form and try to insert the record and then for the first record it does not display this message of duplication. For this, you can write your own query to check the duplication of table.

    For the image of the form, you can use any image download site. A search on google.

    -Clément

  • 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...

  • 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

  • Activation and Passivation of the OFA

    I'm just curious to know what is the activation and Passivation of the OFA. These things are not very clear in the developer's guide.

    Thank you

    Passivation is the process of saving the State of the application to a secondary support (the database) at the points of specific event so it can be restored (enabled) when necessary. This restoration of data is called Activation. Passivation of the OFA is done implicitly when the appropriate profile options are enabled.

    OA Framework currently provides the following State management functions:

    Scalable applications - when the consumption of resources is high, rather than create a new instance of the resource dedicated to each new server thread, OA Framework saves the State of the application of idle threads and retrieves their resources for use by others. When the idle user thread wakes, the saved application state is restored. In short, memory is recovered for JDBC connections, application modules and user sessions without affecting the user experience.

    Session timeout recovery - Servlet session can expire without forcing the user to restart an incomplete transaction. In the future, this functionality will be extended to support failover of the intermediate layer.

    Its often recommended for the product team to ensure that their application is certified passivation.

    All these information are available in the OA Framework Developer's Guide.

    Kind regards
    Guru.

  • I was watching Hulu (TV and movies) and accidentally pressed the "block", ABP (AdBlock Plus) block now all programming to Hulu. What should I do to get Hulu

    I was watching Hulu site and accidentally hit the "block" tab located at the top right of the window open for Hulu. I am now unable to get access to the programming of Hulu. I'm assuming that ABP (whitelisted) blocks now all programming to Hulu. How can I correct this problem and put the Hulu programming on my computer. I use a MacBook Pro, 10.9.3.

    You should find Hulu in Ad blocking rules or rules hidden element list.

    Can you post a screenshot?

  • They showed me that I had to update my Ps when I did by me in to the trial version, and according to the account record, I always PRESENTED as the full version, any help?

    They showed me that I had to update my Ps when I did by me in to the trial version, and according to the account record, I always PRESENTED as the full version, any help?

    Try to connect, and then reconnect.

  • My only intention is to create a model/site based URM where we can provide functionality to scan for users. We want a distributed feature where users can scan the images remotely and commit to the WCC:Records / URM. Is it possible to be thr

    My only intention is to create a model/site based URM where we can provide functionality to scan for users. We want a distributed feature where users can scan the images remotely and commit to the WCC:Records / URM.

    Is it possible to be done through Oracle distributed Document capture (ODDC) and if it is possible how to connect ODDC with the client browser. Please suggest

    Ok. So, the answer is certainly: Yes, it is possible.

    The part of analysis, this is exactly what ODDC is good for. Unless you have the license already, however, you may have to go with the product to Capture Oracle WebCenter (large companies), which provides the necessary also.

    Regarding the validation and storage, ODDC/ODC/WebCenter Capture can commit images scanned at several depots, including University Complutense of MADRID (URM can be considered a Complutense University of MADRID with a specific purpose / several modules or components under voltage and configured). So, technically, he has no problem.

    When I have little doubt, however, is the meaning of the scenario - declaring an item as a record is an important event in the life cycle of the document - a record is often (or always) cannot be changed to ensure the integrity and non-repudiation of information. In this perspective, a direct validation of a recording of a scanning system (where errors such as bad scans, lack of pages, etc can be expected, particularly if the scanning is performed by the end user in a distributed fashion - so, not very experienced) seems a little dangerous.

  • Update of "last Web site visit Date and time" in the Contact record

    Hello world.  I want to see if I can find a way to write a program that will automatically update the field "last website visit Date and Time" in the contact record Eloqua and if they have a SFDC ID drive, push this stamp to SFDC.  I do not make a rule to update or something that will allow me to transmit the data of visitor correlated in good contact record.  Any suggestions?

    Thanks to Pierre in customer support, we now have a solution for this.  The User Guide for the database management (page 28) has a way of creating a progressive input signal to a program that will update web visitor info cross-object of the contact record.  My program is running and works perfectly!

  • How can I restore and proceed to the next record.

    Hello gurus.   I have the procedure, my question is if I get the error in the loop to say to the 5th record. How can I skith who rank and proceed to the next record in the loop. I tried save points.   your help is appreciated.

    [code]

    procedure insert_model1 is

    exception of E2;

    Start

    because me in 1... 10 loop

    Start

    SAVEPOINT s1;

    Insert in model 1

    (MODEL_ID, MODEL_SEQ, P_IND)

    values

    (i, i + 1, 'U');

    -calling an another procedure

    insert_model2('Y');

    If I = 15 then

    lift e2;

    end if;

    -commit;

    end;

    end loop;

    commit;

    exception

    When e2 then

    Restore s1;

    dbms_output.put_line (sqlerrm |) ',' || SQLCODE);

    while others then

    Restore s1;

    -restoration;

    dbms_output.put_line (sqlerrm |) ',' || SQLCODE);

    end insert_model1;

    [/ code]

    My question is if I get the error in the loop to say to the 5th record. How can I skith who rank and proceed to the next record in the loop. I tried save points.

    You tried save points, but you have done the restoration outside of the loop.

    You must perform the restore in an exception inside the loop block.

    Start

    because me in 1... 10 loop

    Start

    SAVEPOINT s1;

    Insert in model 1

    ..

    EXCEPTION

    ...

    RESTORE s1;

    END;

    end loop;

  • 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.

  • 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.
  • 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.

  • my friend changes my covers folder and everything was fine until I turn then set to work it activated and everything has the same folder cover on it now and nothing works well

    my girlfriend move things on my lenovo lap top she changed record covers and the home screen I had to this topic to start working all good turn off turn back on to new bad work all the icons are the same and do the same thing we can repair? There must be a small button somewhere

    Hello

    1. using any software of party thirdp in order to change the folder icons?

    2. What are the steps to change the icons of file/covers?

    You can run the patch to repair the files of Windows and problems of files and check if the problem persists. http://support.Microsoft.com/mats/windows_file_and_folder_diag/

  • Can someone Vertical align this (and perhaps fix the blocking)?

    Here's my problem:

    For the life of me I can not set the 'Add to Cart' button from Paypal.  I want it in the middle.  In Firefox, it looks perfect (well, almost perfect), but in IE it is not in the middle.  I tried to add ' vertical align: middle "in every possible position and adjust the padding and margin everywhere too... nothing works.  (Not to mention, it seems, slightly to the left as well horizontally, but I can live with that).  In addition, blocking worked perfect in Firefox and IE until I added the "add to cart".  Now, the 'blocking' is not quite right in Internet Explorer.  I would like to only it where when someone scrolls anywhere in the cell, the region becomes a darker gray.  I had this problem with the line-height of 250% until the "add to cart" button came and which becomes in Internet Explorer.  Now, I can increase this, but then the menu bar just keep getting bigger and bigger until it seems too big/too high.

    Can anyone help?

    Thank you very much.

    Here is the code:

    < ! DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional / / IN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd" > ""
    " < html xmlns =" http://www.w3.org/1999/xhtml ">
    < head >
    < meta http-equiv = "Content-Type" content = text/html"; charset = utf-8 "/ >"
    < title > Untitled Document < /title >


    < style type = "text/css" >

    {.horizontalmenubar}
    make-weight: bolder;
    text-align: center;
    border: 2px solid #000;

    }

    .horizontalmenubar td {}
    border-right: 2px solid #000;
    text-decoration: underline;
    background-color: #E5E5E5;
    color: #CA0000;
    line-height: 250%;
    }

    .horizontalmenubar a {}
    color: #CA0000;
    display: block;
    }

    .horizontalmenubar a: hover {}
    color: #CA0000;
    background-color: #B3B3B3
    }


    < / style >
    < / head >

    < body >


    < table width = "100%" border = "0" cellspacing = "0" cellpadding = "0" class = "horizontalmenubar" >
    < b >
    "< td width ="20% "> < a href ="... / index.html "> home < /a > < table >"
    "< td width ="20% "> < a href ="... / prod.html "> Products < /a > < table >"
    "< td width ="20% "> < a href ="... / faqs.html "> FAQS < /a > < table >"
    "< td width ="20% "> < a href ="... / contact_us.html "> contact us < /a > < /a > < table >"
    " < td width ="20% "> < target form = 'paypal' action = ' https://www.PayPal.com/cgi-bin/webscr "method ="post"> "
    < input type = "hidden" name = "cmd" value = "xxx" >
    < input type = "hidden" name = "hosted_button_id" value = "xxx" >
    " < input type ="image"src =" https://www.PayPal.com/en_US/i/BTN/btn_cart_SM.gif "border ="0"name ="submit"alt ="PayPal - the safer, easier way to pay online how!"> "
    < img alt = "" border = "0" src =" " https://www.PayPal.com/en_US/i/SCR/pixel.gif "width ="1"height ="1"> "
    < / make >

    < / make >

    < table >
    < /tr >
    < /table >


    < / body >
    < / html >

    The best idea is to post the page code in its entirety, or post a link to the live Webcam page - exactly to avoid such things.

    In any case, change this-

    method https://www.paypal.com/cgi-bin/webscr"="post">

    on this subject.

    method https://www.paypal.com/cgi-bin/webscr"="post"style =" "margin-top: 0;" > "

Maybe you are looking for