how can I add sub menu to the leaves top menu in odoo10? - menuitem

I want to add menu item to the Leave management top menu and I got error in my XML file that it want external ID.. how can I inherit this top menu to my module?

You put your id and menu name here. If you inherit any module name than put their menu id in parent.
<menuitem id="main_menu_id" name="Main Menu Name"/> <!-- Top menu define -->
<menuitem id="sub_menu_id" name="Sub Menu Name" action="your_action" parent="main_menu_id"/> <!-- Child menu define -->

Related

How to set modal dialog title dynamically in oracle apex 18

I want to set modal dialog title dynamically based on an interactive element.
ex) In page 50, I've made an Interactive Grid and set the link on "Title" column, when user click on title column, a modal dialog appears.
I want to set the title of that modal dialog to title column's content.
But modal dialog's title doesn't change dynamically.
In this case, how can I apply the titles dynamically?
I've seen many solution related to this question, but I can't solve my problem.
Let's say, your model page number is 51. Here are step by step approach [TESTED] to dynamically change title of model page:
Create a hidden item in your model page, let's say the hidden item name is P51_Title.
In Interactive report -> title column link -> click on link builder box -> set values -> add Hidden item as P51_TITLE under Name and value as '#Title#' Column (#ColumnName#).
In model page 51 static region header (title property), add hidden item value as &P51_TITLE. (dot is mandatory to add at last. This is substitution string with & and dot(.) before and after of item name respectively)
save both the pages and run. when you will click on title column link, the link will be redirecting to the model page and title data will be passed through URL to hidden item in the session, so model page header will automatically change based on title data from report.
I made such dialogcreate js function.
It moves popup page Title to modal dialog title.
So, dynamic calculated title &P51_TITLE. would be applied automatically.
$(document).on("dialogcreate", ".ui-dialog--apex", function(e) {
var lDialog = $(this);
lDialog.find('iframe').on('load',function () {
lDialog.children(".ui-dialog-content")
.dialog("option", "title", $(this.contentDocument).find('title').html());
});
});
I am very disappointed that something like this (or any other solution) do not work in apex modal pages by default!

OTRS:: how to hide customer administration menu item from customer menu

I am using OTRS4, I want to know how to hide customer administration menu item from customer menu.
It's not programming-related so it's probably more a question for SuperUser but here goes:
Navigate to Admin > Framework > Frontend::Admin::ModuleRegistration.
If you want to remove the Customer Company Administration item completely, i.e. from the Menu and also from the Admin section, simply uncheck Frontend::Module###AdminCustomerCompany.
If you only want to remove it from the navigation bar you can navigate to the same item in SysConfig and remove the section that has the NavBar: Customer item by clicking the - symbol.

laravel blade template engine content displayed outside end html tag

I am very new to laravel frame work, I am using laravel 4.2, now i have a problem with my blade template engine.
In my laravel admin panel After user login one dashboard page will display. This page is working fine.This page consists of master.header.php (which is my header) and dashboard page which is my left menu.
Blade code as follows
<pre>
below is my dashboard page code
#extends('includes.header')
#section('head')
#parent
<title>DashBoard</title>
#stop
#section('content')
LEFT MENU COMES HERE
#stop
</pre>
<pre>Now in my left menu different links are there.
So i want to inlcude header.blade.php and dashboard.blade.php in each link page.
Left menu page code as follows
<pre>
page name is : Employee.blade.php
#extends('usercp.dashboard')
#section('head')
#stop
#section('content')
hi this is my one of left menu section
</pre>
**OUT PUT**
<pre>
But when i click on the left menu link the content is displaying (hi this is my one of left menu section) at the header.
When i see the source of Employee.blade.php the left menu is out side </html> tag.
Not in body tag.
Can any one please help me in this regard.
</pre>
A few thoughts on your code:
In your left menu page the #section('content') is not closed, add a
#stop
The #extends command has to be the first line in your blade
template, with no html/whitespaces before it.
If you want to include another blade template (e.g. your header), use
#include('partials.header'). By extending another template you can
override the sections of your parent template, which is not
what you want for your header, I'd guess.

How to set from HTML template where menu is in Joomla

I can't find anything about this. I just made a html template and set it as a joomla template. But one important thing I can't find how to do is how to set menu from template to Joomla. Do I have to make all items of menu again in Joomla and just take css from this?
(In template is menu made from pictures, in css is hover, position etc.)
<nav id="main_nav">
<ul>
<li class="Item1"></li>
<li class="Item2"></li>
</ul>
</nav>
You should define a position in your template where module can be outputted. It's done like this:
<jdoc:include type="modules" name="position_name" style="xhtml" />
It's always a good idea to declare the position in templateDetails.xml too.
Once you're done yo can log in to your joomla backend (administrator), go to extensions > modules. Click new select "menu" from module type selection list. Then fill up the form (you can enter title for the module, select your position, pick a menu that should be rendered here etc) and you're all set.
The menu items you add to the menu selected should appear in your website.

Oracle APEX: Hide a button with dynamic actions

I'm tying to hide a button when a checkbox is deselected and show the button when selected. But I don't know why isn't it working because I have two date item and they are working fine.
When checkbox not selected
When checkbox selected
http://apex.oracle.com/pls/apex/f?p=17236:555 Workspace:
MACWADU_ORACLE Username: USER Password: 123qweASD
If someone wants to help me, can go to the application page 555 or explain here what I have to do.
Tanks
Your dynamic action tries to hide the button using the DOM Selector "APPLY_CHANGES", but this isn't actually the button's ID (it didn't have an ID at all).
Two changes required (I have made them):
1) Change the Button template to allow button attributes to be added:
<button value="#LABEL#" onclick="#LINK#" class="button-gray" type="button"
#BUTTON_ATTRIBUTES#>
<span>#LABEL#</span>
</button>
2) Change the button itself and set the Button Attributes property to:
id="APPLY_CHANGES"