How to Hide the column in the model layer

Hi,
My Jdeveloper version is 11.1.1.3.0.
We can make an attribute visible / invisble by setting Display Hints value in the Control hints tab.
I want to display the column conditionally.
Is it possible to do it dynamically in Model Level itself by Display Hints Property?
Reg,
Vini

Fedor,
Now also i am getting the same output.
My requirement is i have to create the viewobject as it is in BaseVO and to hide some of the columns dynamically.
In Appmod level iam doing this:
String baseVo = (new StringBuilder("sample.model.")).append(baseVoName).toString();
ViewDefImpl newView = new ViewDefImpl(ViewDefImpl.DEF_SCOPE_SESSION, "DynamicVO", baseVo );
newView.resolveDefObject();
newView.registerDefObject();
ViewObject internalDynamicVO = findViewObject("DynamicVO");
if (internalDynamicVO != null)
internalDynamicVO.remove();
getTransaction().rollback();
createViewObjectForDef("DynamicVO", newView);
ViewObject VO = findViewObject("DynamicVO");
AttributeDefImpl de = ((AttributeDefImpl) VO.findAttributeDef("FirstName"));
de.setProperty(AttributeHints.ATTRIBUTE_DISPLAY_HINT, AttributeHintsImpl.ATTRIBUTE_DISPLAY_HINT_HIDE);
//de.setProperty(de.getUIHelper().ATTRIBUTE_DISPLAY_HINT, de.getUIHelper().ATTRIBUTE_DISPLAY_HINT_HIDE);
return "DynamicVO";
and in JSPX:
<af:table rows="#{bindings.DynamicVO.rangeSize}"
fetchSize="#{bindings.DynamicVO.rangeSize}"
emptyText="#{bindings.DynamicVO.viewable ? 'No data to display.' : 'Access Denied.'}"
var="row" rowBandingInterval="0"
value="#{bindings.DynamicVO.collectionModel}"
selectedRowKeys="#{bindings.DynamicVO.collectionModel.selectedRow}"
selectionListener="#{bindings.DynamicVO.collectionModel.makeCurrent}"
rowSelection="single" id="t1">
<af:forEach items="#{bindings.DynamicVOIterator.attributeDefs}" var="def">
<af:column headerText="#{def.name}" sortable="true"
rendered="#{bindings[def.name].hints[def.name].displayHint!='Hide'}"
sortProperty="#{def.name}" id="c1">
<af:outputText value="#{row[def.name]}" id="ot1"/>
</af:column>
</af:forEach>
</af:table>
and in Pagedef:
<executables>
<variableIterator id="variables"/>
<iterator Binds="DynamicVO" DataControl="AppModuleDataControl"
id="DynamicVOIterator"/>
</executables>
<bindings>
<tree IterBinding="DynamicVOIterator" id="DynamicVO">
<nodeDefinition Name="Dummy"></nodeDefinition>
</tree>
</bindings>
but iam not getting the entire columns to be hidden.
EmpoyeeID FirstName Lastname
100 King
101 Kochhar
i firstname column to be hidden.
Reg
vini

Similar Messages

  • How to hide/show columns in the tabular form

    Hi friends,
    I have a tabular form in my apex page. In the tabular form i have a check box as a one column, if i click that check box means, two more columns has to come or enable in my tabular form if i uncheck that check box means, two column has to disappear.
    How to achieve this in the tabular form.
    If it is an page item means, i can able to achieve it using DA. But for the tabular form which is like a report how i can able to achieve it friends.
    Thanks
    Brgds,
    Mini

    Hi,
    Anyone, can help me with this scenario.
    Brgds,
    Mini

  • How to hide the columns at the end user level thru personalization

    Hi all
    how I can hide the columns that are displayed on the portal. Any personalize option for the end user? Any righ click or some thing?
    I am looking at hiding columns not while developing the iViews / Pages, But in the browsers as the end user.
    i can hide the columns what ever i want while creating the iViews for MDM data. but we cant provide the content administrator role to the end user for hiding the columns what ever they want. they want to hide the columns thru pesonalization option at the end user level.
    Can you please let me know whether we can able to hide the columns at the end user level thru personalization ?? is it posible with standard iViews??
    Regards
    Sunil

    Hi Sunil,
    I understood your requirement properly and seems valid and I tried this at my end but i didnt get the solution. Field list is not visible in Personalize option. I dont think it is possible with MDM standard iViews.
    I was thinking an alternative is if some how we manage to give the permissions to end user only on Result Set iView but if it would be possible it will not be a good design.
    Lets wait for some inputs from others.
    Regards,
    Jitesh Talreja

  • How to delete a column from the table control in module pool?

    Hi,
      can any one please tell How to delete a column from the table control in module pool?
    thanks in advance
    warm regards
    HareeshKumar N

    hi hareesh,
    I think it is better to hide it.
    How to hide: You can check this link
    Dynamic Hide column in table control

  • I just bought a MacBook Pro, and need to d/l my photos from my memory card reader.  iphoto keeps coming up as the app to use, but the column on the left says "No name, and shows 0 photos on the black screen.  How do I view the photos on the reader?

    I just bought a MacBook Pro, and need to d/l my photos from my memory card reader.  iphoto keeps coming up as the app to use, but the column on the left says "No name, and shows 0 photos on the black screen.  How do I view the photos on the reader?

    Did it...  When I clicked on "No name", a file folder came up and, I forgot to put MacBook Pro in the name bar... That was it!  Maybe someone else can use this post Hopefully...

  • How to add one column to the standard t.code : CAT2.

    Hi,
    How to add one column to the standard t.code : CAT2.
    thanks

    Hi Chinna
    see the  enhancements by using SMOD <b>CATS0007</b> , or <b>CATS0012</b> and create a project using CMOD and you can implement your requirement.
    Hope This Info Helps YOU.
    <i>Reward Points If It Helps YOU.</i>
    Regards,
    Raghav

  • How to hide Saved Searches in the header area of web ui

    Hi All,
    My Query Is how to hide Saved Searches in the header area of web ui.
    For This is there any configuration or we have do through the code.
    Thanks & Regards,
    Venkat

    Another approach:
    Open view CRM_WORKAREAHDR/WorkAreaHeader and change the configuration. There is a button in the bar named "Attributes" (probably hidden under MORE).
    Once in there in edit mode substitute the content of attribute "UI_COMPONENT_3". It should be
    Window=CRM_ALLSEARCHES.CRM_ALLSEARCHES/LauncherWindow;horizontalAlignment=right;
    put there a
    Width=0px;
    The other way using business role is fine as well.
    cheers Carsten

  • How to display the total at the end of the column in the report.

    Hi all,
    Could any one please intimate, how to display the total at the end of the column. For example, i have a column, "sales" as the Key figure, and it has the data for all the transactions. Now, i would like to display the total at the end of the report, below the same column.
    Similarly, for all the other columns in the report, i need to display the total for all the columns in the report.
    Thanks & Regards,
    A.V.N.Rao

    Hi All,
    Thanks for many suggestions. I tried by providing the "Total" under "Calculate Results as" and also "Counter for all detailed values" under "Calcuate Single Values as", in the  "Calculations" tab of the key figure, but i am unable to get the information. Again, i am providing the requirement below:
    CHAR - A   CHAR - B   TIME CH. - 1 KF -1  KF- 2 KF - 3
    1                     RAM        2012           1         50      50
    2                     SAM         2012          2         100    200
    Result                                               3           150   250
    Assume KF -1 as  "Qty." KF-2  as "Price" KF-3 as "Sales".
    Please intimate the solution.
    Thanks & Regards,
    A.V.N.Rao.

  • How to Organize the columns in the dynamic internal table?

    Hello Folks!
    How to Organize the columns in the dynamic internal table? i tried passing the parameter COL_POS to the fieldcatalog, Which is not working.

    Organize in What order ? What is your way to output ?
    If you use ALV, you need to create fresh FIELD CATALOG for your dynamic table and then assign the column position.
    Regards,
    Diwakar

  • The column on the far left that showed my iPhone setup and options is missing. How do I get it back.

    I Had to reinstall iTunes. Now the column on the far left that showed my iPhone, setups, options and the like is missing. How do I turn it back on?

    With the current version of iTunes the left-hand sidebar that you could get to show has been removed. Now when a device is connected you should get a device icon towards the top left of the iTunes screen next to the content type icons - click on that and you should get a list of categories down the left-hand side for the phone, one set selecting and syncing content from your computer's iTunes, and then a second set for showing what is currently on the phone.
    Does that device icon show ?

  • How to hide some functions in the menu bar of flash paper

    Do anyone know how to hide some functions in the menu bar of
    flash paper? As I want to show a swf file(converted from pdf) on
    the website without printing function. How can I do it?
    Also, if possible, can anyone know how to hide all functions
    on the menu bar except the logo of flash paper?
    Thank you very much, it is very urgent.

    Here is an article about how to integrate flashPaper into
    Director. It has most of the functions that can be executed on
    flashPaper. Maybe it will help?
    http://www.adobe.com/devnet/director/articles/flashpaper_in_director.html
    and here is all his code
    http://www.mediamacros.com/item/item-1006687373/
    Note: it is for 1.01, but works with 2.0

  • How can I reorder the columns in the Files panel in Dreamweaver CC 2014.1?

    I just upgraded to Dreamweaver CC 2014.1, and I want to change the order of the columns in the Files panel. But I can't figure out how to do this. Can anyone help?
    Thanks,
    Kim

    <I want to change the order of the columns in the Files panel>
    You can change the sorting order by file name (ascending or descending), size, type, or date modified by clicking those labels on top of Files Panel.
    Nancy O.

  • How to hide page number in the table of content

    Hi,
    I'd like to know how to hide page number in the ToC. They show automatically, but at least for the headings of third ad fourth order I'd like to suppress/omit them.
    Thanks for any advice!

    You have in the Inpspector > Document tab > TOC > uncheck button for #'s

  • How can i reorder the columns in the do not display section of the interactive report.

    Hi,
    My interactive report contains 185 columns, and the user requieres to build his customized reports with some columns, but the he gets lost between this amount of columns, this would be easier if the columns in the do not display section of the interactive report would be sorted automaticaly, Is this possible?
    Thanks a lot,

    Hi Eva,
    One solution would be to order the column names alphabetically. You can create a JavaScript dynamic action to handle the sorting.
    The shuttle of the IR attribute "Select Columns" have the ID's "apexir_SHUTTLE_LEFT" or the Hidden colums and "apexir_SHUTTLE_RIGHT" for the displayed columns.
    The function you'd need to create would look like:
    var options = $('select#apexir_SHUTTLE_LEFT option');
    var arr = options.map(function(_, o) { return { t: $(o).text(), v: o.value }; }).get();
    arr.sort(function(o1, o2) { return o1.t > o2.t ? 1 : o1.t < o2.t ? -1 : 0; });
    options.each(function(i, o) {
      o.value = arr[i].v;
      $(o).text(arr[i].t);
    var options = $('select#apexir_SHUTTLE_RIGHT option');
    var arr = options.map(function(_, o) { return { t: $(o).text(), v: o.value }; }).get();
    arr.sort(function(o1, o2) { return o1.t > o2.t ? 1 : o1.t < o2.t ? -1 : 0; });
    options.each(function(i, o) {
      o.value = arr[i].v;
      $(o).text(arr[i].t);
    You'd need to find the propper timing for the dynamic action to run, I guess click of the button "Select Columns" would do the trick.
    Regards,
    Vincent
    http://vincentdeelen.blogspot.com

  • How to hide Actions Column in Table

    Hi All,
    I have a simple requirement: I am showing a table (items)
    - the "Actions" column (Column with Buttons to Edit and Delete a particualr row) must not be show -> no changes to the table are allowed (I need to hide/ disable this column)
    How can I hide this column od the table?
    I have found out that the field is called thtmlb_oca and that htere is a getter method get-thtmlb_oca. However, the method does not contain coding and I do not know how to HIDE this field/ column...
    Please help me here..
    Thanks, Johannes

    Hi Johannes,
    To remove the column completely,
    you need to comment this line in the method GET_TABLE_LINE_SAMPLE of the Table View Context node class.
    TYPES: BEGIN OF line,
    *  thtmlb_oca  type  crm_thtmlb_one_click_action.
      INCLUDE TYPE xxxx.
      TYPES:  END OF line.
    Disabling can be controlled in the method GET_OCA_T_TABLE of the same class by putting code to delete the button.
    LOOP AT  rt_actions ASSIGNING <fs_actions>.
          <fs_actions>-active  = abap_false.
        ENDLOOP.
    Regards,
    Masood Imrani S.

  • How to hide a column from document set?

    I have a document set in which i want to hide one of the columns, how do i proceed? is there any out-of-the-box features available? I want to show the column in main library view but not in document set. Any suggestions would be appreciated.
    Thanks
    Ramanjulu Naidu N

    You can hide the column in the content type to stop it showing in forms.
    Or you can go into Document Set settings (via the library settings page) to stop it being displayed on the Document Set homepage. 
    Does this cover the hiding you wanted to do?
    w: http://www.the-north.com/sharepoint | t: @JMcAllisterCH | YouTube: http://www.youtube.com/user/JamieMcAllisterMVP

Maybe you are looking for

  • Installing Windows 7 on Bootcamp Error

    I've been trying to install Windows 7 via Bootcamp and I keep getting this error "The disk cannot be partitioned because some files cannot be moved. Back up the disk and use Disk Utility to format it as a single Mac OS Extended (Journaled) volume. Re

  • My Photoshop elements 11 stopped working app store purchase

    I purchased photoshop 11 from the app store and it has stopped working. It crashes during load. (See the code below). I have tried uninstalling and reinstaling. And it did not fix the issue. I found a few others having the same problem with app store

  • How does one print to enterprise Windows print services in Yosemite? CUPS 2.0 problem?

    One of my co-workers upgraded to Yosemite yesterday and it broke his ability to print to our corporate printing services (which are built around a Windows print server). Obviously, the printer discovery in the System Preferences can't find the Window

  • General questions concerning gaming in (arch)linux

    Hi, I've searched the forums, and I found a lot of howto's that sometimes worked, and sometimes didn't. I'm not a gamer, but have been a longtime linux-user. I have talked a lot of people into using linux, and almost all of them are happy with there

  • Oracle 9iAS admin interface layout

    To all: I know I can created a portal the way I wanted but is it possible to change the layout of Oracle portal admin interface as well. For example, to use different color on the banner or use of our customized icons. Thanks