How can I add action dropdown inside every row in odoo - odoo-15

I want to add action inside every row as follows:
How can I do this. I am using odoo15

Related

OnChange Field Inside Many2one Filed

I there any way to achieve something like this: api.onchange(mo_bom_id.type)
I want to change a field inside sale.order.line based on a change of many2one field for mrp.bom
so, when I click the many2one external link that takes me to a wizard form view to change the bom type then click save, I want this change to reflect immediately on another field for sale.order.line in the source view.
basically the changes won't appear unless I click save in sale.order form view.
any solutions for this mistery?!
Thanks!

Oracle Apex 5 Modal Call

I created 2 interactive reports to work as a master detail. In the master, I have a link that will refresh the detail report with records for the master.
I have a create detail record button that will call a page as a modal window and then save. Everything works correctly except the Create detail button does not refresh with the master record id. The button is suppose to set the page item on the modal for the master record id.
It looks like the button is built when the original page is built and never changes. I have a dynamic action that sets an item on the main with the master record ID and I assumed that the button would use that, but it never refreshes with it.
How do I get the button to refresh when I change the item that holds the master record id? I can try and build it other ways but the I can not get the checksum to work and it will throw an error when the modal opens.
Here is the javascript call attached to the onclick of the button:
apex.navigation.dialog('f?p=810:6010:14381566697413::NO::P6010_TRACK_SERNO,P6010_FORM_ACTION:90,CREATE\u0026p_dialog_cs=z9T5rK-dt186xh83jq4Dy4d2vumFtU_Fj1a0Opm8M4gyGXp5eQ89zcx3KvDE84L_63s_4583R7WGcYhAHXyX1Q',
{title:'Level',height:'500',width:'720',maxWidth:'960',modal:true,dialog:null},
't-Dialog--standard',
$('#createLevel'));
I am just trying to change the P6010_TRACK_SERNO item from 90 to 95 as an example
In these cases I usually set the value of the item not on button click, but on initializing the called page.
For example, you could copy the item value via PL/SQL in Pre-Rendering like this:
:P6010_TRACK_SERNO := :P0000_MASTER_ID;
Is that an option?

VBA: Events for several dynamically added buttons

I am adding several CommandButtons dynamically to my user form. To assign code, I used the answer of this question: Assign code to a button created dynamically
However, I need to determine which button has been clicked. They all do have different names. Therefore, my initial idea was to get the name of the clicked button in the CmdEvents_Click() procedure. However, I have not found a solution how to do that.
Does anyone have a solution how to trigger button specific events?
Add the Name of the new command e.g. like ctl_Command.Name = "name_" & i
Then in the CmdEvents_Click just use CmdEvents.Name.

Customize action sheet of QLPreviewController

I want to add another menu item to the action sheet, other than the print item. I have written a custom QLPreviewController. So looking to add email button below to the print button of the action sheet.
please help....
I want to do that as well but I assume that instead of adding to that menu, we'll have to create a new buttom with a new menu with our own items in it instead. The trick will be finding out how those default items (ie print) get generated.

Dojo call template on change of layout

I'm quite new to Dojo and trying to accomplish a table widget. I have a widget that contains the actual table element and generates it´s headers. Then I have one widget that is called to create each row and fill it with information.
The thing I'm struggling with is that I want each row to be clickable and on the click event I want to re-render the contents of the row and add some data to it.
Is there any way to have a second template file that I can call on the click event to change layout of the row?