i want to hide Manufacturing ==> Bill Of Materials form a specific user. can i do that in view part by inheriting Menuview?
Yes, you can hide by using security groups. Create one group and include all other users except this user. Then goto "Settings >> Technical >> User Interface >> Menu Items". Then choose "Bill of Materials" and add the new group created. Now it will be hidden for the other user.
To do it in xml of your custom module, inherit the action "mrp_bom_form_action" and menu item with id "menu_mrp_bom_form_action" from mrp. add groups attribute to the menu item and give the newly created group.
Related
I want to add new menu item in human resources module.
I create new module depends of "hr" module.
and I create an xml file to add new menu and field.
this my code:
<menuitem id="menu_new" parent="menu_hr_root" name="new" sequence="30"/>
I update module list and I reload the page but I didn't find the new menu.
thanks for your help.
Just we must need to add the parent id based on your dependent module name then after your depended menu id in your parent Attribute
some think like this
<menuitem name="Performance Appraisal" parent="your_module_name.menu_eval_hr" id="menu_open_per_appri_req"
action="action_menu_perf_app_rel"/>
Menu Attribute
name=name of your menu
id=unique id for each menu item
string = Name of your string which you want display in your view form
not string attribute is not define then the menu string
automatically set as your menu action name
action=name of your action which you want to call
parent=your_dependent_module_name.parent menu id in your child menu
if your parent menu is in your same module then the dependent module name is not needed to add in your parent attribute
sequence =Define the sequence for the menu displaying in your view
I hope this should helpful for you ..:)
I need help on both the visual and the programmatic end of this one. Ok, so I'm allowing the user to edit certain rows pertaining to his unique ID. When the user clicks edit, it shows all of the rows in the user table that contain his specific ID (see below for the table layout). Furthermore, a checkbox is generated for each class the user appears in (again based on the user_id field).
tbl_user
user_id | user_name
1 | Evan
tbl_class
user_id | class_id
1 1
1 2
This is what the edit form currently looks like:
| TEXT-BOX | For user_name
| CHECKBOX value="1" | For EACH class found
| CHECKBOX value="2" | For EACH class found
When the form is submitted, I was going to check to see if the values of any of the boxes were unchecked; if they were, I would remove the corresponding tbl_class row (wherever the class_id matched up).
Two problems I've encountered using this method:
If the checkbox is unchecked, its value does not come through the form (so it seems)
This isn't so much a problem as it is an annoyance- is there a better way to go about doing this? I really hate the design.
I would appreciate help with either of the above questions.
Thank you!
Evan
http://postimage.org/image/e1sny3dcx/
I have uploaded an image at above link, of what i think a more user friendly design.
On Edit user details page, user can edit his user name through text box.
Also 'Available Class ids' are shown in list box with multiple select option and 'Selected class Ids to Remove' will contain the Ids user wishes to remove. The button '>>' this in between transfers the selected class id from 'Available class id' list box to 'Selected Class Ids to remove' list box , while button '<<' does the vice verse.
It also give you flexibility if you tomorrow wants to identify the new class ids to add.
you can simply add on some event to the Available Class Ids List.
The design gives you advantage to clearly identify through form elements which are the class id's you want to remove.I would recommend this approach in case there a more class_id's pertaining to a user_id.
When the user unchecks one of the boxes, you could use JavaScript to create a hidden input in the form with a name of something like "classRemoved" and a value of the class id that was unchecked. That way, when the form is submitted, you have a list of all of the unchecked classes.
Instead of the check box method for removing classes, maybe a more elegant and modern way of doing it would be to have each class on its own row with a red "X" button next to it. If the "X" button is clicked, the user is warned that the class will be removed and upon confirmation, an AJAX call is made to your database to remove the class from the table and then the HTML row containing the class is hidden; no need to refresh the page.
i want to create a starting form in ACCESS that will hold a Textbox and a button.If user input text(say form name/table name) and click the button,it will show the form/table.If the name is not correct it will show a message.I am new in access.please help me with the macro or other things.
Thanks in advance.
Create a table and put the choices.
Create a blank form in design view.
In this blank form add a text box and a button.
Right click the text box, then choose Change To Combo Box
View the Combo Box properties
From the combo box properties, go to Data Tab
Here, you will see Row Source. Click the drop down in the Row Source and select the table where you put your choices.
You can Limit users to choose only from the available choices by changing Limit to List from No to Yes.
If you will limit your users from the choices, better not to add the button.
I have a Windows application written in Progress. I'm working with version 10.1C. I would like to add MRU functionality to the menu, i.e. I want to add, remove and modify menu items in the application's File menu, to show the user's most recent files in the order in which they were used. I've done this often enough in a number of other languages, it's a pretty common feature and very easy to do.
But how would one do this in Progress? In another language I could have created 10 menu items and simply made the unused ones invisible, but you can't do that in Progress. I can't imagine why.
Alternatively, I should be able to dynamically create menu items as needed and add them to the end of the MRU list in the File menu, but I can't seem do that either: Firstly, I can't specify where in the File menu the item must be added, it always adds it to the bottom, and secondly, I can't add dynamic menus to static menus, so I can't add my MRU menus to the existing File menu. I can do it if I make the whole File menu dynamic (which I really don't want to do), but then I can't add the dynamic File menu to the static menu bar. This leaves me with the unacceptable option of making the entire menu structure dynamic.
Does anybody have any ideas?
Using Ade's answer below, here is a brief example of how I achieved it. Changing the labels and values of the MRU items doesn't require any fiddling, just set the appropriate attributes, but in order to add new MRU items, I have to remove and recreate the Exit menu item:
/* Remove the RULE and Exit menu items */
IF VALID-HANDLE(ghMenuRule) THEN DELETE OBJECT ghMenuRule.
IF VALID-HANDLE(ghMenuExit) THEN DELETE OBJECT ghMenuExit.
/*
...
Coding to add MRU items.
...
*/
/* Create the RULE and Exit menu items */
CREATE MENU-ITEM ghMenuRule
ASSIGN
SUBTYPE = "RULE"
PARENT = MENU m_File:HANDLE IN MENU MENU-BAR-C-Win.
CREATE MENU-ITEM ghMenuExit
ASSIGN
PARENT = MENU m_File:HANDLE IN MENU MENU-BAR-C-Win
LABEL = "E&xit"
TRIGGERS:
ON CHOOSE PERSISTENT RUN ExitApp IN THIS-PROCEDURE.
END TRIGGERS.
The actual MRU items are created just like the Exit menu is created here, except that I store the handles in a temp-table.
The result is a menu like this:
File
New
Open
--------
Print Setup
Print
--------
1 Mru item
2 Mru Item
3 Mru Item
--------
Exit
create a static menu MENU-BAR-C-Win.
add static sub-menu "File" m_file.
add static menu-item (use ">>") "Exit" (m_Exit) to m_file.
define....
DEFINE VARIABLE hMRU#1 AS HANDLE NO-UNDO.
create a button to dynamically...
CREATE MENU-ITEM hMRU#1
ASSIGN
PARENT = MENU m_File:HANDLE IN MENU MENU-BAR-C-Win
LABEL = "MRU#1"
TRIGGERS:
ON CHOOSE PERSISTENT RUN SomeThing IN THIS-PROCEDURE.
END TRIGGERS.
you'll want to keep track of your handles (temp-table?) some how.
Every time i enter set of values like Group Name,Group Abbreviation,URL in the text boxes and click the save button automatically its saves in the database and for each set of values a new details view has to be generated dynamically with a web panel and the header of the web panel should have the value of Group Name.
Example:
Group1
Name Group1
Abbreviation G1
URL http://stackoverflow.com
Group2
Name Group2
Abbreviation G2
URL http://stackoverflow.com
A new details view with web panel like the above has to be generated every time the save button is clicked.
Thanks in Advance.
This solution assumes each group is a single database record.
Use a datasource which pulls all of the IDs for the groups that should be displayed on the page.
Create a repeater control and set its datasource to the datasource created in step 1
Add a hidden input field to the content template for the repeater control. Bind it's value to the group's id.
Add a details view control to the repeater control template.
Add a datasource to the repeater control template that returns a group record filtered on the hidden input control.
When you submit a new group, make sure to rebind the data on the repeater control created in step 2.
Alternatively, it would be much easier to just use a listview if possible.