[CS4 JS] Script UI refreshing statictext from function

Hi,
This script displays a simple floating palette with a Refresh button that when clicked should display a list of files in a particular folder. This list is retrieved using the getString([]) function which is commented out in the code below.
For this example I have defined a myArray with values "one" and "two". I am OK with my function returning a valid array.
The problem I am having is removing the list and replacing it everytime the Refresh button is clicked. The contents of the array are just added to the bottom of of the statictext.
Any help would be appreciated.
#targetengine "session"
var w = new Window("palette","Open Neptune Jobs",undefined);
w.addList = new Array();
w.orientation = "column";
w.Refresh = w.add("group",undefined);
w.Refresh.Button3 = w.Refresh.add('button',undefined,"Refresh", {name:"refresh"});
w.Refresh.Button3.onClick = function ()
myArray = ["one","two"]
//myArray = getString ([]) // This is the function that gets my list of files
w.myGroup = w.add( "group" );
w.myGroup.orientation = "column";
   if ( this.window.addList.length > 0 ) {
            this.window.myGroup.remove( this.window.addList.pop() );
            this.window.layout.layout( true );
for( var i = 0; i < myArray.length; i++ )
  myString = myArray[i]
  this.window.addList.push( w.myGroup.add( "statictext", undefined, myString ) );
  this.window.layout.layout( true );
w.frameLocation = [ 100, 100 ];
w.show ();
Thanks
Simon.

Skempy,
I think this is what you want. Works in ESTK.
Regards
Bob
// just to make it fun...
makeArray = function() {
    var array = new Array();
    var a = parseInt( Math.random() * 20 ) + 1;
    for ( var i = 0; i < a; i++ ) {
        array.push( parseInt( Math.random() * 100 ) );
    return array;
var w = new Window("palette","Open Neptune Jobs",undefined);
w.addList = new Array();
w.orientation = "column";
w.Refresh = w.add("group",undefined);
w.Refresh.Button3 = w.Refresh.add('button',undefined,"Refresh", {name:"refresh"});
w.Refresh.Button3.onClick = function () {
     var myArray = makeArray();
     if ( this.window.myGroup ) {
         this.window.remove( this.window.myGroup );
     w.myGroup = w.add( "group" );
     w.myGroup.orientation = "column";
    for( var i = 0; i < myArray.length; i++ ) {
        w.myGroup.add( "statictext", undefined, myArray[ i ] );
    this.window.layout.layout( true );
w.frameLocation = [ 100, 100 ];
w.show ();

Similar Messages

  • How to run ps cs4 js script from applescript

    Hi, I need to call photoshop js from applescript. Here what I have so far:
    tell application "Adobe Photoshop CS4"
        activate
        set myScript to "Applications:Adobe Photoshop CS4:Presets:Scripts:_NDF_Ph_saveAsTif.jsx"
        do javascript (myScript)
    end tell
    and it's compiles, but when runs, gives me "Error 25: Expected: ;." message.
    How can I call ps script from as.
    Thank you very much for your help.
    Yulia

    You have 2 ways either JavaScript supplied as string or as file. If you are going the route of file then you need to coerce your path string to 'alias' this will fail if it does NOT exist. Here are 2 examples. You also have option to pass arguments as list.
    -- As String
    set JavaScript to "myTest();
    function myTest() {
    var docRef = app.activeDocument;
    var docWidth = docRef.width;
    var docHeight = docRef.height;
    var docSize = docWidth + ' x ' + docHeight
    return docSize
    tell application "Adobe Photoshop CS2"
    activate
    set Doc_Ref to the current document
    tell Doc_Ref
    do javascript JavaScript ¬
    show debugger on runtime error
    display dialog the result
    end tell
    end tell
    -- As File
    set ScriptPath to (path to applications folder as text) & "Adobe Photoshop CS2:Presets:Scripts:Hello.jsx" as alias
    tell application "Adobe Photoshop CS2"
    activate
    set Doc_Ref to the current document
    tell Doc_Ref
    do javascript ScriptPath ¬
    show debugger on runtime error
    end tell
    end tell

  • Illustrator script to create symbols from images in folder

    Time to give back to the community...
    Here is a script I recently devised to bulk create symbols from images in a folder. Tested with Illustrator CC 2014.
    // Import Folder's Files as Symbols - Illustrator CC script
    // Description: Creates symbols from images in the designated folder into current document
    // Author     : Oscar Rines (oscarrines (at) gmail.com)
    // Version    : 1.0.0 on 2014-09-21
    // Reused code from "Import Folder's Files as Layers - Illustrator CS3 script"
    // by Nathaniel V. KELSO ([email protected])
    #target illustrator
    function getFolder() {
      return Folder.selectDialog('Please select the folder to be imported:', Folder('~'));
    function symbolExists(seekInDoc, seekSymbol) {
        for (var j=0; j < seekInDoc.symbols.length; j++) {
            if (seekInDoc.symbols[j].name == seekSymbol) {
                return true;
        return false;
    function importFolderContents(selectedFolder) {
        var activeDoc = app.activeDocument;     //Active object reference
      // if a folder was selected continue with action, otherwise quit
      if (selectedFolder) {
            var newsymbol;              //Symbol object reference
            var placedart;              //PlacedItem object reference
            var fname;                  //File name
            var sname;                  //Symbol name
            var symbolcount = 0;        //Number of symbols added
            var templayer = activeDoc.layers.add(); //Create a new temporary layer
            templayer.name = "Temporary layer"
            var imageList = selectedFolder.getFiles(); //retrieve files in the folder
            // Create a palette-type window (a modeless or floating dialog),
            var win = new Window("palette", "SnpCreateProgressBar", {x:100, y:100, width:750, height:310});
            win.pnl = win.add("panel", [10, 10, 740, 255], "Progress"); //add a panel to contain the components
            win.pnl.currentTaskLabel = win.pnl.add("statictext", [10, 18, 620, 33], "Examining: -"); //label indicating current file being examined
            win.pnl.progBarLabel = win.pnl.add("statictext", [620, 18, 720, 33], "0/0"); //progress bar label
            win.pnl.progBarLabel.justify = 'right';
            win.pnl.progBar = win.pnl.add("progressbar", [10, 35, 720, 60], 0, imageList.length-1); //progress bar
            win.pnl.symbolCount = win.pnl.add("statictext", [10, 70, 710, 85], "Symbols added: 0"); //label indicating number of symbols created
            win.pnl.symbolLabel = win.pnl.add("statictext", [10, 85, 710, 100], "Last added symbol: -"); //label indicating name of the symbol created
            win.pnl.errorListLabel = win.pnl.add("statictext", [10, 110, 720, 125], "Error log:"); //progress bar label
            win.pnl.errorList = win.pnl.add ("edittext", [10, 125, 720, 225], "", {multiline: true, scrolling: true}); //errorlist
            //win.pnl.errorList.graphics.font = ScriptUI.newFont ("Arial", "REGULAR", 7);
            //win.pnl.errorList.graphics.foregroundColor = win.pnl.errorList.graphics.newPen(ScriptUIGraphics.PenType.SOLID_COLOR, [1, 0, 0, 1], 1);
            win.doneButton = win.add("button", [640, 265, 740, 295], "OK"); //button to dispose the panel
            win.doneButton.onClick = function () //define behavior for the "Done" button
                win.close();
            win.center();
            win.show();
            //Iterate images
            for (var i = 0; i < imageList.length; i++) {
                win.pnl.currentTaskLabel.text = 'Examining: ' + imageList[i].name; //update current file indicator
                win.pnl.progBarLabel.text = i+1 + '/' + imageList.length; //update file count
                win.pnl.progBar.value = i+1; //update progress bar
                if (imageList[i] instanceof File) {         
                    fname = imageList[i].name.toLowerCase(); //convert file name to lowercase to check for supported formats
                    if( (fname.indexOf('.eps') == -1) &&
                        (fname.indexOf('.png') == -1)) {
                        win.pnl.errorList.text += 'Skipping ' + imageList[i].name + '. Not a supported type.\r'; //log error
                        continue; // skip unsupported formats
                    else {
                        sname = imageList[i].name.substring(0, imageList[i].name.lastIndexOf(".") ); //discard file extension
                        // Check for duplicate symbol name;
                        if (symbolExists(activeDoc, sname)) {
                            win.pnl.errorList.text += 'Skipping ' + imageList[i].name + '. Duplicate symbol for name: ' + sname + '\r'; //log error
                        else {
                            placedart = activeDoc.placedItems.add(); //get a reference to a new placedItem object
                            placedart.file = imageList[i]; //link the object to the image on disk
                            placedart.name =  sname; //give the placed item a name
                            placedart.embed();   //make this a RasterItem
                            placedart = activeDoc.rasterItems.getByName(sname); //get a reference to the newly created raster item
                            newsymbol = activeDoc.symbols.add(placedart); //add the raster item to the symbols                 
                            newsymbol.name = sname; //name the symbol
                            symbolcount++; //update the count of symbols created
                            placedart.remove(); //remove the raster item from the canvas
                            win.pnl.symbolCount.text = 'Symbols added: ' + symbolcount; //update created number of symbols indicator
                            win.pnl.symbolLabel.text = 'Last added symbol: ' + sname; //update created symbol indicator
                else {
                    win.pnl.errorList.text += 'Skipping ' + imageList[i].name + '. Not a regular file.\r'; //log error
                win.update(); //required so pop-up window content updates are shown
            win.pnl.currentTaskLabel.text = ''; //clear current file indicator
            // Final verdict
            if (symbolcount >0) {
                win.pnl.symbolLabel.text = 'Symbol library changed. Do not forget to save your work';
            else {
                win.pnl.symbolLabel.text = 'No new symbols added to the library';
            win.update(); //update window contents
            templayer.remove(); //remove the temporary layer
        else {
            alert("Action cancelled by user");
    if ( app.documents.length > 0 ) {
        importFolderContents( getFolder() );
    else{
        Window.alert("You must open at least one document.");

    Thank you, nice job & I am looking forward to trying it out!

  • CS4 Trial Version: How to Uninstall from PC?

    Hi!
    I downloaded the CS4 Trial Version. Now I would like to uninstall it from my PC. I still have 23 remaining days, but would like to clear space on my hard drive asap. What will happen when the Trial expires? Will it self-delete, or what??
    Would you please tell me how this can best be done? I don't want any files from this download remaining on my hard drive.
    TIA,
    Clyde Semler

    Here's the thing.  The uninstallers were part of the package that Adobe made you down and decompress (along with the installer package).  From the sounds of it you do not have it.
    The following is the CS4 Clean Script:
    http://www.adobe.com/support/contact/cs4clean.html
    This is usually only recommend in cases where where betas and pre-release software were removed from a system and you run into problems installing the legit software.  As a result, this will disable all CS4 software, serial numbers and Adobe Acrobat/Reader installations.  It's a commonly used script but it will wipe the system files/registry and all program/user library folders and takes longer to run than the typically uninstaller.
    That's your only other option if there is no add/remove programs for whatever reason and you did not hold onto the separate uninstaller packages.

  • Refresh Security from shared services.

    Hi
    When ever there are any changes in the security at shared services(LDAP) , I am doing a refresh security from shared services(@EAS)
    -in order to get these changes from shared services.
    Which is taking 30 minutes refresh ever time in our systems.
    Is there any other way to make quickone?
    Version - 11.1.1.3
    Thanks

    strange? We are still on 931 (Essbase on 9.3.1.6) and refreshing security is not necessary at all any more. It is even deprecated functionality. I always though that 11 did not have it too.^^^The end (or most of the end) of Essbase.sec came in a late patch of 9.3.1. It isn't there yet in 11.1.1.3, I think. It is in 11.1.2. There was not a lot of fanfare about the change although it's there in the patch notes.
    Regards,
    Cameron Lackpour

  • Two CS4's produce different published .swf from the same fileset

    Hello, I'm a novice at Flash, but an experienced troubleshooter, I've spent days on this intriguing problem:
    *Can two CS4's produce different published .swf from the same fileset?
    I have a flash suite written by a young man in China.
    When I test the .swf file in the suite it works fine.
    However I need to make some minor redesigns so I need to change the .fla file - but before I do I found that when I publish a new .swf from the .fla file (with all the necessary action scripts/xml etc in the right place) it doesn't produce the same outcome. Instead the navigation (next page, items per page etc) is missing.
    When he does the same thing (I trust his integrity) he gets the new .swf with the navigation in tact.
    You can see the two outcomes at the web address below (mock data).
    There are no code changes, no library changes that I can find.
    So I thought maybe there is something about different settings or 'environments' that can affect the outcome?
    You can see at   >> http://www.zaphmann.com/source/source.html << the correct navigation.
    Then merely republishing the source.fla (and a rename of .swf) NOW The navigation is gone.  >>>> http://www.zaphmann.com/source/sourcetoFromFLAswf.html <<<<<
    Any ideas???
    Thank you - a free book to anyone who has the answer.

    Hello Ned, I
    definitely have the very latest version, I will ask Mr. Chen to confirm his version. If his version were, say, 6 months old could that be of any significance?
    The software suite appears to have authored produced a while ago as it uses actionscript 2, or maybe he just prefers that.
    Basically the suite worked until he added a custom 'deeplink' (basically id tags in a few AS) and after which it still works at his end (compiled with CS3 or CS4), but not when I do likewise from the fla.
    I have trawled through the AS code changes and see no errors or changes that would affect the navigation portion of the code which remains the same, so I hypothesized that there may some settings that could affect the publishing.
    Young Mr. Chen in China seems to be a bright young man but not sto be so keen on deep troubleshooting...
    Any ideas you have, however wild are welcomed, I can also send source files if that would help.

  • I have Adobe CS4 Photoshop for Windows (PN 65015634 - from 2008) -- Can anyone let me know if this is compatible with Windows 7??  Thanks!!

    I have Adobe CS4 Photoshop for Windows (PN 65015634 - from 2008) -- Can anyone let me know if this is compatible with Windows 7??
    Many and sincere thanks!!

    You need to have your computer looked at for upgrading and evaluate your third party hardware, software and files.
    To fix your issue is too complicated and lengthy to go into all of it here, it will require the services of person very familiar and experienced with Mac's to first recover your data and then restore OS X back to a functional state which may or may not require new hardware/software installed.
    You can hire the services of a local Mac computer support technician experienced in these matters.
    Have them look at your Wifi security/speed, RAM amount, extra storage and computer backup proceedures in the process.
    Good Luck.

  • The external model has changed. You must relink or refresh before this function can execute.

    Good day!
    I got the following error (code: -2366) when trying to run a executable built from LabVIEW 2013 on a target Windows machine with only LabVIEW run-time 2103 32-bit installed.
    "External Model in VIname.vi/Control & Simulation Loop/VI <append>The external model has changed. You must relink or refresh before this function can execute.The external model has changed. You must relink or refresh before this function can execute." 
    The exe file works fine on the systems with full LabVIEW installed, but not on the ones having only run-time libraries. Dependency walker doesn't help to much. 
    Does anyone know what caused the issue? BTW, the VI needs 3rd-party dlls.
    Thanks for your time and all replies are welcomed.
    Regards,
    Yan

    Hi,
    Thanks for the reply. Actually I have found the problem.
    In my VI, I have Control Design and Simulation Loop, in which I have a VI that call functions from a DLL that I put in LabVIEW resource folder. After building the EXE file from this VI, the DLL file is copied to the data folder.
    But the problem is that when I run the EXE file, I have to make sure the DLL exists not only in the data folder, but also in the LabVIEW resource folder (E:\Program Files (x86)\National Instruments\LabVIEW 2013\resource), meaning when I run the EXE file on another machine with only run-time library installed, I have to manually create the whole path, and copy my DLL in.
    I checked the EXE file and found the following folders, copied DLL to everyone of them, not working either...
    National Instruments\Shared\LabVIEW Run-Time    
    c:\Program Files\National Instruments\Shared\LabVIEW Run-Time  
    %ProgramFiles%\National Instruments\Shared\LabVIEW Run-Time
    SOFTWARE\National Instruments\LabVIEW 
    BTW I am using LabVIEW 2013 patch 2.
    Thanks

  • Refresh QAS from PRD

    Hi,
    Can we refresh QAS from PRD backup ? and if so, suggest the steps to do that .
    REgards,

    Hi,
    this is normal business. One of the easiest ways is to use redirected restore  with the following steps:
    1) backup prd database offline or include logs
    2) create redirected restore script with "brdbbrt -bm retrieve" on prd
    3) copy outputfile to qas and chnage some entries like sid
    4) start the restore with command db2 -tvf <outputfile>
    5) do post restore activities you want to do
    Please make sure you have read the "backup and restore guide" and lot of other information in oss or sdn.
    Regards Olaf

  • Design Studio 1.3 SDK - Are script contributions for SAPUI5 method functions supported?

    All of the SAPUI5 SDK component examples provided with the Design Studio Samples demonstrate how to expose property getter/setter functions as script contributions.  Indeed, the SDK Developer Guide also just focuses on this.  However, UI5 controls may also include method functions that allow certain actions to be performed on the control.  In this context, I have the following questions:
    1)  Is it possible to expose method functions via script contributions in the contribution.ztl file?  If yes, what is the correct syntax for doing so?  Based on my experimentation so far, it seems like method functions cannot be exposed directly via script contributions;
    2)  If method functions are not supported for script contributions, are there any recommended approaches as a workaround?  One possible approach that comes to mind is as follows:
    i)  Define an invisible "dummy" property of type boolean to correspond with each method function that we want to expose as a script contribution;
    ii)  Define invisible properties to correspond to the parameters required by the method functions;
    iii) In the contributon.ztl code, perform the following tasks:
    (a) Set the invisible parameter property values that correspond to the desired method function;
    (b) Invoke the dummy property getter or setter function by getting or setting the boolean value of the dummy property in the contribution.ztl code;
    iii).  Override the corresponding dummy property getter or setter function in the component.js code with additional logic to read the invisible parameter property values and then call the method function.
    Any feedback would be appreciated.
    Thanks,
    Mustafa.

    Hi Mike,
    Thanks very much for your suggestion.  Your mind-bogglingly creative solutions never cease to amaze me .
    Reviewing the code, yes I did wonder about the use of the Math.random() function.  Then when I subsequently read your explanation about the state saving, the penny dropped as to the issue I was experiencing with the approach I had previously tried (as described in point form in my question), whereby I could not invoke the setter function multiple times from the BIAL script.  So I added a call to the fireDesignStudioPropertiesChanged() function, which has partially solved my issue but the parameter properties are out of sync.
    I'll describe what I've implemented and hopefully you can shed some more light on how to resolve the issue:
    In the contribution.xml file I've defined invisible properties for the method function and it's parameters as follows:
    <component id="ActionLabel"
           title="Action Label"
           icon="res/com.infovizi.prototypes.actionlabel/icon.png"
           handlerType="sapui5">
          <jsInclude>res/com.infovizi.prototypes.actionlabel/js/component.js</jsInclude>
           <cssInclude>res/com.infovizi.prototypes.actionlabel/css/component.css</cssInclude>
           <property id="text" type="String" title="Text" visible="true" />
           <property id="showAlert" type="boolean" title="Show Alert" visible="false" />
           <property id="alertText1" type="String" title="Alert Text 1" visible="false" />
           <property id="alertText2" type="String" title="Alert Text 2" visible="false" />
           <initialization>
                <defaultValue property="SHOWALERT">false</defaultValue>
                <defaultValue property="TEXT">"Hello"</defaultValue>
           </initialization>
      </component>
    In the contribution.ztl file I've defined a script method to invoke a method function for displaying an alert as follows:
    class com.infovizi.prototypes.ActionLabel extends Component {
      /* Displays an alertbox */
      void showAlertBox(/* Text 1 */ String alertMsg1, /* Text 2 */ String alertMsg2) {*
      this.alertText1 = alertMsg1;
      this.alertText2 = alertMsg2;
      this.showAlert = true;
    In the component.js file, to keep things simple I've chosen the UI5 Label control to extend with a custom method function that I want to invoke via the script contribution as follows:
    sap.ui.commons.Label.extend("com.infovizi.prototypes.ActionLabel",{
      metadata : {
         properties : {
          "showAlert" : "boolean",
            "alertText1" : "string",
            "alertText2" : "string"
      initDesignStudio: function(){
      renderer:{},
      // Override ShowAlert setter to perform action
      setShowAlert: function(alertState){
      if(alertState == true) {
      this.displayAlert(this.getAlertText1(),this.getAlertText2());
      // Reset showAlert property value to "false" and call fireDesignStudioPropertiesChanged()
      // to allow setShowAlert function to be invoked multiple times via BIAL script
      this.showAlert = false;
      this.fireDesignStudioPropertiesChanged(["showAlert"]);
      return this;
    // Alert method
      displayAlert: function(alertMsg1, alertMsg2){
      alert("Message: " + alertMsg1 + " " + alertMsg2);
    I then created a DS app with the following script in the click event of a button to invoke the method function in the custom Label control:
    ACTIONLABEL_1.showAlertBox("Hello", "World!");
    After launching the application and clicking the button for the first time, the alert display function is displayed as expected but the parameters have not been updated, even though they are updated in the script contribution function, so the parameters are not displayed, as follows:
    After the alert is dismissed and the DS button is clicked again, this time the parameters are passed correctly as follows:
    So the parameter updates for alertText1 and alertText2 seem to be out of sync for some reason.  I'm sure I'm missing a nuance here.  Any ideas?
    Conceptually, I'm just trying to achieve what Leandro Cardoso has done with the script contribution action function calls in his Notify component.  The only difference is that I'm implementing HandlerType "sapui5" instead of "div".
    Any thoughts about the parameter syncing issue would be appreciated.

  • Calling a VB Script and Matlab code from LabVIEW GUI.

    Hi,
    Can anyone help me out in Calling a VB Script and Matlab code from LabVIEW GUI? GUI will be developed in Labview and currently we have some scripts written in VB and Matlab and we need to incorporate the same through LabVIEW. Can anyone let me know how this can be implemented? 
    Regards,
    Sharmash

    For VBScript you can call the Windows Scripting Host application using the System Exec function, or you can use IScriptControl, which is an ActiveX control. Be aware that with the IScriptControl there's a small bug. You can read more about it in this post.
    For Matlab, there's a Matlab node that you can use. You can either copy and past your Matlab script in the node, or just write a function call statement. The node simply calls Matlab. Or, you can do as suggested and use the MathScript node, which is basically an alternative to Matlab. The MatchScript node doesn't support everything that Matlab does, so you will need to check it against your script.
    Or, you can do as suggested, and rewrite it all in LabVIEW, unless you can't because these scripts are used by other applications.

  • IR report value from function error

    i have ir report and one column value coming from function,when open the IR report its giving error..
    IR report code
    SELECT CS_ID ,CS_NAME, Util_func(PASS_ID) as "ALERT_DAYS"   from "CSD_MASTERS" Function code
    FUNCTION  Util_func(PASS_ID NUMBER) RETURN number
      IS
    ALERT_DAYS NUMBER:=0;
      BEGIN
       select TO_DATE(CDS_DATE,'DD-MM-YYYY') - TO_DATE(SYSDATE,'DD-MM-YYYY')  
      INTO ALERT_DAYS
       from   CDS_TABBLE
    where   CDS_ID=PASS_ID AND 
    CDS_DATE   between
       sysdate and sysdate+15
       group by  CDS_DATE  HAVING COUNT(*)  <=1  ; 
         IF RECCOUNT>0 THEN
            RETURN ALERT_DAYS;
         ELSE
           RETURN 'null';
         END IF;
      END;function calling CDS_TABBLE value
    CDS_ID -- CDS_DATE
    123 -- -- 4/23/2013
    124 -- -- 4/24/2013
    125 -- -- 4/25/2013
    Thanx,
    Ram
    Edited by: Ramani_vadakadu on Apr 11, 2013 8:56 PM

    FUNCTION  Util_func(PASS_ID NUMBER) RETURN number
    IS
        ALERT_DAYS NUMBER:=0;
        CURSOR lcsr_GetAlertDayCount IS
             select TO_DATE(CDS_DATE,'DD-MM-YYYY') - TO_DATE(SYSDATE,'DD-MM-YYYY')   
            from   CDS_TABBLE
            where   CDS_ID=PASS_ID AND 
                    CDS_DATE   between sysdate and sysdate+15
            group by  CDS_DATE  HAVING COUNT(*)  <=1;         
    BEGIN
        OPEN lcsr_GetAlertDayCount;
        FETCH lcsr_GetAlertDayCount INTO ALERT_DAYS;
        CLOSE lcsr_GetAlertDayCount;
        RETURN ALERT_DAYS;
    END;

  • Open script cannot get connection from the brower helper after 15 seconds.

    Error:
    ===
    Open script cannot get connection from the brower helper after 15 seconds. Do you want to continue waiting for the browser to load?
    Please Note:
    ========
    1. I have tried this only on IE
    2. I am running OATS on a Remote desktop
    Situation:
    ======
    Trying to stop the recording
    Try to get xpath of an object using Inspect Path
    Setup details
    ========
    Windows XP 5.1 Service Pack 3, x86
    OpenScript 12.1.0.1.383
    Internet Explorer 8.0.6001.18702
    FireFox 13.0.1
    Mitigation steps done till now:
    ==================
    1. Disabled windows firewall
    2. Disable XSS filter setting
    3. Restarted the ATS services (3 of them)
    4. Run the Open Script Diagnosis Tool (PS: There are 3 errros even after running it. The 3 errros are listed in the workspace_log log file snippet below...)
    Error in worspace_log:
    =============
    To Change setting:
    Go to Tools > Internet Options and Choose Security Tab
    Select the Zone to modify and Press Custom level
    Find Enable XSS filter Setting - Select Disable and click Ok
    !ENTRY oracle.oats.scripting.diagnosisTool.api.DiagnosisExecutor 4 0 2012-07-09 17:08:52.594
    !MESSAGE Failure found when diagnosing Oracle EBS/Forms Load Testing Forms LT Diagnoser
    !ENTRY oracle.oats.scripting.diagnosisTool.api.DiagnosisExecutor 4 0 2012-07-09 17:08:52.594
    !MESSAGE Did not auto-fix the problem.
    !ENTRY oracle.oats.scripting.diagnosisTool.api.DiagnosisExecutor 4 0 2012-07-09 17:08:52.594
    !MESSAGE Suggestion for fixing: Please change your Java proxy setting to Use Browser Settings
    Aprreciate help on this.

    To resolve this, you need to reconfigure the "Oracle Application Testing Suite Helper Service" (OATSHelperSvr) to start as a user who has privledges to run open script tests rather than the default SYSTEM user.
    Reconfiguring the OATSHelperSvr Service:
    1. Open the services panel (Start > Run > services.msc)
    2. Find the Oracle Application Testing Suite Helper Service
    3. Right Click > Properties then select the Log On Tab
    4. Specify an interactive user that has rights to run OpenScript (test by logging in as that user and running tests):
    5. Click OK
    6. Restart the service after dialogs are closed by Right Click > Restart
    7. You should now repeat this process for the "Oracle Application Testing Suite Agent Service" (eLoadAgentMon) Service (Two services in
    total)
    You should now retry running the test in Oracle Test Manager

  • How to create webservice from function module

    Hello,
    I'm trying to create webservice from function module from. I choose Utilities/More Utilities/Create Webservice/..From function Module. What data should I enter in section "Enter Package/Request" ?
    When I check "Local object" checkbox I get a message "Test objects cannot be created in foreign namespaces"
    Is there any doc about this procedure (web service creation) with description of all sections ?
    thanks for any reply,
    Lukasz Ferenc

    Hi,
    Which SAP product of wich release of which SP are you using ?
    The procedure is documented in help.sap.com and in blogs and SDN forum messages.
    It means that the use of the SEARCH button should give plenty of answers...
    >When I check "Local object" checkbox I get a message "Test objects cannot be created in foreign >namespaces"
    As usual, begin your choosen name with an "Z".
    Regards,
    Olivier

  • How to run a script on Oracle server from isqlplus

    Hi I am trying to run a script on my workstation from Oracle server through isqlplus workarea. I entered following command and get the following error. i have enabled isqlplus URL by editing web.xml file already. Can please someone help how to run the script?
    @http://myaixserver.com:5560/scripts/Databasestartupstages.sql;
    SP2-0920: HTTP error 'page not found (505)' on attempt to open URL

    So far, you haven't specified your rdbms version and isqlplus behaved differently on a 9iR1, 9iR2 from the one release on 10gR1/R2. on 9i it was a servlet based on a JServ servlet executor machine, meanwhile on 10g it is a J2EE compliant application deployed on an OC4J container, so configuration is different.
    You may want to take a look at these references -->
    * Starting iSQL*Plus from a URL
    * Creating Reports using iSQL*Plus
    ~ Madrid

Maybe you are looking for