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

Similar Messages

  • 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 a field in the maintenance view (URGENT) ???

    I have created a custom table with following fields:-
    MANDT (mandatory)
    KOKRS (mandatory)
    KHINR (mandatory)
    KHINRNAME
    KOSTL (mandatory)
    KOSTLKHINR
    I have a requirement that i should get a pop-up to fill the value of KOKRS but user should not be able to see its value in the maintenance view.
    I have given the maintenance attribute 'S' to KOKRS field so that pop-up should be there , now please advice on how to prevent KOKRS field to be shown in the maintenance view.

    in SE51 try to change the attributes of the field in the screen. Either visible length to be 0 or check and see if any other attribute would be of help.

  • How to hide a field of the maintenance view?

    I want to show not all fields of my table in maintenance view. How to realize it?

    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 the field in sm31 table view

    experts pls help....

    Hi Gopal,
    If you are working with a maintenance view object, use the Attributes and mark the field as Hidden. Re-generate maintenance dialog afterwards.
    If you are working with a table object, then you can simply remove the field from the generated table control. Also remember to remove the field from the FIELD - CHAIN statement in the PAI.
    But, in such a case, remember that you should manually maintain some coding on the screen, to fill up/read/change the value of your hidden field programmatically.
    Best Regards,
    Rekha

  • 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 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 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 a list from SharePoint tree view pro grammatically.

    Hi,
    I have enabled tree view for a SharePoint 2013 site pro grammatically. 
    I want hide some specific lists from that tree view like Documents, Workflow, Task List, Calender
    Lists which are created default when we create a site.
    How could i do that?

    I know how to hide Quick launch and Enable Tree view with properties in C#.
    My question is 
    hide some specific lists from that tree view like Documents,
    Workflow, Task List, Calender
    Lists which are created default when we create a site.

  • How to Hide some Rows in a List view Web Part using JavaScript ?

    How to Hide some Rows in a List view Web Part using JavaScript ?

     Here is the code that worked for me:
    var Elements = document.querySelectorAll('div[id=WebPartWPQ3] table[class=ms-listviewtable]>tbody tr .ms-vb-lastCell.ms-cellstyle.ms-vb2')
    for(var i=0, n = Elements.length; i < n; i++)
     if(Elements[i].innerHTML=="India")
    Elements[i].parentNode.setAttribute("style","display:none")
    WebPartWPQ3 -> ID of webpart Div
    ms-listviewtable -> class name of table in Div
    ms-vb-lastCell.ms-cellstyle.ms-vb2 -> classname of td to get text

  • How to hide selection fields when using logical database PNP

    hi.
    i m using a logical database PNP and report catagory 1PY_DEF in my program.
    but when i execute it , it shows to selection box. one name is period and second is selections.
    but i just want to show only period box selection fields , not the selection box fields.
    how it iz possible.

    HI,
    In my case i haved used the PNP logical database..in the selection box i don't wnat to display Contorling area,Cost Center & Organizational Unit. i have written this code to hide those fields..
    AT SELECTION-SCREEN OUTPUT.
      LOOP AT SCREEN.
        IF screen-name CS 'PNPKOKRS' OR
           screen-name CS 'PNPKOSTL' OR
           screen-name CS 'PNPORGEH'.
          screen-active = '0'.
          screen-invisible = '1'.
          MODIFY SCREEN.
          CLEAR screen.
        ENDIF.
      ENDLOOP.
    Try modify hide the total block instead of individual fields in that block.

  • How to hide Incoterms field in CRM Internet Sales/E-Commerce 5.0

    Good morning !
            I´m customizing the Web/java part of the CRM E-Commerce 5.0(Internet Sales), and I need to hide the field Incoterms, that is visible in the Order screen, inside the Additional Order Data.
    Looking at the page order.jsp(that is the page of the Order screen), I saw that the Incoterms are visible when the method showIncoterms() from class BasketUI returns true, and, seeking for this method, I was found that it belong to class SalesDocumentUI and, at this class, this method returns true when both the methods isBackendR3() and isSoldToChangeable(), returns false.
            The E-Commerce, is connected to CRM, so, the method isBackendR3() will return false, so, I need to found what I need to do to the method isSoldToChangeable() returns false too. Looking in it´s definition, I found that it´s result is get from the method isSoldToSelectable() from the class Shop.
            I think that the method isSoldToSelectable(), will return true or false depending on some parametrization of the CRM, or the webshop, but I´m not finding what the parameter I need to set.
            Done somebody already this ?
            Thank you in advance !
            Wilson

    Good Morning !
            I solved this changing the code in the JSP responsible to show the incoterms fields.
            Best regards,
            Wilson

  • How to hide two fields in SharePoint list when a dropdown value selected?

    Hi all,
    I have a SharePoint list which have four columns 1 Title 2.Type (Dropdown: option1:Issues Option2:Risk) 3.Risk Name and 4.Risk type. If 'type' value is 'Issues' then I need to hide field 3 and 4. In other words, default value in dropdown should be 'Issue'
    and want to hide field 3 and 4 are onload without using InfoPath.
    How to achieve this? Thanks in advance!

    You can make use of jquery for the same. Add script editor webpart on the page and access the dropdown value and based on the value you get, show or hide the fields. Below are some pointers.
    http://sachinvkatkar.blogspot.in/2013/02/hide-fields-from-sharepoint-newform.html
    http://social.msdn.microsoft.com/Forums/sharepoint/en-US/50aa6f8d-f742-4400-82f3-7949ab1c215e/need-help-manipulating-form-fieldsrows-using-jquery?forum=sharepointdevelopmentprevious#802d9d4d-c19b-4752-a4fb-e38f40f50c51
    http://social.technet.microsoft.com/wiki/contents/articles/21730.sharepoint-2010-conditionally-hide-fields-on-standard-list-forms-using-jquery.aspx
    http://sharepointnadeem.blogspot.in/2013/09/sharepoint-showhide-list-column-based.html
    Geetanjali Arora | My blogs |

  • How to "Hide signature field validity icon when signature is valid" in Acrobat 6 Standard?

    I know how to "hide the signature field validity icon" in Acrobat 8 Pro, but just can't seem to find where to do it in Acrobat 6 Standard.
    Thanks for any help!
         .....Sean

    Hi Sean,
    That functionality didn't exist in version 6. I got to tell you though that version 6 is way past its end-of-life and you really should be using a newer version.
    Steve

Maybe you are looking for

  • Sales Analysis for a certain period

    Hello Experts, In standard Sales Analysis Report, when we run report for a certain period for "Customers" and when we run the report with same parameters for "Items" it gives different results. Can anybody please guide me, why these results are diffe

  • How to identify the Selected row number or Index in the growing Table

    Hi, How to find the selected Row number or Row Index of growing  Table using Javascript or Formcalc in Interactive Adobe forms Thanks & Regards Srikanth

  • Macbook won't recognize password!!

    I have a Linksys Wireless-G broadband router model no. WRT54G. It has connected the main PC with another PC, but I recently got a macbook laptop, and it will not connect. It found the signal, but will not recognize my router password. Does anyone kno

  • Using AUTHID = CURRENT_USER and Apex

    I'm new to Apex and am just assessing if we can make use of it, mainly for reporting functionality in our existing web based application. We have a schema that holds all of our procedures, packages, functions etc and they all have AUTHID = CURRENT_US

  • Some of the data for same records is going on to the next page in excel??

    Hello, I designed a template in word with page setup orientation to Landscape, to get the Excel report output. Later when i preview the same in Excel with the Landscape page setup..the print preview is showing me with some of the data going out of th