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

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 drilldown field from a OAF page.

    Hi,
    I have a requirement to hide few drilldown fields from one of the seeded OAF page. through personalization I am able to hide all the fields except the drilldown fields. Can anyone tell me why I cannot hide a drilldown field using personalization. Is there any other way to achieve it other then extending the controller.
    Thanks in advance.

    Let us know whether this forum solve your issue or not?
    Re: Hide About this page,Home,Logout,Preferences links
    Thanks, Avaneesh

  • How to summarize a field from main window at the bottom

    I've a requirement in sapscript which is driven by standard program RVADOR01 to print certain quotation details.There is a field called tax code(kbetr) which
    is required to be displayed for each line item .
    Now i've also to summarize these tax code at the bottom of the page in another window.Here is the scenario
    In MAIN window:
    kbetr
      1     for 1st line item
      1     for 2nd line item
      2     for 3rd line item
      1     for 4th line item
      3     for 5th line item
      2     for 6th line item
    It have to summerise above tax code in FOOTER window as:
    kbetr
      1
      2
      3

    Hi anutosh,
    1. First check out if summary variables
       are already available in the standard drive program or not.
    2. Further to this, the TEXT ELEMENTS
      for printing the summary should also be available.
    3. This all logic / sequence of printing
       is absolutely
       contained in the driver program.
    4. If its not there,
       then probably u will have to
       copy the driver program,
       and do some enhancements/modifictiions.
    5. I don't think, by simply manipulating
       the sapscript layout, we can achieve this directly.
    regards,
    amit m.

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

  • 0 down vote favorite share [fb] share [tw]        How to hide cut/copy/paste/Replace- menu on the UIWebView when it is being displayed over the keyboard.  Detail: I am having a HTML from, having text box, displayed using UIWebView. If user types in text b

    How to hide cut/copy/paste/Replace… menu on the UIWebView when it is being displayed over the keyboard.
    Detail: I am having a HTML from, having text box, displayed using UIWebView. If user types in text box it shows the keyboard. Now If user tap and hold on text box it shows a popup menu. Now while keyboard and pop up are being displayed user scrolls the view. At this time it shows pop up over the keyboard which I need to hide.
    I tried setMenuVisible of UIMenuController when popup rect and keyboard rect intersects each other on viewDidScroll but it didn't help me.
    Any clues will help a lot.
    Thanks.

    You are more likely to get an answer if you post programming problems to the Developer forum. This forum is intended for normal user level problems.

  • Hide/remove the fields from the time accounts table on the screen of approval leave request

    Hi,
    i want to remove or hide the fields from the following table .
    is there anybody who know how to do? help me pls!
    Thanks in advance

    it shoukd be done by coding only ie NWDI and no config is available http://scn.sap.com/thread/1752655

  • When i hide some fields from the Editform using javascript, what will happen to the fields that hve been hidden

    I am working on an EnterpriseWiki site collection, and when users edit the page properties as follow:-
    then will get all the fields inside the EnterpriseWiki content type as follow:-
    now i want to hide all the fields except the ; Title & Name, so i edit the EditForm and i add the following script:-
    <script>
    $('#formTbl tr').filter(function ()
    return !$(".ms-standardheader", this).text().match(/Name|Title/i);
    }).remove();
    </script>
    so currently when users edit the wiki page properties they can only edit the Name & Title, because the script hide the other fields.
    My question is what will happen to the other values such as the page content, assign to , etc that have been hidden.. I test this and seems that when editing the name and title the other values will not get effected which is what i need, but not sure how
    did SharePoint handle this, i was afraid that hiding the other columns will set their values as null or empty if the user save the editform with only the title and name inside it ? can anyone adivce on this ?

    Hi John,
    From your description, my understanding is that you are worried about the values of some fields
     will been saved as empty if you hide them in EditForm.
    If you hide some fields in EditForm, it means that you could not edit them. These fields’ values will not be changed after editing Title field or Name field. When you click Save button, they will be still the values before changing the Title field or Name
    field.
    Best Regards,
    Vincent Han
    TechNet Community Support
    Please remember to mark the replies as answers if they help, and unmark the answers if they provide no help. If you have feedback for TechNet Support, contact
    [email protected]
    i found this very critical issue with hiding the fields from the edit form, now i wrote the following script inside the edit form , to hide all the fields except the Name
    <script>
    $(document).ready(function(){
    $('#formTbl tr').filter(function () {
    return !$(".ms-standardheader", this).text().match(/Name/i); }).hide();
    $('#ctl00_ctl40_g_6c7d849e_da6b_4138_be9f_b99bde542065_ctl00_ctl02_ctl00_ctl04_c‌ ​tl00_WebPartMaintenancePageLink').hide(); });
    </script>"
    . and now if I submit the editform (which only contain the Name) all the html tables inside the wiki page content will be removed.

  • How to find table name for the fields from Standard Extractor in CRM system

    How to find table name of fields from the standard extractor in CRM system ?
    e.g. We use LBWE TCode in R/3 system to find table name for the field from Extractor VCSCL(e.g.).
    Likewise is there any way to find table name for the fields from Standard extractor like 0CRM_LEAD_I.

    Hi ,
    Please find the link below for understanding BW CRM analysis.
    http://help.sap.com/bp_biv135/html/bw.htm
    activate the CRM DSs by scenario:
    1) Activate the application component hierarchy (tcode RSA9). Changes made to the application component hierarchy in the CRM system can be transferred to the BW using the "Edit Application Component Hierarchy" (SBIW - Postprocessing of DataSources).
    SAP Note 434886 must be implemented in CRM 3.0 before the application component hierarchy is activated.
    2) Activate the Business Content DataSources (tcode RSA5).
    Select/enter the application component and choose Execute (F8).
    To compare the shipped and active versions, choose the 'Select Delta' pushbutton. If there is no active version of the DataSource, it is selected automatically.
    To activate the shipped version, choose the 'Transfer DataSources' pushbutton.
    3) Management of the versions of the BW-Adapter metadata (tcode BWA5). All DataSources are displayed that are managed by the BW Adapter.
    As in transaction RSA5 (Service API Metadata Activation), the 'Select Delta' function can be used to select the inactive DataSources or compare shipped and active versions.
    You can also go directly to the screen for maintaining DataSources that are managed by the BW Adapter.
    The 'Compare Version' function makes a detailed comparison of the shipped and active versions.
    All BW-Adapter metadata is considered when versions are compared:
    Header information (Table SMOXHEAD)
    Mapping information (Table SMOXRELP)
    Global selection conditions (Table SMOXGSEL)
    Attribute key fields (Table SMOXAFLD)
    Hope this helps.
    Regards,
    csm reddy

  • I have created numerous forms in Designer and for some reason, "Edit in Designer" from PDF, I cannot edit any of the fields in Design View.

    I have created numerous forms in Designer and for some reason, "Edit in Designer" from PDF, I cannot edit any of the fields in Design View.

    Is it possible you accidentally put the fields on the master page?

  • Hide the field from datasource 0EMPLOYEE_ATTR

    Hi Experts,
    I have a requirement. Even i search in forum but i couldn't find out...
    in data sourct 0EMPLOYEE_ATTR, i want to hide the field ANSAL(Annual Salary). This Data source is populated from the function module HR_BIW_GET_MASTER_DATA. We can hide that field in Extract structure, but i that is a temporary solution.
    For permanent solution, I made a structure without the field ANSAL, also i copy the Function module to a new FM. After that i changed the extract structure to my structure name in table parameters. Also i include E_T_DATA without any type.
    Now at the time of extraction, it gives an error that 'Errors occured during Extraction'.
    Can you please suggest me where i am going wrong and what i have to do??

    What are you doing with the new function module?
    What will you do with the standard datasource - I dont understand your destination?
    Is it not enough to remove the field from the datasource?
    -> what is nur problem: somebody can display this field in a datasource?
    -> the same person can also active the datasource 0employee_attr. So, you have no solution.
    Or you can create autorisation in BW for infoobjects.
    Sven

  • How to retrieve Task Lists from All Subsites to the Parent Site and display in Grid view using CAML Query

    How to retrieve Task Lists from All Subsites to the Parent Site and display in  Grid view using CAML Query + object model

    do u just want task list or items under task list for all subsites
    for items use spsitedataquery ref
    http://msdn.microsoft.com/en-us/library/microsoft.sharepoint.spsitedataquery.aspx use recursive to get it from alll subsite under site collection
    for tasklist only u can a simply use a for loop to find in all subsite
    Manish Sati

  • How to update address fields from a different view?

    Hello Everyone,
    I have created a context node(Model Attribute) of standard address fields using BuilAddress in a view that doesn't have it and successfully displayed them. This is contacts view where the original address of the contact is not available. Now our requirement is to update the standard address if needed from the contacts view itself. How can I do this?  The address fields are available for display only, even if I want to update them using code based on some condtions if not manual entry how can I achieve that?
    Did anyone ever use CRM_BP_UIU_SAVE Badi? I see no posts related to this in forum. Can anyone give me a sample code on what can be done in here and what data of BP is accessible in this BADI and how?
    Thanks,
    Sunil

    Hi Murali,
    Are you sure I can update the address fields using BAPI's from WEBUI? I have tried this already and the BAPI or Function just woudn't call, always return with error message.   I was thinking that BAPI's and Functions for updating just wouldn't work from WEBUI.
    To give you more details, I am in the BP_DATA/AccountContactEF view. I added the context node Address and brought in all the fields from BUILADDRESS structure, it generated the get, set methods for me. I want to update a couple of fields like telephone info, street, city etc. In this view I just redefined Create_Contact method and I tried to update the address using BUPA_ADDRESS_CHANGE for the contact person and it never works. I also tried BUPA_ADDRESS_REMOVE to delete and add the new address using BUPA_ADDRESS_ADD, but that wouldn't work either.
    So that is why I am exploring the option of using BADI, which I found out is very similar. I was able to access pretty much everything of BP data and Contact data. but there also the functions or Bapi's wont work.
    Let me know if you did anything similar. Also as you mentioned the GET_I method, Context node creation  Wizard generated it for me and I have the field editable, its just that when I save it , it wont save and the old values are read back and populated. Meaning if I have  'NY' for region and I change it to 'CA' , after save 'NY' comes back.
    Thanks for you help.
    Sunil

  • Comparing fields from multiple entities in the same report (report builder 1.0)

    Created a model that contains 2 entities. I open that model in report builder 1.0.  When I drag a field from one of the entities into the design area, i can no longer see the other entity or use any of the fields from that other entity. 
    I need to use fields from both entities in the same report (join tables).  In management studio i would simply write a query and join tables but i cannot figure out how to do this in report builder.  Once i select a field from one entity
    how do i select fields from more than one entity and drag them into the same report.

    Would it be possible for you to send me instructions for this? I am not that familiar with SQL coding but I can definitely figure it out. I have been wanting to get information on reports from multiple entities for a very long time! The only way I can
    currently do it is have our document management software people write the report for me for quite a large fee. I would much rather do this myself. Right now I can select a few fields from one entity (the main one), some from a second entity under that one,
    but I cannot add any fields from a third entity! Quite annoying and hindering! Thank you :)

  • Is it possible to retrieve the data from maintainance view?

    Hi experts,
    Am facing one problem.
    Is it possible to retrieve the data from Maintainance View ,If yes how?
    IF it is not possible then Y?
    While am trying to retrieve data from maintainance view it's showing message like
    "it is not a database view or table".
    Can u pls give me ans.
    Thanks&Regards,
    Arun.

    Hi Arun,
    It is not possible to retrieve the data from Maintenance view. Maintenance View is different and Database View is different.
    Maintenance view : Maintenance view permits you to maintain the data of an application object together.The data is automatically distributed in the underlying database tables.
    A standardized table maintenance transaction is provided (SM30), permitting you to maintain the data from the base tables of a maintenance view together.
    In other words, Maintenance views enable a business-oriented approach to looking at data, while at the same time, making it possible to maintain the data involved. Data from several tables can be summarized in a maintenance view and maintained collectively via this view. That is, the data is entered via the view and then distributed to the underlying tables by the system.
    Database View: Data about an application object is often distributed on several database tables. A database view provides an application-specific view on such distributed data.A database view is automatically created in the underlying database when it is activated.Database views implement an inner join.If the database view only contains a single table, the maintenance status can be used to determine if data records can also be inserted with the view. If the database view contains more than one table, you can only read the data.
    Database views should be created if want to select logically connected data from different tables simultaneously. Selection with a database view is generally faster than access to individual tables. When selecting with views, you should also ensure that there are suitable indexes on the tables contained in the view.
    Hope this helps.
    Please reward if useful.
    Thanks,
    Srinivasa

Maybe you are looking for