Triggers in PeopleSoft - peoplesoft

Can we create triggers in PeopleSoft when running Peoplesoft App Engine?
We want to create triggers for some tables based on the selection at the time of App Engine
Thanks in advance

Take a look at the %Execute function to execute multiple sql statements or an pl/sql block from an AE program. This way you could create a trigger in an AE Program.
Documentation can be found in the Oracle PeopleBooks here: https://docs.oracle.com/cd/E55243_01/pt854pbr0/eng/pt/tape/langref_UsingApplicationEngineMeta-SQL-0771d9.html#topofpage

yes you can do that.
you can create a trigger on insert on PSPRCSRQST table, you will have process name in prcsname field, capture and do what ever you want

Related

Where to find condition value when using Add-AzMetricAlertRuleV2 in Azure powershell?

I am very new to Azure and currently looking for assistance to help me start my project. Recently I am trying to automate the process of adding alerts for our Azure CosmosDB.
After some research, it looks like I can use Add-AzMetricAlertRuleV2 to add alerts through powershell. According to MS online document I will need to pass $condition to add the rule to the existing ResourceGroup. Where can I get all the existing conditions that I can add to the rule so I can sort out the one that is needed? Some people use New-AzMetricAlertRuleV2Criteria to assign the value that need to be passed to $condition. And I can see some example from MS website: https://learn.microsoft.com/en-us/powershell/module/az.monitor/new-azmetricalertrulev2criteria?view=azps-5.0.0
However the above document from MS is not clear to me where I can find the whole list of the name spaces along with the existing criterias that I can add. For example, if I want to add an alert when a new cosmos DB is created on one of the existing ResourceGroup using powershell, where can I check what is the name space I can use to add the new criteria? In another word, where can I find out all the existing conditions with the name space along with them? Thanks,
For cosmos DB, the metric namespace will be Microsoft.DocumentDB/databaseAccounts.

Find the application from which TD query submitted

I am using Teradata v14. I want to use the PDCRINFO.DBQL* history tables to find out the application from which a particular query was submitted by a user.
For instance, I would like to know if a query was submitted from SQL Asst or by Business Objects, or by Informatica or may be even by a bteq script from unix etc.
Can anyone please advise ? Any pointers appreciated..
Thanks in advance
In DBQL you have the AppID. This one is provided by the Application itself and sadly not always that self-explaining. But you can identify the App.
Mostly you have to group some AppIDs to one App when doing reporting. E.g
WHEN DBQL.AppID LIKE ANY ('QUERYMAN', 'SQLA%') THEN 'TD SQL Assistant'
,WHEN DBQL.AppID LIKE ANY ('BUSOBJ', 'WEBIRICHCLIENT', 'WIREPORTSERVER') THEN 'SAP BusinessObjects'

How to fetch Row counts into a variable in ODI?

I am using Oracle Data Integrator 11g, I have designed a package with 2 interfaces in Oracle Data Integrator. Both the interfaces are inserting some records into target table (Which is in Oracle).
These 2 interfaces are working fine. But i want to capture the record counts from both the interfaces and i have to load those counts into a new audit log table.
Is there any option to do that? If so, kindly reply with your answers.
The getPrevStepLog() method from the Substitution API allows to retrieve all kind of information on the previous step execution, including the number of rows inserted with the INSERT_COUNT parameter.
If you want to store that value in a variable, you can use this kind of refresh query for the variable and place it just after the interface in the package in refresh mode :
SELECT '<%=odiRef.getPrevStepLog("INSERT_COUNT")%>' FROM DUAL

Sage CRM - Capture entity event update?

Can i alter/intercept the event when updating an entity?
For example, for when i update the company entity?
The idea is to delete somehting in the BBDD after the entity is updated
You can use Table Scripts to run functions when a record is inserted, after a record is inserted, when a record is updated, or when a record is deleted.
Table Scripts use JavaScript, but have access to the server-side functions (such as FindRecord, SQL statements, etc).
So, you can add a Table Script to the Entity to delete a record via a SQL statement when a record is updated.
It's difficult to give you an example without knowing exactly what you're trying to do though.
Six Ticks Support

Sql Database Server

Hi i have a sql database server runnin on my desktop. I want to create an asp.net application to detect when new data has been inserted into the database. Is there a command in visual studio to detect when theres new data right away?
Use the timestamp datatype on each column. This will stay identical until a change is made to any column in that row. If you combine this with the rowcount you can be certain if anything has changed in your database. You would need to cache the current timestamps and row count and compare them with the results of a query, you can then find out if there is a change.
So in your answer to:
Is there a command in visual studio to
detect when theres new data right
away?
Yes there is, although its not a command is the timestamp function (not to be confused with anything to do with the time)
Perhaps you need to provide more details to your scenario since constant querying of the database might not be the best way forward.
You can get a row count of your dataset and create a application
IN VB
Dim i as Integer
i=dataset.tables("table").rows.count
in sql backed return a count of a table and create a ASP.Net website to get the count and when count change alerts you
It may be heavier duty than you are looking for, but SQL Notification Services will do what you want. Essentially you execute a query and tell notification services you want to be notified whenever re-running that query would produce different results.
if you are using caching you can make it dependent on sql.
or you can fire email using sql trigger so when ever trigger get fired you will receive an email.
otherwise you will have to check your db again and again for any changes.
if you can provide more details about exact situation , we can provide more specific solution
You can create a webservice and call it using javascript.
here you can find sample how to call webservice using javascript:
function CallWebservice()
{
myWebService.isPrimeNumberWebService.callService(isPrimeNumberResult, "IsPrime",
testValue.value);
setTimeout("CallWebservice()",100);//here set time according to your requirement
}
For timer in javascript:
http://dotnetacademy.blogspot.com/2010/09/timer-in-javascript.html
For webservice in javaScript:
http://www.webreference.com/js/tips/020715.html
How to call webservice in JavaScript for FireFox 3.0

Resources