Starting a service automatically from a validation script

Is it possible to start off a service from a javascript running on the page or as part of form validation ?
When the user is filling out a form, based on the form field validation script I want to be able to invoke a new service. The javascript could also be a page validation script, and so I could do the same validation based on DOM. Bottom line is that I am seeking a way to launch a service and have the service form presented to the browser where this javascript is running.
Thanks.

The approach might depend a bit on your use case but one way is to submit a request through the Requisition API (RAPI) through a JavaScript XHR HTTP POST, I believe a similar technique is used in some of the IAC portlets to submit services such as Power Up and Power Down without launching an order form.
The Requisition API is documented in the IntegrationGuide but you can access the WSDL under the following url: http://<ServerName>/RequestCenter/webservices/wsdl/RequisitionService.wsdl
Alternatively, if you just want to show a new order form in a popup, you can make use of the GreyBox library that is loaded using the GB_showFullScreen function to launch a service in a popup window, to achieve this though you would need to know the service ID to enter in the URL.
Hope this helps.

Similar Messages

  • Starting rio service automatically

    Hai all,
    I have an application where i download the FPGA directly from the host pc (RIO version 3.0).  When i install the exe in a new system the problem am facing is that, RIO service doesnt start automatically and i need to start it manually by myself.  Is there a way to launch this service from LabVIEW.  Please help me out coz its not great to advice the customer to start the service when he installs it.
    Thanks for all help,
    JK
    With regards,
    JK
    (Certified LabVIEW Developer)
    Give Kudos for Good Answers, and Mark it a solution if your problem is solved.

    JK1,
    You really only need the RIO Server running on your host PC if your intending communicate with RIO devices on the host system from other systems on the network.  For any cRIO real time controllers the RIO server is already started.  If you are wanting to communicate to RIO devices on your PC from another PC on the network your absolutely right that you'll need to either start the RIO server manually or set it to automatically start ( which you've already mentioned ).  How to do this is explained in MAX help but I put and image below just for completeness.
    So was the question really, How do I make my installer set the Service to Automatic during the install?  For this my first thought was you could have the installer run a .bat file after finishing and use a command line to set the windows setting for it, or possibly set the registry key ( if you knew it and knew what Windows version it would be installed on), some info might help here.
    Bassett
    Message Edited by Bassett Hound on 01-17-2008 10:54 AM
    Attachments:
    rioService.JPG ‏79 KB

  • Service id from a shell script

    I'm attempting to pass a variable into a korn shell script in order to obtain a service_id, which we need to use for load balancing purposes.
    JOB_STREAM_ID=20
    sqlplus user/password@server <<EOF
    var num_ number;
    begin
    select Service_ID
    into   :num_
    from   job_stream_service_mapping
    where  Stream_ID = $JOB_STREAM_ID;
    end;
    exit :num_;
    EOF
    $ echo $?The following errors appear
    SP2-0670: Internal number conversion failed
    where  Stream_ID = ;
    ERROR at line 5:
    ORA-06550: line 5, column 21:
    PL/SQL: ORA-00936: missing expressionObviously the $JOB_STREAM_ID variable is not being interpreted properly. I have also tried ${JOB_STREAM} and `$JOB_STREAM`. Not sure what the difference is to be honest!
    Could any of you help out?
    PS: I was unsure where to post this, so if I need to post this question elsewhere feel free to state which forum that might be.
    thx
    P;

    I now get the following errors:
    Stream_ID = $JOB_STREAM_ID;
    PLS-00181: unsupported preprocessor directive '$JOB_STREAM_ID'
    SQL> SP2-0670: Internal number conversion failedbased no the following script:
    JOB_STREAM_ID=20
    sqlplus apps/n3wsys@dolnsgc3 <<EOF
    var num_ number;
    begin
    select Service_ID
    into   :num_
    from   job_stream_service_mapping
    where  Stream_ID = \$JOB_STREAM_ID;
    end;
    exit :num_;
    EOF

  • Start Control Centre Service automatically

    Hi to all,
    I would want to know if it is possible and how to start this service automatically with an scheduled job system.
    The server is restarted every week automatically an someone has to start de Control Centre Service manually typing: user, pwd, server, port and service.
    Thanks in advance,
    Víctor.

    what you can do is create a script which will get executed once your server is restarted .
    inside the script you need to do the following
    go to the directory : $OWBHOME\owb\rtp\sql
    connect to the repository owner with sqlplus
    start the sql file start_service.sql
    Example :
    Microsoft Windows XP [Version 5.1.2600]
    (C) Copyright 1985-2001 Microsoft Corp.
    C:\Documents and Settings\Nicolas>cd C:\OWBHOME10203\owb\rtp\sql
    C:\OWBHOME10203\owb\rtp\sql>sqlplus repo_owner/password@orcl
    SQL*Plus: Release 10.2.0.3.0 - Production on Fri Mar 20 15:55:36 2009
    Copyright (c) 1982, 2006, Oracle. All Rights Reserved.
    Connected to:
    Oracle Database 10g Enterprise Edition Release 10.2.0.4.0 - Production
    With the Partitioning, OLAP, Data Mining and Real Application Testing options
    repo_owner_10203@orcl>@start_service
    Available
    PL/SQL procedure successfully completed.

  • Start BPM process automatically

    Hi ALL,
    I have created a BPM process. I can start that process automatically from nwa -> Process controll.
    But I want to run the process automatically by a certain time interval. How can I do it.
    Can anybody help me.
    Thanks in advance
    Chandan

    Hi Chandan,
    I am not 100% sure if I understood you correctly, but with BPMN there comes a model element named Intermediate Timer Event which can be configured in two different ways using:
    an offset (e.g. 1 hour after the timer has been created)
    an expression  (e.g. ProcessContext.aDateOneEntered + 1 day)
    Nevertheless this still requires you to start the process by yourself, but it 'waits' at the timer until the offset or the expression has been reached. Thereby you can achieve that an interval is taken into account upon execution of the process.
    More information about events can be found in the documentation:
    Modeling Events
    https://help.sap.com/saphelp_nwce711/helpdata/en/47/61470236013df6e10000000a42189b/frameset.htm
    Hope that helps,
    Martin

  • Validation Script in Site studio

    Hi,
    I have created the Custom element form for date, I need to validate the data entered in contributor mode via Validation Script.
    I have created the Validation Script but I'm not able to read the parameter i.e. date.
    Returning true or false from the validation script is handling the validation. Retuning "false" shows one pop up .. that is ok. but how can we put user defined message in that pop up.
    So I have two queries:
    1. Reading the parameter in validation script.
    2. Putting user defined message in the pop up.
    Thanks in advance,
    MAK

    Sorry I don't have an answer for you, but I wanted to say that we have had problems with Design mode in general and don't use it anymore. Switching between Source and Design has cause multiple errors in our Site Studio template. We do all of our Designer editing in Source mode. Any actual design work is done in an external editor and the HTML source is then brought over into Site Studio in Source mode.
    I was disappointed when 10gR4 came out and Oracle said they did no significant changes (improvements) to Site Studio Designer application.

  • Error message for starting OracleHome81ManagementServer service

    I want to start OracleHome81ManagementServer service in the service which is in the Control Panel( windows 2000 professional ), but i got the following error message... i don't know where and what i should fix... please help...
    Could not start the OracleHome81ManagementServer service on Local Computer
    The service did not return an error. This could be an internal Windows error
    or an internal service error.
    If the problem persists, contact your system administrator.
    Thanks...

    I checked that all sevices were started. There was no problem.
    All services were started normally. Even I tried several minutes after.. I got same error message.
    Hi,
    Probably by that time, Oracle service is not started when you tried to login. It takes a while to start the service automatically, so you try after a few minutes of starting the machine and try again.

  • How may I automatically stop and start Mail services at a set time please

    Hi folks. I was wondering if anyone could tell me how to automatically stop and start Mail services (or any other services) at a set time please in Leopard Server? Is there a script someone has created which might help?
    Cheers, David ( a realy newbie when it comes to administering OS X server)

    launchd works through a series of XML documents that define tasks to run, either at launch, on a time schedule, in response to network events, etc.
    So you'll need to create two .plists - one to start the mail server and one to stop it. They should be saved in /Library/LaunchDaemons. I'd suggest something like:
    /Library/LaunchDaemons/local.postfix.stop.plist:
    <?xml version="1.0" encoding="UTF-8"?>
    <!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple
    .com/DTDs/PropertyList-1.0.dtd">
    <plist version="1.0">
    <dict>
      <key>Label</key>
      <string>local.postfix.stop</string>
      <key>ProgramArguments</key>
      <array>
        <string>/usr/sbin/serveradmin</string>
        <string>stop</string>
        <string>mail</string>
      </array>
      <key>StartCalendarInterval</key>
      <dict>
        <key>Hour</key>
        <integer>1</integer>
        <key>Minute</key>
        <integer>00</integer>
      </dict>
    </dict>
    </plist>
    and /Library/LaunchDaemons/local.postfix.start.plist:
    <?xml version="1.0" encoding="UTF-8"?>
    <!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple
    .com/DTDs/PropertyList-1.0.dtd">
    <plist version="1.0">
    <dict>
      <key>Label</key>
      <string>local.postfix.start</string>
      <key>ProgramArguments</key>
      <array>
        <string>/usr/sbin/serveradmin</string>
        <string>start</string>
        <string>mail</string>
      </array>
      <key>StartCalendarInterval</key>
      <dict>
        <key>Hour</key>
        <integer>4</integer>
        <key>Minute</key>
        <integer>00</integer>
      </dict>
    </dict>
    </plist>
    You'll need to either use launchctl load /Library/LaunchDaemons/local.postfix.stop (or start) to load the tasks, or reboot your server.
    I'm curious, though, as to why you want to do this. Mail is typically one of the services that people want to run 24/7 so they don't miss out on any emails (even though SMTP can tolerate this). Why do you want to shut yours down?

  • Service product not copied automatically from contract

    hi
    i'm creating a notification referencing a contract item   and thereafter creating a service order from the notification.
    i'm finding that in some cases the material corresponding to the contract item is getting copied in the service product of service order, while in other cases it is not.
    i could not find any difference between the two materials.
    pl help is solving the issue

    A Project is automatically generated from a sales order, when material in line item have been allocated in CN08, This determines which WBS structure is to be used as the basis for project creation, which has also been linked to a STD network, Bcoz SD/PS assign is ON i the STD PRJECT DEFINATION control data.
    ON - A WBS leg is created for each sales order line item including similar Network.
    In OPSA only one root must not be ticked.
    Setting in Material Master.
    Delivery Plant in SALES ORG VIEW 1
    Item Category Group SALES ORG VIEW 2
    MRP type: NO MRP indicator ND
    Strategy group: 85
    Individual /coll reqmt: left blank /1 individual reqmt.
    MAETRIAL must be configurable.
    let me know if u need more help
    CHECK all this setting in your reqmt.
    ONE more thing, u will get the RESULT in CNS41.
    u will find Project from sales order like CNS41, DB profile- tick selection criteria as sales doc.
    value from sales doc will be planned revenue for corresponding WBS.
    Creation of project from sales order in SAP Project system is described as assembly processing.
    In the Project System only networks can be generated directly from a sales document during assembly processing. Indirectly the system can also generate work breakdown structures, when it creates the network.
    1.You start assembly processing by creating a sales document for a material. This sales
    document can be inquiry,quotation, sales order.
    2. The system then
    Configures the material, if necessary
    Creates a network using the standard network as a template
    Configures the network, if necessary
    Schedules the network backwards from the required delivery date
    Checks material availability
    Costs the network and transfers these costs to the sales document.
    3. When you save the sales document, the system saves the network together with the sales
    document. If applicable, it also generates a project definition and work breakdown structure.
    The project number is derived from the sales document number.
    Regards,
    ANSAR

  • Unable to start obiee services from "Services"

    I am not able to start obiee services from services.msc on my local. (Windows XP)
    I get the following error while trying to start Oracle BI Java Host:
    The Oracle BI Java Host service on Local Computer started and then stopped. Some services stop automatically if they have no work to do, for example, the Performance Logs and Alerts service.
    Error while starting Oracle BI Presentation Service:
    Windows could not start the Oracle BI Presentation Service on Local Computer. For more information, review the System Event Log. If this is a non-Microsoft service, contact the service vendor, and refer to service-specific error code -1.
    Error Description from System Event Log:
    The Oracle BI Presentation Server service terminated with service-specific error 4294967295 (0xFFFFFFFF).
    Error while starting Oracle BI Server:
    Could not start the Oracle BI Server service on Local Computer.
    Error 1067: The process terminated unexpectedly.
    Can somebody please help me with this.
    Thanks,
    Swetha

    Hi,
    Regarding the Java Service have you installed the Java JDK (can be found here ) in a directory that contains no spaces?
    Installing it in Program Files will cause issues so perhaps reinstall it into a location like C:/Java/jdk1.6/
    After installing it to the new location you will need to update the instanceconfig.xml file (mine is located C:\OracleBIData\web\config\instanceconfig.xml).
    Change the location of the Java Home between these tags to the root of your newly installed Java sdk. eg <JavaHome>C:/Java/jdk1.6</JavaHome>
    Try launching the service again.
    Let me know if this works or doesn't,
    J
    Edited by: J Kremer on 05-Apr-2011 00:18

  • Cannot Start Workflow Service from Service Manager

    Hello Professionals,
    I have a problem with starting Workflow service from Service manager,
    I have configured all the settings and connection to database was successful.
    However, after closing the settings window and try to start the workflow service, i got "Cannot start Service; configuration is not correct or cannot connect to database"
    What may cause this issue?
    Thanks and Best Regards,

    Hi,
    Please check SAP note:
    2019304 - Workflow server connection stops if many workflow
    instances with script tasks run simultaneously
    Thanks & Regards,
    Nagarajan

  • Starting tomcat from a shell script

    Hello-
    I want to start Tomcat from a shell script that is called by an application on a web page. Problem is, the app that calls the script runs as user nobody.
    I'm a permissions noob, so any suggestions as to how I could get this working are appreciated.
    Will

    Tomcat should be running if you intend to use it as a service.
    You don't want people to be able to start (or.. stop !) services on your server from a web page... That would present a gaping security hole.

  • Starting VPN Service from Terminal

    Is there a way to start a VPN service from the terminal?  I'd like to write a BASH script to return the SSID of the wireless network and if that SSID doesn't match my office SSID, intiate the VPN connection.  Returning the SSID was fairly simple, but I can't find any manpages on the built in VPN client and apropos is woefully lacking.  I've thought I could simply mark the interface (utun1) as UP, but it doesn't seem to exist until the connection is intiated in the GUI.  Any help would be greatly appreciated.
    JG

    Hi Luqman,
    Yes, You can start Oracle Service from CMD Prompt by using following CMD.
    net start oraclesrveice<SID>
    Bye

  • Windows service start and stop automatically

    i'm trying to start windows service, which i installed via running beasvc with parameters. everything used to work fine, but yesterday somthing broke up: i press the start button in the control panel, service tries to start, but then it stops and the following message appears: "Weblogic 9.0 Workspace Service service on Local Computer started and then stopped. Some services stop automatically if they have no work to do, for example, the Performance Logs and Alerts service." sometimes it stops right after starting without giving any messages.
    any ideas what's wrong with it&

    If I run from a cmd box it shows a successful start, however when I look at the services through the MMC it is not started. Basically, it starts successfully and then immediately shuts off stating the message in the original post. This is after and only after I apply sp7 for BEA 7. If I roll the server back to just v 7, I don't have a problem. I have downloaded V7 twice, and I get the same result. I have followed the install instructions to a T and still the same result. I have also tested removing the user created pages, and I get the same exact error telling me either it's a generic error or, SP7 has issues. The only reason we are rolling to SP7 is because of a security issue, but for the time being we have locked down the firewall. Any other suggestions? I have had my Maximo Administrator contact BEA, and MRO about this problem (Maximo is the only system we use web logic for) and they default to the answer that it is a java issue. That V7 is not supported above java 1.3.xxx which is bull because we were running version 1.4, due to a security issue with JVM 1.3 and all worked well. I have replicated the install with JVM 1.3xxx for BEA 7 sp 7, and that did not solve the problem either. Sorry for the long post I just wanted to try to get all the info out.
    Thank you for you time and consideration
    Tanner

  • While installing the latest iTunes version I get the following msg:"Service Apple Mobile Device failed to start.Verify that you have sufficient privileges to start system services. I already tried it from the installer Running it as Administrator

    While installing the latest iTunes version I get the following msg:"Service Apple Mobile Device failed to start.Verify that you have sufficient privileges to start system services. I already tried it from the installer Running it as Administrator and still get the same message.  I click "ignore" and finish the installation but when I try to open it I get this "Runtime Error! R6034 An application has made an attempt to load the C runtime library incorrectly."  I already uninstalled iTunes and all other applications involved and re-installed itunes from the itunes site and the problem persists. Please help!

    Solving MSVCR80 issue and Windows iTunes install issues.

Maybe you are looking for