How to hide text field item based on true or false cases in oracle apex

Hi,
I have a set of text Field items in oracle apex:
Order Number
Revision Number
When we open the report, revision should be hidden.
Only when the user enters unique order number (non-duplicate order numbers), revision number should be visible.
If he enters duplicate order number, revision number should be hidden.
Please help.

Hi 2932464,
2932464 wrote:
Hi,
I have a set of text Field items in oracle apex:
Order Number
Revision Number
When we open the report, revision should be hidden.
Only when the user enters unique order number (non-duplicate order numbers), revision number should be visible.
If he enters duplicate order number, revision number should be hidden.
Please help.
Giving you example how to achieve this.
Step 1. Create three Page Items
    1) P1_ORDER_NO - Text Field
    2) P1_REVISION_NO - Text Field
    3) P1_ENABLE_DISABLE_REVNO  - Hidden,Value Protected - No
2. Create 3 Dynamic Actions
1) Disable revision number on page load
    Event - Page Load
    Action - Disable
    Fire When Event Result Is  - True
    Selection Type - Item
    Item - P1_REVISION_NO
  2) Check duplicate order number
    Event - Change
    Selection Type - Item(s)
    Item(s) - P1_ORDER_NO
    Condition - is not null
    Action - Execute PL/SQL Code
    Generate opposite false action - Unchecked
    Fire When Event Result Is  - True
    Fire on page load - Unchecked
    Stop Execution On Error - Checked
    Wait for Result - Checked
    PL/SQL Code -
declare
l_count number;
begin
  select count(*) into l_count
    from emp
   where empno = :P1_ORDER_NO;
if l_count > 0 then
  :P1_ENABLE_DISABLE_REVNO := 1;
else
  :P1_ENABLE_DISABLE_REVNO := 0;
end if;
end;
Page Items to Submit = P1_ORDER_NO
Page Items to Return  = P1_ENABLE_DISABLE_REVNO
3 ) Enable and Disable Revision Number
    Event - Change
    Selection Type - Item(s)
    Item(s) - P1_ENABLE_DISABLE_REVNO
   condition - greater than or equal to
   value  - 1
   Action - Disable
   Fire on Page Laod - Unchecked
   Generate opposite false action - checked
   Selection Type = Item(s)
   Item(s) - P1_REVISION_NO
Hope this helps you,
Regards,
Jitendra
DER_NO

Similar Messages

  • How to show valid field items based on previous selected field

    I am trying to use BC Web Apps to help my customers find products for their specific motor vehicle.
    By selecting the vehicle make and then the model. e.g. Chevrolet and then Camaro.
    This will then bring up a table with all the cosponsoring equipment part numbers.
    At the moment the closest I can get is two dropdown lists one with all the vehicle makes and another with every vehicle model.
    If I select Chevrolet I only want to see Chevrolet models in the dropdown list.

    Hi 2932464,
    2932464 wrote:
    Hi,
    I have a set of text Field items in oracle apex:
    Order Number
    Revision Number
    When we open the report, revision should be hidden.
    Only when the user enters unique order number (non-duplicate order numbers), revision number should be visible.
    If he enters duplicate order number, revision number should be hidden.
    Please help.
    Giving you example how to achieve this.
    Step 1. Create three Page Items
        1) P1_ORDER_NO - Text Field
        2) P1_REVISION_NO - Text Field
        3) P1_ENABLE_DISABLE_REVNO  - Hidden,Value Protected - No
    2. Create 3 Dynamic Actions
    1) Disable revision number on page load
        Event - Page Load
        Action - Disable
        Fire When Event Result Is  - True
        Selection Type - Item
        Item - P1_REVISION_NO
      2) Check duplicate order number
        Event - Change
        Selection Type - Item(s)
        Item(s) - P1_ORDER_NO
        Condition - is not null
        Action - Execute PL/SQL Code
        Generate opposite false action - Unchecked
        Fire When Event Result Is  - True
        Fire on page load - Unchecked
        Stop Execution On Error - Checked
        Wait for Result - Checked
        PL/SQL Code -
    declare
    l_count number;
    begin
      select count(*) into l_count
        from emp
       where empno = :P1_ORDER_NO;
    if l_count > 0 then
      :P1_ENABLE_DISABLE_REVNO := 1;
    else
      :P1_ENABLE_DISABLE_REVNO := 0;
    end if;
    end;
    Page Items to Submit = P1_ORDER_NO
    Page Items to Return  = P1_ENABLE_DISABLE_REVNO
    3 ) Enable and Disable Revision Number
        Event - Change
        Selection Type - Item(s)
        Item(s) - P1_ENABLE_DISABLE_REVNO
       condition - greater than or equal to
       value  - 1
       Action - Disable
       Fire on Page Laod - Unchecked
       Generate opposite false action - checked
       Selection Type = Item(s)
       Item(s) - P1_REVISION_NO
    Hope this helps you,
    Regards,
    Jitendra
    DER_NO

  • How to create Text Web item based on characteristics text!

    Hi
      In a template, I have a hierarchy object Region which is in the left panel, then on the right i have table displaying with dataprovider.
    When the user select the hierarchy Region say Australia , then on the right I add the text web item, based on which the user selected, my text on righ side becomes australia, if they select Europe, then it should display europe.
    Give me some solutions
    Thanks
    BI Learner

    No one answered...

  • How to validate an text field item using javascript for numbers only.

    hi,
    how to validate an text field item using javascript for numbers only.please help me on this urgent
    please mail me solun if posible on [email protected]

    Hi,
    Page HTML header
    <script>
    function onlyNum(evt) {
      // Usage: onKeyPress="return onlyNum(event)"
      evt = (evt) ? evt : window.event;
      var charCode = (evt.which) ? evt.which : evt.keyCode;
      if (charCode > 31 && (charCode < 48 || charCode > 57)) {
        var status = 'This field accepts numbers only!';
        alert(status);
        return false;
      var status = '';
      return true;
    </script>Item HTML Form Element Attributes
    onKeyPress="return onlyNum(event)"Br,Jari

  • How to Handle Blank Field Value based Condition in SmartForms

    Dear Sir,
    In SMARTFORM , we need to define a Condition that incase Field Value is not equal to  BLANK value (blank means that field is empty) then a specific text gets printed .
    Our problem is that  We do not know as how to define  Empty Field Value  based condition .
    Had it been Non Empty Field value based condition then solution was simple and could be done in following way :
    Field Value                        R                     Comparision Value
    WA_KZDKZ                      =                      'X'
    In our case , we need to give Blank (Empty Value) instead of 'X' .
    Kindly help us pl .
    Rgds
    B Mittal

    Hi,
    To handle blank field values in SMARTFORMS,
    Go to the conditions tab in your SMARTFORM and give condition there
    Field                Comparision operator          value
    <Field name>      <> Here symbol is diff     space.
    eg:
    wa_mara-matnr    =/                                   space.
    Regards,
    Santosh Kumar M.

  • How to hide the field?

    Hi all,
    In Process Bid Invitation - Bidder/Bids - Bid - Item Data I need to hide the field  "Item Value". How to do this?
    Thanks,
    Vlad

    Hi
    Right click on the screen and select view source to see the HTML webpage template name... Hope then you can find the field name there as well the correct screen number.. and Internet Service...
    Using SE80 transaction select Internet Service and type the name BBP_BID_INV and look for the corresponding HTML Template needs to modified here..
    Do let me know.
    Regards
    - Atul

  • How to hide document fields in Bid Invitation

    While creating Bid invitation I need to hide some fields e.g. Attachements, upload a document, description, button Search & Add. These fields are available under tab  Header data -> Documents.
    BADI 'BBP_UI_CONTROL_BADI' works to hide Bid Invitation Basic data, but not for above.
    Can anybody let me know how to hide above fields.
    Nilesh Kumar

    Hi,
       I dont think there  is any BADI/screen variant for this requirement.But yes,if any of the 2 are available in the std,ITS template changes should be avoided.
       The foll are the screen variants available in SRM 5.0:
    Item data overview in the invoice without purchase order reference: Screen variant BBP_IV_NON_PO; Method GET_SCREENVARIANT_INV
    Item data overview in the invoice with purchase order reference: Screen variant BBP_IV, Method GET_SCREENVARIANT_INV
    Item data overview in the confirmation: Screen variant BBP_CF; Method GET_SCREENVARIANT_CONF
    Item data overview in the confirmation for time recording: Screen variant BBP_CF_TIMEREC; Method GET_SCREENVARIANT_CONF
    Item data overview in the purchase order: Screen variant BBP_PO; Method GET_SCREENVARIANT_PO
    Item data overview for contracts: Screen variant BBP_CTR_ITEMLIST; Method GET_SCREENVARIANT_CTR
    Item data overview for selection of contracts: Screen variant BBP_CTR_ITEM_SELLIST; Method GET_SCREENVARIANT_CTR
    Search results for changing/processing a purchase order: Screen variant BBP_SEARCH_PO_IN_PO; Method GET_SCREENVARIANT_SEARCH
    Search results for entering an invoice and/or confirmation: Screen variant BBP_SEARCH_PO; Method GET_SCREENVARIANT_SEARCH
    Search results for entering a purchase order: Screen variant BBP_SEARCH_SC; Method GET_SCREENVARIANT_SEARCH
    Search results for displaying/processing a bid invitation: Screen variant BBP_SEARCH_BID; Method GET_SCREENVARIANT_SEARCH
    Search  results for displaying/processing a bid: Screen variant BBP_SEARCH_QUOT; Method GET_SCREENVARIANT_SEARCH
    Search results for displaying/processing an auction: Screen variant BBP_SEARCH_AUC; Method GET_SCREENVARIANT_SEARCH
    Search results for displaying/processing an invoice: Screen variant BBP_CHANGE_IV; Method GET_SCREENVARIANT_SEARCH
    Search results for displaying/processing a confirmation: Screen variant BBP_CHANGE_CF; Method GET_SCREENVARIANT_SEARCH
    Search results for entering/displaying/processing/status of a shopping cart: Screen variant BBP_SC; Method GET_SCREENVARIANT_SC
    Worklist for Sourcing: Screen variant BBP_SOCO_WL; Method GET_SCREENVARIANT_SOCO
    Work area in Sourcing: Screen variant BBP_SOCO_GA; Method GET_SCREENVARIANT_SOCO
    Overview for the budget display: Screen variant BBP_BUDGET; Method GET_SCREENVARIANT_BUDGET
    BR,
    Disha.

  • How to hide the field from the view in the webdynpro application?

    Hi Gurus,
    I got a requirement where in which ,default layout has the field name Time.......To......... which is (2 input box ) and one lable assigned to the container.........
    Now my requirement is to hide this field from the layout for all cases of leave......(all types of leave)....
    I got a few inputs from forum that we can achieve this by implementing the following steps..........
    Create In context => Value attribute => Say Visibility
    Go to its properties
    Select com.sap.ide.webdynpro.uielementdefinitions.Visibility
    In View Layout
    Select UI Element Set Visible property to this context variable Visibility.
    In wdDoModifyView() You can set this property to false
    wdContext.currentContextElement().setVisibility(false);
    Can you people tell me where to create the value attribute........
    In the view context or in the component context...........
    and field that am talking about is assign to the container you want me to assign this context variable property to all ......Like to input box ,label and the container..........
    Please calrify this ASAP...........
    Thanks in Advance,
    Dharani

    Hi Manoj......
    Hi Murutuza,
    As per your guidelines I have created the value attribute in View context (which has the field..... which needs to be hide)inside the value node say FieldVisibility.......and attribute name OldTimeDuration......and I set this value with uidefeneitions Visibility .......
    and I bind this vaule with the field property visible(Time.......To..........)which I need to hide...........
    Now in the view implementation tab ..........I have coded in the doinit method(since my requirement to hide the field from the layout in all cases).........
    wdContext.currentFieldVisibilityElement().setOldTimeDuration(WDVisibility.NONE);
    But if I deploy the application and see still am getting the same field dispalying in the screen.........
    I even tried putting this code in wdmodifyview method.........same results........
    Kindly tell me how to hide the field permenantly from the screen............(without any conditions.)
    Thanks in Advance,
    Dharani

  • How i hide a field of a custom view in OAF 11

    Hi, im a new developer of OAF11.
    What should I do, to customize the Purchase Order screen, if then the requirement is to hide the field that i insert from extended VO.
    What I did was modify the XML of the page to add the field and then extended the original AM.
    I added the extended view into the custom AM to prevent that fail with the field that i insert.
    I must clarify that I modify the path of AM default for the path of the custom AM in the XML, then i upload the XML with the command import, and i see it the field in the page.
    I tried to hide another field that i created by customizing the page, but I couldnt do. That´s why i insert directly the field in the XML original.
    I Try to customize the driver involved with the page, but nothing happened.
    First try it on the controller Father and after the son.
    The page is in the POS module (iSupplier), and is POSVIEWPOG (PO Details).
    The code that attempts to hide the field is:
    OAApplicationModule am = paramOAPageContext.getApplicationModule(paramOAWebBean);
    OAViewObject oaviewobject1 =(OAViewObject)am.findViewObject("PosViewHeadersVO");
    if (oaviewobject1 != null)
    OARow row = (OARow)oaviewobject1.getCurrentRow();
    String vCustomType = (String)row.getAttribute("TypeName");
    if (vCustomType.equals("Blanket Agreement"))
    OAMessageStyledTextBean vHideField = (OAMessageStyledTextBean)paramOAWebBean.findChildRecursive("drbQuantity");
    vHideField.setRendered(true);
    else
    OAMessageStyledTextBean vHideField = (OAMessageStyledTextBean)paramOAWebBean.findChildRecursive("drbQuantity");
    vHideField.setRendered(true);
    Can anyone help me?
    If im grong other solution that i think is:
    How I can put a field on a page with code and how to hide the field with conditions?, consider that the field is from the VO extended.
    Thanks!!!

    Hi Yichao,
    Chk these links
    https://help.sap.com/saphelp_nw04/helpdata/en/5a/0c889a4d5911d2a5fb0000e82deaaa/content.htm
    http://help.sap.com/saphelp_45b/helpdata/en/cf/21ec5d446011d189700000e8322d00/frameset.htm
    thanks and regards
    srikanth.p

  • How to hide a field from table maintenance view?

    Hi,
    How to hide a field from table maintenance view? 
    The field is used for data created date. I need to hide it from display.
    Thanks

    Chk this link.
    http://help.sap.com/saphelp_nw04/helpdata/en/66/33f52010dd11d6999300508b5d5211/frameset.htm
    Maintenance Attributes
    You can assign a maintenance attribute P to individual fields in the maintenance view definition in the Dictionary (SE11). It can be  H (hidden)
    H (hidden)
    A field flagged H is not displayed on the screen. This field must also be filled in the background by a routine at an event.
    The system writes R and H fields to the database like all other fields when a new data record is saved.

  • How to hide/disable menu items using Javascript in Acrobat 9 pro or later

    We just wanted to know on how to hide/disable menu items for e.g. 'Open' menu item under 'File' menu in Acrobat 9 or later on Mac using Javascript. It would be useful if you could provide if any other option is in place already.

    Not sure it will work, but you can try using the app.hideMenuItem() method. See reference here.

  • How to hide input fields on selection screen using variant attribute

    Hello all,
    I want to know how to hide input fields on selection screen using variant attribute conpletely.
    As you know, when setting the attribute of variant "Hide field" checked, the field is temporarily hidden, but when clicking "All Selections(F7)" button on the selection screen, the fileds become appeared.
    I want to hide the field completely. Di you know how to do ?
    Thank you for your support.
    Regards,
    Hideki Kozai

    Use this attribute hide field and save the variant. Then create transaction for this program setting default variant for parameter Start with variant . The user who runs it will have it by defualt set.
    Otherwise
    in PBO simply use LOOP at screen and output = 0 for this field. This will ensure that field is invisible in any case.
    Regards
    Marcin

  • How to hide mandatory field in OAF page through personalization

    Hi,
    Could u please help, that how to hide mandatory field in seeded page.
    This could be achieved through personalization only.
    Thanks,
    Ramachandra.
    Edited by: 927747 on Jun 21, 2012 2:16 AM

    yes you can hide that field by simply set the render propert to "false" using the personalization.
    Regards,
    Vijay Reddy.

  • How to script text field based on checkbox selection

    I've written a script to format specific text boxes based on what checkbox is chosen. However, I'm not sure what I need to script in order to CLEAR the text field once the checkbox is unchecked. As it stands now if the checkbox is selected it formats the text field with the necessary information, but if it's unchecked the information stays in the box. I'd like to be something like 'if all boxes are Off then display 0.00.' I've included the current script for reference
    var one = this.getField("Emp 500");
    var two = this.getField ("Emp+C500");
    var three = this.getField("Emp+S500");
    var four = this.getField("Fam500");
    var five = this.getField("NC500");
    var six = this.getField("Medical");
    if (one.value == 'Yes') {six.value='70.70'}        
    else if (two.value ==
    'Yes') {six.value='127.20'}
    else if (three.value == 'Yes') {six.value='141.32'}
    else if (four.value == 'Yes') {six.value='198.00'}
    else if (five.value == 'Yes') {six.value='0'}
    var one = this.getField("Emp 1500");
    var two = this.getField ("Emp+C1500");
    var three = this.getField("Emp+S1500");
    var four = this.getField("Fam1500");
    var five = this.getField("NC1500");
    var six = this.getField("Medical");
    if (one.value == 'Yes') {six.value='61.47'}
    else if (two.value == 'Yes') {six.value='110.49'}
    else if (three.value == 'Yes') {six.value='141.32'}
    else if (four.value == 'Yes') {six.value='123.04'}
    else if (five.value == 'Yes') {six.value='0.00'}

    Hi Gayathri,
    Gayathri Venugopal wrote:
    Hi,
    I have two text items. Need to create dynamic action for the following,
    1. Order_type - Drop down values having CONSUMER & WHOLESALE.
    2. Order_number- Text field
    Order number should be disabled and only on selection of order type ,order number should be enabled.
    Can someone please help me on this?
    Create two dynamic action
    1. Make it order number item disable on page load.
       Event : Page Load
       Action : Disable
       Fire When event result is : True
       Selection Type : Item
       Item : Your order number item
    2 . enable and disable order number on selection of order type(assuming when order type is null it is disable otherwise it is enable)
        Event : Change
        Selection type : item
        Item : your order type item
        condition : is not null
    True Action
        Action : Enable
        Fire When event result is : True
        Fire on page load : True
        Selection Type : Item
        Item : Your order number item
    False Action
        Action : Disable
        Fire When event result is : False
        Fire on page load : True
        Selection Type : Item
        Item : Your order number item
    Hope this helps you,
    Regards,
    Jitendra

  • How to hide a field based on the value of a field in a different subform - null check doesn't work!

    I'm using Javascript to set the actions. I need to hide a text field if the value of a field in another sub-form is null.
    - tried checking the value of the other field for null - doesn't work
    - tried setting a variable str2 where I know the value of the other field is available then checking that variable when I initialize the text field - doesn't work
    What am I missing?

    Hi.
    Try this in the originating sub form referring to the text field (X). 
    if (this.rawValue = 1)
              X.presence = "visible";
    else if (this.rawValue = null)
              X.presence = "hidden";

Maybe you are looking for

  • Can MBA connect to 2 external monitors?

    I have been using a dual-display graphics card in a PC for some time, with 2 monitors connected to make a large working area. Is it possible to do this with the MBA? Is the mini displayport to DVI compatible with dual-display? So far, I have been abl

  • Claim a task

    Hi there, I have the problem that I cannot claim a task via the following code: var taskId = getValueOfURLParameter("taskId"); // Create ODataModel for BPM Task Data OData service var taskDataSvcURL = "/bpmodata/taskdata.svc/" + taskId; var oDataMode

  • Bank Sub Account Testing

    Hi All, I Have changed Bank sub Account from one to other for the Payment Method 'D' by using FBZP. How can i check whether it's taking to the correct account or not ? How can I test ? Thanks...

  • Error : CO_TXT_MMF_ENGINETYPE

    Hi,   Iam getting the Below given error when iam trying to post the data into sap Using an IDOC Adapter. xmlns:SOAP="http://schemas.xmlsoap.org/soap/envelope/" SOAP:mustUnderstand="">   <SAP:Category>XIServer</SAP:Category>   <SAP:Code area="OUTBINDI

  • Import all your picture files into iMovie

    How do you import all your picture files into imovie all at one instead of one at a time?