Conditionally hide and show the fields

Hi,
I want to make fields conditionally rendered true or rendered false on page load.
Karthik

Hi,
803955 wrote:
I want to make fields conditionally rendered true or rendered false on page load.public void processRequest(OAPageContext oapagecontext, OAWebBean oawebbean)
super.processRequest(oapagecontext, oawebbean);
---Get the webBean of the items and set rebdered property true or false
OAMessageStyledTextBean NameBean = (OAMessageStyledTextBean)oawebbean.findChildRecursive("nameId");
if("Value".equls(Value))
NameBean .setRendered(true);
else
NameBean .setRendered(false);
Regards
Meher Irk

Similar Messages

  • Is there a way to hide and show the whole 3D viewer with javascript?

    I'm trying to set up a pdf so that the person who's reading it can use a button to switch between a picture of the product and a 3D model of the same. The idea is that the two ways of illustrating the product can be in the same space, so that there's still room to put enough text on the front page. I have spent about three hours trying to figure this out.
    Even if I hide the model withtin the 3D viewer and make the background transparent, the 3D viewer is still there, intercepting mouse clicks and showing the toolbar.
    I've tried modfiying the Annot3D, by moving it off the page, because the javascript reference says that the "rect" property of Annot3D can be written, but the viewer just stays in the same location.
    Is there any way to get the whole thing to go away with one button click and come back with another?
    Thank you for your help and patience,
    Daniel,
    PS - In the past I've placed product drawings and pictures in the same place by putting them on separate layers, but I can't figure out how to get the 3D display attached to a layer.

    One way you could get the same effect is to use separate pages. Disable the mouse scroll for switching pages and instead use buttons to go from one page to the other.  The user will get the impression that the annotation has appeared and disappeared.
    Another hack is to use the product information as the icon on the annotation, so just disable it when you want to show the product information and make sure it lines up with an overlay of surrounding product information.

  • Hide and show text field

    Hi I have created text field as hire date: which is database column.
    I would like to show the hiredate if the empno exists in database otherwise do not show.
    How can i show the hiredate only when the empno is exists in the database.
    Please help to fix.
    THanks,

    I Have created display only text item. It is working when emplno is not null. but i would like to have the format MM/DD/YYYY. Where should i give this default format. currently it is displaying as 10- MAY-11.
    I have given format in the format mask as MM/DD/YYYY at the hiredate field.
    It is giving following errror messgae ORA-01858: a non-numeric character was found where a numeric was expected
    Unable to process row of table emp
    Apex 4.0

  • Conditionally Hide and Show a column in a template based on a column data

    Hi ,
    We have an RTF template for Oracle iExpense Report. We have two types of Expense type . Business and Non-Business.
    We need to conditionally enable Host Country and Merchant Name if the Expense Type is Non- Business and hide the two columns if the type is Business in a single RTF template.
    Can anyone help on this? We have a close deadline for SIT. Please find below the sample layout for your understanding
    For Business type,
    Name
    Expense Type
    Amount
    For Non -Business,
    Name
    Expense Type
    Host Country
    Merchant Name
    Amount
    Please help me.. I am new to Oracle Applications and XML Reports.
    Thanks
    Abhilash

    Hi Kavipriya,
    You just made my day! thanks a lot will try and come back to here if there are any issues on this
    Regards,
    Abhilash

  • Dock "automatic hide and show" broken

    Folks:
    This morning I noticed the "automatic hide and show" of the Dock is broken. No matter how long I put the mouse pointer in the area of the Dock, it doesn't pop up.
    There are only two ways I can access the dock now. One is to set the Dock size sufficiently big (about 40% or more seems enough) and it simply stays visible all the time. Another, if the Dock size is set lower than 40%, is to keep the Dock preference box open and manually toggle "Automatically hide and show the Dock" checkbox.
    Hmmm, I see right now that the Dock is hidden, but the name of an application is displayed just above the bottom edge of the screen. This app is launched, but I've not used it at all this morning. Yep, show the Dock, the name is in the "right" place, but it should not be visible at all.
    I tried re-starting the Finder. No difference.
    I just updated to 10.4x recently, and applied the latest updates as they became available (Friday, I think), so it is hard to tell what to point a finger at...
    OK, I'm going to restart and see if that helps... but shouldn't have to do this. Something got broken recently.
    Henry
    P.S. the OS pulldown doesn't show 10.4.8 so I can't use that to tell you I'm running 10.4.8.

    Repair Disk Permissions" from Disk Utility may help you.
    Also, you can create a new user account and check things there.
    Last, you can trash Dock preference file from your home directory:
    ~/Library/Preferences/com.apple.Dock.plist
    Mihalis.

  • With a PDF Dynamic form using show/hide actions, how to ensure that when the completed form is saved, closed and re-opened, the form still show the fields as before it was closed?

    With a PDF Dynamic form using show/hide actions, how to ensure that when the completed form is saved, closed and re-opened, the form still show the fields as before it was closed?
    I have developed a form with fields hidden by default, that become visible based on box ticked or radio button selections.
    My problem is that, when I close the form and re-open it, it comes back to it's default presentation, regardless of the information already recorded in the form (including in the now hidden fields.
    How to correct that
    Thanks in advance for any hint you can provide.

    I've had the same problem. This solved it...
    Go to the "Form properties..." in the File-menu. Select "Run-time" to the left and in the box "Scripting" Preserve scripting changes to form when saved: choose Automatically (Script-based state changes are saved locally in an insecure fashion. This option cannot be used for certified forms).
    Hope it works for you to...

  • The recent upgrade for i-tunes prevents me from adding and using the Field, "Show". How can I add this field in i-tunes?

    The recent upgrade for i-tunes prevents me from adding and using the Field, "Show". How can I add this field in i-tunes?

    Hold down shift as you right-click > Get Info to get the old style dialog box.
    tt2

  • Hide or show the Artist and Album columns Command +B not working -itunes 11

    Command +B 
    Shortcut
    Hide or show the Artist and Album columns  is not working no respond..-itunes 11  my desktop working but not my laptop MBA.
    why is that?
    anyone help me?

    oh ok.. itunes 11.0.1 update fixed this issue  ... !!

  • Hide and Show question.

    I have application with button which I would like to show only when status is "Draft".
    I have created created condition for the button where Value Exoression 1 = Expression 2
    Where expression 1 is P9_X_STATUS
    and expression 2 is Draft.
    Button is still hidden.
    Just to let you know that if I place button below status field, my hide and show condition works.
    Any idea?
    Robert

    I have set the default value to "Draft" when page is first opened.
    and I have Condition set for it : Exists (SQL query returns at least one row)
    SELECT 1
    FROM DUAL
    WHERE :P9_X_STATUS = 'Draft' or :P9_X_STATUS = '' or :P9_X_STATUS = null
    I don't understand why this button is shown when I move field below it (button).
    What is the rule for showing and hiding elements on the form?
    Regards
    Robert

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

  • Next Button in a Hide and Show Region is not displayed correctly

    I created a new button at the bottom of the region in a Hide and Show Region called [Next >]. The button is displayed to the right of the region. I want it displayed at the right end of the bottom of the region. The following is the button properties
    Name
    Button Name : NEXT_SIGNS
    Text Label/Alt: Next >
    Displayed
    Sequence            130
    Display in Region: Signs and Nameplates (1) 100
    Button Position:    Bottom of Region
    Button Alignment: Right
    Attributes
    Static ID:          
    Button Style:      Template Based Button
    Button Template: PA Button
    Button Type:       Hot
    Button Attributes:
    Action When Button Clicked
    Action:                 Submit Page
    Execute Validation: Yes
    Database Action:    No Database Action
    Conditions
    None
    Security
    None
    Configuration
    NoneWhy is this occurring and how can I resolve the issue?
    The following is the template of the hide and show region:
    <div class="hide-show-region" id="#REGION_STATIC_ID#" #REGION_ATTRIBUTES#>
      <div class="hide-show-top">
        <div class="hide-show-title">
    <div class="rounded-corner-region">
    <div class="rc-blue-top">      
    <div class="rc-blue-top-r">
              #TITLE#</div>
    </div>
    </div>
           <a style="margin-left:5px;" href="javascript:hideShow('region#REGION_SEQUENCE_ID#','shIMG#REGION_SEQUENCE_ID#','#IMAGE_PREFIX#themes/theme_2/rollup_plus_dgray.gif','#IMAGE_PREFIX#themes/theme_2/rollup_minus_dgray.gif');" class="t1HideandShowRegionLink"><img src="#IMAGE_PREFIX#themes/theme_2/rollup_plus_dgray.gif"
      id="shIMG#REGION_SEQUENCE_ID#" alt="" />Click on arrow to enter/hide  information for signs and/or nameplates</a></div>
        <div class="hide-show-buttons">#CLOSE##PREVIOUS##NEXT##DELETE##EDIT##CHANGE##CREATE##CREATE2##EXPAND##COPY##HELP#</div>
      </div>
      <div class="hide" id="region#REGION_SEQUENCE_ID#">#BODY#</div>
    </div>APEX version 4.1
    DB version 10g Rel 2
    PLEASE HELP!!
    Robert
    http://apexjscss.blogspot.com

    I created a new button at the bottom of the region in a Hide and Show Region called [Next >]. The button is displayed to the right of the region.I only see it displayed to the right of the region in Firefox (Safari and IE8 showed it above the sub-regions). Not obvious to me why this is the case (it's usually IE that does it's own thing).
    I want it displayed at the right end of the bottom of the region.Button position Bottom of Region causes an anonymous HTML table containing the button(s) to be generated after the <tt>#BODY#</tt> placeholder in the region template. Your Hide/Show region template didn't have a <tt>#SUB_REGIONS#</tt> placeholder so by default the sub-regions were rendered after the <tt>#BODY#</tt> and the "Bottom of Region" button container (don't know if this is the intended behaviour or a bug). Adding <tt>#SUB_REGIONS#</tt> before <tt>#BODY#</tt> in the template gets things in the right order (button after sub-regions):
    <div class="hide-show-region" id="#REGION_STATIC_ID#" #REGION_ATTRIBUTES#>
      <div class="hide-show-top">
        <div class="hide-show-title">
    <div class="rounded-corner-region">
    <div class="rc-blue-top">      
    <div class="rc-blue-top-r">
              #TITLE#</div>
    </div>
    </div>
           <a style="margin-left:5px;" href="javascript:hideShow('region#REGION_SEQUENCE_ID#','shIMG#REGION_SEQUENCE_ID#','#IMAGE_PREFIX#themes/theme_2/rollup_plus_dgray.gif','#IMAGE_PREFIX#themes/theme_2/rollup_minus_dgray.gif');" class="t1HideandShowRegionLink"><img src="#IMAGE_PREFIX#themes/theme_2/rollup_plus_dgray.gif"
      id="shIMG#REGION_SEQUENCE_ID#" alt="" />Click on arrow to enter/hide  information for signs and/or nameplates</a></div>
        <div class="hide-show-buttons">#CLOSE##PREVIOUS##NEXT##DELETE##EDIT##CHANGE##CREATE##CREATE2##EXPAND##COPY##HELP#</div>
      </div>
      <div class="hide" id="region#REGION_SEQUENCE_ID#">
        #SUB_REGIONS#
        #BODY#
      </div>
    </div>Firefox is still showing the button to the right of the sub-regions. I'm assuming that this has something to do with everything in this theme being floated left (for reasons that escape me), so we'll try to clear the button container using CSS. The table doesn't have an ID or class so try an adjacent sibling selector using the ID of the preceding sub-region:
    #nameplates-name+table {
      clear: both;
    }Finally, the button alignment was set to "Left", so I changed it to "Right".
    Seems to be working in IE8 (all I have access to at present).
    Edited by: fac586 on 30-Nov-2012 20:10
    Fixed CSS selector syntax.

  • Urgent to group and show the folder metadata base on profile in UCM

    Hi All,
    My requirement is I have to group and show the folder metadata for folder creation, updating and information based on profile.
    Suppose If I want to create, update and information a HR folder that time I have to show only HR metadata
    If I want to create, update and information a FINANCE folder that time I have to show only FINANCE metadata
    If I want to create, update and information a standard folder that time I have to show only standard metadata
    Example
    Someone accessing a ‘standard’ folder would not see the HR group of metadata fields; instead they should just see the ‘standard’ profile metadata fields for said folder. Conversely, when someone is accessing a ‘HR’ folder, they should see the ‘HR document’ metadata profile for that folder.
    Please help me is there any way which can I approach this by through configuration.
    Thanks in advace
    Kishore.
    Edited by: kishore on Jul 25, 2011 1:44 AM
    Edited by: kishore on Jul 25, 2011 10:22 PM

    I checked the standard behaviour. When I create few profiles I am able to choose the profile I want while creating a new folder (there is an option Switch Profile).
    Therefore, the only thing that remains is auto-select the profile you want to use. Note that profiles by default are selected by the Trigger Field (configured in Configuration Manager). This means you need to combine requirements you have for your folders and for your content items. This can be quite challenging. However, you can also 'Use rule activation condition', which is assigned to rules contained in the profile. There, you can work with any metadata and other system variables (like checkin vs. search defined in dpAction - see this link for further details: Value of dpAction
    In your case, you could use folder name, or create a surrogate metadata field containing list of values and use it.

  • How to capture PLSQL package error and show the same in OAF Page.?

    Hi all,
    I am having the requirement to capture the error from a PL/SQL package and show the error in OAF page with meaning full error.
    Assume i am having the create and review page.
    The create page having the employeeLOV input field (non mandatory field).
    (i have the package which will check whether this LOV value is filled or not.. if not given then the user should be able to see a "understandable message.)
    to achieve the above scenario am following the below steps
    In my CO,
    with in try catch i called the am method which will invoke the XX_CUSTOM_PKG.
    so, from the catch it is giving me the message as shown below.
    try
    ((OAApplicationModule)localObject1).invokeMethod("insertData", personParam);--which will call the am method which in turn call the package.
    catch(Exception exception)
    throw new OAException("Review Error: "+ exception);
    Assume there are 2 possiblity of error inside this package one for Date field and another one for Employee field. we don't know which validation the user will encounter.
    For Employee field validation it is giving messag as below
    Review Error: oracle.apps.fnd.framework.OAException: Exception in insertData:java.sql.SQLException: ORA-20500: Employee field is required. ORA-06512: at "APPS.CUSTOM_UTIL_PKG", line 702 ORA-06512: at line 1
    for Date field as below.
    Review Error: oracle.apps.fnd.framework.OAException: Exception in insertData:java.sql.SQLException: ORA-20500: Date field should always greater than sysdate. ORA-06512: at "APPS.CUSTOM_UTIL_PKG", line 702 ORA-06512: at line 1
    But i need to display only the message "Employee field is required" or "Date field should always greater than sysdate" in the screen.. as information.
    Could you please help me to achive the above message? any sample code will be great help for me.
    Thanks,
    Thiru.
    Edited by: thiru_apps on Mar 13, 2012 11:13 AM

    try
    ((OAApplicationModule)localObject1).invokeMethod("insertData", personParam);--which will call the am method which in turn call the package.
    catch(Exception exception)
    //throw new OAException("Review Error: "+ exception);
    /*Try this code*/
    String exception = null;
    exception = exception.toString();
    if(exception.contains("Employee")){
    throw new OAException("Employee field is required");
    else if(exception.contains("Date")){
    throw new OAException("Date field should always greater than sysdate");
    else
    throw new OAException(exception.toString());
    I hope this might help
    Niranjana

  • In the iDVD window, there is a box in the lower left corner.  When I scroll over it, I get the message to hide or show the intro movie.  Checking or unchecking the box seems to do nothing.  Can anyone explain?

    Working with iDVD on a project, there is a box in the lower left corner and sometimes another in the lower right corner.  Scrolling over the one in the lower left corner, I get a message indicating that this box hides or shows the intro movie.  I have checked and unchecked the box, but see nothing different in the project.  Nor can I figure out what is meant by "intro movie."  Can anyone explain?

    Go to iDVD Help and type in Intro Movie, and you will get the full version of this:
    Many iDVD themes have “motion menus” that include animations or video that loop, or play repeatedly, until the viewer clicks a menu button. Themes with motion menus have a motion icon in the lower-right corner.
    In addition to background video, iDVD motion menus may also feature an intro, or short animation, that plays once before the part that loops. Other motion menus also include an “outro” that plays after the viewer clicks a button, serving as a transition between the menu and the selected content.
    An example of an iDVD 6.0 theme with an intro and an outro is Reflection White Main. In this theme, the first drop zones appear in the intro, and the buttons and title appear just before the looping part of the background video. In the outro, everything flies offscreen after the viewer clicks a button.
    iDVD provides tools for viewing these motion menus without going into preview mode, which is especially helpful when you are filling drop zones, and for turning the intro or outro off.
    Here are ways to view and edit the background movie:
    ◼ 
    Drag the diamond-shaped motion playhead along the scrubber bar (shown below), to view the background movie, stopping wherever you like.
    (If you don’t see the motion playhead in iDVD, choose View > Show Motion Playhead.)
    ◼ 
    Deselect the checkboxes at the left and right end of the scrubber bar if you don’t want to use the intro or outro, respectively, in your DVD menu.
    The scrubber bar shows the intro and outro as shaded areas at the beginning and end.
    You can also control the intro and outro from the Menu Info window. With your pointer over the menu (and with no buttons or text objects selected), press Command-I to open that window. Select or deselect the Intro and Outro checkboxes in the Background section of the window.
    NOTE: If you drag your own movie to a motion menu background, the outro is automatically removed. To customize the background and keep the outro, use a still image in the menu background instead of a movie.

  • Classic Report with Hide and Show Region Template does not show report

    Hello,
    I created a "No Template" region on a page with a Classic Report. When I change it to a "Hide and Show" region template, the report does not show up when I click to Show the region...is there an additional step i'm missing to make the report show up. Its a very simple query.
    Thanks in advance,
    John

    How about posting some relevant information like Apex version, RDBMS version, Theme you are using, etc.?
    Regards,

Maybe you are looking for