Query to populate an alert message to avoid the duplication of Reference no
Hi Experts,
SUB:Query to populate an alert message to avoid the duplication of BP reference no.
In A/R invoice, BP reference (numAtcard) is used to enter sales Order no as the reference number. As human error, double A/R invoice is created to that particular Sales Order no.
So,I want a formatted search query in that BP reference field, so that when i type the sales order number and give tab, it should populate the alert message if it already exists.
Moreover i do not want to block it through store procedure method, only warning is required to my scenario.
Kindly, help me on this ground.
Regards,
Dwarak
Hi there, i think this could work, maybe you'll only need to configure the Formated search to work with the document total, each time it changes
declare @numatcard varchar(15)
declare @count int
set @numatcard=(select $[oinv.numatcard])
set @count= (select count(numatcard) from oinv where numatcard=@numatcard)
if @count>1
select 'There is a duplicated reference'
select @numatcard
hope it works
Similar Messages
-
When I am writing an email, I get an alert message that says “The message could not be copied or moved to the drafts folder. Writing to the folder failed. To gain disc space, choose Empty Deleted and choose Compact Folders and try again.”
If I do that, I get a message saying “There was an error copying to the Sent folder,, retry?”
If I retry it sends the uncompleted email. All I can do is keep deleting the message and carry on. Then the whole business might repeat itself.
Help!
FrankBecause the location for each song in your library is on your hard drive. If the hard drive isn't there, how can iTunes play it?
You'll have to move/copy the music from your hard drive to your computer's hard drive.
Basically, EASIEST way to do all this, if you don't care about your play counts, etc...
-Delete EVERYTHING from iTunes, so that your library is now empty.
-Go to "Advanced" inside of the "Preferences" window, found in the "Edit" drop-down. You can also access Preferences by pressing Ctrl+, (Press Ctrl and the comma key)
-Change your iTunes Media Folder Location to something simple, but on your computer. I use C:/iTunes. Make sure "Keep iTunes Media Folder Organized" and "Copy files to...." are both checked. You can close Preferences now.
-Now, drag and drop your music from your hard drive into your iTunes library. iTunes will automatically add the music to your library, as you would expect, and also creates a copy of each file to place into that iTunes Media Folder you just created.
Shouldn't have any more problems... -
Every time I sync my iCal on my computer through iTunes with my iPhone 4 or iPad, duplicate entries are generated on both systems. What am I doing wrong or how can I avoid the duplications? I have been doing this for several years and this problem is a more recent issue, like in the last 6 months. I have been deleting the duplicate entries, on both systems, but some duplicates reappear through "general" entries that are connected to the correct color for a Calendar, but not the name. I am going nuts and wasting tons of hours trying to get the 3 calendars to sync without generating duplicate entries.
Choose one of the Calenders on ONE of the computers OR the MobileMe as the Master / correct account.
The REINITAILISE the data of MobileMe within preferences on the computer defining the datatransfer correctly (in the advanced box of preferences). The synchronise iphone contacts and calender directly on-line to MobileMe.
I posted a question on this today, and gave my own reply !
Regards,
Kevin -
Need alert message when closing the file
Hi friends,
One of my friend has an forgetting habit, always forgets some important things to check before delivering the files. So thought of developing some scripts for him and did a couple. He was happy with that but still not upto the mark. The scripts I gave needs to click in the scripts panel. He still forgets to click the scripts in the rushing deadlines. This time I am thinking of something but I have no solution/answer. I'm planning to give an alert message box whenever he closes/exits the file. That is when he is done with the job and he says Ctrl+W or File-Close or Exit, he should see an alert message to check some things which are really imporatant. Writing scripts needs to click them, which he is missing in rush deadlines.
So can we create anyscript which is attached to the system close command? or Edit the default system close command so that he will not miss anything? I know this is crazy but just want to help him.
Your help is really appreciable!!in CS3 you can use Event Listener
and example of AfterSave
http://www.adobeforums.com/webx?128@@.59b4b8e6
robin
www.adobescripts.com -
Customized alert message formed in the UDF to be sent to Alert Inbox/Email
Hi,
The scenario is as follows :
1. We have an XI object without BPM.
2. We have an UDF written inside a graphical mapping and we are raising an
runtimeexception in that UDF. The mapping execution and further processing
stops when this runtime exception happens. We have a customized exception
message written for this runtime exception.
3. When this runtime exception takes place, we can see the customized
exception message in the TRACE of the sxmb moni
4. Our requirement is to have this customized message of the UDF to appear in
the alert inbox and alert email notification (apart from coming in the TRACE of
sxmb moni).
Please let me know as to how to route the exception message present in the UDF to Alert Inbox and Alert email
Regards
GaneshHi,
You had mentioned that you need to raise exception as well as provide an alert in inbox.
Raising Exception could be done easily through your UDF.
For raising alerts, you could use standard alert configuration (through ALRTCATDEF). However, this option is good if you are not passing any custom application specific variables.
>><i>In this case, if message is going in to error while getting processed after raising the exception, then alert could be configured. Refer following link</i>
By this, I meant that the message processing should go in error for alerts to fire, because they are fired for messages goin in error.
Thus in short, for configuring alerts, make sure that:
1. You are not using any application specific variables. However, you can use system variables like Message ID, Sender Service etc.
2. Message is going into error state in SXMB_MONI after processing.
Bhavish -
In the following coding i have received the duplicate value ,tel me some ideas to avoid the duplicate values
Do Until rs4.EoF
rs2 = objCompany.GetBusinessObject(BoObjectTypes.BoRecordset)
rs2.DoQuery("select A.code,A.MsgData,B.UserSign,C.Portnum as MobileNum from OALR A inner join ALT1 B on A.Tcode=B.code inner join OUSR c on C.UserID=B.UserSign where A.code='" & Trim(Ocode) & "' ")
' rs2.DoQuery("select A.code,A.MsgData,B.UserSign,C.Portnum as MobileNum from OALR A inner join ALT1 B on A.Tcode=B.code inner join OUSR c on C.UserID=B.UserSign where A.code='" & Trim(field) & "' ")
code = CStr(rs2.Fields.Item(0).Value)
MsgData = CStr(rs2.Fields.Item(1).Value)
UserSign = CStr(rs2.Fields.Item(2).Value)
MobileNo = CStr(rs2.Fields.Item(3).Value)
If MobileNo <> "NA" Then
rs5 = objCompany.GetBusinessObject(BoObjectTypes.BoRecordset)
'rs5.DoQuery("insert into [@smsmaster](docentry,code,UserSign,u_modulecode,u_categorycode,u_taskid,u_createddt,u_sentdt,u_mobileno,u_message,u_bulksms,u_sentflag,u_statusreport,u_smsno,u_custname,u_lcode) values('" & DocNo & "','" & code & "','" & UserSign & "','ots','','10','" & DtSms & "','" & DtSms & "','" & MobileNo & "','" & MsgData & "','" & DocNo & "','No','No','" & DocNo & "','" & UserSign & "','')")
rs5.DoQuery("insert into [@smsmaster](docentry,code,UserSign,u_modulecode,u_categorycode,u_taskid,u_createddt,u_sentdt,u_mobileno,u_message,u_bulksms,u_sentflag,u_statusreport,u_smsno,u_custname,u_lcode) values('" & DocNo & "','" & code & "','" & UserSign & "','ots','','10','" & DtSms & "','" & DtSms & "','" & MobileNo & "','THANKSForsms','" & DocNo & "','No','No','" & DocNo & "','" & UserSign & "','')")
End If
rs4.MoveNext()
Loop
Regards
shanmugamHi,
there are some ways.
1.) you are going through the rs4 recordset.
try using SELECT DISTINCT there
2.) before you INSERT in the target table have a look if the "entry" exists already
regards
David -
Looking for a SQL query to get all the possible Alert Messages from the Rules in a Management Pack
For reporting, I'm looking to get a SQL query of all the possible Alert Messages for Rules configured in a Management Pack (not necessarily the ones that have thrown alerts). I can do this for Monitors, but not for Rules.
The configured alert messages for the Management Pack Monitors
go like this: ManagementPack > MonitorView> RuleModule > RuleModule.Alert Message > Localized Text
The configured alert messages for the Management Pack Rules
should go something like this, but there is a missing link: ManagementPack > RuleView > RuleModule > ? Missing Link ? > Localized Text
The Rules are tied to the Module, but I don't see a connection from the RulesModule to the Alert Message that I see in the LocalizedText. The Rule names do not always equal the Alert name.
Can someone provide the missing link?Hi,
please try below powershell code to find the corresponding management pack for specific alert:
$Alert = get-scomalert | where {$_.Name -like 'Agent Proxy Not Enabled*'} | select -first 1
If ($alert.IsMonitorAlert -eq "True") {
write-host "Ths is a monitor-generated alert"
get-scommonitor -ID $Alert.MonitoringRuleID | select Enabled, DisplayName, ManagementPack
else
write-host "This is a rule-generated alert"
get-scomrule -ID $Alert.MonitoringRuleID | select Enabled, DisplayName, ManagementPack
In addition, please also refer to the below link:
http://blogs.technet.com/b/mazenahmed/archive/2011/12/02/using-powershell-to-map-opsmgr-active-alert-to-its-corresponding-rule-monitor-and-management-pack-name.aspx
Regards,
Yan Li
Regards, Yan Li -
Url for sxmb_moni to alert message
Hi all;
I have a query that can we pass the url for sxmb_moni or something like that into our alert message trigerred from the BPM.
MuditMudit,
Open you alert in Alert Inbox and you will find an Tab called Follow On Activities.
This will have a link --> Message Monitor.
Click on this link and you will be able to see the actual error message in the tab MESSAGE CONTENT.
You need not do anything special for this.
Regards,
Bhavesh -
Display an Alert message in PL/SQL block in APEX
Hi,
we are getting an oracle exception while inserting a new row. As it is having the unique constaint on a coulumn.
Now the problem iis we need to Display an "Alert message" based on the input field validation. That java script code for alert has to be embeded nside a PL/SQL block in Oracle APEX Application.
we tried doing this with below code:
Begin
INSERT INTO <<table name>>(ID,NAME) VALUES (s1,:TXT_s2);
exception when others then
htp.p('<script language="javascript">');
htp.p('alert("Exception");');
htp.p('</script>');
end;
If anybody knows .... please reply.
Thanks,
Subarna
Edited by: user9955252 on Apr 21, 2010 1:47 AMHello,
APEX Forum is here : Oracle Application Express (APEX)
Regards -
Hi,
My name is Norbert. I am having some difficulties restoring my icloud back up. My ipad was doing an icloud back up and the alert message displayed on the ipad after my internet was interrupted "A wi-fi connection is required to download your apps and media".
I got the internet working, my ipad is receiving internet network but the alert message is still displayed on the ipad and won't go away, to make matters worse the ipad is frozen and i can't do anything.
Please can anyone with a similar experience tell me what to do in this situation?
Thank youWelcome to the Apple Community.
Have you tried a hard restart. Press the on/off button and homescreen buttons together until the device shuts down. -
Hi, what steps must I take to add an alert message that reminds the Adobe Reader end user to Print their form if they wish to keep a record of their form data.
Also, where should such an alert appear, when and upon which event type?
HarryThanks Jimmy, unfortunately it doesn't work on my Submit button (which is where I do want it).. Here's what I have on the standard Submit button.
----- form1.SF_P8.SF_print-submit.EmailSubmitButton::click - (JavaScript, client) ------------------
xfa.messageBox("Please ensure you also print a copy for your records", Warning, 1, 1);
this makes my button do nothing at all, not even submit. I think it's because there are 2 events associated with it, the invisible "submit" and the new warning. Any suggestions?
Harry -
Display an Alert message from PL/SQL block in APEX
Hi,
we are getting an oracle exception while inserting a new row. As it is having the unique constaint on a coulumn.
Now the problem iis we need to Display an "Alert message" based on the input field validation. That java script code for alert has to be embeded nside a PL/SQL block in Oracle APEX Application.
we tried doing this with below code:
Begin
INSERT INTO <<table name>>(ID,NAME) VALUES (s1,:TXT_s2);
exception when others then
htp.p('<script language="javascript">');
htp.p('alert("Exception");');
htp.p('</script>');
end;
If anybody knows .... please reply.
Thanks,
SubarnaIf your end goal is showing a pretty error message instead of the message that the tables unique constraint raises try the following. This logic will show a nice message and not try to insert non-unique data.
(1) Create a validation of type "Function Returning Error Text".
(2) Place similar code like the following in your validation. Notice that if the unique name does not exist the no_data_found returns null allowing the validation to pass.
DECLARE
v_error varchar2(100);
BEGIN
SELECT 'A person by this name already exists.'
INTO v_error
FROM your_table
WHERE your_name = :P1_YOUR_NAME;
RETURN v_error;
EXCEPTION
WHEN no_data_found THEN
RETURN NULL;
END; -
Want to send the Sales Order No in Alert message
Hi,
my scenario is IDoc to File. suppose due to sme validations my message got failed in any where. immediatley I'm sending an Alert to End User . But as per the prsent devolopment End user is not understaning that which Sale order got failed. End user is not capable to open the Hyperlinks of the message monitoring . So, user is asking to send the Sales order no inside the Alert message (Mail) .
is it possible to send the message content also inside the Alert Message (Mail)
Regards
Jainis it possible to send the message content also inside the Alert Message (Mail)
Since the salesorder number comes from the payload....you need to introduce a BPM here....there is no other option than this to get a value from payload into alert message..
There is a blog by Michal explaining the same....please check...if i get it will update the same:)
this is the blog i am talking about....check if it helps you..
/people/michal.krawczyk2/blog/2005/03/13/alerts-with-variables-from-the-messages-payload-xi--updated
Regards,
Abhishek.
Edited by: abhishek salvi on May 7, 2009 8:09 PM -
Re: Reference field to change red alert message. How?
Hi FICO Consultant,
We are using T-Code: FBL1N, using our com code and execute the report. In this report, we have used the reference field for company purpose key in the same reference no.: (EX: 789100). The same number appeared again on the screen (Reference No.). That time red alert message appeared on the screen or an existing same reference in this field. Any body gives the idea to me in FICO.
We expect the reply from you.
Thank you,
Regards,
Krishnan.The icons are a function of the Alert style: that can only be changed in the property palette. I'don't believe there is any way of substituting your own icons for the Oracle ones short of overwriting the Oracle supplied files with graphics of your own. However, we can set the Alert Title and Message Text programmatically with the SET_ALERT_PROPERTY built-in.
Cheers, APC -
Variable name not coming in the alert message
Hi All,
Reference with blog <u>/people/michal.krawczyk2/blog/2005/09/09/xi-alerts--step-by-step
My problem is alert message not showing the variables value.Alert will generated properly but variable like "SXMS_ERROR_CAT, SXMS_ERROR_CODE" not showing in the alert messages.
My scenario is if sender or receiver adapter has wrong server name then the alert will triggered.
Regards,
SamarjitHi,
SXMS_ERROR_CAT and SXMS_ERROR_CODE are for Integration Engine alerts and will not be displayed for adapter Engine Alerts.
For the adapter eingine alerts , you need to use, <b>
SXMS_TO_ADAPTER_TYPE
SXMS_TO_ADAPTER_ERRTXT</b>
Regards
Bhavesh
Maybe you are looking for
-
I have a company netbook with very limited space on the ssd C:\ drive. Running Win XP SP3. Is there anyway i can install reader to another drive on this system?
-
Change Font size for Line printer when Printing ALV
We are using device type IBM 64xx LP+ emulation 1.00A to print to an IBM line printer. I would like to change the font size of an ALV report I am sending to the device. Can the font size be set in the Printer Initialization section of the Format? Ex.
-
Problem importing specific data from .csv file
Hello! I'm using JDev 11.1.3.0 with JSF ui and I've been following the excellent example about importing comma separated values from a .csv file, of Mr. Bors, but I have a specific problem... 1) When i try to import a date value (format dd/mm/yyyy) t
-
How do I set the OS X mail program to use my Comcast email address? When I click a "send email" link on a websight, the OS mail program pops up to be configured. I do not know the information it is asking for. I just want to use my Comcast email acco
-
Tabstop in a text field not displayed...
Hello, i've got following problem: In an table there's an varchar field. This may contains a tabstop, like this textTextText123Text(now tabstop ) textText In Report the tabstop won't be displayed accurate. Maybe it will be displayed just as on space.