Dinamical changes on view layout

I created a new view context node.
I want to change visibility of  related fields  depending on user input.

Hi,
You need to create two configuration to achieve the same. Eg you created configuraton ZKEY <DEFAULT> <DEFAULT> <DEFAULT> and ZKEY <DEFAULT> <DEFAULT> <ZTA1>
suppose you want to change configuration based on field in btadminh. Then your code will be as follows:
You need to write this code in do_config_determination.
DATA:
    lv_val         TYPE              char2,
    lv_obj_typ      TYPE              bsp_dlc_object_type       VALUE '<DEFAULT>',
    lv_obj_subtyp   TYPE              BSP_DLC_OBJECT_SUB_TYPE   value '<DEFAULT>',
    lr_node        TYPE REF TO       if_bol_bo_property_access.
  CALL METHOD super->do_config_determination
    EXPORTING
      iv_first_time = abap_false.
  lr_node = typed_context->BTAdminH->collection_wrapper->get_current( ).
  CHECK lr_node IS BOUND.
  lr_node->get_property_as_value(
    EXPORTING
      iv_attr_name = 'Your attribute in BTAdminH'
    IMPORTING
      ev_result    = lv_val ).
  CASE lv_val .
    WHEN 'XYZ'.
      lv_obj_subtyp = 'ZTA1'.
    WHEN 'ABC'.
      lv_obj_subtyp = '<Default>'.
  ENDCASE.
  me->set_config_keys( iv_object_type          = lv_obj_typ
                       iv_object_sub_type      = lv_obj_subtyp
                       iv_propagate_2_children = abap_true ).
ENDMETHOD.

Similar Messages

  • How to change the default Layout Of the Error Page (to hide Home link)?

    How to change the default Layout Of the Error Page (to hide Home link)?
    If a user want to view some page that he/she don't have access to view it, a error page with this message will be displayed.
    "You do not have permission to perform this operation. (WWC-44131)"
    The error page, have in the Upper right page, Home link and Help link.
    My question is, How to Hide HOME link and HELP link in the Page?
    I try to find the template of the page, but failed to do that.
    Can anybody help?..it urgent.
    Thanks.

    Modifying the error page is not supported in the current release of Portal (9.0.2). You will be able to do this in the upcoming 9.0.2.6 release, planned for the end of May.
    Regards,
    Jerry
    PortalPM

  • Webdynpro abap view layout error: Object espected

    Hi guys,
    I'm facing a problem when trying to add a new element in the View Layout of a WebDynpro Component.
    I will try in the following to be more explicit about the problem.
    The technical configuration is following:
    Laptop::SAP GUI 710<---Home Network---> Server: SAP NetWeaver  7.0 ABAP Trial Version (Study System)
    On my laptop I'm successfully connecting with SAP-GUI to the Server.
    Then I open the SE80 transaction and create a new WebDynpro-Component. In this component I create a View.
    Now, in the View Layout, when I try to add a new element, off any kind, I receive the error: "Object expected", Code C and the URL form the message is referred to localhost:8000/sap/bc/the/path/to/the/page/preview/for/mandant000.( I think that is a Java Script error.)
    As result, in the layout, I kant see anything, allthogh in the ROOTUIELEMENTCONTAINER the added Element and his properties are showing up.
    When I copy/paste the URL from the Error Message Window to the Internet Exploder, but changing localhost with the ip of the server, the page shows the element from the view.
    I've tried to add on my laptop, in C:\WINDOWS\system32\drivers\etc\ hosts,lmhosts a name for the ip address of the server, but with no results. The port 8000 is fully opened, the server is running on a fresh installed OS without any other programs or firewalls. Telnet to servers ip port 8000 also works.
    Also I've tried with the Transaction SICF to look over some configuration directives but found nothing.
    Can any one help me solving this problem? I'm prety sure that I'm missing some config file or some configuration somewhere ....
    Many many thanks for any hint or help and I hope that I've describet well the problem.
    The_Thinker

    Hi,
    I've looked using the transaction you gave me and only 2 services are listed: the http and smtp, both using localhost as address.
    Using also the transaction st22, for error reporting, i have concluded that is about the icm service.
    Now, I have searched extensive on help.sap.com over the issue of setting up/configuring an icm service.
    My question/s:
    In order to be able to solve my problem, I have to configure a new icm service? or I need to configure  a new alias? or an external service?
    I'm a little confuse after all that reading on help.sap.com, witch, by the way, was very helpful for me in acquiring new informations.
    Many thanks for help.
    regards.

  • How to Change the View

    View will not reset to "actual size"; suggestions?

    When opening a PDF document it is zoomed at 173%, which is "Fit Width". I want them to open at 100% or Actual Size.  Every time I open a PDF I have to click on View, then Zoom, then click Actual Size. I have gone to Adobe Acrobat Professional and clicked on Edit, then Preferences, then under Default Layout & Zoom and changed from "automatic" to 100%, hit OK -- but nothing changed, even after a reboot, which is sometimes needed to hold changes. I work with PDFs quite a bit & it's just frustrating to have to keep changing the view. Thanks for any assistance you can provide.

  • How to change a folder layout set using KM api?

    Hello,
    I'm developing a program using KM api that creates different folders with properties, permissions, ... I want to use a different layout set depending on the folder that i am browsing, but these folders are created dinamically, so I cant set a different layouts set for each one manually (Details > Display > ...).
    Does anybody know how I could do it using KM api? I mean, that every time I create a folder using KM api I should assaing dinamically the default layout set for this folder. I searched in the api and examples and I didn't find anything.
    Thanks in advance and best regards,
    JC

    Hi all,
    Problem solved... I decompiled standard code and I did what SAP do when they want to change a folder layout set:
    IResourceContext context = ResourceFactory.getInstance().getServiceContext("cmadmin_service");
    com.sapportals.portal.security.usermanagement.IUser puser = context.getUser();
    ICollection collection = (ICollection)ResourceFactory.getInstance().getResource(RID.getRID("folder_path"),context);
    IRepositoryServiceFactory factory = ResourceFactory.getInstance().getServiceFactory();
    ILayoutService layoutService = (ILayoutService)factory.getRepositoryService(collection, "LayoutRepositoryService");
    ILayoutContext userContext = layoutService.getContextForUser(puser, "");
    ContextProperties commonProperties = new ContextProperties(layoutService, collection, userContext.getAnonymousContext(), layoutService.getProfiles(), new HashMap());
    commonProperties.initFromPersistence();
    commonProperties.setSelectedProfileID("LayoutSetProfile");
    commonProperties.setSelectedLayoutsetID("ID_of_my_layout_set");
    ArrayList errormsg = new ArrayList();
    commonProperties.save(null, errormsg, false);
    Thanks and regards,
    jc!

  • How do I turn the View Layout Message Pane default permanently to OFF?

    How do I change the default for View > Layout > Message Pane to OFF? I did have Thunderbird working that way, but recently my computer crashed and now I can't figure out how to make it work that way again.

    Press F8.

  • Please change the view in the top sites, the 6.1 upgrade has reverted back to a plane two dimensional view, which is a little plain. Can I revert back to an older version via my time capsule save?

    Please change the view in the top sites, the 6.1 upgrade has reverted back to a plain two-dimensional view, which is a little dated. Can I revert back to an older version via my time capsule save? C'mon Apple upgrades supposed to leap into the future not the past. :-(

    Please change the view in the top sites, the 6.1 upgrade has reverted back to a plain two-dimensional view, which is a little dated. Can I revert back to an older version via my time capsule save? C'mon Apple upgrades supposed to leap into the future not the past. :-(

  • Unable to move POWL Universal View/Layout  by Transport Request

    Hi Experts,
    We have SRM7.0 ....This is a extenstion/refence to below thread.
    Is SRM 7.0 POWL setting possible at Client or global level ?
    In Config Client 610 I created some Layout in the POWL_QUERY ..so that it will be accessable to all users... and give name "Global" ( 6 Char) to the layout or View in webbrowser..given there TR  ( Customization) Number..... and same name given in the GUI srceen POWL_QUERY  in field "Layout".
    Thne I moved ths  TR from 610 ( Config Client) to 612 ( DEV Client)......and executed report POWL_D01 for relevant APPL ID in 612...but this  created Universal View/Layout is not appareing in the SRM web browser... I saw some reports ...POWL_D08...but it does not exist in system.... I also executed report POWL_D08 in Config Client with TR and moved...but no use...
    http://wiki.sdn.sap.com/wiki/display/WDABAP/POWL
    ( I saw relevant report POWL_D08 - Delete Admin Layouts  on above link , but that is not exists in SRM system )
    Can any one please suggest me on this ?
    Thanks
    NAP
    Edited by: NarendraPatil on Dec 13, 2011 6:15 PM

    Solved

  • Viewing Layouts on Remote/Testing Server

    This is a beginner question.
    I'm trying to view Layouts and/or Content Holders on the Remote/Testing Server out of Dreamweaver so I can edit them independently, but I just get 404 messages.
    When I create a new page in BC, I am prompted for a Page Title which subsequently creates a Page URL and File name. The Page URL by default has no extension. The File Name has an extension.
    If I view that new page on the Remote Server I get a 404 message. If I edit the Page URL to include the File Name extension, I have no problem on the Remote Server.
    Now for example: In File Manager I have the following directory structures:
    http://www.MySite.com/_System/ContentHolders/layout.html
    http://www.MySite.com/Layouts/SystemMessages/SecureZoneAccessDenied-CA.html
    Why is it that I can't view these pages on the Remote Server?
    Is BC creating a default URL for these Layout pages that isn't the same as the file name it gives them? or no URL at all?
    Thanks,
    Cam

    Hey there. Those are not pages. They are system generated layouts and for content holders only render when the module issued for that content holderin a pager template.
    Ile extensionsyouseefor these are needed to work via FTP and understnd HTML formatting etc.
    Zone access denied is a system message and will render when you create a login and enter a incorrect password.
    Actual pages do not need agile extension.
    Loin into the admins floor around. Look and pages, system layouts and templates, apply templates to pages. get a feel of things there as well to help get abetted understanding.
    Also check out the links from the main page oftheseforums to theknowledgebaseto read through things as you need them.

  • Views for list web parts. Is there a way to allow users to change the view for a list web part without being redirected?

    Hi,
    I added a list view web part into a SharePoint 2013 page and it  is working as expected, except for one thing.
    I have enabled the option for the user to change the view for the web part. However when the user changes it, the user is redirected away from the page containing the web part, to the URL of the list itself.
    Is there a way to circumvent this issue so when the user selects a different view it updates the listing in the web part itself, rather than the user being redirected?
    Thanks in advance for the help.
    Regards,
    P.

    Hi,
    Please understand that one page can only display one view. You could find it out by observing the Address in browser when switching among different views for a list.
    If you would like to change the view of a list web part, you could go to web part propertites > Select view and configure it.
    In addition, here is a thread with similar requirement that might help:
    http://social.technet.microsoft.com/Forums/en-US/18dba190-5ee2-4b50-b005-1360d862f4ba/how-can-end-user-change-the-view-in-a-list-view-web-part?forum=sharepointgeneralprevious
    Regards,
    Rebecca Tu
    TechNet Community Support

  • How can I stop OSX from changing my keyboard layout

    I have an English system, a French AZERTY keyboard (I live in France), and I work in five languages. I have three keyboard layouts installed, including French, of course (I use French numeric).
    After a recent update, OSX suddenly started changing my input layout against my wishes. I have always set my preferences to use the same keyboard in all documents unless I manually change it - so please don't tell me about that feature, I know about it. It's not the problem.
    It seems to want to revert to the system language (English) rather than the keyboard layout I've specified. I tried changing my interface language to French, and guess what? It wanted me to have the French keyboard layout!
    If some Apple engineer decided we should automatically have the same keyboard layout as our system language - this is bad UX. Some of us touch type (and therefore are used to one keyboard layout) and need for it to stay put. Others use different layouts with different character sets (Arabic, Chinese, Hebrew, Cyrilic, etc.). Don't force me to have the "convenient" setting automatically with no override. If there is a way to get around this problem, please tell us. I've seen lots of complaints around about this phenomenon, but no solutions so far. Not from Apple, and not from anyone else, either.
    Thanks.

    Bookmark and use this;
    Download the '''[https://addons.mozilla.org/en-US/firefox/addon/searchreset/ Mozilla Search Reset]''' {web link}
    This add-on is very simple: on installation, it backs up
    and then resets your search preferences and home page
    to their default values, and then uninstalls itself. This
    affects the search bar, URL bar searches, and the home page.
    Sometimes a problem with Firefox may be a result of malware installed on your computer, that you may not be aware of.
    You can try these free programs to scan for malware, which work with your existing antivirus software:
    * [http://www.microsoft.com/security/scanner/default.aspx Microsoft Safety Scanner]
    * [http://www.malwarebytes.org/products/malwarebytes_free/ MalwareBytes' Anti-Malware]
    * [http://support.kaspersky.com/viruses/disinfection/5350 Anti-Rootkit Utility - TDSSKiller]
    * [http://general-changelog-team.fr/en/downloads/viewdownload/20-outils-de-xplode/2-adwcleaner AdwCleaner] (for more info, see this [http://www.bleepingcomputer.com/download/adwcleaner/ alternate AdwCleaner download page])
    * [http://www.surfright.nl/en/hitmanpro/ Hitman Pro]
    * [http://www.eset.com/us/online-scanner/ ESET Online Scanner]
    [http://windows.microsoft.com/MSE Microsoft Security Essentials] is a good permanent antivirus for Windows 7/Vista/XP if you don't already have one.
    Further information can be found in the [[Troubleshoot Firefox issues caused by malware]] article.
    Did this fix your problems? Please report back to us!

  • How to change the view criteria at run time for af:query

    Hi,
    I've a usecase where I need to change the view criteria of the af:query at run time.
    Use case:
    =======
    1) Consider a check box (Show Emps Under Dept 10) in the query panel when user selects and clicks 'Search' button should show the employees under dept 10. If user searches without selecting the check box, the results should show all the employees in all the departments.
    2) I need to have a check box always in the query panel. Its mandatory.
    The way I implemented:
    ==============
    1) Created a transient variable 'Show Emps Under Dept 10' in the EmployeeVO and also created a bind variable bind_DeptNo.
    2) Create a view criteria 'AllEmployees' which has only the transient attribute as the view criteria item and whose value set to 'false' by default.
    3) Created another view criteria 'EmpUnderDept' which has 'DepartmentId' as the view criteria item and whose value set to the bind variable 'bind_DeptNo'.
    4) Dropped the view criteria 'EmpUnderDept' as the 'af:query' panel in the jspx page.
    5) Overridden the queryListener as '#{EmpBean.empSearch}'
    6) Has the below code in the empSearch method as below. When user selects the check box, applying the other criteria 'EmpUnderDept' and setting the bind variable to '10'.
    public void empSearch(QueryEvent queryEvent) {
    // Add event code here...
    QueryDescriptor queryDesc = (QueryDescriptor) queryEvent.getDescriptor();
    ConjunctionCriterion conCrit = queryDesc.getConjunctionCriterion();
    List<Criterion> criterionList = conCrit.getCriterionList();
    List criterionValues = new ArrayList();
    Object criteriaValue = null;
    int criteriaNo = 0;
    DCBindingContainer bc = (DCBindingContainer)BindingContext.getCurrent().getCurrentBindingsEntry();
    FacesContext facesContext = FacesContext.getCurrentInstance();
    for (Criterion criterion : criterionList) {
    AttributeDescriptor attrDescriptor = ((AttributeCriterion)criterion).getAttribute();
    System.out.println("============== attrDescriptor.getName() =================== " + attrDescriptor.getName());
    criteriaValue = ((AttributeCriterion)criterion).getValues().get(0);
    if(criteriaNo==0) {
    Boolean val = (Boolean) ((AttributeCriterion)criterion).getValues().get(0);
    if (val.equals(true)) {
    OperationBinding method = (OperationBinding) ADFUtil.findOperation("ExecuteWithParams");
    if(method!=null) {
    Map params = method.getParamsMap();
    //params.put(key, value)
    method.getParamsMap().put("bind_DeptId", 10L);
    method.execute();
    ADFUtil.invokeMethodExpression( "#{bindings.EmpUnderDeptCriteiaQuery.processQuery}", queryEvent);
    } else {
    //ADFUtil.invokeEL("#{bindings.ExecuteWithParams.execute}");
    ADFUtil.invokeMethodExpression( "#{bindings.AllEmployeesCriteriaQuery.processQuery}", queryEvent);
    But this approach is not working and its always showing all the employees in all the departments.
    Please let me know if there is a way to change the view criteria at run time depending on the values set at run time for one of the view criteria items.
    JDev version am using is '11.1.1.5'
    Thanks,
    Lakshman

    Hi Shay,
    It worked for me without overriding the executeQuery() method in the ViewImpl.java.
    Instead of creating 2 view criteria, I created only one which has both transient variable and the DepartmentId = <bind_DeptId>. With the above code, it worked properly. Now I am using only one view criteria.
    Thank you.

  • Changing iCal Print Layout

    Hi
    When I print a calandar month, the month and year are top left on the paper so that when I hole-punch the page to stick in my filofax, the month has got a big hole in the middle.
    Is there a way of changing the print layout so that I can move the month a bit towards the centre ?
    Any suggestions very welcome. I hate it looking untidy !!

    I've been battling the lack of a "Page Setup..." menu in iCal for several hours, even after reading the fix above. Some of my conclusions and a tip:
    1. It seems that iCal 'gathers' the paper/printer info when it starts up. It is therefore a waste of time to set these dimensions while iCal is still running/open.
    2. Any app that allows access to the "Page Setup..." menu can be used to create/modify a custom/existing choice.
    3. It may be better to set up a 'custom' setting using "Any Printer" rather than any specific printer you may have.
    Perhaps the most important fact I discovered is that it is more important to set the paper dimensions than the actual margin numbers! iCal seems to prefer using a minimum margin setting regardless of what is defined in any "Page Setup..." item. But it will recognize and respect a slightly smaller page size and print within it. For example, my final success came when I re-defined the normal 8.5 x 11 inch paper as 8.25 x 10.75 inches! Just be sure to crate this as a custom, named setting so you can find and select it in iCal.
    BTW, I have not attempted other 'standard' paper sizes, just the 'full-size' version.
    Anyone have an idea why iCal ignore the GUI standards?! Or is simply another attempt at 'integrating' all apps; like using Safari to tell the OS to use another browser? What happened to Apple's 'user friendliness' mantra?

  • How can I batch change the view options of multiple playlists?

    I would like to select multiple playlists and batch change their view options; seems like an obvious feature that should be there, but it does not seem to be there. I know of Assimilate View Options v2.2 in Doug's AppleScripts, but this is not what I want, since AWO requires you to do the change playlist by playlist, i.e., not in batch mode (and I have hundreds of playlists ...). Any idea? Please answer privately at [email protected] since I do not read this forum regularly. Thanks in advance for your help!

    did you also check out the following script ?
    [_*Change Hidden iTunes Preferences v2.4*_|http://dougscripts.com/itunes/scripts/ss.php?sp=changehiddenprefs]
    This application will allow you to invoke hidden iTunes preferences:
    Show "Library" playlist
    *Changing view setting is global*
    Allow half-stars in ratings
    Hide "Ping" buttons
    Show/hide arrow links -- to either search the iTunes Store or search your library
    Load complete iTunes Store preview before playing
    Create playlists for purchased song collections
    Play songs while importing or converting
    Create file names with track number
    Maintain grid view for Search results
    Option-click zoom button for Mini Player
    Show buttons horizontally

  • Can you change the view of album covers when playing music on Apple TV?

    I love the coverflow view when playing tracks on my mac. Its what I always wanted to be able to see the album cover as large as the screen while the song plays.
    However on Apple Tv its "not quite" the same!
    I feel that the text is too big (taking up half the screen) and although the album cover takes up the other half, the text and album cover keep switching sides of the screen every 10 seconds or so which i find a little annoying! Does anyone else find this annoying or just me?
    Of course I love my mac and apple TV however i cant find a way to change this view when music is playing. I would like coverflow on apple Tv just like on mac. A full screen showing the album cover, with smaller text to show artist and track and not to switch sides of the screen!
    Does anyone know what im banging on about and can you help!

    Oh dear! but thank you for a quick reply and your kind welcome!
    I thought the side to side motion would be to protect the screen somehow but i dont really like it!
    Not at all relaxing when playing a soothing song to see the graphics flipping back and forth.
    Its great technology, amazing, but could this viewing option be changed somehow by the wizards at apple.
    I might need to hit the off button on Tv and just listen on speakers otherwise.

Maybe you are looking for

  • Yaourt just printing ^M when typing return when installing

    This is a recurring issue for me. I'm not sure if the issue is related to urxvt, tmux, yaourt or something else, but I only encounter with that combination. In yaourt, I can press enter to start building, but when I press enter to install, it just pr

  • Php email form

    I'm sending a php form to an email address. The form does send to my email and a message sent page is working for the user filling in the form. However, I need to put the name, address, and phone number included with the message that is sent to the e

  • Simultaneous urlRequest help

    Hello all, I have looked through the Flex docs and can't find any reference to what happens if urlRequest.load() is called simultaneously by two separate parts of a single application. For example a button.click() event is being serviced where the ac

  • ABAP Program documentation -- calling web document

    I would like to be able to have my ABAP Program call documentation from the Web when the user presses Shift/F1 or clicks on the Little Blue Information Icon.  This is just a basic ABAP - no screen programming.  I know how to call my documentation fro

  • Updating Values from Portal to R/3

    Hi ,   Iam facing a problem in updating values while calling RFCs from portal.This is the scenario of calling RFCs : 1. Submitting new data by changing some values from the existing record.                                - They are calling a RFC to s