Show LOV only when field is blank

Hi all,
My environs:
Oracle 10g on Windows
Forms [32 Bit] Version 9.0.4.1.0 (Production)
Oracle Database 10g Enterprise Edition Release 10.2.0.5.0 - 64bit Production
With the Partitioning, OLAP, Data Mining and Real Application Testing options
Oracle Toolkit Version 9.0.4.1.0 (Production)
PL/SQL Version 9.0.1.5.1 (Production)
My problem:
I have a field in a block, that is text_item and is tied to a LOV item. I want the LOV to show up automatically, each time I tab into it, only when the item is BLANK (say when I am trying to insert into the block). When on query, it should only display the queried value into the field, and user can choose to activate the LOV, by pressing F9, if she wants to. It now displays automatically each time text item is in focus (works fine when user is inserting, but annoying when she has queried the form, and trying to tab thru. Each time she focuses on the field, LOV is popping up!)
The current property setting on the text field item: Type: Text Item
List of Values : MY_LOV_NAME
Validate from List : Yes
Properties on MY_LOV_NAME
Automatic Display: Yes
Any suggestions? Or Item level trigger i can use, and if so, when build_in can I use?
New to forms and will greatly appreciate advice from pros!!
Thanks
Libran_girl

It is very simply,
IN When-new-item-Instance
DECLARE
V_LOV BOOLEAN;
BEGIN
IF :ITEM_NAME IS NULL
THEN
V_LOV = SHOW_LOV(LOV_NAME);
END IF;
END;
give it a try, you will get your result, if it doesn't work then try :block_name.item_name
Abbas

Similar Messages

  • Fonts not showing correctly only when on my account page on app store

    fonts not showing correctly only when on my account page on app store

    Firstly, make sure that your device is not hidden (left hand pane). If it just reads device then toggle between SHOW and HIDE.
    Secondly, try all the other ports on your computer, even a number of times.
    Thirdly, if you have another computer try plugging your device into it without taking any action, give it a moment, remove it and try it back in your other computer again.
    Failing all that, see here - http://support.apple.com/kb/TS1538 for Windows and http://support.apple.com/kb/TS1591 for Macs
    And failing all that put the device into Recovery mode. See here and note the paragraph 'If you restore from a different computer.... ' down near the bottom of the page -
    http://www.apple.com/support/ipad/assistant/itunes/

  • "%0.00" hidden when field is blank.

    Thanks in advance for your help. I have created a form which contains percentage values. When blank, these fields show "%0.00". The problem is that many times our customers print out the form and fill it in by hand, so the "%0.00" is a nuisance. Does anyone have any advice on how to make that field hidden unless a value is entered. (This is similar to the "$" issue I had a while back.) Thanks again.

    Did you clear the form or force a calculation?
    Validation scripts only run when the form field is updated.
    Are there any errors in the JavaScript console?
    This script works the same way as the currency formatting, it just uses a different internal format function.
    You need to set the field's format to "None" since the validation script is determining the format and not a format script or the format selection (which is a behind the scenes JavaScript). The Formatting of a field is done after the Key Stroke, Validation, and Calculation for the field. See Form Event Processing for the sequence of field event processing. So any formatting applied by the validation or calculation is overridden by the any formatting selection other than "None".

  • Show ItemRenderer only when editing (onclick)

    I have a datagrid, that after the user has logged in becomes editable.
    I would like that when the user clicks into a given field, say a date or number field, an itemRenderer that corresponds to the type of date appear.
    Example: if i click into the date field, i get a datechooser, or a numericStepper when i click into a number based field.
    Then after I click out of that field, it just shows the value, no longer the itemRenderer.
    FYI, I am using Pure MVC, so this logic is in a mediator '.as' class.
    Please help.

    I am getting the itemEditor to work mostly now.
    problem i am having is, after i switch the datagrid to become editable and then click into a given field (ie: itemEditor as a numeric stepper), if i just click in and out of the field, but do not make any changes to it, the data in the field either becomes "NaN" (in the case of a numeric stepper editor) or just blank (in the case of a combo box editor)
    Here is my code:
    DataGrid.mxml
    <?xml version="1.0" encoding="utf-8"?>
    <!--
    PureMVC AS3 Demo - Flex Application Skeleton
    Copyright (c) 2007 Daniele Ugoletti <[email protected]>
    Your reuse is governed by the Creative Commons Attribution 3.0 License
    -->
    <mx:Canvas xmlns:mx="http://www.adobe.com/2006/mxml"
    xmlns="*"
    width="100%" height="100%">
    <mx:Script>
      <![CDATA[
      import com.*;
      import flash.events.Event;
      import mx.controls.DataGrid;
      import mx.controls.dataGridClasses.DataGridColumn;
      import mx.controls.Alert;
      import flash.net.URLRequest;
      import mx.controls.NumericStepper;
      import mx.controls.DateChooser;
      import mx.controls.CheckBox;
      import mx.controls.ComboBox;
      public static const CREATION_COMPLETE: String = "myCreationComplete";
      public static const LOAD_SETTINGS: String = "load settings";
      private function dateFormat(item:Object, column:DataGridColumn):String
      return df.format(item.date);
      public function onLinkBtnClick(request:URLRequest):void
      //trace("urlRequest: "+request)
      try {
        navigateToURL(request);
      }catch (e:Error) {
        // UNFORTUNATELY, THE ERROR IS THRU INTERNET EXPLORER AND IS NOT CAUGHT HERE
        trace("error: " + e)
        Alert.show("There was an error in opening the requested file!")
      }]]>
    </mx:Script>
    <mx:DateFormatter id="df" formatString="MM/DD/YY"/>
    <mx:VBox width="100%" height="100%" verticalGap="0" >
      <mx:HBox id="cbHBox" width="100%" height="0" fontWeight="bold" horizontalAlign="right" visible="false" >
      <mx:CheckBox id="selectAllCB" label="Select All / None" labelPlacement="left" fontWeight="bold" color="0xFFFFFF" />
      <mx:Spacer width="{colSelected.width/2 + 2}" />
      </mx:HBox>
      <mx:DataGrid id="settingsDataGrid"
      height="100%" width="100%"
      editable="false"
      horizontalScrollPolicy="off">
      <mx:columns>
        <mx:DataGridColumn width="24" headerText="Number" dataField="number" resizable="false"/>
        <mx:DataGridColumn width="120" headerText="Title" dataField="title" />
        <mx:DataGridColumn width="20" headerText="Date" dataField="date" labelFunction="dateFormat" editorDataField="dfDate" itemEditor="com.view.itemRenderers.DGDateFieldEditor"  resizable="false" />
        <mx:DataGridColumn width="12" headerText="Book" dataField="book" editorDataField="nsBook" itemEditor="com.view.itemRenderers.DGNumericStepperEditor" resizable="false" />
        <mx:DataGridColumn id="colType" width="14" headerText="Type" dataField="type" editorDataField="cbType" itemEditor="com.view.itemRenderers.DGTypeComboBoxEditor" resizable="false" />
        <mx:DataGridColumn width="10" textAlign="center" headerText="Link" sortable="false" draggable="false" resizable="false"
        dataField="link" itemRenderer="com.view.itemRenderers.DGLinkButtonEditor"
        rendererIsEditor="true" editable="false"/>
        <!--<mx:DataGridColumn id="colSelected" width="46" headerText="Select" visible="false" editable="false" itemRenderer="{CheckBoxRenderer}"  editorDataField="selected" />-->
        <mx:DataGridColumn id="colSelected" width="46" textAlign="center" visible="false" sortable="false" draggable="false" resizable="false"
        headerText="Select" dataField="sel" itemRenderer="com.view.itemRenderers.DGCheckBoxEditor"
        rendererIsEditor="true" editorDataField="cbSelected"/>
      </mx:columns>
      </mx:DataGrid>
    </mx:VBox>
    </mx:Canvas>
    DGNumericStepperEditor.mxml
     <?xml version="1.0"?>
    <!-- itemRenderers\dataGrid\myComponents\EditorDGCheckBox.mxml -->
    <mx:VBox xmlns:mx="http://www.adobe.com/2006/mxml"
    implements="mx.controls.listClasses.IDropInListItemRenderer,mx.managers.IFocusManagerComp onent"
    horizontalAlign="center" verticalAlign="middle">
        <mx:Script>
            <![CDATA[
             import mx.controls.listClasses.ListData;
       import mx.controls.dataGridClasses.DataGridListData;
       import mx.controls.listClasses.BaseListData;
       import mx.controls.dataGridClasses.DataGridItemRenderer
       import mx.events.FlexEvent;
       import mx.controls.Alert
       private var _listData:DataGridListData;         
                // Define a property for returning the new value to the cell.
                public var nsBook:Number;           
                // Implement the drawFocus() method for the VBox.
                override public function drawFocus(draw:Boolean):void {
        bookNS.setFocus();
       [Bindable]
       override public function set data(value:Object):void{
        super.data = value;
        bookNS.value = data[_listData.dataField];
       override public function get data():Object {
        return super.data;
          public function get listData():BaseListData
        return _listData;
       public function set listData(value:BaseListData):void
        _listData = DataGridListData(value);
            ]]>
        </mx:Script>
    <mx:NumericStepper id="bookNS" horizontalCenter="center" maximum="18" width="100%"
            click="nsBook = bookNS.value" />
    </mx:VBox>
    PLEASE HELP, getting these itemRenderers and itemEditors to work properly is DRIVING ME CRAZY!!!

  • Calculated field hidden when field is blank

    This is actually similar to a discussion from a few months ago.Our forms are intended to be filled out online, printed and e-mailed, faxed, or snail-mailed. Many times the customer will simply print out the form and fill it out by hand. When I create forms with calculations the "$" or "0.00" appear; thus making it difficult for someone filling the form out by hand to work around those symbols/numbers. A few months ago, I had a similar situation involving percents and the gurus on this forum (Thank you, gurus!) helped me with the following code and it worked perfectly at hiding the calculated fields unless something was entered in the fields to be calculated.
    For a field with a format of "None" user a Custom validation script:
    if(event.value == 0) {
    event.value = ""; // set field to null;
    AFNumber_Format(0, 0, 0, "", "", true); // set format to number 0 decimals, no currency;
    } else {
    event.value = event.value; // keep value;
    AFPercent_Format(2, 0, 0); // set percent format 2 decimal places.
    This time, the problem involves simple numbers (not percent, not currency). I used the same logic and the fields actually show/hide like I want, but the numbers need to be formated with a comma separating the thousands and a decimal point with two digits after. I can't figure that out! Can someone please offer some advice? Thanks in advance for your help.

    Make sure you are using the correct quotation marks. Use either the double quotation marks or the single quotation marks and not 4 single quotation marks.
    if(event.value == 0) {
    event.value = ''; // set field to null (2 single quotation marks);
    Supress Zero

  • Show scrollpane only when table has x rows

    Is there any way to not make use of scrollpane when a table currently has less that 5 rows ?
    I have my table embedded in a JScrollPane, but I want to show the scrollpane only if my table has atleast
    'x' number of rows.
    Thanks,

    Something like...
    DefaultTableModel tm = new DefaultTableModel(data, index);
    int size = tm.getRowCount();
    JTable t = new JTable(tm);
    JPanel p = new JPanel();
    if(size > 5)
      JScrollPane jsp = new JScrollPane(t);
      p.add(jsp);
    else
      p.add(t);
    // add p to JFrame

  • HOW TO SHOW PLUGS ONLY WHEN TRACK IS SELECTED??

    Hello, I has an m audio axiom pro, and it had a cool feature where when you selected a track in logic the plugs you were using for that track would pop up on the screen, when you went to the next track only that tracks plugs would show....
    Is there a way/key command to set this up?
    Thanks!!

    Hello, I has an m audio axiom pro, and it had a cool feature where when you selected a track in logic the plugs you were using for that track would pop up on the screen, when you went to the next track only that tracks plugs would show....
    Is there a way/key command to set this up?
    Thanks!!

  • Application alias shows up only when logged in as SYS

    Oracle 11gR2
    APEX 4.2.3
    RHEL 6.3
    select *
    from   apex_applications
    where  workspace = 'MY_WORKSPACE';
    -- 0 rows
    When logged into APEX as a user with a workspace assigned (MY_WORKSPACE) that contains an application (and an application alias), no rows are returned when given the application alias in the query above (see the above SQL).
    But log in as SYS and the application alias is there -- i.e. a row is returned.
    What could be causing this?

    Many dictionary views limit rows returned by level of access.
    For instance, schema owners will only see applications related to the workspace their associated with.
    Some views won't let you see any rows unless you're querying via APEX (not SQL Developer), eg: apex_application_files

  • Report showing data only when preview in Eclipse is executed

    Hi people,
    I intend to do a dynamic report sending two parameters and displaying on browser.
    My application runs under Coldfusion 9 and i'm using Java Reporting Component for report generation and Crystal Reports Design for Eclipse 2.0 for design and Oracle 10g database.
    In first preview it shows the parameter window and after confirmation the report is generated. But when i preview again the report is generated with the older data. It seems that the data in the first execution is cached.
    In Coldfusion execution the report appears in browser when the value on the line parameter.setCurrentValue("","Pessoa",value); is the same used in preview. After change this an generic exception Error loading JDBC driver. Class 'oracle.jdbc.driver.OracleDriver' not found is throwed.
    The Coldfusion code is below.
    <cfscript>
         byteRead                    =     '';
         exportFormat               =     createObject('java','com.crystaldecisions.sdk.occa.report.exportoptions.ReportExportFormat').PDF;
         reportBuffer               =     createObject('java','java.io.ByteArrayOutputStream');
         reportDocument               =     createObject('java','com.crystaldecisions.reports.sdk.ReportClientDocument');
         reportParameter               =     createObject('java','com.crystaldecisions.reports.sdk.ParameterFieldController');
         printOutputController     =     createObject('java','com.crystaldecisions.reports.sdk.PrintOutputController');
         connInfo                    =     createObject('java','com.crystaldecisions.sdk.occa.report.data.ConnectionInfo');
         reportPath                    =     expandPath('report/DividasPessoas.rpt' );
         reportDocument.open(reportPath, 0);
         parameter = reportDocument.getDataDefController().getParameterFieldController();
         parameter.setCurrentValue("","Credor","1");
         parameter.setCurrentValue("","Pessoa","226426");
         printOutputController = reportDocument.getPrintOutputController().export(exportFormat);
         reportDocument.close();
         do{
              byteRead = printOutputController.read();
              reportBuffer.write(byteRead);
         }while( printOutputController.available() NEQ 0 );     
         reportBuffer = reportBuffer.toByteArray();
    </cfscript>
    <cfheader name="content-length" value="#ArrayLen(reportBuffer)#" />
    <cfheader name="content-disposition" value="inline;filename=Report.pdf" />
    <cfcontent type="application/pdf" variable="#reportBuffer#" />
    I googled a lot about the problem, reviewed all Eclipse options to disable the "cache" but everything was unsuccessful.
    I don't know if missing code is causing this or another component that i need to use.
    Any suggestions?
    Thanks everybody for attention and sorry for english errors.
    Ian

    Hi,
    Regarding your query that when you preview a report that has parameters in it, the prompts daillog box comes when you first preview the report.when you again preview you get the old values again.
    For this there is a refresh button, click on refresh, it will again promt you for parameters.
    Thanks
    Prithvi

  • Hide/Show columns only when exporting to .CSV

    Hi, how can i hide a particular column when exporting the report to excel

    Hi,
    You can set column conditionally by request.
    E.g. columns that you do not like export set condition PL/SQL function body returning a boolean
    RETURN NVL(:REQUEST,'EMPTY') NOT IN('CSV','XLS','PDF','XML','RTF');I have sample here
    http://apex.oracle.com/pls/otn/f?p=40323:63
    EMPNO column is not exported from report
    Br,Jari

  • Halo shows logo only when loaded on my 2011 MBP

    I have a one week old MacBook Pro with Windows 7 installed from Boot Camp. When I installed the Halo Trial and tried running, I just see the loading screen, even though I can hear my mouse scrolling down the menu and the music in the background. Is this an issue with the Intel HD driver or what exactly? Thanks.

    Your question will be best answered here:
    https://discussions.apple.com/community/windows_software/boot_camp

  • Syndicate only when few fields change

    Hi Gurus,
    There are 10 fields in the Main table. And the requirement is such that the auto syndication should happen only when Field 1 or Field 4 value changes (like change pointer triggering).
    I know there is an option while creating a syndication map to "Supress unchanged records" but this work for all the fields.
    I need to trigger the syndication only when Field 1 or Field 4 changes.
    Please help me achieve that.

    hi,
    There is one work around.
    We can achieve this requiremnt  through workflow.
    If feasible for you then try these steps :
    1.create one more field  that contain  information of field1 and field4 .
    2. Create one  validation that check whther the concatenation of field1 and field4 equals to the value of new field
    3.create an assignment that assign these two fields value to new field
    4.create onw workflow that run on record update.
       4.1 this workflow runs on each update of record
        4.2 second step do that validation that we created in step 2
        4.3 if  validation ok then end of workflow
         4.4 otherwise,run the assignemnt that created in step 3 and syndication step that syndicate  the records  whose either field1 and field4 value change.
    just check your feasibility with this approach and revert back if u need any other help.
    Thanks,
    sudhanshu

  • Pie chart legend showing digit "1" when we set "ignore blank cells"property

    All,
    We have pie chart in Xcelsius 2008 that shows the data with legend value and we have also set the ignore blank cells property to ignore the blank value from column. but once we set this property, it displays the digit "1" in the legend when there is no data.
    we are expecting that nothing should be displayed in pie chart legend when there is no data for the pie chart.
    Thanks,
    Sourabh

    hi Sourabh,
    I could replicate your scenario.
    Workaround is to create a duplicate of this chart. Go to properties of this new chart.
    Go to Appearance ->
    Uncheck
    - Legend
    - Mouse-over values
    - Data Labels
    for this chart.
    Write a logic in excel using 'IF' to verify if your data is empty.
    Use 'Dynamic Visibility' feature to display this chart only when your data is empty.
    Display your original chart if your data is not empty.
    Regards,
    Vamsee

  • AppleTV 3 only showing Apple logo when connected to very new Panasonic plasma - worked Ok with older Panasonic (2007)

    AppleTV 3 only showing Apple logo when connected to very new Panasonic plasma - worked Ok with older Panasonic (2007) - have reset AppleTV, tried 3 HDMI cables.

    Tried again as you suggested - no luck. Ref sequence below
    A. Pressed menu &amp; down to reset Apple TV
    B after reset &amp; restart pressed menu &amp; up buttons to change resolution. After pressing both buttons for 6 sec, LED starts flashing - released both buttons. TV screen blank. After 20 to 30 sec horizontal lines came on screen remained for 20 sec then screen again went blank. Waited for couple minutes. LED still flashing - pressed Menu button for 2/3 sec  - flashing stopped &amp; LED glows continuously. Screen blank
    C. Reset the unit again by pressing menu &amp; down. When it restarted - while LED was still flashing, got orange color screen with Apple logo in the middle. This screen remained till LED stopped flashing &amp; then screen went blank

  • I have used SAP doc mgmt for years. We copied a client and now when I configure a Class to my DMS DIR and go to CV01n Additional Data NONE of the characteristic entry boxes show up. Additional Data is blank.

    I have used SAP doc mgmt for years. We copied a client and now when I configure a Class to my DMS DIR and go to CV01n Additional Data NONE of the characteristic entry boxes show up. Additional Data is blank.
    It appears there must be some high level setting missing in the client. I have checked all authorizations and cannot find a difference between this client and all of the other clients we have. Only this one client does not show the class characteristics in the Additional Data tab.
    Any ideas of why this standard function is not working). It does not matter which DIR I config the 017 class to, nothing shows on Additional Data.

    Hi,
    The issue is resolved. We are working in a sandbox with Class configuration on a DMS issue related to standard class 017. There are no standard settings in SPRO - Cross-Application Components | Maintain Object Types and Class Types | for the object type DRAW that will allow "auto-populating" characteristic values as we do with VC class 300.
    For whatever reason DRAW and class 017 are not configured by SAP in the same manner as class 300 for example.
    We made a config entry for DRAW Class 017 VBAP. Let's just say the system did not like that.
    We are exploring other options.

Maybe you are looking for

  • How can I create a "Next" button with Insert database action

    Hello,      I want to create a "Next" button that will redirect to another page and at the same time to do an INSERT database action. I've searched on google but I didn't find nothing specific that could help me. Below are some screenshots: http://im

  • How do I enlarge the text size and incease the resolution

    I just switched to a new computer and suddenly the text on and off line is in tiny letters I can barely read. How do i enlarge it to its former size and also restore its former resolution?

  • Adding a list in BSP Page

    Hi, In our requirement, we have three output list fields fetched from Database Table. One more field is to be added for the display. The code which gets the data is something like this href="<%= target_page %>?i_sap_job=<%= wa_zadm_jobrun-jobname %><

  • Why is there no option to "hide sensitive notifications" on my phone?

    Why is there no option to "hide sensitive notifications" on my phone? (LG G3) I just updated to Lollipop, and it now it shows all my emails and texts on the lock screen which is not cool. When I tried to search for a fix, I found that you need to cho

  • ISE incorrect information on the Dashboard after root patch

    Hi all, my customer had an issue related to AD login, after Cisco dev got involved customer was given a root patch  "rpssh_12.tar.gz" after applying this during the weekend now the Active guest (dashboard) displays incorrect information. meaning : it