How to create an alert in a script

Dear Colleagues,
I would like to know if it's possible to create an alert which should be displayed then in the communication channel of a specific user in a custom script.
If it's possible could you please share what Class method should I user?
Regards,
Martin

Are you trying to do something like an alert in javascript?
Try this:
1. Create an extension field of type BigText (this can be made hidden through page customization)
2. Write the following script in your script. I put it on load of the document. you can put it in any event.
String str = "<body onLoad=\"alert('this is from my alert');\"/>";
BigTextIfc st = doc.getExtensionField("MRO_TEST").get();
st.setText(str);
However, you can condition it based on your requirement.
Hope this helps.
Regards,
Bindu Sharma

Similar Messages

  • How to create an alert to inform me when weblogic services are down

    how to create an alert to inform me when weblogic services are down
    Thank you

    Hi,
    This can be done using Oracle Enterprise Manager grid control. Also you can do it using wlst scripting. Please find below url for details regarding this.
    http://middlewaremagic.com/weblogic/?p=5838
    If this helps you please mark.
    Thanks,
    Kishore

  • HOW TO CREATE A VARIABLE IN SAP SCRIPT

    HI ALL,
    CAN ANYONE TELL ME HOW TO CREATE A VARIABLE IN SAP SCRIPT.
    THANK YOU,
    BYE
    TAKE CARE.

    Hi Ravi,
    You can use like this
    A text in the editor contains the following DEFINE commands:
    /: DEFINE &mysymbol& = 'xxx xxx xxxxx xxxx'
    &mysymbol&
    /: DEFINE &mysymbol& = 'yyyyy yyy yyyy'
    / &mysymbol&
    The printed text appears

  • Sap script '' how to create table frame in sap script"""

    i have some problem in sap script''  how to create table frame in sap script"""

    Hi,
    you can use BOX command..
    Syntax
    /: BOX [XPOS] [YPOS] [WIDTH] [HEIGHT] [FRAME] [INTENSITY]
    Effect: draws a box of the specified size at the specified position.
    Parameters: For each of XPOS, YPOS, WIDTH, HEIGHT and FRAME both a measurement and a unit of measurement must be specified. The INTENSITY parameter should be specified as a percentage between 0 and 100.
    1. XPOS, YPOS: Upper left corner of the box, relative to the values of the POSITION command.
    Default: Values specified in the POSITION command.
    The following calculation is performed internally to determine the absolute output position of a box on the page:
    X(abs) = XORIGIN + XPOS
    Y(abs) = YORIGIN + YPOS
    2. WIDTH: Width of the box. Default: WIDTH value of the SIZE command.
    3. HEIGHT: Height of the box. Default: HEIGHT value of the SIZE command.
    4. FRAME: Thickness of frame.
    Default: 0 (no frame).
    5. INTENSITY: Grayscale of box contents as % .
    Default: 100 (full black)
    Measurements: Decimal numbers must be specified as literal values (like ABAP numeric constants) by being enclosed in inverted commas. The period should be used as the decimal point character. See also the examples listed below.
    Units of measurement: The following units of measurement may be used:
    • TW (twip)
    • PT (point)
    • IN (inch)
    • MM (millimeter)
    • CM (centimeter)
    • LN (line)
    • CH (character).
    The following conversion factors apply:
    • 1 TW = 1/20 PT
    • 1 PT = 1/72 IN
    • 1 IN = 2.54 CM
    • 1 CM = 10 MM
    • 1 CH = height of a character relative to the CPI specification in the layout set header
    • 1 LN = height of a line relative to the LPI specification in the layout set header
    /: BOX FRAME 10 TW
    Draws a frame around the current window with a frame thickness of 10 TW (= 0.5 PT).
    /: BOX INTENSITY 10
    Fills the window background with shadowing having a gray scale of 10 %.
    /: BOX HEIGHT 0 TW FRAME 10 TW
    Draws a horizontal line across the complete top edge of the window.
    /: BOX WIDTH 0 TW FRAME 10 TW
    Draws a vertical line along the complete height of the left hand edge of the window.
    /: BOX WIDTH '17.5' CM HEIGHT 1 CM FRAME 10 TW INTENSITY 15
    /: BOX WIDTH '17.5' CM HEIGHT '13.5' CM FRAME 10 TW
    /: BOX XPOS '10.0' CM WIDTH 0 TW HEIGHT '13.5' CM FRAME 10 TW
    /: BOX XPOS '13.5' CM WIDTH 0 TW HEIGHT '13.5' CM FRAME 10 TW
    Draws two rectangles and two lines to construct a table of three columns with a highlighted heading section.
    check the fallowing link also
    http://help.sap.com/saphelp_40b/helpdata/en/d1/803293454211d189710000e8322d00/content.htm
    Mark the points if u find it useful...
    Regards,
    Omkar.

  • How to create Oracle Alert without metioning the email address in To Field

    Hi,
    I just wanna know that how to create Oracle Alert without metioning the email address in To Field.
    Please help thanks.

    If you don't enter anything in the email field, the alert email won't go out.
    If you just want to test or if you plan to use the history, you can put a non-existant email there.
    The alert will fire anyway.
    Hope this helps,
    Sandeep Gandhi

  • How to create a class using java script..

    Hi all,
    Iam new to java script and I tried out the following program but its not working..I basically created a class just like a java prog' but Iam not getting any output or error.Iam attaching the code below.
    If I created one function inside the script and create one object its working fine but what should I do when I have a lot of function??so I created a class and put all the function and created an object but its not working..
    Do let me know what changes should I do..Iam attaching the code which I had written. or give me an example of how to create a class with couple of functions using JAVASCRIPT
    Thanks
    Avis_su
    <html>
    <head><title>JSP Page</title></head>
    <body>
    <SCRIPT language = "JavaScript">
    <!--
    //Created classes
    class book
    var title: String;
    var author:String;
    function author()
    doucument.write("Author is " +this.author);
    function tile()
    doucument.write("Title is " +this.title);
    function printall()
    var counter = 0;
    function author();
    function title();
    var chapters = Array[String];
    for(chapter in this chapters)
    counter++;
    document.write("Chapter" counter" :"+this.chapters[chapter]+"<br>");
    var thisbook = new book()
    thisbook.author = "Sivagami";
    thisbook.title = "MS in CS giude";
    thisbook.chapters = new Array[10];
    thisbook[0] = "Prepare to Excell in all ";
    thisbook[1] = "Learn to be happy";
    thisbook[2] = "Learn to be healthy mentally emotionally physically";
    thisbook[3] = "Siva and Subbu along with kidssssss will be successful in future";
    thisbook.printall();
    //-->
    </script>
    </body>
    </html>

    Run this program to get your answer:
    public class AnswerToYourPost {
    public static void main(String args[]) {
    System.out.println("TRUE/FALSE: This question
    ion belongs on a Java forum.\n"
    + "ANSWER: " + ("Javascript" == "Java"));
    }Since when do we compare objects for equality using operator == ?

  • How to create event alert for particular column get updated

    Hi every one.... plz help me
    How to create oracle event alert when particular column is update. plz help me.... Acutually i need email alert when ever list price for an item column in pricing table get updated+... plz. Its urgent.

    Oracle Event alert is based on update of specific table and not on specific column in table.
    However you can create a trgigger on table which is based on updat of column. And in this trigger you can send a mail using plsql.
    HTH

  • How to create table in the sap script

    Hi,
    How to create a table in the  sap script layout, i Have to use table in the main window with  7 columns. can any one send sample code.
    How to calculate the number of line items which are displaying in the main window, if the number of line items are exceed in the main window then the amount has to be calculate and print as "BALANCE FORWARD" and the next page had to be displayed as "CARRY FORWARD" that amount. if this is the last page not subsequent page the amount had to be calculated the carry forward amount and total amount and print as "TOTAL AMOUNT". i am creating the new layout and the program is the standrad driver program i have to use and i have to use the standard Text elements only, can any one help me on this issue

    hi
    good
    there is no "pattern" option in SAPscript. All you have at your disposal are the following SAPscript commands: BOX, POSITION and SIZE. Not only are these commands both confusing and tedious to implement, they also are limited in what they can achieve. For instance, although you can suppress a box during printout (by making it conditional), there is no simple way to adjust it dynamically instead. Thus, to divide sequential line items, you may wish to use an underline (ULINE) or simply white space.
    thanks
    mrutyun

  • How can create a table in sap script?

    Hi,
    How to create a table in the sap script.i Have to use table in the main window with 11  rows and 3 columns. can any one send sample code. Any ideas?¿
    THKS 4all.

    Try and check on the below logic....
    1. write -
    2. write headings with '|' at start and end as well as the field separator.
    3. write -
    4. similar to step two write the data with pipe separators.
    5. write -
    regards
    Anurag

  • How to create an alert at the list item of List box in vbs/c sharp

    Dear All,
    I need to know how can we create an alert, or a message on the execution of the last item in the List box.

    What do you mean by "on the execution of the last item in the list box"? Do you mean when that last item of a ListBox is selected? If so, you could use the following code:
    Private Sub ListBox1_SelectedIndexChanged(sender As Object, e As EventArgs) _
    Handles ListBox1.SelectedIndexChanged
    Dim lb As ListBox = CType(sender, ListBox)
    If lb.SelectedIndex = lb.Items.Count - 1 Then
    MessageBox.Show("Last item is selected")
    End If
    End Sub

  • How to create an Alert Service using Oracle9i wireless?

    Hi All,
    I wanted to create an alert based service on oracle9i...but i am unable to figure out from where should i start doing..i am under basic confusion of how this whole system actually works..how to configure my service..can any body suggest me...
    thanks in advance
    krishna

    You can use the web enabled portal of ASWE. This can be found in one of the folders:
    oracle home/panama/server/portal/Login.jsp
    oracle home/panama/server/papz/
    please add an alias to your apache webserver so that you can run the Login file. Once your are logged in you can add alert addresses and alerts.
    Be aware that you need to configure an sms server if you would like to create alert services for mobiles. You can also add an email adress.
    Good luck
    Thomas

  • How to Create an Alert on a V$Lock Table

    Hi Gurus,
    Can anyone help me out on. how to create an event alert on locks table (V$LOCK). so that whenever a table is locked , i can send the email notificaiton to the user regarding the locking history.
    any approach is highly appreciable.

    Hi,
    as event alerts in eBS in fact are based on trigger concept and it's not allowed to
    create triggers on objects owned by SYS i don't think that this will be possible.
    Regards

  • How to create and upload logo into script

    hi guys,
                can you help me how to create logo and upload the logo into sap script please...

    Hi
    Welcome to SDN forum
         SAP SCRIPT
    To create a logo in SAP printouts just do the following
    1. Save a Logo using Imaging, Paint shop Pro or Corel Draw as Tiff file.
    2. Run  program RSTXLDMC and enter the following parameters
       Enter file name                     C:\COMPLOGO.TIF
       UOM                           CM
        Line width for text                132
        Text name                     ZHEX-MACRO-COMPLOGO
        Text ID                          ST
        Text language = E
        Number of Tiff gray levels (2,4,9) 2
    3.  Then Create a new window 'COMP' with attributes;
    Window COMP description Company Logo
    Left margin 7.00 CH window width 10.00 CH
    Upper margin LN window height 8.00 LN
    Finally in the text element, mention
            /: INCLUDE 'ZHEX-MACRO-COMPLOGO' OBJECT TEXT ID ST LANGUAGE 'E'.
    Please note that if object name is not indicated as 'ZHEX...’ the logo may not be printed!
    You will not be able to see the logo in a test print. The same will be printed in actual printout.
                          SMARTFORM
    1)     In Smart Forms Editor, In left pane, right Click any Page (say Page1) and select Create -> Window, Give it a name and Description (Say Window1)
    2) Right Click on Window (Window 1) and select Create -> Graphics, Give it a name and description
    3) In general Attributes, Select Name, get search help (F4) , you will find a list of pictures
    4) Select any picture and set its Resolution in DPI
    5) Press F9 to open Smart Forms Builder, Select window (Window1) and In Output options window set, size and   position of the Logo
    6) Set any other parameters if required, save and activate.
    7) If there is only 1 Window in the forms, set it as Main Window in general attributes.
    8) Use  TCode SE78 to upload new pictures and logos.
    look at Thread Dynamic Graph in smartforms
    Refer the links also -
    Re: Dinamic Graph in smartforms
    How to get file perperties in Unix server
    regards
    Anji

  • How to create iview alerts?

    I have imported iview alert templates into the SAP enterprise portal. The page is showing no error. But how can I make the alerts work? I have tried to do publication into inbox of SAP users. But that does not seem to create an alert in the iview alert. What is this alert refering to?
    Is it related to KMC? I have not yet installed Knowledge Management Collaboration of integration kit.
    Thanks for any ideas!

    Hi Fei,
    the alerts are those that are being created in Crystal Reports. You would have to create a Crystal Report object with Alerts and schedule the report. If then the data triggers these alerts they will be surfaced in the iView
    ingo

  • How to create an Alert for customer birthday

    Hello,
    We need to create an alert on the context area - alerts area - when we meet a customer that have a birthday today.
    Does anybody know how to do it? steps to do it?
    thanks in advance
    Sara

    Hello Sara,
    You can change either the colour of the alert that is displayed in the first row (first alert) or the second row (second alert) or both.
    You will have to modify the stylesheet for this. Here are the instructions.
    (I assume want a red coloured alert)
    1. Open BSP Application CRMCMP_IC_FRAME in SE80.
    2. Open for Change MIMES/stylesheets/contextarea/<SKIN>/crmcmp_ic_frame_contextarea.css in Notepad (or any text editor)
    3. Search for the string '.firstalert' (without the single quotes)
    4. For red coloured top alert, change the above string to '.firstalert' (without the single quotes)
    5. Search for '.secondalert' and replace it with '.secondalert'.
    6. Save the file and quit notepad.
    7. Clear the web browser cache and the ICM Cache (tx. SMICM=>menu Goto=>HTTP Server Cache=>Invalidate=>Global In System)
    8. Start ICWebClient and send an alert.
    Regards,
    Kiruthika

Maybe you are looking for

  • Very disappointed with Motorola Razr M AND VZW Run Around

    I got the Motorola Razr M last December.  I picked the Motorola M because it was a nice compact size without compromising screen size and Motorolas are very durable phone....or so I thought.  I have had nothing but problems with this model phone.  I

  • Reader 9.3.3 crashes the second time I print

    Running Adobe Reader 9.3.3 on Slackware Linux 13.1 (Kernel 2.6.33.4, 32 bit Intel). I can print fine, but only once. The second time I try to open the print dialog, Adobe Reader closes - crashes with a segmentation fault.  This is 100% repeatable, an

  • Launch new web browser during webGui transaction

    Question: Is there as easy way to launch a new web browser window (IE) during a webGUI transaction (from the ABAP code). Background: We have a transaction linked to a simple ABAP report that is launched from a web based non-SAP reporting tool via the

  • Chart generated to PDF

    Hello Everyone: Report Builder 6.0.8.12.1 Problem: I have created a report with a chart. The reports prints out correctly with no problems, but when I save the report as a PDF file the chart labels are backwards (as if I am reading the labels by look

  • When i open a file dropbox

    when i open a file on my iPad or phone it tries to open it in dropbox. It used to open in word or excel or pdf. What can be undone or done to correct this?