Can we add domain inside server action in odoo 15 - odoo-15

I want to show server action only on some filtered data. suppose I have a list with status='pending','done'. Now I want to show 'done server action' only if data is filtered as 'pending'. Is there any way to do this?

Related

How to move record from one server to another server in a efficient way on daily basis?

I want to move the record from one server to another server on certain criteria.
Note
I don't want to move all the records, I will do some filter on records that which I want
I have to move the records on daily basis.
That server is not in local network.
So If I make stored procedure using linq server, it is possible to move the records. But I don't think it is good way. Is there any other way to solve this issue?
UPDATE
what about BCP Utility?.
I don't have such awareness about it, Is it good performance to export and import for bulk data?
Do the following things :
1. Create Linked server
2. writer Query
Let Server1 with IP:172.16.9.13
Server2 with IP:172.16.9.14
You want to move data from Server1 to Server2 then first add Server2 at Server1
The Write Query Like
Insert into 172.16.9.14.SomeTable
select * from 172.16.9.13.SomeTable where isactive=1
====================Create Linked Server =====================
http://sqlserverplanet.com/dba/how-to-add-a-linked-server
You can add linked server and create procedure for moving records as per your filter criteria.Then schedule sql job on daily basis.
Sample Link for Creating Job
Second option:-
Please create Web service .In that service do this functionality .First fetch the data from target server and then insert to source server.Run this webservice in daily basis using timer or HangFire

Oracle Apex Data Load

After creating some pages using Apex 5.1's Data Load Wizard, would it be possible via the Page Designer to somewhere hack into the data and add in 2 extra column data. I am attempting to add the following columns (1) Updater (2) Update date/time. I was able to do the same thing with an Interactive Grid page by adding PL/SQL code to the 'Save' Page Processing section but could not do the same for the Data Load Pages.
I have a five attribute table, 2 of which (Updater, Update date/time) are hidden to the APEX app user.
One option is to use a Data Load Transformation Rule. You can add this by editing the Data Load Definition via Shared Components. You specify the column, and you can specify a Rule Type of PLSQL Expression and set the expression to whatever you want, e.g. SYSDATE.
Another option is to add a trigger to the table to set those columns.

Extended event session on SQL Server 2014 to capture stored procedure calls and arguments passed

I have an application which generates certain reports while values are entered and generate button is clicked on an application.
I know to which database this application is connecting, but don’t know which stored procedure is getting called. The database is having 100s of stored procedures.
So I need to track which stored procedure is called and what arguments are passed while clicking each button on the application.
Guys, please could you help me to create an extended event session which captures every stored procedure call with the arguments passed - in a specific database?
Thanks
JJ
below is the way to capture stored proc details using extended events
1.Go to management ->Extended Events --> sessions-->Right click and say new session wizard and give a new session name
2.In choose template field,dont choose default template and click next..
3.In next screen you will be presented with below screen,search for batch and select sql batch started and completed events as shown in screenshot.. and click next
Note: Extended events so much info ,if you change the channel to debug,you will be presented with many more events like spill to tempdb,cpu..
4.Next screen presents you with options to choose fields of interest,here I choose text,connection id,client name..
5.in the next screen ,select flters based on your choice,i choose databasename ,you can choose batch text as well for a single proc
6.In this screen,you have the options to choose option of storing data,i choose opion1 since ,I may need data sets collected for long period of time.
7.final screen shows you summary and gives you an option to script out what you have done so far .And also start the event session check box in finalscreen as shown in screen below
Now I ran my stored proc in ssms and when finally when I want to see data,i stopped event session .
through File ->new >merge extended events option ,I have the option to choose multiple data sets and it will be shown llike below
I can see my stored proc and fields of interest as highlighted..

Programmatically Archive Access Backend Tables

I have an Access application that is now split into front end and back end databases. I would like the user to periodically archive the data from the back end tables to improve the database performance. What I have in mind is the following:
Create a new empty database file
Create empty copies of selected tables from original backend database
Insert data from original backend database to the new database tables with certain criteria, for example date range
Delete from original backend database tables the archived data
Can I achieve this programmatically so the user only needs to perform simple actions like clicking a button and input the data range?
I am using Access 2003 for my application.
Thanks in advance for the help.
Concerning your Boolean field, if it bothers you seeing the -1 and 0, just open the table in design view, select your Boolean field, then in the properties for 'Format', just either double-click to scroll thru the options or click the drop-down arrow to select the desired format.
It will then display as either 'True/False' or 'Yes/No' or 'On/Off'

How to copy all the data from a table in Sql Server 2008 to file

I have created a table in sql server 2008 and the table contains a lots of records.I need to get all the data from that table to a script file.
If you have SSMS;
Right click on your database
Generate scripts
Change radio button to Select specific database objects
Check the tables box
Select your table
Next
Set the filename etc
Click on Advanced button
Change the Types of data to script setting to Schema and data
Click next to finish
Blog post here with screenshots for clarification