Forms 10g - box set when another element is NULL

Hello

I make a change to a form that was developed by someone else.  Currently, the check boxes are selected manually by the user.  I need to change so that when another field in the form is null, the checkbox is enabled.

Block - AUTSGS5

Objects - end_date (text element)

OPEN_CREDIT (box)

Have written the following code:

IF: autsgs5.end_date IS NULL THEN

: autsgs5.open_credit: = 'Y ';

ELSIF: autsgs5.end_date IS NOT NULL THEN

: autsgs5.open_credit: 'n';

END IF;

Im not sure that trigger to add this also and at what level, etc.  I tried a lot of different triggers, but nothing seems to work.


Any help would be appreciated.

Thank you

I agree with Michael.  You should know when you want to than the box activated in response to a NULL end_date.  For example, when registration is questioned in shape - I would use the trigger after request.  The record is entered in the block - then use a when-validate-Item.  When the user navigates to a new record - and when-validate-Record.

2727441 wrote:

... I tried a lot of different triggers, but nothing seems to work...

What triggers have you tried and they were level article, block or Module?

Craig...

Tags: Oracle Development

Similar Questions

  • How automatically update an element when another element is updated?

    How can update us an element when another element is updated in an editable form. Example: the p22_code is a LOV and 'C' is selected. We want then point p22_level to automatically run a query or plsql "select next seq... where p22_code = 'C" ".

    Published by: user10211581 on 15 Sep 2011 04:43

    APEX 3.2, you have two ways to do this.

    (1) on your item, you call a function AJAX to populate your list of selection on the onchange event. It is complex, requiring javascript and AJAX.

    (2) the simplest solution is to combine a selection with presentation box that reloads your page and run your query source in your selection box.

  • Region HTML - hide when the element is null

    Hello

    I want to hide the "HTML-area" where an element (P2_Item) is null... Please advice...

    Thank you

    P2_CUST_SYMBOL should work. PL. make sure the element is null.

  • JavaScript, disabling item when another element is set to

    Hi all

    simple question for the experts :)

    I followed the example on one of the thread in the forum to check the value of the element and then disable another item.
    I'm not totally familiar with javascript, so please enlighten me here please

    I put the following in my page header

    < script >
    function checkText (field) {}
    If (field.value.length > 0) {}
    $('P9_DOCUMENT_NO').disabled = true;
    }
    on the other
    $('P9_DOCUMENT_NO').disabled = false;
    }
    < /script >


    And the call of javascript on the point P9_NRIC_NO

    onBlur = "checkText (this); »

    But it doesn't now. Can you tell me what is the problem with the code?

    Thank you

    Hello
    You can launch this trigger on the loading of the page. Add the following script in the page footer section or the header section.

    >

    >

    Replace P9_CHECK_ITEMNAME with your name of the checkbox element.

    Hope this helps,

    Kind regards

    Pascal M

  • Text box disappears when another text box is placed too close, anyway to turn this off?

    When you use pages any image or text box 'disappears' or moves if an another image/text is placed too close however to Keynote when it isn't a problem. This function can be disabled?

    Select the two text boxes and tab organize, assign automatic voice against zero dressing. Now, these two items are more questions of mutual polarity, and the boxes don't repel each other. It is a parameter object, and not an application setting permanent.

  • Host(); Forms 10g

    I have a problem to run the Forms 10g host command when I type host ("'cmd /c start c:\file.txt"); He is running, open the file in the server
    but when I run this host ("'cmd /c start c:\file.bat"); It gives me the quick screen (sqlldr c:\devsuitehome\forms is not recognized)
    You now know that the lot is SQLLDR SCOTT/TIGER control = CONTROLFILE
    LIKE WHEN I OPEN THE SERVER COMMAND PROMPT AND TYPE SQLLDR IT ME GIVES IN DETAIL AND WORKS FINE

    -NOTE THAT I WON'T USE CLIENT_HOST BECAUSE IT WILL RUN NO CLIENT AND IT IS THERE HAS NO SQLLDR IN THE CLIENT MACHINE

    Help, please!

    Published by: wael amar on January 18, 2011 04:44

    Rather than calling SqlLoader directly, you must create a batch (.bat) file and call it. In the batch file, you must first configure the environment because the HOST of shapes command starts with shell that does a not include system configurations. Thus, for example to create this batch file and assume, you name it oracle.bat :

    set ORACLE_HOME=C:\oracle10g\iAS1012
    set ORACLE_SID=orcl
    set PATH=%SystemRoot%\system32;%SystemRoot%;%ORACLE_HOME%\bin
    sqlplus
    

    If you want to pass values in the batch file you can do, but it may take some careful coding. For example, if you want to pass the username and password in the script above you can proceed as follows. The %1 accepts a value from the command line. If you need more simple add %2 %3 and so on. Each parameter should be separated by a space, that is where it becomes difficult in the Forms code.

    set ORACLE_HOME=C:\oracle10g\iAS1012
    set ORACLE_SID=orcl
    set PATH=%SystemRoot%\system32;%SystemRoot%;%ORACLE_HOME%\bin
    sqlplus %1
    

    The form, the call from the HOST might look like this. Carefully note the exact spaces and quotes, I've included in the declaration.

    HOST('"c:\oracle.bat " scott/tiger""');
    

    or*

    HOST('cmd /c start "" "c:\oracle.bat " scott/tiger""');
    
  • TAB key does not work for all elements in forms 10G

    My dear, all I use form 10G.
    I have 10 fields.
    I put property in all previous navigation item elements and the order of the day navigation correctly.
    But when I'm by pressing the TAB key, the cursor does not to another element.
    It works for some fields, but not for all.

    What could be the problem?

    Published by: LuKKa Sep 24, 2010 13:56

    do you have the encodings in key-next-item trigger in one of your items?

  • The Form(10g) hung who have the ComboBox list item when it runs on JRE

    Hello

    I am facing a problem with the drop-down list box. It works fine on JInitiator, but it doesn't work on JRE (Java). I searched the OTN community that everyone says that the 3 patches must be applied. Is there an alternative solution.

    Developer version

    Forms [32 bit] Version 10.1.2.0.2

    OS: Windows xp Service Pack 3

    Application server:

    Versionhttp://192.168.0.20:1156/cabo/images/t.gif10.1.2.0.2

    OS: Linux Red Hat

    OS: Windows Server 2003

    Best regards

    Zafar Iqbal

    Zafar,

    There is a known bug with the ComboBox element in Oracle Forms 10g R2 (10.1.2.0.2).  This has been fixed with patches 3 Group (which requires a contract for Support of Oracle download the patch) is why Micheal recommends that you install this group of hotfixes.  If you do not have a support contract - your options are: 1) not to use the ComboBox element. (2) upgrade to the latest version of Oracle Forms on the Oracle Technology Network (OTN), which is Oracle Fusion Middleware 11 g R2 (11.1.2.2.0).  (3) Finally, continue to use the Oracle Jinitiator.

    Craig...

  • Forms 10g + UTF8 - Item displays # when he's happy is too long

    Hello

    I am facing a strange behavior with Forms 10 g and NLS_LANG = UTF8.

    DB 11G withcharset in AL32UTF8 on Linux

    Forms 10G on Linux

    We are currently upgrading our DB 10 G DB 11 G + UTF8 form.

    After adaptation data DB 10G and 11G, we changed sementics BYTE in CHAR columns in DB 11 G.

    Migration worked well.

    Now we try to connect to our application in the form of 10G to the new DB 11 G + UTF8.

    First we were faced with the error ORA-01461 "can bind a long value only for insert in a long column".

    To resolve this error, we have clarified the NLS_LANG = american_america.utf8 in default.env.

    This problem is solved now.

    We have specified the following parameters when compiling:

    NLS_LANG = AMERICAN_AMERICA. UTF8

    Export NLS_LANG

    NLS_LENGTH_SEMANTICS = CHAR

    Export NLS_LENGTH_SEMANTICS

    The application works fine except a few ITEMs that display # when their content is too long.

    For example with a Varchar2 ELEMENT (5) length_semantics = NULL (if the compiler uses the NLS_LENGTH_SEMANTICS specified during compilation).

    -When I fill it with "xxxxx" it works very well.

    -When I fill it with "xxxxe", it displays "#". The ELEMENT behaves as in Excel when the cell data cannot be displayed as a whole.

    Any idea on how I can avoid this behavior?

    Thanks in advance.

    Tim.

    There is a bug in forms 10.1.2.3 for when the length of an element in BYTES is greater than the length of the CHAR data # are displayed.

    =>

    Length ('xxxxx') = lengthb ('xxxxx')

    but

    Length ('xxxxa')<>

    so you will get #.

    There is a single patch for this what number I do not remember. The patch is packaged in the latest available patch for forms #9593176 and #13095466 which will also give you the benefits of being able to run your forms 10 g with Java7 (even if she is not certified).

    see you soon

  • Hello. Accidentally, I bought the Adobe Lightroom 6 box set (CD ROM) support when I need to download the application. I opened the package and now can not return it. Is there a way I can be provided with a license so that I can download the software and t

    Hello. Accidentally, I bought the Adobe Lightroom 6 box set (CD ROM) support when I need to download the application. I opened the package and now can not return it. Is there a way I can be provided with a license so that I can download the software and avoid paying twice for the product? I can return the package open, if necessary. He was ordered on Amazon.ca. Thank you

    Use the serial number located inside the retail box to save the download version

    Download & install instructions https://forums.adobe.com/thread/2003339 can help

    -includes a way to go to a page to download the Adobe programs if you do not have a disk or drive

  • Created a form of contact, but when the customer has received potential customer demand, check boxes change to a true or false, there a way to change Yes or no?

    Created a form of contact, but when the customer has received potential customer demand, check boxes change to a true or false, there a way to change Yes or no?

    This is the system default, you can customize either she or you try using forms of third party:

    http://musewidgets.com/collections/all/products/forms-bundle

    Thank you

    Sanjit

  • How can I use a check box to insert another form acrobat on itself?

    I created a form in acrobat for our domain service department which includes a security inspection form. If a customer will not allow to carry out the inspection a NO check box is enabled and they would like to than the inspection sheet to disappear from the screen. Well they want security report card or introduced in the form of field service when the YES check box is selected. Any thoughts on whether either of these actions are still possible?

    It is possible with the latest versions of Reader on Windows and Mac. What kind of devices people service department use?

  • Check Set when first loading the box JDev 10.1.3.3.0

    Hi all

    I'm trying to set a selectbooleancheckbox on a page the first time it is loaded. I need to get data from the verification of the database, the values and then based on the result of the box set. The problem is that I don't know where to put the code. I tried to override onLoad and after / beforePhase but it did not work. Sometimes, the controls are not ready and so I get null errors or controls are ready, but my changes do not display on the screen.

    Can someone tell me when/where I can get access to the control when it is ready for manipulation, but not yet displayed on the screen... basically I need "setup" of the control before be displayed.

    Thank you.

    Hello

    the simplest option is to point the value property of the checkbox on a pair of setter/getter bean manged and use the get accessor to look at the database to the default value. In this way during the loading of the page the checkbox is set.

    Frank

  • List of values (Forms 10g) in concordance with the interrogation of a block of retail

    Hello
    I have a form that we have the display on a canvas. It has 2 blocks (both are blocks of data - set to Yes). I have a master-detail on the main block relationship. I created a relationship with "delete folder behaviour - cascading operations without warning--No, deferred Coordination - no, automatic query - no.»

    When I open the form, then click on between records, the master / detail works very well.

    In my upper block of the master, I have 2 items that are displayed on the Web (both are elements of text non-base block with LOV table attached to them. Everything works fine when I'm in the mode query on existing records. The block of detail in the low lights and refreshes the block.

    My question is when I insert a record and select a value from the 2nd element LOV, I want to question the block below because I have chosen in the Master block values necessary to interview the block detail down below. I have two values selected, however, he will interview not down in the block of retail I clicked in the block of retail and press run "Run query".

    I was wondering if there is a way to get there. I tried when-validate-Item on the block Master LOV when on the 2nd LOV, but I can't make a ' GO_BLOCK(Detail-Block), then EXECUTE_QUERY'.» A message FRM saying you cannot issue a 'GO_BLOCK' in a when validate the point.

    I used to be able to do when the two fields were a list item "Poplist" but the problem is that dynamically build us the poplist and move poplist item around according to which folder you were on. We had the poplist "Number of items displayed" set to 1, because we had a text point showing behind her. Whenever you click on a folder, we moved dynamically the item to the current record by capturing the X, position Y. I want to try to move the text field element the only field displayed on the form to block and eliminate this element of list poplist coming overlap, eliminate the poplist completely and get rid of some of the issues I'm having with the dynamic building of 10g. Not to mention, I found a bug with the poplists.

    Any ideas out there? I have exhausted my.

    Chris

    Hello!

    If you use the trigger KEY-LISTVAL like that?

    begin
    if
      show_lov
    then
      go_block ( 'detail_block' );
      :system.message_level := '10';
      execute_query;
      :system.message_level := '0';
      go_item ( :system.trigger_item );
    end if;
    end;
    

    Concerning

  • How to open a new form on button click in form 10g

    Hello

    Can you please how to open a new form, when you press a button in the form of 10g.


    When I was in Forms 6i, this was done through OPEN_FORM('forms_1',ACTIVATE,NO_SESSION,SHARE_LIBRARY_DATA);

    But this code is not set 10g.

    I am developing through Citrix remote server where I am facing this problem. In the local PC no problem.

    Help, please.

    Hello

    Make sure that D:\myfolder\ is defined in the FORMS_PATH environment variable. FORMS_PATH is defined in the default.env(ORACLE_HOME/forms/server register) or windows. If it is set in the two default.env is a priority.

    Kind regards

    Alex

    If the answer is useful or appropriate, please mark accordingly.

Maybe you are looking for