Custom LayoutSet with multiple Menus

Hello All -
I am trying to implement a custom layout set that will contain the basic tree\list layout but have 3 menu's
1.  Standard Menu Bar Control
2.  A Button Menu
3.  A Link Menu
I have been playing with my layout set and see  you can get the menu bar from your layout set configuration using the lines..
ControlFactory cf = ControlFactory.getInstance();
Control c = null;
com.sapportals.wcm.repository.IResourceContext context = getProxy().getResourceContext();
c = cf.getControl("MenuBarControl", context)
I am unsure where the String MenuBarControl comes from however and what it would be to get the Link or Button Control...
Thanks in advance for your help on this one.

Hi Brandon
To render the extra two Menu bars you need not define additional Collection renders , because the layout set can identify Menu Bars separately from Collection renders. To have more more Menu Bars you will have to modify the layout set code to something like this ...
  private void createControls() {
     this.controls = new Control[5];
     ControlFactory cf = ControlFactory.getInstance();
     Control c = null;
     IResourceContext context = this.getProxy().getResourceContext();
     c = cf.getControl(cf.MENU_BAR_CONTROL, context);
     this.controls[0] = c;
     if (c instanceof IMenu) {
       ((IMenu) c).setProxy(this.getProxy());
       ((IMenu) c).setPushStack(true);
       ((IMenu) c).setGroup(IParameterName.UI_GROUP_MASS_KEY);
     c = cf.getControl(cf.MENU_BAR_CONTROL, context);
     this.controls[1] = c;
     if (c instanceof IMenu) {
       ((IMenu) c).setProxy(this.getProxy());
       ((IMenu) c).setPushStack(true);
       ((IMenu) c).setGroup(IParameterName.UI_GROUP_MASS_KEY);
//repeat again for third menu bar
However I have not tried getting a button into a menu bar. Links are possible as you are aware
Regards
Pran

Similar Messages

  • Custom Event with multiple EventTypes

    Hello All, First thanks for all those who tryied to help me and apologize for my approximative english.
    I would like to create the more properly as possible a Custom Event with multiple EventTypes, like the MouseEvent typicaly. 
    With Some EventType which permit to acces to some attributes and other not. But I'm totaly lost,  The second solution if someone knows how, is to explain to me how to do to acces to the code of the MouseEvent.as 
    Thanks! 
    Ps: you will find below the basis of the code i have begin. 
    package fr.flashProject
        import flash.events.Event;
         * @author
        public class SWFAddressManagerEvent extends Event
            public static const CHANGE_PAGE:String = "change_page";
            public static const ERROR_404:String = "error_404";
            public static const HOME_PAGE:String = "home_page";
            private var _page:String;
            private var _params:Object;
            public function SWFAddressManagerEvent(type:String, pPage:String = null, pParams:Object = null, bubbles:Boolean=false, cancelable:Boolean=false)
                super(type, bubbles, cancelable);
                _page = pPage;
                _params = _params;
            public override function clone():Event
                return new SWFAddressManagerEvent(_type, _page, _params, bubbles, cancelable);
            public override function toString():String
                return formatToString("SWFAddressManagerEvent", "type", "page", "params", "bubbles", "cancelable", "eventPhase");
            public function get page():String { return _page; }
            public function get params():Object { return _params; }       

    I am not sure what you are trying to accomplish but event can have only single type. Event type is just a string that is typically a constant - exactly like your constants.
    When dispatched, each event INSTANCE has only one type. Again, these types are described in a type parameter by a string. Each dispatched MouseEvent DOES NOT have multiple types but ONLY ONE. It does have multiple constants that are used to assign type at runtime as does your event.
    If you are talking about multiple parameters, you already do that in your custom event class. You have _page and _params. Nothing stops you from adding more parameters.
    Also I am not sure why you need getters for _page and _params.

  • Customer Exit With Multiple Ranges

    Hi Experts,
    I have created a customer exit for my query. The values from this customer exit are multiple intervals.
    I|BT|2005001|2005006
    I|BT|2005002|2005007
    I|BT|2005003|2005008
    Is it possible to pass these interval values to a selection-options variable in my query? What type of variable should I use? Thanks in advance.
    Juice

    Hi San,
    Thanks for the reply. I tried setting the variable as interval but when I run the query in RSRT, i recieve an error message and then it won't display anything.
    However, when I set the variable to selection-options, the intervals seem to overlap. Instead of displaying like (as in RSRT ABAP Debugging mode):
    I|BT|2005001|2005006 -> Jan 2005 to June 2005
    I|BT|2005002|2005007 -> Feb 2005 to July 2005
    I|BT|2005003|2005008 -> March 2005 to August 2005
    It displays Jan 2005 to August 2005 in the query.How can I correct this?  Please help. Thanks.
    Juice

  • Af:panelCollection with multiple menus

    Hi,
    I am using latest version of JDev 11g
    I want to have multiple menus in the menu facet , but apparently it only works for one
    so, apart from View Menu, Format Menu, I want to add some more menus, but it only allows upto one , leaving only three menus
    viewMenu
    FormatMenu
    CustoMenu1
    but is it possible to add more ?
    thank you all

    no, it does not work
    facet tag does not allow group as a first child
    still I tried anyways, and blank page in the browser
    <af:panelCollection binding="#{pageFlowScope.backing_printTable.panelCollection1}"
                                id="panelCollection1">
              <f:facet name="menus">
                <af:group binding="#{pageFlowScope.backing_printTable.group2}" id="group2">
                  <af:menu text="menu 1" binding="#{pageFlowScope.backing_printTable.menu1}"
                           id="menu1">
                    <af:commandMenuItem text="commandMenuItem 1"
                                        binding="#{pageFlowScope.backing_printTable.commandMenuItem2}"
                                        id="commandMenuItem2"/>
                  </af:menu>
                  <af:menu text="menu 2" binding="#{pageFlowScope.backing_printTable.menu2}"
                           id="menu2">
                    <af:commandMenuItem text="commandMenuItem 2"
                                        binding="#{pageFlowScope.backing_printTable.commandMenuItem3}"
                                        id="commandMenuItem3"/>
                  </af:menu>
                </af:group>
              </f:facet> <f:facet name="toolbar"/>
              <f:facet name="statusbar"/>
              <af:table value="#{bindings.EmployeesView1.collectionModel}" var="row"
                        rows="#{bindings.EmployeesView1.rangeSize}" width="100%"
                        emptyText="#{bindings.EmployeesView1.viewable ? 'No rows yet.' : 'Access Denied.'}"
                        fetchSize="#{bindings.EmployeesView1.rangeSize}"
                        binding="#{pageFlowScope.backing_printTable.table1}"
                        id="table1">
                <af:column sortProperty="EmployeeId" sortable="false"
                           headerText="#{bindings.EmployeesView1.hints.EmployeeId.label}">
                  <af:inputText value="#{row.bindings.EmployeeId.inputValue}"
                                label="#{bindings.EmployeesView1.hints.EmployeeId.label}"
                                required="#{bindings.EmployeesView1.hints.EmployeeId.mandatory}"
                                columns="#{bindings.EmployeesView1.hints.EmployeeId.displayWidth}"
                                maximumLength="#{bindings.EmployeesView1.hints.EmployeeId.precision}"
                                shortDesc="#{bindings.EmployeesView1.hints.EmployeeId.tooltip}">
                    <f:validator binding="#{row.bindings.EmployeeId.validator}"/>
                    <af:convertNumber groupingUsed="false"
                                      pattern="#{bindings.EmployeesView1.hints.EmployeeId.format}"/>
                  </af:inputText>
                </af:column>
                <af:column sortProperty="FirstName" sortable="false"
                           headerText="#{bindings.EmployeesView1.hints.FirstName.label}">
                  <af:inputText value="#{row.bindings.FirstName.inputValue}"
                                label="#{bindings.EmployeesView1.hints.FirstName.label}"
                                required="#{bindings.EmployeesView1.hints.FirstName.mandatory}"
                                columns="#{bindings.EmployeesView1.hints.FirstName.displayWidth}"
                                maximumLength="#{bindings.EmployeesView1.hints.FirstName.precision}"
                                shortDesc="#{bindings.EmployeesView1.hints.FirstName.tooltip}">
                    <f:validator binding="#{row.bindings.FirstName.validator}"/>
                  </af:inputText>
                </af:column>
              </af:table>
            </af:panelCollection>the question is why not?

  • Writing a custom component with multiple fields.

    Does anyone have some pointers on writing a custom component that properly handles multiple input fields?
    An example usage might be as follows:
    Assume the following java classes:
    public interface Address {
        //... getters/setters for Address.
    public class Company{
        Address getAddress(){...};
    }The tag usage might be something like the following:
    <custom:address value="#{myCompanyBean.address}" />
    Extending UIComponentBase I can easily render the output and create all the needed input elements. I'm also able to properly retrieve the submitted values in the decode method. But I'm unsure how to handle the "UpdateModelValues" step. Do I simply over-ride processUpdates, or is there more housekeeping to be done?
    Thanks.

    I'm guessing that doing addChild inside createChildren causes an infinite loop.
    Why aren't you just doing this with MXML?  it would be a lot simpler.

  • Custom Dimension with multiple children defined as "Never Share"

    Hyperion Planning - 11.1.1.3
    There is Custom dimension "Appliance" with root defined as a "Never Share". It has multiple level 0 (SubAppl1, SubAppl2, SubAppl3 etc) members with "Store". Data is some times loaded at root level and some times at the lower levels and at times both. What is the expected result?
    When POV is Appliance and when it is drilled down?
    For Ex:
    For Jan -
    Appliance is 100, No other members loaded with data.
    For Feb -
    Appliance is 30
    SubAppl1 is 10
    SubAppl2 is 10
    SubAppl3 is 5
    POV
    Appliance Jan - 100
    Appliance Feb - 30 or 25? and why?
    Trying to understand the behavior or "Never share" in this scenario.
    Appreciate your feedback.
    Edited by: 847514 on Mar 28, 2011 11:17 AM

    Never Share has no bearing on your sample. The Never Share flag is to prevent a implicit sharing which will happen when you have one parent with a single child under it. Your structure is not setup such that an implicit share would occur based on your example.
    I really do not recommend loading data at upper level members as this means you can never run a normal aggregation on your data. If you were to aggregate your data and you happened to have the AGGMISSG set to true you would see the data in your january example of 100 was removed due to the level 0 members not having any values.
    So the question of your February being 30 or 25 is did you load 30 to February Appliance or did you load to the level 0 and then aggregate?
    Regards,
    John A. Booth
    http://www.metavero.com

  • Custom Infotype with multiple long text fields

    Hi,
    We have a need to create a custom Infotype (in PA or PD) that will contain more than one long-text area.
    I've searched this forum and found that there are generally two approaches :
    1. use the HR clusters for long-text and setting the ITXEX field in PA
    2. using SAP standard text area (SO10) and functions such as READ_TEXT, SAVE_TEXT, etc.
    The problem with (1) is that it can only store one long-text.  We need to have many.  Please correct me if we can hold more than one long text in the cluster...?
    With regard to (2), I'm just not sure that this is the correct place to store the long text...?
    If I was to adopt option (2), could I just use the key of PA9nnn (ie: PAKEY) as the key/TDNAME for STXH?
    Are there any other methods to store long text?
    As well, is it possible to create a custom Infotype in PD?  Can we use PM01 to create PD infotypes?
    Thanks,
    Raj

    Raj
    Sorry I'm not much help on the two questions you have raised...you have probably already got answers by now anyway..however FYI check out link below for enhancing PD infotypes (use transaction PPCI).
    enhance infotypes

  • Customer Report with multiple conditions?

    Hello <<text removed>>
    I have a project that I am curious if it is possible using BW and BEx Analyzer.
    I have a Cube that contains Customer, Brand, Revenue etc....
    Lets say i have the following values
    Customer: 1,2,3,4,5,6
    Brand:      1,2,3
    I need a report, series of reports, or a workbook that can provide the following.
    a. List and count of customers that purchased $500+ of only Brand 1
    b. LIst and count of customers that purchased $500+ of only Brand 2
    c. List and count of customers that purchased $500+ of only Brand 3
    d. List and count of customers that purchased $500+ of Brand 1 and $500+ of Brand 2
    e. List and count of customers that purchased $500+ of Brand 1 and $500+ of Brand 3
    f. List and count of customers that purchased $500+ of Brand 1, $500+ of Brand 2 and $500+ of Brand 3.
    I think you get the point
    This report should look at the previous 12 months of data.  And the Customer should not appear on the report more then once because that is how the criteria presented above should work.
    I was able to get this to work for a,b,c by restricting a query to the brand and using a condition of $500+ for revenue
    I was also able to get this to work for d and e by using the resolution for the single brand as a value set as input for the dealers in a similiar query restricted to a different brand.
    Anyway I hope i can find some ideas/approaches that would meet this requirement!
    Thank you,
    Nick
    Edited by: Matt on Jan 13, 2011 9:06 AM

    Hi Nick,
    See if this works.......
    Put customer in Rows.
    Create 3 restricted key figures for Revenue one with each brand. gets difficult if you want to do this for many brands...
    Create a calculated key fig and use the expression revenue_rkf1 > 500. this expression in the calc key fig returns 1 if revenue is > 500, othewise returns 0. Similarly create 2 more CKFs with expressions using the other RKFs for revenue.
    Now report may look like this:
    Customer      brand1         brand2          brand3
    Cust1...........            0..........                   1............                    1
    Cust2...........            1..........                   1...........                     0
    Now add logic to get customers who bought brand 1 > 500 and brand2 > 500 and other combinations. For that create different formulas like brand1brand2, brand 2brand3, brand1brand3, brand1brand2+brand3.
    Now report may look like this:
    Customer      brand1         brand2          brand3     for1        for2       for3       for4
    Cust1..........0............1..........1........1......2....1.....2
    Cust2..........1............1..........0........2......1....1.....2
    cust3..........1............1..........1........2.......2....2.....3
    Now create 4 calc key figures. In CKF1 use expression for1 > 1. This checks if value in formula1 is greater than 1, if yes puts 1 otherwise 0. Use the same expression for CKF2 and CKF3 using for2 and for3. Create CKF4 with expression for4 > 2.
    Now the report looks like this:
    Customer      brand1         brand2          brand3     for1        for2       for3       for4    CKF1      CKF2     CKF3       CKF4
    Cust1...........0...........1...........1.......1......2.....1.....2......0........1.......0........0
    Cust2...........1...........1...........0.......2......1.....1.....2......1........0.......0........0
    cust3...........1...........1...........1.......2......2.....2.....3......1.........1.......1........1
    Count of CKF1 gives the number of customers who bought brand1 for 500+ usd and brand2 for 500+ usd.
    Count of CKF4 gives the number of customers who bought all brands for more than 500 $ each.
    The repot gives the data needed but may not look good with number display against customers.
    Regards,
    Murali.
    Edited by: Murali Krishna K on Jan 7, 2011 10:52 AM
    Edited by: Murali Krishna K on Jan 7, 2011 11:10 AM

  • How do I try to create a custom poster with multiple photos?

    Each time I try to do a Photo Project and make a custom poster, the software stops working?  Has anyone else had this problem?  Thanks

    hi Motz
    it is alot of work., are u comfortible with pse Elements editor?
    david :>

  • I have a bug with multiples menus in dvdsp4

    I currently have 2183 menus in my project,
    If i add one of them, the list x/Menus/... is not posted any more.
    I also tested since scripts (Jump/Menus/..)...
    The documentation of dvdsp4 known as (page 45): Maximum number of menus in a project : 10000.
    I am french and desperate.
    Cordialement

    Hi Gerald,
    What a welcome!!! Eeech 2000 menus and its your first post.
    Is there also a size limit as well? It used to be 2 Gig. I heard they were planning on changing it in version 4.
    I would also check and see if more RAM will do the trick. DVDSP 3 and 4 are RAM pigs. I've upgraded to 8Gb on all our machines and many little issues we had have disappeared.
    If you are still at a loss. Are you comfortable converting your remaining menus to buttons over video as an alternative?
    Good Luck

  • CP8: Custom question using multiple TEBs / Scrollable Text Widgets

    Hi,
    I want to create a custom question with multiple Text Entry Boxes (TEBs) or Scrollable Text Widgets (STWs) that is compatible with HTML5.
    User has to enter just one word in each TEB / STW i.e. a one line STW.
    I want the user to be able to Retry the question i.e. click Retry button to automatically clear the TEBs / STWs that are incorrect.
    Question is not being scored or reported to an LMS.
    TEBs:
    I'm assuming you can't clear a TEB so I tried using a STW.
    STWs:
    FYI: I'm clearing the STW using Null.
    The issues I am trying to resolve are:
    1. Disabling the Enter key so that the 1 line STW will behave like a TEB i.e. doesn’t move to the 2nd line, and the Up Down scrollable indicators aren't displayed.
    There is a post that suggests executing JS on Slide Enter but I already have an Advanced Action associated with Slide Enter.
    https://forums.adobe.com/thread/1451011?q=disabling%20Enter%20key
    2. When retrying a question how do I disable STWs i.e. ones that contains a correct answer so user can't change it. (I know the Disable action won't work)
    I am using Captivate 8.0.1.242 on Windows 8.
    Thanks for your help.
    Regards
    Donal.

    Some answers, probably not all what you want. I blogged about using the Scrolling Text (formerly the TextArea widget) several times.
    In Captivate 8 you can indeed control what is shown in the Scrolling Text Interaction, by changing the associated variable. That was not possible before this version (have been begging for it, finally with success) and it is still not possible for a Text Entry Box. You can change the value of the variable, but it will not be visible in the TEB.
    An interaction is automatically reset when re-entering the slide, maybe that can help you as well? That is not the case for a TEB.
    Disabling  has no sense for an interaction that is static, only for interactive objects (and interactions). That means that you can disable a TEB, but not a Text Scrolling Interaction.
    Maybe this tip to prevent changing a correct answer for the interaction:  replace the interaction by a similar looking text container with the value of the variable if the answer is correct.

  • Creating custom form with content type list - Shaepoint 2013 list

    Hi All,
         I have a list with a content type. So basically i have the default content type and another custom one.
    I would like to customize the forms and taught of using sharepoint designer.
    Is this a good approach or is it better using infopath.
    When i try using infopath i don't know how i can using content type to create forms.
    I basically have 2 forms based on the content types how can i separate this when using custom forms and what would be the best practice?
    Cheers and thanks in advance

    Hi Patrick,
    According to your description, you want to create a form for each content type in a custom list with multiple content types. Is it right?
    If we use Infopath to customize forms for a list with multiple content types, it only customizes the default content type, the forms for other content types don't have changes.
    For your requirement, I suggest you use SharePoint Designer to create forms for content types.
    More information about how to create forms using SharePoint Designer 2013:
    http://community.bamboosolutions.com/blogs/sharepoint-2013/archive/2012/09/20/how-to-create-custom-forms-using-sharepoint-designer-2013.aspx
    Best Regards,
    Wendy
    Wendy Li
    TechNet Community Support

  • Error while posting Customer with Multiple sales areas using DEBMAS05.

    Dear experts,
    We are generating IDOCS vis SAP DS for posting Customer master. The message type used is DEBMAS and basic type is DEBMAS05.  we have a requirement to create 1 customer with multiple sales areas. However, we are ending up with a strange error:  "Fill all required fields SAPMF02D 0111 ADDR1_DATA-NAME1". Despite the IDOC going into status 51, the customer gets created and the 1st sales area too. the 2nd sales area however is not created!  The IDOC data definitely contains Name1, otherwise the customer would not have been created in the first place.
    As the error message is related to the Address data, I also explored upon exploring this erorr further on the lines of Central Address management where in the ADRMAS and DEBMAS have to be passed together(IDOC Serialiization).  OSS Note (384462)  provides further details about this. One Important point from the note is: 
    "As you have to specify the logical name of the sending system among other things, SAP is not able to make any default settings in the standard systems. When you use the serialization groups delivered as a standard by SAP, the address objects are imported before the master objects.Thus the sequence address data before master objects must only be adhered to if one of the following points applies to your application:
    Such fields are set as required entry fields that are only provided by the BAS in the Customizing of the customer or vendor master.
    For your customers, contact persons exist to which a private address or a different business address is assigned.".
    This is not the case in our situation, as we do not have required entry fields in customizing that are only provided by the BAS, so the error is all the more confusing and I am not too sure what the cause is.
    If someone have experienced the same issue before and have found a solution to it, kindly help out.

    I have found the cause and solution to this problem.
    This error ”Fill all required fields SAPMF02D 0111 ADDR1_DATA-NAME1” and other similar errors like “Fill all required fields SAPMF02D 0111 ADDR1_DATA-SORT1“ which occurrs during the IDOC posting when there are more than one sales area or company code occurs when the customer number range is set up for Internal numbering. This means, that the number gets generated only at the time of save and upon debugging the IDOC, we found out that after creating the customer and the first sales area/company code record, the segment E1KNA1M is cleared completely! This is the reason, it throws an error which points to a mandatory KNA1 field as missing. (Like NAME1, SORT1 etc.)
    This was resolved by splitting the IDOC into 2.
    The solution is to First post only the KNA1 segment and create the customer.
    In the second step, pass the IDOC with all other segments along with E1KNA1M, but pass only KUNNR in E1KNA1M and the rest of the fields in E1KNA1M as “/”:  you would have got the KUNNR after the first step.
    Important note: This requirement to split the IDOCs does not occur when the customer number is known upfront. (Meaning cases where the customer number is externally generated) I also tested this and created a customer with external numbering and I was able to post more than 1 sales area with the same IDOC. 
    I noticed multiple threads with the same issue, but none of it had a concrete answer. I hope this information will be useful for anyone facing similar problems.
    Cheers
    Venkat

  • How to make an editable bulleted list with multiple lines and custom bullets?

    How do I create an editable bulleted list in Acrobat Pro? I've figured out how to add text fields with multiple lines, and how to add a list box, but I don't see the check box for multiple lines in the list box or how to add bullet points. Can someone please give me step by step instructions? Also is it possible to use custom bullet points?

    Is it a text field or a list box field? The two are not the same...
    The bullets are something that the user will have to enter manually (into a text field, they can only select values in a list-box).
    They can use any unicode character, or special characters if the font used for that field allows for it. You can't use images for the bullets, if that's what you mean.

  • SO creation for one internal item with multiple customer code

    Hello,
    We want to create sales order for one internal product for one customer with multiple customer product code.
    SAP allows only one to one relation in customer info record. Is there any work around for having multiple customer product code for our single internal product code in single sales order.
    Regards,
    Balu J Karbhari

    Hello,
    It is not possible. Please check OSS note 626931.
    One alternative approach might be to trying to use the material determination functionality. Please try the below steps and check if it works for you.
    T Code VD51: Create CMIR for Customer & Material
    T. Code VB11: Maintain material determination for all required materials to point to the Material which has the CMIR.
    T Code OVRQ: Substitution reasons. Make the configuration to print Original material . Check  the column ENTRY, so on output the original material will be printed.
    Hope this helps
    Regards
    Sai

Maybe you are looking for

  • F4 help values in selection screen

    Hi, We have a requirement in our project where the client wants to see sorted values for an info-object when he sees the F4 help for it in the selection screen of a query executed on web. Is there any way we can show sorted values?? Waiting for repli

  • Buy a MacBook pro with SSD or upgrade to SSD?

    Hey guys! Hope you can help me out with this one! I have just purchased a MacBook Pro 13" with i7 2.9 GHz processor, 8 GB ram and a 750 GB 5400 rpm HDD. The simple reason that I bought it with a HDD and not a SSD is that I could not afford the SSD. N

  • Canon CR2 raw images are forcibly cropped by Camera Raw

    I posted this on the Photoshop Discussion as I did not realise that Camera Raw has its own - sorry folks! Camera raw is cropping my cr2 images even after I have removed the crop in DPP (Digital Photo Professional - Canon's own raw editing software).

  • I have a hp business injet 2800 printer. i want to know how to set it up for many copies.

    I have a HP BUSINESS INJET PRINTER 2800. I NEED TO KNOW HOW TO SET IT UP FOR MULTIPLE COPIES.

  • Upgraded from 5 to 8 and.....

    RoboHelp opens in "Starter." Is this correct?  Secondly, when I open an existing xpf, my topics and TOC are not viewable.  How can I correct this? Online help is no help.