Conditionally Hide/Display fields in a region

How can I conditionally hide/display fields in a region. Based on a user selection whether they want to 'Enter' or 'Select', I want to dispaly the appropriate field .i.e. if the user selects 'Enter' then I want to display a Text field and if they opt for 'Select', then I want to display a Select list.
Thanks in Advance.
Regards,
Hilal

Hi Halil,
I've been trying to reproduce what the linked site does.
Here's my solution:
1 - Add all items to the page whether or not they are going to be displayed
2 - Ensure that all items that could be shown/hidden are on lines on their own (ie, set New Line to Yes)
3 - In the region's Region Footer (or in a new HTML region in the Before Footer position), add in this bit of javascript:
<script type="text/javascript">
html_HideItemRow('NameOfFieldToHide');
-- repeat for each item to be hidden when the page first loads
</script>
4 - On the radio button's definition, add the following in the HTML Form Element Attributes setting:
onclick="html_ToggleItemRow('NameOfDisplayedItem');html_ToggleItemRow('NameOfHiddenItem');"
Now when the page is loaded, one field is automatically hidden then clicking any of the radio button options will toggle the hidden/displayed fields and their labels.
As stated before, if you do a View Source on the linked application's page, you will see either more methods that are used to show/hide items/regions, but the above should be a starting point for you.
Regards
Andy

Similar Messages

  • How to dynamically hide the Field Label in the overview page's form view?

    Hi Experts,
    How to dynamically hide, for certain condition, the Field Label in the overview page's form view?
    Please reply me.
    Regards,
    Vishal

    Hi Vishal,
    It is not possible to dynamically hide/display fields if the UI is build using configurations.
    The work around is to have multiple configurations, and based on the condition, load the
    corresponding configuration at runtime.
    The other approach is to code the complete htm view(htm coding) without using the configuration provided by the framework.
    Regards,
    Leon

  • SQL Query (updateable report) Region - Conditionally Hide and Set Values

    SQL Query (updateable report) Region - Conditionally Hide and Set Values
    Outline of requirement :-
    Master / Detail page with Detail updated on same page using SQL Query (updateable report).
    The detail region has the following source
    SELECT item_id,
           contract_id,
           CASE WHEN hardware_id IS NOT NULL THEN
                   'HA'
                WHEN backup_dev_id IS NOT NULL THEN
                   'BD'
                WHEN hardware_os_id IS NOT NULL THEN
                   'HS'
           END item_type,
           hardware_id,
           backup_dev_id,
           hardware_os_id
    FROM   "#OWNER#".support_items
    WHERE  contract_id = :P26_CONTRACT_IDThe table support_items implements arced relationships and has the following columns
    CREATE TABLE SUPPORT_ITEMS
      ITEM_ID         NUMBER                        NOT NULL,
      CONTRACT_ID     NUMBER                        NOT NULL,
      HARDWARE_ID     NUMBER,
      BACKUP_DEV_ID   NUMBER,
      HARDWARE_OS_ID  NUMBER
    )A check type constaint on support_items ensures that only one of the fk's is present.
          (    hardware_id    IS NOT NULL
           AND backup_dev_id  IS NULL
           AND hardware_os_id IS NULL
    OR    (    hardware_id    IS NULL
           AND backup_dev_id  IS NOT NULL
           AND hardware_os_id IS NULL
    OR    (    hardware_id    IS NULL
           AND backup_dev_id  IS NULL
           AND hardware_os_id IS NOT NULL
          )    Hardware_Id is a FK to Hardware_Assets
    Backup_dev_id is a FK to Backup_Devices
    Hardware_os_id is a FK to Hardware_op_systems
    The Tabular Form Element based on item_type column of SQL query is Displayed As Select List (based on LOV) referencing a named list of values which have the following properties
    Display Value     Return Value
    Hardware Asset    HA
    Backup Device     BD
    Computer System   HSThe Tabular Form Elements for the report attributes for hardware_id, backup_dev_id and hardware_os_id are all Displayed As Select List (Based on LOV).
    What I want to do is only display the Select List for the FK depending on the value of the Select List on Item Type, e.g.
    Item_Type is 'HA' then display Select List for hardware_id, do not display and set to NULL the Select Lists for backup_dev_id and hardware_os_id.
    Item_Type is 'BB' then display Select List for backup_dev_id, do not display and set to NULL the Select Lists for hardware_id and hardware_os_id.
    Item_Type is 'HS' then display Select List for hardware_os_id, do not display and set to NULL the Select Lists backup_dev_id and hardware_id.
    There are properties on elements to conditionally display it but how do we reference the values of the SQL query Updateable region? they are not given a page item name?
    Also on the Tabular For Elements there is an Edit tick against a report item - however when you go to the Column Attributes there is not a property with which you can control the Edit setting.
    What's the best way of implementing this requirement in APEX 3.1?
    Thanks.

    >
    Welcome to the forum: please read the FAQ and forum sticky threads (if you haven't done so already), and update your profile with a real handle instead of "user13515136".
    When you have a problem you'll get a faster, more effective response by including as much relevant information as possible upfront. This should include:
    <li>Full APEX version
    <li>Full DB/version/edition/host OS
    <li>Web server architecture (EPG, OHS or APEX listener/host OS)
    <li>Browser(s) and version(s) used
    <li>Theme
    <li>Template(s)
    <li>Region/item type(s) (making particular distinction as to whether a "report" is a standard report, an interactive report, or in fact an "updateable report" (i.e. a tabular form)
    With APEX we're also fortunate to have a great resource in apex.oracle.com where we can reproduce and share problems. Reproducing things there is the best way to troubleshoot most issues, especially those relating to layout and visual formatting. If you expect a detailed answer then it's appropriate for you to take on a significant part of the effort by getting as far as possible with an example of the problem on apex.oracle.com before asking for assistance with specific issues, which we can then see at first hand.
    I have a multi-row region that displays values and allows entries in a number of fields.Provide exact details of how this has been implemented. (An example on apex.oracle.com is always a good way to do this.)
    I should like the fields to be conditional in that they do not permit entry, but still display, if certain conditions apply (e.g. older rows greyed out). Can this be done? Almost anything can be done, often in multiple ways. Which are appropriate may be dependent on a particular implementation, the skills available to implement it, and the effort you're willing to expend on it. Hence it's necessary to provide full details of what you've done so far...

  • Hide a field in ALV "Display Details" list

    Hi Experts,
    I have a requirment where I have to hide a field in ALV output, as well as in "Details display".  I already put NO_OUT = 'X' for that field in fieldcatalog itself. It is hidden in the ALV output anyway, but the problem is when user selects a row and clicks on "Details" button in toolbar of ALV, it still displays the hidden fields of that ALV list with/out headings there. 
    Hope you understood my problem, pls respond soon if you hav any solution for this?
    Thanks
    Sarav

    Use TECH = 'X' in field catalog.
    Regards,
    Raymond

  • Dynamically hide/display multiple report regions.

    Hi,
    I need to build a dashboard like homepage for users with multiple report regions. Users should be able to pick the regions they want and the display point for those regions.
    Is this possible?
    Thanks in advance

    Hello Asha,
    I think the "where" part would have to come from CSS. If you visit http://apex.oracle.com/pls/otn/f?p=49882:3653 you can see a couple of HTML type regions which I placed using div tags and putting something like<div class="rpt_query" id="rpt_query">in the region Header and </div> in the region footer. You can accomplish the same with Report type regions and maybe any type of region.
    As for whether or not a region is shown, that can be done in the Conditional Display attributes. I do this by selecting "Value of Item in Expression 1 = Expression 2" as the Condition Type, a hidden page item as Expression 1, and a number (perhaps corresponding to check box as mentioned previously) as Expression 2. I'm actually using pseudo tabs and when a user clicks one of the tabs it changes the value of the hidden page item and submits the page to get the new region to show up.
    Hope this helps,
    Gregory

  • Hide the field display from it0002

    i wanted to hide a field   display from  IT0002 screen, queries, table view or other  like transaction pa20 or pa30 ,should be prohibited when not authorized.

    Hi
    If you want to hide fields based on authorization, you need to first create a custom authorization object and then program the authority check using function module in the PBO module of Z Include. If the authorization for the user fails, hide the field by looping through the screen structure.
    ...Code to check authorization...
    CHECK SY-SUBRC NE 0
    LOOP AT SCREEN
    IF SCREEN-NAME = 'your_field_name'.
        SCREEN-VISIBLE = 0.
        MODIFY SCREEN.
    ENDIF.
    ENDLOOP.
    Akso, do not forget to assign the auth. object to the authorized users(This is BASIS activity).
    Edited by: rumhat on Mar 8, 2011 8:02 AM

  • Hide / display conditionally export links and export options

    Hi all,
    Is there a way to hide / display conditionally export links in a dashboard. Also, is there a way to limit the export options to display only Export to Excel, and not all the other options such as pdf, etc.
    Thank you
    Regards,
    Laurent

    Hi Laurent,
    Regarding limiting the choices of export, you can refer to below post:
    Re: Export to only PDF,Excel, PPT
    Thanks
    Hyder

  • PO requisition personalization Query_Want to hide Supplier field

    My client requirement is to hide supplier field in the po requisition form because requstor would not view the list of suppliers names in the LOV.
    I have tried to hide the SUPPLIER field but folder menu option is not active, without that i cannot hide the field.
    Can any one advise me how to disable the supplier field using form personalization
    Quick responses is higly appreciated.
    Thanks in advance

    Hi,
    Following personalization steps will hide the supplier field.
    Seq - 10
    Description - Hide supplier field
    Level - Function
    Enabled - Checked
    Condition tab
    Trigger Event - WHEN-NEW-FORM-INSTANCE
    Actions tab
    Seq - 10
    Type - Property
    Description - Hide Supplier field
    Object Type - Item
    Target Object - LINES.SUGGESTED_VENDOR_NAME
    Property Name - Displayed
    Value - False
    Finally apply the changes and re-open the form.
    Let me know how you go.
    Thanks,
    PS.

  • How to hide the fields with labels when page re-rendering

    Hi Gurus,
    Please help me to hide the fields with labels when page is re-rendered.
    I have written a on load : before process also.
    But it is not working
    Thanks in advance
    kavitha L

    Hi jari and Bruce,
    Thanks for your reply. I am sorry that, i am not clear
    I have a javascript like
    function showcase()
       var ctry = document.getElementById('P3_CHANNEL').value;
       if(ctry == 'Affiliate') {
        $x_Hide('P3_PUBLLICATION');
        $x_Hide('P3_PUBLLICATION_label');
        $x_Hide('P3_CIRCULATION');
        $x_Hide('P3_CIRCULATION_label');
        $x_Hide('P3_MEDIA_CPM');
        $x_Hide('P3_MEDIA_CPM_label');
        $x_Hide('P3_RATE_CARD');
        $x_Hide('P3_RATE_CARD_label');
        $x_Hide('P3_DISCOUNT');
        $x_Hide('P3_DISCOUNT_label');
        $x_Hide('P3_CTYPE');
        $x_Hide('P3_CTYPE_label');
        $x_Hide('P3_DAREA');
        $x_Hide('P3_DAREA_label');
        $x_Hide('P3_CREATIVE');
        $x_Hide('P3_CREATIVE_label');
        $x_Hide('P3_COLOR_TONE');
        $x_Hide('P3_COLOR_TONE_label');
        $x_Hide('P3_SIZE');
        $x_Hide('P3_SIZE_label');
        $x_Hide('P3_POSITION');
        $x_Hide('P3_POSITION_label');
       html_HideItemRow('P3_ISSUE_DT');
    else if(ctry == 'Direct Mail')
        { $x_Show('P3_PUBLLICATION');
        $x_Show('P3_PUBLLICATION_label');
        $x_Show('P3_CIRCULATION');
        $x_Show('P3_CIRCULATION_label');
        $x_Show('P3_MEDIA_CPM');
        $x_Show('P3_MEDIA_CPM_label');
        $x_Show('P3_RATE_CARD');
        $x_Show('P3_RATE_CARD_label');
        $x_Show('P3_DISCOUNT');
        $x_Show('P3_DISCOUNT_label');
        $x_Show('P3_CTYPE');
        $x_Show('P3_CTYPE_label');
        $x_Show('P3_DAREA');
        $x_Show('P3_DAREA_label');
        $x_Show('P3_CREATIVE');
        $x_Show('P3_CREATIVE_label');
        $x_Show('P3_COLOR_TONE');
        $x_Show('P3_COLOR_TONE_label');
        $x_Show('P3_SIZE');
        $x_Show('P3_SIZE_label');
        $x_Hide('P3_POSITION');
        $x_Hide('P3_POSITION_label');
       html_HideItemRow('P3_ISSUE_DT');
    else if(ctry == 'E-Mail')
        { $x_Show('P3_PUBLLICATION');
        $x_Show('P3_PUBLLICATION_label');
        $x_Show('P3_CIRCULATION');
        $x_Show('P3_CIRCULATION_label');
        $x_Show('P3_MEDIA_CPM');
        $x_Show('P3_MEDIA_CPM_label');
        $x_Show('P3_RATE_CARD');
        $x_Show('P3_RATE_CARD_label');
        $x_Show('P3_DISCOUNT');
        $x_Show('P3_DISCOUNT_label');
        $x_Show('P3_CTYPE');
        $x_Show('P3_CTYPE_label');
        $x_Show('P3_DAREA');
        $x_Show('P3_DAREA_label');
        $x_Show('P3_CREATIVE');
        $x_Show('P3_CREATIVE_label');
        $x_Show('P3_COLOR_TONE');
        $x_Show('P3_COLOR_TONE_label');
        $x_Hide('P3_SIZE');
        $x_Hide('P3_SIZE_label');
        $x_Hide('P3_POSITION');
        $x_Hide('P3_POSITION_label');
       html_HideItemRow('P3_ISSUE_DT');
    else if((ctry == 'Online') || (ctry == 'PPC'))
        { $x_Show('P3_PUBLLICATION');
        $x_Show('P3_PUBLLICATION_label');
        $x_Show('P3_CIRCULATION');
        $x_Show('P3_CIRCULATION_label');
        $x_Show('P3_MEDIA_CPM');
        $x_Show('P3_MEDIA_CPM_label');
        $x_Show('P3_RATE_CARD');
        $x_Show('P3_RATE_CARD_label');
        $x_Show('P3_DISCOUNT');
        $x_Show('P3_DISCOUNT_label');
        $x_Hide('P3_CTYPE');
        $x_Hide('P3_CTYPE_label');
        $x_Hide('P3_DAREA');
        $x_Hide('P3_DAREA_label');
        $x_Hide('P3_CREATIVE');
        $x_Hide('P3_CREATIVE_label');
        $x_Hide('P3_COLOR_TONE');
        $x_Hide('P3_COLOR_TONE_label');
        $x_Hide('P3_SIZE');
        $x_Hide('P3_SIZE_label');
        $x_Hide('P3_POSITION');
        $x_Hide('P3_POSITION_label');
       html_HideItemRow('P3_ISSUE_DT');
    else if(ctry == 'Outdoor')
        { $x_Show('P3_PUBLLICATION');
        $x_Show('P3_PUBLLICATION_label');
        $x_Show('P3_CIRCULATION');
        $x_Show('P3_CIRCULATION_label');
        $x_Show('P3_MEDIA_CPM');
        $x_Show('P3_MEDIA_CPM_label');
        $x_Show('P3_RATE_CARD');
        $x_Show('P3_RATE_CARD_label');
        $x_Show('P3_DISCOUNT');
        $x_Show('P3_DISCOUNT_label');
        $x_Hide('P3_CTYPE');
        $x_Hide('P3_CTYPE_label');
        $x_Show('P3_DAREA');
        $x_Show('P3_DAREA_label');
        $x_Show('P3_CREATIVE');
        $x_Show('P3_CREATIVE_label');
        $x_Hide('P3_COLOR_TONE');
        $x_Hide('P3_COLOR_TONE_label');
        $x_Hide('P3_SIZE');
        $x_Hide('P3_SIZE_label');
        $x_Hide('P3_POSITION');
        $x_Hide('P3_POSITION_label');
       html_HideItemRow('P3_ISSUE_DT');
    else if(ctry == 'PR')
        { $x_Show('P3_PUBLLICATION');
        $x_Show('P3_PUBLLICATION_label');
        $x_Show('P3_CIRCULATION');
        $x_Show('P3_CIRCULATION_label');
        $x_Show('P3_MEDIA_CPM');
        $x_Show('P3_MEDIA_CPM_label');
        $x_Show('P3_RATE_CARD');
        $x_Show('P3_RATE_CARD_label');
        $x_Show('P3_DISCOUNT');
        $x_Show('P3_DISCOUNT_label');
        $x_Hide('P3_CTYPE');
        $x_Hide('P3_CTYPE_label');
        $x_Show('P3_DAREA');
        $x_Show('P3_DAREA_label');
        $x_Hide('P3_CREATIVE');
        $x_Hide('P3_CREATIVE_label');
        $x_Hide('P3_COLOR_TONE');
        $x_Hide('P3_COLOR_TONE_label');
        $x_Hide('P3_SIZE');
        $x_Hide('P3_SIZE_label');
        $x_Hide('P3_POSITION');
        $x_Hide('P3_POSITION_label');
       html_HideItemRow('P3_ISSUE_DT');
    else if(ctry == 'Radio')
        { $x_Show('P3_PUBLLICATION');
        $x_Show('P3_PUBLLICATION_label');
        $x_Show('P3_CIRCULATION');
        $x_Show('P3_CIRCULATION_label');
        $x_Show('P3_MEDIA_CPM');
        $x_Show('P3_MEDIA_CPM_label');
        $x_Show('P3_RATE_CARD');
        $x_Show('P3_RATE_CARD_label');
        $x_Show('P3_DISCOUNT');
        $x_Show('P3_DISCOUNT_label');
        $x_Show('P3_CTYPE');
        $x_Show('P3_CTYPE_label');
        $x_Show('P3_DAREA');
        $x_Show('P3_DAREA_label');
        $x_Hide('P3_CREATIVE');
        $x_Hide('P3_CREATIVE_label');
        $x_Hide('P3_COLOR_TONE');
        $x_Hide('P3_COLOR_TONE_label');
        $x_Show('P3_SIZE');
        $x_Show('P3_SIZE_label');
        $x_Hide('P3_POSITION');
        $x_Hide('P3_POSITION_label');
       html_HideItemRow('P3_ISSUE_DT');
    else if(ctry == 'TV')
        { $x_Show('P3_PUBLLICATION');
        $x_Show('P3_PUBLLICATION_label');
        $x_Show('P3_CIRCULATION');
        $x_Show('P3_CIRCULATION_label');
        $x_Show('P3_MEDIA_CPM');
        $x_Show('P3_MEDIA_CPM_label');
        $x_Show('P3_RATE_CARD');
        $x_Show('P3_RATE_CARD_label');
        $x_Show('P3_DISCOUNT');
        $x_Show('P3_DISCOUNT_label');
        $x_Show('P3_CTYPE');
        $x_Show('P3_CTYPE_label');
        $x_Show('P3_DAREA');
        $x_Show('P3_DAREA_label');
        $x_Show('P3_CREATIVE');
        $x_Show('P3_CREATIVE_label');
        $x_Hide('P3_COLOR_TONE');
        $x_Hide('P3_COLOR_TONE_label');
        $x_Show('P3_SIZE');
        $x_Show('P3_SIZE_label');
        $x_Hide('P3_POSITION');
        $x_Hide('P3_POSITION_label');
       html_HideItemRow('P3_ISSUE_DT');
    else if(ctry == 'A')
        { $x_Show('P3_POSITION');
        $x_Show('P3_POSITION_label');
       $x_Show('P3_PUBLLICATION');
        $x_Show('P3_PUBLLICATION_label');
        $x_Show('P3_CIRCULATION');
        $x_Show('P3_CIRCULATION_label');
        $x_Show('P3_MEDIA_CPM');
        $x_Show('P3_MEDIA_CPM_label');
        $x_Show('P3_RATE_CARD');
        $x_Show('P3_RATE_CARD_label');
        $x_Show('P3_DISCOUNT');
        $x_Show('P3_DISCOUNT_label');
        $x_Show('P3_CTYPE');
        $x_Show('P3_CTYPE_label');
        $x_Show('P3_DAREA');
        $x_Show('P3_DAREA_label');
        $x_Show('P3_CREATIVE');
        $x_Show('P3_CREATIVE_label');
        $x_Show('P3_COLOR_TONE');
        $x_Show('P3_COLOR_TONE_label');
        $x_Show('P3_SIZE');
        $x_Show('P3_SIZE_label');
        html_ShowItemRow('P3_ISSUE_DT');
      else if(ctry == 'Print')
       $x_Show('P3_POSITION');
        $x_Show('P3_POSITION_label');
       $x_Show('P3_PUBLLICATION');
        $x_Show('P3_PUBLLICATION_label');
        $x_Show('P3_CIRCULATION');
        $x_Show('P3_CIRCULATION_label');
        $x_Show('P3_MEDIA_CPM');
        $x_Show('P3_MEDIA_CPM_label');
        $x_Show('P3_RATE_CARD');
        $x_Show('P3_RATE_CARD_label');
        $x_Show('P3_DISCOUNT');
        $x_Show('P3_DISCOUNT_label');
        $x_Show('P3_CTYPE');
        $x_Show('P3_CTYPE_label');
        $x_Show('P3_DAREA');
        $x_Show('P3_DAREA_label');
        $x_Show('P3_CREATIVE');
        $x_Show('P3_CREATIVE_label');
        $x_Show('P3_COLOR_TONE');
        $x_Show('P3_COLOR_TONE_label');
        $x_Show('P3_SIZE');
        $x_Show('P3_SIZE_label');
        html_ShowItemRow('P3_ISSUE_DT');
       doSubmit('CREATE');
    function showcase12()
       var ctry = document.getElementById('P3_CHANNEL').value;
       if(ctry == 'Affiliate') {
        $x_Hide('P3_PUBLLICATION');
        $x_Hide('P3_PUBLLICATION_label');
        $x_Hide('P3_CIRCULATION');
        $x_Hide('P3_CIRCULATION_label');
        $x_Hide('P3_MEDIA_CPM');
        $x_Hide('P3_MEDIA_CPM_label');
        $x_Hide('P3_RATE_CARD');
        $x_Hide('P3_RATE_CARD_label');
        $x_Hide('P3_DISCOUNT');
        $x_Hide('P3_DISCOUNT_label');
        $x_Hide('P3_CTYPE');
        $x_Hide('P3_CTYPE_label');
        $x_Hide('P3_DAREA');
        $x_Hide('P3_DAREA_label');
        $x_Hide('P3_CREATIVE');
        $x_Hide('P3_CREATIVE_label');
        $x_Hide('P3_COLOR_TONE');
        $x_Hide('P3_COLOR_TONE_label');
        $x_Hide('P3_SIZE');
        $x_Hide('P3_SIZE_label');
        $x_Hide('P3_POSITION');
        $x_Hide('P3_POSITION_label');
       html_HideItemRow('P3_ISSUE_DT');
    else if(ctry == 'Direct Mail')
        { $x_Show('P3_PUBLLICATION');
        $x_Show('P3_PUBLLICATION_label');
        $x_Show('P3_CIRCULATION');
        $x_Show('P3_CIRCULATION_label');
        $x_Show('P3_MEDIA_CPM');
        $x_Show('P3_MEDIA_CPM_label');
        $x_Show('P3_RATE_CARD');
        $x_Show('P3_RATE_CARD_label');
        $x_Show('P3_DISCOUNT');
        $x_Show('P3_DISCOUNT_label');
        $x_Show('P3_CTYPE');
        $x_Show('P3_CTYPE_label');
        $x_Show('P3_DAREA');
        $x_Show('P3_DAREA_label');
        $x_Show('P3_CREATIVE');
        $x_Show('P3_CREATIVE_label');
        $x_Show('P3_COLOR_TONE');
        $x_Show('P3_COLOR_TONE_label');
        $x_Show('P3_SIZE');
        $x_Show('P3_SIZE_label');
        $x_Hide('P3_POSITION');
        $x_Hide('P3_POSITION_label');
       html_HideItemRow('P3_ISSUE_DT');
    else if(ctry == 'E-Mail')
        { $x_Show('P3_PUBLLICATION');
        $x_Show('P3_PUBLLICATION_label');
        $x_Show('P3_CIRCULATION');
        $x_Show('P3_CIRCULATION_label');
        $x_Show('P3_MEDIA_CPM');
        $x_Show('P3_MEDIA_CPM_label');
        $x_Show('P3_RATE_CARD');
        $x_Show('P3_RATE_CARD_label');
        $x_Show('P3_DISCOUNT');
        $x_Show('P3_DISCOUNT_label');
        $x_Show('P3_CTYPE');
        $x_Show('P3_CTYPE_label');
        $x_Show('P3_DAREA');
        $x_Show('P3_DAREA_label');
        $x_Show('P3_CREATIVE');
        $x_Show('P3_CREATIVE_label');
        $x_Show('P3_COLOR_TONE');
        $x_Show('P3_COLOR_TONE_label');
        $x_Hide('P3_SIZE');
        $x_Hide('P3_SIZE_label');
        $x_Hide('P3_POSITION');
        $x_Hide('P3_POSITION_label');
       html_HideItemRow('P3_ISSUE_DT');
    else if(ctry == 'Event')
        { $x_Show('P3_PUBLLICATION');
        $x_Show('P3_PUBLLICATION_label');
        $x_Show('P3_CIRCULATION');
        $x_Show('P3_CIRCULATION_label');
        $x_Show('P3_MEDIA_CPM');
        $x_Show('P3_MEDIA_CPM_label');
        $x_Show('P3_RATE_CARD');
        $x_Show('P3_RATE_CARD_label');
        $x_Show('P3_DISCOUNT');
        $x_Show('P3_DISCOUNT_label');
        $x_Show('P3_CTYPE');
        $x_Show('P3_CTYPE_label');
        $x_Show('P3_DAREA');
        $x_Show('P3_DAREA_label');
        $x_Hide('P3_CREATIVE');
        $x_Hide('P3_CREATIVE_label');
        $x_Hide('P3_COLOR_TONE');
        $x_Hide('P3_COLOR_TONE_label');
        $x_Hide('P3_SIZE');
        $x_Hide('P3_SIZE_label');
        $x_Hide('P3_POSITION');
        $x_Hide('P3_POSITION_label');
       html_HideItemRow('P3_ISSUE_DT');
    else if(ctry == 'Other')
        { $x_Show('P3_PUBLLICATION');
        $x_Show('P3_PUBLLICATION_label');
        $x_Show('P3_CIRCULATION');
        $x_Show('P3_CIRCULATION_label');
        $x_Show('P3_MEDIA_CPM');
        $x_Show('P3_MEDIA_CPM_label');
        $x_Show('P3_RATE_CARD');
        $x_Show('P3_RATE_CARD_label');
        $x_Show('P3_DISCOUNT');
        $x_Show('P3_DISCOUNT_label');
        $x_Show('P3_CTYPE');
        $x_Show('P3_CTYPE_label');
        $x_Show('P3_DAREA');
        $x_Show('P3_DAREA_label');
        $x_Show('P3_CREATIVE');
        $x_Show('P3_CREATIVE_label');
        $x_Hide('P3_COLOR_TONE');
        $x_Hide('P3_COLOR_TONE_label');
        $x_Hide('P3_SIZE');
        $x_Hide('P3_SIZE_label');
        $x_Hide('P3_POSITION');
        $x_Hide('P3_POSITION_label');
       html_HideItemRow('P3_ISSUE_DT'); 
    else if((ctry == 'Online') || (ctry == 'PPC'))
        { $x_Show('P3_PUBLLICATION');
        $x_Show('P3_PUBLLICATION_label');
        $x_Show('P3_CIRCULATION');
        $x_Show('P3_CIRCULATION_label');
        $x_Show('P3_MEDIA_CPM');
        $x_Show('P3_MEDIA_CPM_label');
        $x_Show('P3_RATE_CARD');
        $x_Show('P3_RATE_CARD_label');
        $x_Show('P3_DISCOUNT');
        $x_Show('P3_DISCOUNT_label');
        $x_Hide('P3_CTYPE');
        $x_Hide('P3_CTYPE_label');
        $x_Hide('P3_DAREA');
        $x_Hide('P3_DAREA_label');
        $x_Hide('P3_CREATIVE');
        $x_Hide('P3_CREATIVE_label');
        $x_Hide('P3_COLOR_TONE');
        $x_Hide('P3_COLOR_TONE_label');
        $x_Hide('P3_SIZE');
        $x_Hide('P3_SIZE_label');
        $x_Hide('P3_POSITION');
        $x_Hide('P3_POSITION_label');
       html_HideItemRow('P3_ISSUE_DT');
    else if(ctry == 'Outdoor')
        { $x_Show('P3_PUBLLICATION');
        $x_Show('P3_PUBLLICATION_label');
        $x_Show('P3_CIRCULATION');
        $x_Show('P3_CIRCULATION_label');
        $x_Show('P3_MEDIA_CPM');
        $x_Show('P3_MEDIA_CPM_label');
        $x_Show('P3_RATE_CARD');
        $x_Show('P3_RATE_CARD_label');
        $x_Show('P3_DISCOUNT');
        $x_Show('P3_DISCOUNT_label');
        $x_Hide('P3_CTYPE');
        $x_Hide('P3_CTYPE_label');
        $x_Show('P3_DAREA');
        $x_Show('P3_DAREA_label');
        $x_Show('P3_CREATIVE');
        $x_Show('P3_CREATIVE_label');
        $x_Hide('P3_COLOR_TONE');
        $x_Hide('P3_COLOR_TONE_label');
        $x_Hide('P3_SIZE');
        $x_Hide('P3_SIZE_label');
        $x_Hide('P3_POSITION');
        $x_Hide('P3_POSITION_label');
       html_HideItemRow('P3_ISSUE_DT');
    else if(ctry == 'PR')
        { $x_Show('P3_PUBLLICATION');
        $x_Show('P3_PUBLLICATION_label');
        $x_Show('P3_CIRCULATION');
        $x_Show('P3_CIRCULATION_label');
        $x_Show('P3_MEDIA_CPM');
        $x_Show('P3_MEDIA_CPM_label');
        $x_Show('P3_RATE_CARD');
        $x_Show('P3_RATE_CARD_label');
        $x_Show('P3_DISCOUNT');
        $x_Show('P3_DISCOUNT_label');
        $x_Hide('P3_CTYPE');
        $x_Hide('P3_CTYPE_label');
        $x_Show('P3_DAREA');
        $x_Show('P3_DAREA_label');
        $x_Hide('P3_CREATIVE');
        $x_Hide('P3_CREATIVE_label');
        $x_Hide('P3_COLOR_TONE');
        $x_Hide('P3_COLOR_TONE_label');
        $x_Hide('P3_SIZE');
        $x_Hide('P3_SIZE_label');
        $x_Hide('P3_POSITION');
        $x_Hide('P3_POSITION_label');
       html_HideItemRow('P3_ISSUE_DT');
    else if(ctry == 'Radio')
        { $x_Show('P3_PUBLLICATION');
        $x_Show('P3_PUBLLICATION_label');
        $x_Show('P3_CIRCULATION');
        $x_Show('P3_CIRCULATION_label');
        $x_Show('P3_MEDIA_CPM');
        $x_Show('P3_MEDIA_CPM_label');
        $x_Show('P3_RATE_CARD');
        $x_Show('P3_RATE_CARD_label');
        $x_Show('P3_DISCOUNT');
        $x_Show('P3_DISCOUNT_label');
        $x_Show('P3_CTYPE');
        $x_Show('P3_CTYPE_label');
        $x_Show('P3_DAREA');
        $x_Show('P3_DAREA_label');
        $x_Hide('P3_CREATIVE');
        $x_Hide('P3_CREATIVE_label');
        $x_Hide('P3_COLOR_TONE');
        $x_Hide('P3_COLOR_TONE_label');
        $x_Show('P3_SIZE');
        $x_Show('P3_SIZE_label');
        $x_Hide('P3_POSITION');
        $x_Hide('P3_POSITION_label');
       html_HideItemRow('P3_ISSUE_DT');
    else if(ctry == 'TV')
        { $x_Show('P3_PUBLLICATION');
        $x_Show('P3_PUBLLICATION_label');
        $x_Show('P3_CIRCULATION');
        $x_Show('P3_CIRCULATION_label');
        $x_Show('P3_MEDIA_CPM');
        $x_Show('P3_MEDIA_CPM_label');
        $x_Show('P3_RATE_CARD');
        $x_Show('P3_RATE_CARD_label');
        $x_Show('P3_DISCOUNT');
        $x_Show('P3_DISCOUNT_label');
        $x_Show('P3_CTYPE');
        $x_Show('P3_CTYPE_label');
        $x_Show('P3_DAREA');
        $x_Show('P3_DAREA_label');
        $x_Show('P3_CREATIVE');
        $x_Show('P3_CREATIVE_label');
        $x_Hide('P3_COLOR_TONE');
        $x_Hide('P3_COLOR_TONE_label');
        $x_Show('P3_SIZE');
        $x_Show('P3_SIZE_label');
        $x_Hide('P3_POSITION');
        $x_Hide('P3_POSITION_label');
       html_HideItemRow('P3_ISSUE_DT');
    else if(ctry == 'A')
        { $x_Show('P3_POSITION');
        $x_Show('P3_POSITION_label');
       $x_Show('P3_PUBLLICATION');
        $x_Show('P3_PUBLLICATION_label');
        $x_Show('P3_CIRCULATION');
        $x_Show('P3_CIRCULATION_label');
        $x_Show('P3_MEDIA_CPM');
        $x_Show('P3_MEDIA_CPM_label');
        $x_Show('P3_RATE_CARD');
        $x_Show('P3_RATE_CARD_label');
        $x_Show('P3_DISCOUNT');
        $x_Show('P3_DISCOUNT_label');
        $x_Show('P3_CTYPE');
        $x_Show('P3_CTYPE_label');
        $x_Show('P3_DAREA');
        $x_Show('P3_DAREA_label');
        $x_Show('P3_CREATIVE');
        $x_Show('P3_CREATIVE_label');
        $x_Show('P3_COLOR_TONE');
        $x_Show('P3_COLOR_TONE_label');
        $x_Show('P3_SIZE');
        $x_Show('P3_SIZE_label');
        html_ShowItemRow('P3_ISSUE_DT');
      else if(ctry == 'Print')
       $x_Show('P3_POSITION');
        $x_Show('P3_POSITION_label');
       $x_Show('P3_PUBLLICATION');
        $x_Show('P3_PUBLLICATION_label');
        $x_Show('P3_CIRCULATION');
        $x_Show('P3_CIRCULATION_label');
        $x_Show('P3_MEDIA_CPM');
        $x_Show('P3_MEDIA_CPM_label');
        $x_Show('P3_RATE_CARD');
        $x_Show('P3_RATE_CARD_label');
        $x_Show('P3_DISCOUNT');
        $x_Show('P3_DISCOUNT_label');
        $x_Show('P3_CTYPE');
        $x_Show('P3_CTYPE_label');
        $x_Show('P3_DAREA');
        $x_Show('P3_DAREA_label');
        $x_Show('P3_CREATIVE');
        $x_Show('P3_CREATIVE_label');
        $x_Show('P3_COLOR_TONE');
        $x_Show('P3_COLOR_TONE_label');
        $x_Show('P3_SIZE');
        $x_Show('P3_SIZE_label');
        html_ShowItemRow('P3_ISSUE_DT');
    }This script i am calling on, onchange() for the select list item P3_CHANNEL and it is working fine.
    But i have a create button and cancel button.
    After filling the details in the required columns, when i click the create button, if any validation errors are there.. the page is re-rendered. while doing that the hidden items are getting displayed back.
    Tried Solutions:
    1. I created a same function once more and in the last added the doSubmit('CREATE') and called the script from the create button.
    At that time the hidden fields labels are getting displayed.
    2. I created a process On load before header To call this script on a condition :REQUEST = 'CREATE'
    Then also fruitless..
    I hope now it is clear....
    Please! Any suggestion are mostly appreciated.
    Thanks in advance
    Kavitha L

  • Duplicate content of region fields in the region and keep some fields

    duplicate content of region fields in the region and keep some fields displayed in this region and some not.
    Our customer wants to duplicate the content of the region fields and 3 fields of this region (one of them is the key from the table ) have to be shown empty and have to be recreated when he does the next commit. The other 25 fields have to be filled with the content before. (I have to do a commit before I show the region again without these three fields)
    What I did:
    When I have a botton with request CHANGE then APEX does the change without emptying the fields. I tried to make processes on this request which should empty my three fields, but the processes never fire (I see it in the debug and I don't know why, I putted them on every process point for testing)
    The second try:
    On my button with request CHANGE , I filled the 'set these items ' with my three fields and the 'with these items' with 2 commas ,, to set these items null.
    I do no claer cache, but APEX empties the hole region.
    Can you help me??
    Thanks Uta

    Hi Uta,
    OK - This is what I did:
    1 - Page 15
    On the EMPNO column, I have a link to page 18. I set P18_EMPNO to #EMPNO#. I assume that you already have this functionality to link from the report page to the form page. There are no changes required to this page.
    2 - Page 18
    I have created a hidden field called "P18_EMPNO_COPY". There are no special settings for this item - I've just put it at the bottom of the region containing all of the other items
    I have created a button called "P18_COPY". This has a Conditional Display set with a Condition Type of Value of Item in Expression 1 IS NOT NULL and Expression 1 of P18_EMPNO. This has an Option URL Redirect set for it with the following settings:
    Target is a - Page
    Page - 18
    Set These Items - P18_EMPNO,P18_EMPNO_COPY
    With These Values - ,&P18_EMPNO.
    I have created a Process to run "On Load - After Header". The PL/SQL code for this is:
    DECLARE
    emp_rec EMP%ROWTYPE;
    BEGIN
    SELECT * INTO emp_rec FROM EMP WHERE EMPNO = :P18_EMPNO_COPY;
    :P18_EMPNO := NULL;
    :P18_JOB := emp_rec.JOB;
    :P18_MGR := emp_rec.MGR;
    :P18_SAL := emp_rec.SAL;
    :P18_DEPTNO := emp_rec.DEPTNO;
    END;
    This has a Conditional Processing Condition Type of "Value of Item in Expression 1 is NOT NULL" and Expression 1 shows P18_EMPNO_COPY
    Finally, for each field, I have added in a Default Value that points to itself (For example, the P18_JOB field has a Default Value of :P18_JOB) with a Default Value Type of PL/SQL Expression.
    Obviously you will need to replace the field and item names with those for your table and form.
    This process does the following:
    1 - The user clicks the link in the report on page 15. P18_EMPNO gets populated with the EMPNO value of the item select.
    2 - Page 18 is loaded with the data relating to the record with the ID found in P18_EMPNO
    3 - The Copy button is displayed only if P18_EMPNO contains a value
    4 - The user clicks the Copy button
    5 - The P18_EMPNO value is copied into P18_EMPNO_COPY and P18_EMPNO is blanked out
    6 - The page is submitted with these changes. When it reloads, the new process kicks in
    7 - This process will:
    (A) Create a variable based on the record structure for the EMP table
    (B) Fill this variable with the data in the table for the ID that's now in P18_EMPNO_COPY
    (C) Set the session state values for the fields that need to be repopulated with the data now retrieved into the variable
    (D) Clear the P18_EMPNO session state value
    8 - When the page starts to load the form, it will see that there is no P18_EMPNO value and, therefore, will not bring in any information from the table. However, as we have now set the Default Value settings for each field, this will force it to retrieve the values we've stored using the new process and display these values in the form.
    I think I've detailed everything - if this doesn't work, please let me know!
    Regards
    Andy

  • In ALV report.The user wants to hide specfic fields

    Hi
    In ALV report.The user wants to hide specfic fields  but the user must be able to add these fields to the report:
    can any one give the suggestions

    in reuse alv list display or grid
    i_save  = 'A'.
    now user can choose the layout.
    for hiding
    in fieldcat
    wfieldcat-No_out = 'X'.
    regards
    shiba dutta

  • How to add and hide more fields in PPM?

    Hello,
    Im new to this tool and I would like to know how to add and/or hide customized fields. I've only know that Its somewhere under SPRO > Global Enhancements to Project Elements but Im a little bit lost there. Can somebody explain to me with details how to do this and also, does this need a specific access of developer to do this customization?
    As this is a basic need for all, anybody that is new on the tool and search for this will have a good reference on this thread.
    Thanks in advance.
    Many regards!

    The path is SPRO > Global Enhancements to Project Elements > Setup field control.Herein,once you select the field control you may proceed towards defining the conditions that influence the same. A step by step approach is explained in the below article  that will aid you to change properties of custom fields.
    http://www.sdn.sap.com/irj/scn/index?rid=/library/uuid/3053cee2-4bca-2d10-38ae-efff39ad248e
    Regards,
    Pradeepkumar Haragoldavar

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

Maybe you are looking for

  • Imac g5 ALS will not boot from internal HD or portable drive or eject disc

    I cannot get my g5 ambient light sensor Imac to boot from the internal hard drive or a portable drive. I have tried multiple keystroke combinations (c + power on, option + power on, and others) upon startup and all get the same response: the computer

  • 5800 no sound from right side in headphones

    I've tried changing headphones and made sure the right option is selected in the menu that comes when you plug in the headphones but I can hear sound only from the left side. It applies to both music player and radio. This is a brand new phone. Solve

  • HT4854 Can I copy the downloaded file to another computer to avoid the 4gigs re-download?

    I'm downloading ML and it takes A LOT to download the 4gb install files, can I just copy the downloaded files into my other computer so I can avoid re-downloading it?

  • RDS PowerShell CMDLETS Issues

    I am working on some deployment scripts that will automatically add a Session Host to a new or existing collection at deployment. I am experiencing some inconsistency when it comes to the PowerShell CMDLETS for RDS.  For instance: The CMDLET Get-RDSe

  • CS4: Reusable compositions / objects?

    I may be overlooking something terribly obvious, certainly wouldn't be the first time... As someone with a software development background, I tend to think in terms of building a library of objects and reusing them across projects. For example, I'm w