Alert message through the sdk.

hi.
plz have a look on Attached image..
i want to send one alert to the particular user.
i am able to send it..
but here i have  a small  requirement.
Normally alert messages are Working on queries..
suppose
select docentery from ordr where docsttus='open''..
docentry will be popup
if i select the docentry  sales order will be pop up.
the below code i am able to send it...
but
i want to attach  the below query....just like a normal alert message
select docentery from ordr where docsttus='open''..
can i do it...
Dim msg As SAPbobsCOM.Messages = Nothing
                msg = ocompany.GetBusinessObject(SAPbobsCOM.BoObjectTypes.oMessages)
                Dim lretvel, errcode As Long
                Dim errmsg As String
                Dim orec As SAPbobsCOM.Recordset
                orec = ocompany.GetBusinessObject(SAPbobsCOM.BoObjectTypes.BoRecordset)
                orec.DoQuery(" select  U_apmuc  from [@TI_BITEMASAPR1]")
                For i As Integer = 1 To orec.RecordCount
                    Dim ousercode As String = orec.Fields.Item(0).Value
                    msg.MessageText = "Mess"
                    msg.Subject = "subj"
                    msg.Recipients.Add()
                    msg.Recipients.SetCurrentLine(0)
                    msg.Recipients.UserCode = ousercode
                    msg.Recipients.NameTo = ousercode
                    msg.Recipients.SendInternal = SAPbobsCOM.BoYesNoEnum.tYES
                    msg.Add()
                    orec.MoveNext()
                Next
                If lretvel <> 0 Then
                    ocompany.GetLastError(errcode, errmsg)
                    MessageBox.Show(errcode.ToString + " :: " + errmsg)
                    ' Else
                    ' MessageBox.Show("Success")

Hi
In this case you can't use the SAPbobsCOM.Messages object to send the message. You have to use the MessageService where you can define columns and add rows.
Check the following code:
Dim msgServ As SAPbobsCOM.MessagesService
Dim oMessage As SAPbobsCOM.Message
Dim DataColumn As SAPbobsCOM.MessageDataColumn
Dim oRecordset As SAPbobsCOM.Recordset
Try
  oRecordset = oCompany.GetBusinessObject(SAPbobsCOM.BoObjectTypes.BoRecordset)
  msgServ = oCompany.GetCompanyService.GetBusinessService(SAPbobsCOM.ServiceTypes.MessagesService)
  oMessage = msgServ.GetDataInterface(SAPbobsCOM.MessagesServiceDataInterfaces.msdiMessage)
  oMessage.Subject = "subj"
  oMessage.Text = "Mess"
  oMessage.Priority = SAPbobsCOM.BoMsgPriorities.pr_Normal
  oRecordset.DoQuery("select  U_apmuc  from [@TI_BITEMASAPR1]")
  If oRecordset.RecordCount > 0 Then
       oRecordset.MoveFirst()
       For ii As Integer = 0 To oRecordset.RecordCount - 1
            With oMessage.RecipientCollection.Add()
                 .SendInternal = SAPbobsCOM.BoYesNoEnum.tYES
                 .UserCode = CStr(oRecordset.Fields.Item(0).Value)
                 .UserType = SAPbobsCOM.BoMsgRcpTypes.rt_InternalUser
            End With
                 oRecordset.MoveNext()
       Next
       DataColumn = oMessage.MessageDataColumns.Add
       DataColumn.ColumnName = "Order No."
       DataColumn.Link = SAPbobsCOM.BoYesNoEnum.tYES
       oRecordset.DoQuery("SELECT DocEntry, ObjType, DocNum FROM ORDR WHERE DocStatus = N'O'")
       If oRecordset.RecordCount > 0 Then
            oRecordset.MoveFirst()
            For ii As Integer = 0 To oRecordset.RecordCount - 1
                 With DataColumn.MessageDataLines.Add
                      .Value = oRecordset.Fields.Item("DocNum").Value
                      .Object = oRecordset.Fields.Item("ObjType").Value
                      .ObjectKey = oRecordset.Fields.Item("DocEntry").Value
                 End With
                           oRecordset.MoveNext()
            Next
            msgServ.SendMessage(oMessage)
       End If
     End If
Catch ex As Exception
     MsgBox(ex.Message)
End Try
Regards,
Csaba

Similar Messages

  • Please tell me you can get access to the messages through the sdk? Using the protocol Bluetooth (MAP)

    please tell me you can get access to the messages through the sdk? Using the protocol Bluetooth (MAP)

    If you're referring to iMessage, you can't.
    That data is off limits.

  • Why do i keep getting an Alert message saying "The URL is not valid and cannot be loaded "?

    Why do i keep getting an Alert message saying "The URL is not valid and cannot be loaded "?
    This happens a lot regardless of the web page. I continually have to restart FF and it persists still

    Start Firefox in [[Safe Mode]] to check if one of the add-ons is causing the problem (switch to the DEFAULT theme: Tools > Add-ons > Themes).
    * Don't make any changes on the Safe mode start window.
    See:
    * [[Troubleshooting extensions and themes]]
    * [[Troubleshooting plugins]]
    If it does work in Safe-mode then disable all extensions and then try to find which is causing it by enabling one at a time until the problem reappears.
    * Use "Disable all add-ons" on the [[Safe mode]] start window to disable all extensions.
    * Close and restart Firefox after each change via "File > Exit" (Mac: "Firefox > Quit"; Linux: "File > Quit")

  • How can we get a alert message in  the current browser we are using the mom

    how can we get a alert message in the current browser we are using the moment we have entered some data in
    the table...
    I need a popup alert the moment a new record is added in a table... in apex database is 11g xe..
    The idea is I am using a apex application. .The moment new data is added in the table ..I am alerted by a message window..that a new record has been added...
    Thanks
    Edited by: pauljohny on Jun 11, 2012 10:23 AM

    pauljohny wrote:
    how can we get a alert message in the current browser we are using the moment we have entered some data in the table...
    "Current browser"? When viewing anything, or just when using an APEX app?
    Ans .. Just when using apex app....even if the apex app is minimised ..The current browser will be the one where I am using apex app...
    What i am looking for some scheduler .. to check ..in the table every 5 minute for change if there is a change..then a popup alert be shown...
    Split it into [at least] 2 components, database and browser. I'd expect someone calling themself a "DBA Architect" to have some ideas about the database side of things, even if not clued up on JavaScript and AJAX?
    I dont think its a database isssue... When i say to check every 5 minutes ..it could be easily done via dbms_scheduler ...I am having issue in getting the popup alert message...
    in apex... Dont know wether there is a plugin like modal window(available from skill builder) which shall help in this scenario,.Or might be have to use java scripting and ajax ..
    and if it is that (Java scripting and Ajax) .....then shall have to be familiar with java scripting and Ajax...and this shall be a bit time consuming..
    Had a feeling this could be accomplished via java scripting and ajax.. ...but still looking for some easy way..

  • 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

  • Hi, I want to create an alert message in the sqldeveloper

    I am using v. 1.2.0
    Is there an option to pop-up a message in a window when using sqldeveloper?
    I did like a very small user-interface, I insert values to variables with :
    x:=&insert_first_num
    y:=&insert_second
    etc'
    I want to do somehow a message that will jump to the screen like &, there is an option?
    I tried to be clear as much as I can.. hope someone can understand me :)

    thanks, I want to pop-up an alert message, like:
    RAISE_APPLICATION_ERROR (-20004,'YOU SHOULD CHEACK FOR YOUR ORDER NUMBER.');
    but I want the command will commit,
    with raise_application_error, the commant will do the error message and won't commit.
    for an example, if I am doing insert into TABLE I want to raise a message but also the values WILL enter the table.
    Hope it is clear now...
    Thanks

  • Sending Alert messages through mail

    Hi all,
    After configuring alerts and got the relavent messages, I need to send some alert messages to perticular persons.
    How and where I should configure this.
    If anyone is having related information would be very useful to me.
    Venu

    Hi,
    <i>I need to send some alert messages to perticular persons</i>
    Did you have a look at,
    /people/aravindh.prasanna/blog/2005/12/23/configuring-scenario-specific-e-mail-alerts-in-xi-ccms-part--1
    This is the best one assuming you have already configured alerts.
    "Configuring scenario specific E-mail alerts in XI-CCMS"
    And also
    http://help.sap.com/saphelp_nw04/helpdata/en/49/cbfb40f17af66fe10000000a1550b0/frameset.htm
    Regards,
    Anirban.

  • Messaging through the wireless network

    I have a PowerMac G5, two MacBooks, and a PC based laptop all on my Airport Extreme wireless network. They are fully connected, sharing internet, a central printer, and I can move files between my computers. Is it possible to send some type of instant message, or any signal to other computers while they are on the network? All Macs are using OS X 10.4.6. We can message using various internet programs, but I would perfer to message through OS X if possible.
    Bill

    As Duane mentions, you can use iChat. iChat features the Bonjour chat client that will allow you to chat on your own network.
    You can also find a Bonjour chat client for windows here: http://xurble.org/projects/iChatMiranda
    I hope this is what you were looking for!

  • Display an alert message through javascript when report column item is null

    Hello,
    I have a report column item which is an select list item and now i want to display an alert message when value is null, I mean no value is selected, this alert message should be fired when update button is clicked.
    Can anyone please help me with this issue.
    Thanks,
    Orton

    You could try something like this:
    declare
      x        INTEGER;
      err_ct  INTEGER   := 0;
    begin
      x  := 5;  -- number of rows displayed
      for i in 1 ... x (
        IF wwv_flow.g_f08(i)) IS NULL THEN err_ct  := err_ct + 1;
        END IF;
      end loop;
      IF err_ct = 0 THEN
         RETURN NULL;
      ELSE
        RETURN 'Nice error message: you must supply a value.';
      END IF;This would be used with a PL/SQL validation: Function Returning Error Text.

  • Can I extend the scripting support through the SDK?

    I need to create an automated process of saving different layers from documents as different file formats. Unfortunately there is no scripting support for exporting to EMF-format, which I need to do. I glanced on the possibility of calling a self-defined action from my script, but I need to automatically set the output folder and name of the exported files which apparently isn't possible.
    In my frustration I've started to think about a more "advanced" solution, which is: Can I somehow extend Illustrator's scripting support, to be able to export files as EMF? I can't even find how to export files to EMF in the SDK documentation, so I feel a bit lost.
    Has someone done something like this? Or even more desirable, does someone have a better solution to this?
    Thanks!
    Johannes

    Dear Johannes,
    If I had no experience with the SDK, and I only needed a solution as described, I would certainly prefer a scripting solution.
    In that case, I would recommend saving the file to a fixed path and file name with an action or script.
    Then a script could move/rename the file to where you would like it saved. As long as it was being moved to the same drive, the difference in performance would be imperceptible.
    You didn't mention what scripting environment you are using, however, this would be trivial with AppleScript and most likely any scripting language you might be using. If you are using AppleScript, I could provide a one line example on how to move files...
    Hope this helps.
    Best.

  • Is it possible to open/modify a psd through the sdk without opening photoshop?

    I am just starting to study the sdk, but all the examples I have seen are reading psd documents like this (example in C#):
    var app = new Photoshop.Application();
    var documents = app.Documents;
    I don't need to create the Application object, in fact I don't want to call it because it returns the currently running instance of Photoshop and my application has to run stand-alone, independently from Photoshop.
    Is there a possibility to read the document directly, something similar to this?:
    var document = Photoshop.Document.Open(path);
    I imagine that this can be done the hard way if I look at the psd format specification, but is there a way to do it with the sdk?
    A bit of context:
    I would like to create a stand-alone application that uses the functionality from the sdk to change a psd file, but this application should be completely separate from the currently running instance of photoshop.
    This application is intended to be running in the background, while the artist is working on something else, and preferably it should not affect him in any way.

    Hello
    As far as I know this is not possible, and might also be against the license terms of Adobe. My logical thinking says that in order to do that you would have to have two instances of the Photoshop engine running. One will give the services to the plugin and the other will stay with the artist. However, I dont know if this is possible.
    What Im pretty sure of is that there is no way to run the SDK without having Photoshop installed, but this is not what you are looking after, is it?
    Does your application need any communication with Photoshop itself?

  • Everytime I open a new tab, I get an alert message saying the URL is not valid and can't be loaded.

    I must press 'ok' before I can proceed. This happened after I clicked 'deactivate' when I got a new screen when I opened a new tab, which was also a hassle. Previously, I opened a new tab and life was good...no new screens, no messages....
    What happened?

    Start Firefox in [[Safe Mode]] to check if one of your add-ons is causing your problem (switch to the DEFAULT theme: Tools > Add-ons > Themes).
    * Don't make any changes on the Safe mode start window.
    See [[Troubleshooting extensions and themes]] and [[Troubleshooting plugins]]
    If it does work in Safe-mode then disable all your extensions and then try to find which is causing it by enabling one at a time until the problem reappears.
    * Use "Disable all add-ons" on the [[Safe mode]] start window to disable all extensions.
    * Close and restart Firefox after each change via "File > Exit" (Mac: "Firefox > Quit"; Linux: "File > Quit")
    >In Firefox 4 Safe mode also disables plugins (Tools > Add-ons > Plugins) and hardware acceleration (Tools > Options > Advanced > General)

  • Windows messages through the JNI

    My Windows DLL is loaded and called from the JNI. My DLL creates a window for video preview. When running under Java, the window does not get messages passed to it. The mouse cursor becomes an hourglass when passing over this window.
    Question: how can I get Java to pass the Windows event messages to my DLL??

    JNI blocks the windows message pump. Nothing you can do about that, sorry :-(
    btw I've the same problem, looking for a solution (deprecating the messagepump and dispatching messages myself)

  • TS3991 How can I send messages through the messages icon on my Ipad 3?

    I see that there is a messages icon ( for short message service) on my Ipad-3 however I don't seem to be able to use it the way I do it on my Iphone.
    Is there a possibility to use this icon on the Ipad as well?

    The Messages icon on your iPad is not for "short message service" (more commonly known as SMS) - it is for Apple's iMessage service.
    See https://www.apple.com/ios/messages/ for how to set it up.

  • I set up my email through settings, now I can't view my messages through the mail app

    I am a new user to an iphone. How can I use the mail shortcut app on the home screen and view my messages

    is this how you set up your mail
    IOS setting up mail account http://support.apple.com/kb/ht4810

Maybe you are looking for

  • EFI Update Fixes XP Performance ... Even with X1900

    Before installing Windows XP in my Mac Pro via Boot Camp, I just wanted to make certain that the recent EFI firmware update fixes all the issues, including for Mac Pros with the X1900 video card. Thanks, Clark

  • Form 6i printing report directly to printer

    Hi Professionals, I am in badly need of help to print my barcode report directly to printer from form, currently it is working fine if i make it preview first and then user has to select network printer to print, but user is not accepting that manual

  • Quality of movies in Keynote TERRIBLE compared to QT

    I have a movie file exported from FCP with no additional compression, a DV file, and I can play it full screeen on my 933 mHz iBook G4 and it looks fantastic, plays smoothly. The same file, when played as part of a Keynote presentation, shows fuzzy a

  • Lenovo G550 problem HDMI - pc overheats

    When I use my laptop (Lenovo G550 Model 2958) with HDMI cable to a Led TV, the pc overheats much!!! And after 1 hour the laptop turns off alone! I used another HDMI cable, but the problem persist. The problem occurs with Win 7 and also with Win 8. I

  • IPhoto + PSE 8 als externer Editor = nur 4 Fotos auf einmal bearbeiten

    Hallo zusammen, wie schon beschrieben nutze ich PSE 8 als externen Editor zum bearbeiten meiner Fotos, die alle in IPhoto '08 organisiert sind. In IPhoto ist also PSE 8 als externes Bearbeitungsprogramm eingestellt und öffnet sich automatisch beim kl