NWSAPSetup: script events

Hi:
In "Sap NetWeaver" Installation Server version 8.1.0.55 (SAP Frontend Package 7.10 Compilation 2) there are Sample of predefined script, especially the scripts "Append content to the 'services'-file. You can run this script on EndInstall", that does not correspond to the definition that was given:
Sample 4: "Append content to the 'services'-file. You can run this script on EndInstall":
'This scripting can be added to the 'On End Install' section of a SAP GUI 710 package event script
'It replaces the default line
' Cmd=""
'by the line
' Cmd="/ini_file="C:\temp\saplogon.ini""
'inside the file '%ProgramFiles%\SAP\SapSetup\setup\SAL\SapLogon.sal'
'This way, you can redirect 'SAPLogon.exe' to the INI-file 'C:\temp\saplogon.ini'.
NwEngine.Context.Log.Write "Event: Editing SAPLogon.sal"
strSalFile = NwEngine.Variables.ResolveString( "%ProgramFiles%\SAP\SapSetup\setup\SAL\SapLogon.sal" )
Set objTextFile = CreateObject("NwSapSetupATLCommon.TextFileParser")
If objTextFile.Parse( strSalFile ) Then
NwEngine.Context.Log.Write "Event: Open and modify the file " & Chr(34) & strSalFile & Chr(34)
      szOldLine = "Cmd=" & Chr(34) & Chr(34)
     szNewLine = "Cmd=" & Chr(34) & "/ini_file=" & Chr(34) & "C:\temp\saplogon.ini" & Chr(34) & Chr(34)
      objTextFile.ReplaceLineEx szOldLine, szNewLine
      objTextFile.Save( strSalFile )
Else
      NwEngine.Context.Log.WriteWarning "Event: Could not open the file " & Chr(34) & strSalFile & Chr(34)
End If
They know which will be the script that corresponds...?.
The sample 5 "Removing content from the 'services'-file. You can run it on EndUninstall" is correct:
'This scripting can be added to the 'On End UnInstall' section of a SAP GUI 710 package event script
'It removes a line from the services files which was set in the last Sample 4.
NwEngine.Context.Log.Write "Event: Removing a line from the services file"
strFile = NwEngine.Variables.ResolveString( "%WinSysDir%\drivers\etc\services" )
Set objTextFile = CreateObject("NwSapSetupATLCommon.TextFileParser")
If objTextFile.Parse( strFile ) Then
      NwEngine.Context.Log.Write "Event: Modify the file " & Chr(34) & strFile & Chr(34)
      objTextFile.RemoveLine "Alpha  1901/tcp"
      objTextFile.Save( strFile )
Else
      NwEngine.Context.Log.WriteWarning "Event: Could not open the file " & Chr(34) & strSalFile & Chr(34)
End If
Thank you
Regards
Christian.

In #2, Photoshop is opening the file via ACR, so an Open event is generated.
In #3, Bridge calls Photoshop which results in #2.
In #1, the ACR plugin (in Bridge) calls Photoshop to process a rendered version of the (raw) file. There is no real PS Open
event for this kind of thing since it was ACR (running in Bridge) that actually opened the raw file, not PS or ACR in PS.

Similar Messages

  • How to change the script event?!?

    Here I have a small form with two different parts...
    The first part is a table containing many checkboxes to be able to show whatever form you want to fill up..
    All of the checkboxes create a form into a table which each row represents the form to fill-up.
    When you click 1 checkbox, it adds a row to the table with some values needed for the form..
    In that form there is a chance to have 2 or 3 radiobuttons, depending on the checkedbox which each do something different..
    the 1st one hides a new table to fill up information (under the radiobuttons),
    the 2nd one shows up the new table with some values to show instructions into labels...
    the 3rd one shows up the new table with some other values to show different instructions into labels.. (This radiobutton is only in half of the forms, so it is hidden)
    those labels must be different for each checkbox chosen
    instead of making a huge script in my radiobutton change event, and writing all the different possibilites
    i'd rather create the script depending on the checkedbox the user have chosen...
    Right now I'm using something like : this.resolveNode("...radiobuttonList").event__change.script.value = "--_ Write all the new code here_--";
    After this line is written and everything is working... I show up a messageBox to see the result which is all correct..
    But when I'm clicking on the radiobuttons nothing is working at all...
    the only code working is the initial code written in the event
    Anyone have an idea if I'm missing something?!?
    Thanks!

    Actually this is not what i was looking for, I really need to change the script...
    e.g. I have a button in a expandable table and i want each buttons to have a different messagebox....
    when the button is created a new script is assigned to the event_click...
    This is what im looking for...
    Looks like LiveCycle Designer is not able to change the scripts events even though the property is there and is a "get" & "set"
    so I should be able to change script event.... but I think i need to reload/recreate the form by using the modified code...

  • Batch processing with Script Events Manager

    Hello all,
    I use the Script Events Manager to run a group of actions on a single file during the file open event.
    This workflow works well when dealing with a small quantity of files.
    Is there an efficient way to apply simultaneously a group of actions to folder of images?
    The PSCC Batch processor, Image Processor and Image Processor Pro only allow the use of one action at a time.
    I have try creating a combo action which includes a group of actions to run in the Batch Processor and Image Processor.
    When doing so I receive an error message from the Image processor and dialogs that from the Batch processor that suspend
    the program activity. I have had no luck with a combo droplet as well.  

    My system has 8 Gb of Ram and 4 processors. I doubt it's the system. I've had problems with CS Master Collection since day one. My main complaint is the ******* tabs and interface. Everything is so chunky. CS2 was smooth as butter. They keep making their products use more RAM and it's ridiculous. The tabs don't help, they only make life harder.
    Thanks for the suggestions, I was hoping not to have to reinstall PS, but looks like it's the only option.

  • Problem with Script Events Manager buttons not showing up

    Hi,
    First off let me say that the latest release of Adobe products is a steaming pile of @#$#$.
    Countless software issues, it's slow, buggy, you name it.
    That being said, has anyone had this problem and know how to fix it.
    My Script Events Manager is broken. Yes broken. The only buttons I see are "Done" and "Remove". There is no "Add" button so that I can actually add events. Someone please tell me this is user error and that I don't need to reinstall PS.

    My system has 8 Gb of Ram and 4 processors. I doubt it's the system. I've had problems with CS Master Collection since day one. My main complaint is the ******* tabs and interface. Everything is so chunky. CS2 was smooth as butter. They keep making their products use more RAM and it's ridiculous. The tabs don't help, they only make life harder.
    Thanks for the suggestions, I was hoping not to have to reinstall PS, but looks like it's the only option.

  • What are the main sap script events and their functionality and usage?

    what are the main sap script events and their functionality and usage?

    Hi,
    Inside the Script, there are events like Top of Page, End of page etc.
    Please elaborate about your requirement.
    Best regards,
    Prashant

  • Script Events Manager like photoshop

    Is there any Script event manager available in illustrator as like in photoshop..?

    Script Event Manager is a Photoshop script that provides an UI for adding/removing app.notifiers. A quick look at the ESTK Object Viewer for Illustrator does not list notifiers.
    You may get a more imformed responce in the Illustrator scripting forum.

  • Script Events Manager settings don't stick

    I'm using Photoshop CS 3 version 10.0 and I can't seem to get Script Events Manager settings to work between launches of the program.
    I choose File > Scripts > Script Events Manager.
    In the dialog box, I select the Enable Events to Run Scripts/Actions checkbox.
    From the Photoshop Event menu I choose Open Document.
    I select the Action radio button, then choose the action I want.
    I click Add button.
    I close Script Events Manager dialog box.
    Everything works as intended, until I quit Photoshop and then launch it again, at which point the Script Events Manager settings have reverted to their default state, without my preferred Open action functioning any more.
    Is there any way to get my settings to become the new default so I don't have to repeat the above steps every time I launch Photoshop?

    Thanks, but I failed to mention I'm running Mac OS X 10.10.2 (Yosemite).
    It reminds me of failure to save preferences problems I've had in the past with other apps. Repairing prefs with Disk Utility doesn't help, BTW.
    Can anyone tell me the file name and location where this Script Events Manager setting is saved? Perhaps deleting that file and restarting will fix the issue…

  • SAP Script Events

    what are the main sap script events and their functionality and usage?

    Hi Sharad,
    if you are talking about Function modules
    then first OPEN_FORM "used to open the form
               WRITE_FORM "used to write the content to form
               CLOSE_FORM "used to close the form which is opened.
               START_FORM "used to start a form
                          "you can call different layout
               END_FORM   "used to end the form which was started
               CONTROL_FORM "using this you can call control commands
    regards
    vijay

  • Debugging script events

    Hi,
    I'm writing an event exit script for my workflow, and I'm using the following piece of code for tracing pourposes:
    <$trace(dDocName,"#log","workflow")$>
    When I run the "test" (Test script button) using workflow admin applet feature (Edit script window, Test tab), I see in UCM output file log:
    java.lang.AssertionError: !$Illegal message string '1528992616200001218'.
    at intradoc.util.IdcMessageUtils.decodeMessageInternal(IdcMessageUtils.java:394)
    at intradoc.common.LocaleUtils.decodeMessageInternal(LocaleUtils.java:230)
    at intradoc.common.LocaleUtils.parseMessage(LocaleUtils.java:225)
    at intradoc.common.LocaleResources.localize(LocaleResources.java:610)
    at intradoc.common.LocaleResources.localizeMessage(LocaleResources.java:414)
    at intradoc.common.IdcLogWriter.generateLogEntry(IdcLogWriter.java:658)
    at intradoc.common.IdcLogWriter.doMessageAppend(IdcLogWriter.java:246)
    at intradoc.common.Log.addMessage(Log.java:271)
    Please note that '1528992616200001218' is the correct item dDocName.
    I'm missing something?
    How can I solve this AssertionError and have a correct log output?
    Thank you very much.
    Best regards,
    S.

    According to the Idoc Script Reference Guide, if we use third parameter with the "trace" Idoc (to narrow tracing section) it can be used only with second parameter as #console. So it wont work with the #log. I'm not sure if first parameter can be dDocName as guide states it can be one of the following:
    string
    #local
    #all
    But, there are many undocumented features and the only answer is to try.
    Regards,
    Boris

  • InDesign: Scripting, Events, documentation?

    I'm looking for a complete event model for InDesign (server, workstation, et al)
    Is this buried somewhere in the Object Model Viewer in ESTK? Elsewhere?
    Initially, I'm trying to figure out what event(s) fire(s) when a new textframe gets added to [story].textFrames. Who am I looking for, document? Story? [story]textFrames? What event(s) fire? I look in ESTK/OMV, under Class / Instance docs for textFrame(s), but nothing seemingly useful is listed.
    To quote Sallah and Indy, "They're digging in the wrong place."
    Thanks.

    Did you ever find documentation on the event model? I am running into a problem which such documentation would be helpful. In my case I am trying to force a change to an indd file on beforeSave. However the changes are not reflected in the file's preview thumbnail image (which was the goal).
    I have looked high and low but can not find any docs on the ordering of events firing and how they relate to other functions. Apparently the preview image is not generated during Save().
    The docs at http://jongware.mit.edu/idcs5/  is nice and convienent, but it is not much more data there than you find in the toolkit.

  • How to call a jsp function on a java script event 'onchange'

    hi all,
    i m in trouble, iwant to call a jsp function on occurance
    of a javascript event onchange
    actully i want to refresh my one text field at every change
    in a select option of a form
    plz tel me any othr method if i m wrong.
    thnx in adv.

    as the form submition is a POST operation u can use some
    if{} else{} construct to handle this. u can check the value of some POST variable to identify whether its the first loading or refresh. got it
    regards
    aleens

  • How to link an event and a script ?

    Hello !
    This event manager is not easy to deal with !
    I need to link several events to a script by script.
    For this command by hand, the script listener says : 
    // =======================================================
    var idAdobeScriptAutomationScripts = stringIDToTypeID( "AdobeScriptAutomation Scripts" );
    var desc56 = new ActionDescriptor();
    var idjsNm = charIDToTypeID( "jsNm" );
    desc56.putString( idjsNm, "Gestionnaire d'événements de script..." );
    var idjsMs = charIDToTypeID( "jsMs" );
    desc56.putString( idjsMs, "1" );
    executeAction( idAdobeScriptAutomationScripts, desc56, DialogModes.NO );
    (French version)  
    where the single parameter is "1".
    It is the number assigned to the script file inside a .XML file in the "Adobe potoshop CS4 setting" folder in the user file space.
    But where is the event parameter ? (it was "select" in this case)
    In fact this command clandestinely links the event name and the file full path into the TW0001.DAT file inside th esame folder. Fine !
    But modifying this file outside PS does not change the links into PS: so it is also recorded in memory.
    How to synchronize this data by script ?
    After many and many tests to guess how to program the event manager, I hope somebody knows this final answer.  
    Thank you for you help.

    Both the Script Event Manager and app.notifiers.add require the full path to a javascript file and don't accept arguments for the script. I am not sure what you are trying to do. You could have the script read the needed arguments from somewhere like an text or xml file or even CustomOptions.
    If you want the event to call one of several scripts depending on the arguments then after the argument is read you could have if or switch statements to eval the needed scripts.

  • Script error?

    Hello people,
    I'm new to form design and scripts (and this forum) and have run into a brick wall that I have been unable to resolve and hope, it's a simple error that only a begginer would make, and one of you can easily resolve it.
    The form needs to be submitted, as a PDF form, to different people depending on who is filling out the form.
    I have put in a 'choice list' and tried to write a event script but when the 'submit email' button is pressed it only seems to do the previous 'event' which sends a pdf to one person, it is not picking up a person from the 'choice list' and is not performing other actions in the script either such as the subject line and some body text. I suspect, but could be wrong, that perhaps it is the 'this.resolveNode' as I do not know what 'this' refers to, have tried a few things but none of them worked, the last thing I tried was 'choiceList' which is still inserted.
    Looks like I cannot attach the document so I will copy & paste the code which I think is wrong, if anyone would like me to email them the actual document you can email me on [email protected]
    <
    field h="6mm" name="EmailSubmitButton1" w="34.925mm" x="168.275mm" y="85.725mm">
    <field h="34.925mm" name="ListBox1" w="36.6mm" x="165.1mm" y="47.625mm"> <
    ui> <
    choiceList commitOn="exit" open="multiSelect"> <
    border>  
    <?templateDesigner StyleID aped3?>
    <edge stroke="lowered"/> </
    border> <
    margin/> </
    choiceList> </
    ui> <
    items> <
    text>ABI</text> <
    text>Burwood</text> <
    text>CLP</text> <
    text>Lodge\ILU</text> <
    text>Firthside</text> <
    text>Nolan</text> </
    items> <
    items presence="hidden" save="1"> <
    text>[email protected]</text>
    <?templateDesigner isEmailSubmitObject true?>
    <
    ui><
    button/></
    ui><
    font typeface="Myriad Pro"/><
    caption><
    value><
    text>Submit by Email</text></
    value><
    para hAlign="center" vAlign="middle"/><
    font typeface="Myriad Pro"/></
    caption><
    border hand="right"> 
    <?templateDesigner StyleID apbx2?>
    <
    edge stroke="raised"/><
    fill><
    color value="212,208,200"/></
    fill></
    border><
    bind match="none"/><
    event activity="click"><
    submit format="pdf" target="mailto:[email protected]" textEncoding="UTF-8"/></
    event><
    event activity="mouseDown"><
    script contentType="application/x-javascript">oSubmit = choiceList.resolveNode("$..#submit");
    cToAddr = "[email protected]"
    cCCAddr = CompanyEmails.rawValue (/\-\n?/,";") .replace(/\n/g,";");
    cSubLine = "Request for Leave submitted by:"
    + Name.rawvalue + " ";
    cBody = Dear " + Name.rawValue + " " + "Thank you for submitting your request for leave, we will let you know if the selected dates are available as soon as possible.";
    cEmailURL = "mailto:" + cToAddr + "?";
    if(cCCAddr.length)
    cEmailURL += "cc=" + cToAddr + "&amp;";
    cEmailURL += "subject=" + encodeURI(cSubLine) + "&amp;body=" + encodeURI(cBody);
    oSubmit.target = cEmailURL";});</
    script></
    event>
    The code for the choice list is as follows (in case that is the error source)
    <text>[email protected]</text>
    <
    text>[email protected]</text><
    text>[email protected]</text><
    text>[email protected]</text></
    items><
    font typeface="Myriad Pro"/><
    margin bottomInset="1mm" leftInset="1mm" rightInset="1mm" topInset="1mm"/><
    caption placement="top" reserve="5mm"><
    font typeface="Myriad Pro"/><
    para vAlign="middle"/><
    value><
    text>Company emails</text>
    Thank You text>[email protected]</text><
    text>[email protected]</text><
    text>[email protected]</text><
    text>[email protected]</text><
    text>[email protected]</text></
    items><
    font typeface="Myriad Pro"/><
    margin bottomInset="1mm" leftInset="1mm" rightInset="1mm" topInset="1mm"/><
    caption placement="top" reserve="5mm"><
    font typeface="Myriad Pro"/><
    para vAlign="middle"/><
    value><
    text>Company emails</text>
    Thank You

    Hi Srini
    I'm showing my 'begginer status' here I copied and pasted your code in and tried to change to match my form now when I press the submit button I get a message "Submit Cancelled', now get no email at all.
    Sorry I'm at a very early stage of learning.
    <event activity="click" name="event__click"><
    submit format="pdf" textEncoding="UTF-16" xdpContent="pdf datasets xfdf"/></
    event><
    event activity="preSubmit" ref="$form" name="event__preSubmit"><
    script contentType="application/x-javascript">var strToAddress, strCCAddress, strSubject, strMessage
    strToAddress = [email protected];
    strCCAddress = ListBox1.rawValue;
    strSubject = Annual Leave Application;
    strMessage = Thank You for your application, it will be dealt with as soon as possible;
    event.target.submitForm({cURL:"mailto:"+ strToAddress + "?cc=" + strCCAddress + "&amp;subject=" + strSubject + "&amp;body=" + strMessage,cSubmitAs:"PDF",cCharset:"utf-8"});//this.resolveNode("#event").submit.target = "mailto:"+ strToAddress + "?cc=" + strCCAddress + "&amp;subject=" + strSubject + "&amp;body=" + strMessage;</script></
    event>

  • How do I create an "if" function in a custom calculation script?

    I need to take a simple "value is the sum of" and make it so if one field is less than 1 then the result of the formula will equal "0".
    For example here is a simple "sum of" script:
    Incent Bns.26, Time Bns.26, Spec Bns.26.
    Now converted to a custom calculation script:
    event.value = ((this.getField("Time Bns.26").value) + (this.getField("Incent Bns.26").value)) + (this.getField("Spec Bns.26").value);
    Where Time Bns is calculated by looking at another field Hours26 using a special formula to calculate the bonus.
    I would like to add something like an "if" function to the script so that if the Hours26 field is less than 1 then the output of the script will equal "0".
    I tried this already:
    var rank = this.getField("Hours26").value
    var value = 0
    if (rank < 1) {
      value = 0
    else  (rank > 0) {
       value = ((this.getField("Time Bns.26").value) + (this.getField("Incent Bns.26").value)) + (this.getField("Spec Bns.26").value);
    event.value = value
    But get the error: SyntaxError : missing ; before statement 7 at line 8:
    Thanks ahead of time for any help.
    Bruce

    Try this:
    var rank = this.getField("Hours26").value;
    var value = 0;
    if (rank < 1) {
      value = 0;
    } else {
       value = ((this.getField("Time Bns.26").value) + (this.getField("Incent Bns.26").value)) + (this.getField("Spec Bns.26").value);
    event.value = value;

  • Client side event for h:outputText... and other JSF component

    Hello friends...
    I need client side (to use Java script ) event for change in <h:outputText /> or <h:inputText...>.
    I want to open a popup window when there is a change in there. I donot want to use onblur() for this. Is there any thing for achiev it.
    Thanks.
    Regard
    Roshan Lal ( I don't know why there is "DOG" display in LIST )
    :-)

    Hi Jacek,
    Unfortunately I think you may be stuck extending Renderer. Another possibility is creating your component via a template, which will be available in JSF 2.0. However, as JSF 2.0 won't be out for a while... you can use JSFTemplating in the meantime:
    http://java.sun.com/developer/technicalArticles/J2EE/jsf_templating/
    http://www.theserverside.com/tt/articles/article.tss?l=JSFTemplateComponent
    Good luck!
    Ken Paulsen
    https://jsftemplating.dev.java.net

Maybe you are looking for

  • A few pre-purchase questions

    I am considering getting either a 13" or 15". The 13" would be perfect size wise for what I need, since I have an iMac as well. My three main concerns are how much noticeable difference is there between... 1. 2.53GHz (13" max) vs. 2.8GHz (15"), my iM

  • Problems with a mailto link from a button

    Dear All, I am trying to create a mailto link from a button within a page which will also pass several variables. Everything is working well until it comes to generating the body of the message. I can generate content in the body but if I add a new l

  • How to Add Horizontal scrollbar to JTextPane

    when i try to add Horizontal scrollbar to JTextPane it is not apperaing..plase help me.. nagesh

  • Plsql_optimize_level parameter resets itself

    when I log in to the system and run the following code select * from v$version; Oracle Database 11g Enterprise Edition Release 11.1.0.6.0 - 64bit Production PL/SQL Release 11.1.0.6.0 - Production "CORE     11.1.0.6.0     Production" TNS for 64-bit Wi

  • IMovie 11 can't see any of my events, although it previously could :-

    I am very familiar with iMovie, but I recently am unable to see any of the imported events, although it was perfectly fine until ??? maybe the key event is the activation of Time Machine. I have re-installed iMovie + tried to repair the permissions u