Set Position of Window after action

Hello Experts,
is there any oppurtunity to set the position of the scroll - bar to the top after execute a action?
Many Thanks
Marco

I have now implemented following code in my ModifyView:
IWDAttribute Info attribute = wdContext.node<MyNode>.getNodeInfo().getAttribute(IPrivateMyView.IMyNodeElement.Attribute);
wdThis.wdGetAPI.requestFocus(wdContext.current<MyNode>,attribute
But the focus will not set to my InputField which is bound to the Attribute
Any ideas why?
Regards
Marco

Similar Messages

  • How can you set Dos date as YYYYMMDD in After Action script?

    Hellos...
    I have been trying the standard method to get the DOS date as a format string YYYYMMDD
    It seems to cause the AfterAction script to bomb.
    I am trying this script ...
    <?xml version='1.0' encoding='UTF-8'?>
    <!DOCTYPE Waveset PUBLIC 'waveset.dtd' 'waveset.dtd'>
    <Waveset>
    <ResourceAction name='ISSHP-enable-email'>
    <ResTypeAction restype='Windows Active Directory' timeout='60000'>
    <act>
    rem Action for MSE2007 test/development to Enable-Mailbox a new AD User created by IDM.
    rem Set up environment as necessary (copy of idmadm account's environment)
    rem Local script environment settings
         SET LogFileDrive=C
    SET LogFileDir=%LogFileDrive%:\Sun\ADAfterActionsLog\
    SET DBtoUse=idmex.sks.local\Mailbox Database
    rem set TODAYDATE as yyyyddmm and TIMENOW as hhmmssdd to be used in the Log file name
         set TIMENOW=%time:~0,2%%time:~3,2%%time:~6,2%%time:~9,2%
         for /F "tokens=2-4 delims=. " %i in ('date /t') do set TODAYDATE=%k%j%i
    set >> %LogFileDir%AfterActionLog.txt
    rem PS Commands from here...
    exit
    </act>
    </ResTypeAction>
    </ResourceAction>
    </Waveset>
    But the line
    for /F "tokens=2-4 delims=. " %i in ('date /T') do set TODAYDATE=%k%j%i
    is causing problems..
    How have others managed to turn date /T into YYYYMMDD within an after action ??
    I know in our Gateway date /T will output (today): pe 29.01.2010
    GF

    The output from the for command when run in the cmd shell is as expected.
    I have tried both batch and command line variable settings in my action script i.e.
    for /F "tokens=2,3,4 delims=. " %i in ('date /T') do echo %k%j%i
    and
    for /F "tokens=2,3,4 delims=. " %%i in ('date /T') do echo %%k%%j%%i
    with no joy. I suspect that its the Gateway launched shell executor that is having problems with the for do command.
    Anyways, using
    set todaysdate=%date:~9,4%%date:~6,2%%date:~3,2%
    solves my problem. Just curious why the for construct bombs in the resource action.
    Thanks. GF

  • How to set focus in the parent window after a JOptionPane pop up ?

    I am not able to set the focus back to a JTextField in the parent window after poping up a JOptionpane.showMessageDialog(). I tried requestfocus(),requestFocusInWindow etc......but not working. The code is given below.
    if ((encryptor.encrypt(password)).equals(configuredPasswd)) {
                        validPassword = true;
                   } else {
                        JOptionPane.showMessageDialog(saveUI,"The password entered is not correct.");
                        saveUI.getPasswdField().setText("");
    saveUI.getPasswdField().requestFocus();
    Sometimes the focus is coming to the JTextField.Sometimes it appears for a moment and then dissappears.Please give a solution

    see if this makes a difference
    if((encryptor.encrypt(password)).equals(configuredPasswd))
      validPassword = true;
    else
      JOptionPane.showMessageDialog(saveUI,"The password entered is not correct.");
      ActionListener al = new ActionListener(){
        public void actionPerformed(ActionEvent ae){
          saveUI.getPasswdField().setText("");
          saveUI.getPasswdField().requestFocusInWindow();}};
      javax.swing.Timer timer = new javax.swing.Timer(100,al);
      timer.setRepeats(false);
      timer.start();
    }

  • Problems on NW PI 7.1 after setting up a Windows Domain

    Hello Experts,
    we have had a SAP system running without a windows domain name. Everything works fine until we need to set up a windows domain because of the "full qualified domain name error".
    Now after setting up the domain we have problems to access the PI system  by SAP Logon from a client. Within the server everything works fine with SAP Logon.
    Thanks for your answers in advance!!!
    Regards, Alexander

    Hi Moog,
    Check if server hostname and server IP is pingable from client.
    If yes then check for  dispatcher port connectivity using telnet
    telnet server ip 32<instance number>
    Paste the results , adding server to domain will not harm unless its pingable from client.
    Regards,

  • [nForce] K7N2 D2-FSR cant get in window after manual setting

    hi there,
    i m a new guy here, not very good in english!!
    before i send this, i had look some of the guide.
    but cant find people with the same problem as me.
    the problem is i cant get in window after set my High Perfomance Mode to MANUAL in cell menu.
    nothing change just Optimized to Manual.
    if access in, still will freeze after few second.
    everything is fine with Optimized Mode, no error in Prime 95 for 9 hours.
    hope can get some HELP from you all.
    i also using core cell, will my setting in Bios appear same in core center???
    example: 210 FSB in bios = 210 FSB in core center.
    i hope to hear from  you all soon.
    10x.

    I'm a bit of a noob at o/c so not sure I can give you sound advice.
    pci is unlocked I think, though if use core centre then you can control it-I'm not using corecentre.
    are you using priority 10 for prime 95 and In-place FFT's torture test?  I believe that is most demanding.  If you getting reboots then you're overclock is not stable, need to lower fsb and retest.  Your psu is probably marginal as well so maybe that isn't quite strong enough to be pushed further.  Can you try beefier one?
    I don't know how far you can push vcore up; maybe one of our resident experts can advice.
    I started out on this journey with exact problem you faced; I couldn't change High Performance mode from optimised to manual.  I still haven't found a solution unless I enable DOT.  I've tried bios b5, b6.1 and now trying b6.0, without success.  O/S fails to load.  Did you say b3  allowed you do to that and increase fsb in bios or was it change of memory?  I'm thinking my expensive ram is not very flexible and doesn't suit the nforce 2 chipset.  At moment with bios b60, high performance manual,  memory to manual (2-2-2-11) and DOT enabled-private I passed memtest overnight.  I'll try prime95 tonight if I have no issues tday.
    Dave

  • Setting position of desktop window

    Hello,
    I'm probably dreaming, but seems to me I've done this before; no success now.
    This works:
    Tell app "Finder"
    open startup disk
    set position of container window of startup disk to {50,50}
    end tell
    This doesn't:
    Tell app "Finder"
    open file "PT.rtf" of startup disk --this opens properly
    set position of (?) to {50,50} --*
    end tell
    * The goal is to position the window of "PT.rtf"; have tried several things for ?, including a window ID approach, but always get error
    An unrelated (I think) TextEdit question:
    I've created a formatted TextEdit file with AS, setting font characteristics, bounds, etc. -- and then saved it to be called by another script at another time (that works). Is there any way to edit the properties of that file without editing and rerunning the script that originally created it? For example, just changing the bounds? If there is, I haven't found it.
    Thanks

    > The primary question had to do with setting the POSITION (not the bounds) of a TextEdit window on the desktop. This seems to me to be a Finder task
    Why do you think the Finder has anything to do with what another application does with its windows? It sounds like you're confusing desktop with screen. The Finder manages the desktop (disk icons, files on the desktop, etc.), but has no control over what any other application does with its windows.
    If you want to control ApplicationX's windows then you need to tell ApplicationX what to do with them, not the Finder.
    If I dissect your script:
    Tell app "Finder"
    now we're talking to the Finder
    open file "PT.rtf" of startup disk
    This opens the file, as you expect. The Finder uses the system directory to work out which application should handle .rtf files.
    set position of container window of file "PT.rtf" of startup disk to {50,50}
    'container' is a Finder object that relates to the item (folder, disk, etc.) that the target file is in. In this case the 'container' of the PT.rtf file is 'startup disk'
    --or of "window 1 of app "TextEdit"
    This is getting closer, but the Finder can't manipulate other application's objects
    Kel's earlier suggestion is the right approach - once you've opened the document (which, incidentally, doesn't need the Finder at all), you tell TextEdit to set the window position as required. However, the kicker is that you didn't look at TextEdit's dictionary - if you did you'd notice that there isn't any position property for a window in TextEdit - you have to use bounds:
    <pre class=command>tell application "Finder"
    open file "PT.rtf" of startup disk
    end tell
    tell application "TextEdit"
    set {l, t, r, b} to bounds of window 1
    set bounds of window 1 to {50, 50, 50 + (r - l), 50 + (b - t)}
    end tell</pre>
    To explain, 'bounds' represents the four corners of the window - left, top, right, bottom. To reposition the window you provide four new coordinates. In my example, I set the top and left coordinates to 50 and calculate new bottom/right coordinates by adding 50 to the current window height (b-t) and width (r-l).
    Incidentally, this is why I recommend not using the Finder to open the document. While it may be true that on your machine, today, TextEdit is the default application for .rtf files, it might not be true tomorrow, or on someone else's machine - you could change to SuperDuperText.app as your preferred .rtf application, so now you're asking the Finder to open the document (which will use SuperDuperText.app), then telling TextEdit to set the window bounds, even though it has no idea that you've just opened a document in some other application.
    A better approach is to do it all in one tell block, targetting the specific application you want:
    <pre class=command>tell application "TextEdit"
    open file (path to startup disk as text) & "PT.rtf"
    set {l, t, r, b} to bounds of window 1
    set bounds of window 1 to {50, 50, 50 + (r - l), 50 + (b - t)}
    end tell</pre>
    >When the script which created the TextEdit document is run, the window position does get set properly, but in accordance with the bounds. When the document is saved and then opened, however, the positioning appears random (although the bounds remain correct).
    This may be the crux of the problem - TextEdit documents do not save any position information. Because plain text and .rtf documents are expected to be portable (cross-platform), they don't store any position information since it may not be relevant to the target application. In this case, TextEdit is using its own algoritm to work out where to open the window, typically based on some offset from the last opened window.
    In short there just isn't any way to store a window position in a plain text document.

  • MOVED: [nForce] K7N2 D2-FSR cant get in window after manual setting

    This topic has been moved to Overclockers & Modding Corner.
    [nForce] K7N2 D2-FSR cant get in window after manual setting

    I'm a bit of a noob at o/c so not sure I can give you sound advice.
    pci is unlocked I think, though if use core centre then you can control it-I'm not using corecentre.
    are you using priority 10 for prime 95 and In-place FFT's torture test?  I believe that is most demanding.  If you getting reboots then you're overclock is not stable, need to lower fsb and retest.  Your psu is probably marginal as well so maybe that isn't quite strong enough to be pushed further.  Can you try beefier one?
    I don't know how far you can push vcore up; maybe one of our resident experts can advice.
    I started out on this journey with exact problem you faced; I couldn't change High Performance mode from optimised to manual.  I still haven't found a solution unless I enable DOT.  I've tried bios b5, b6.1 and now trying b6.0, without success.  O/S fails to load.  Did you say b3  allowed you do to that and increase fsb in bios or was it change of memory?  I'm thinking my expensive ram is not very flexible and doesn't suit the nforce 2 chipset.  At moment with bios b60, high performance manual,  memory to manual (2-2-2-11) and DOT enabled-private I passed memtest overnight.  I'll try prime95 tonight if I have no issues tday.
    Dave

  • Don't close popup window on action

    Hello!
    I have a popup window, which contains another window from my component. I assigned actions to buttons. I need not to close popup after action in some cases. I want to decide in action's method. How can I avoid closing the popup?
    Edited by: Konstantin Milutin on Feb 24, 2010 12:55 PM

    Hi,
    when u are creating the pop up window then there is a parameter close_in_any_case set its value as abap_false.

  • Adobe Reader 8.2 - setting of Reader-Window

    Hello,
    I use Adobe Reader 8.2, Windwos XP + SP2, IE 6.0 + SP2.
    If I start the Reader application with a other application (maybe about Internet Explorer) then the setting of the Reader-Window willn't be maintained. This is only after the Security Update from Adobe Reader 8.14 to 8.2.
    Someone now why that so or can help me to stop this.
    Regards
    Erdem

    Hello Malik,
    the problem is as follows:
    The windows size, position of windows on the desktop, the display setting from PDF document.
    When I diectly start the Adobe Reader 8.2 and then adjust the display position, size of the Reader window, display of the PDF document an finish the Reader application. Later reopening the Reader is  everything (position, size, setting of PDF document) all right. But if I started Reader about a third application (maybe IE) then the desktop position was in the middle of the desktop, size was a other and the PDF document display is 167%.
    Regards
    Erdem

  • Is there a script to position document windows?

    I think it's likely that someone (Dave?) has written a script for this, but I can't find one.
    I want to open (or at least reposition) document windows on my second monitor, not under the open panels on the primary display on my MacBook screen; and I'd like to find a way of doing this with keystrokes.
    If a script doesn't exist, is it possible, or is there some roadblock? Should I post in the scripting forum?

    I have indeed written such a script, but it is not aware of second monitors, and off the top of my head, I'm not sure how to make it aware.
    Ah, it doesn't have to be aware. The bounds are relative to the total monitor space. So my script will work.
    Here you go:
    //DESCRIPTION: Resets active window size or uses front window to set default size.
    // Check for WindowDefault.txt; if present use it to set front window
    // if not, use front window to set it after checking with user.
    myPath = app.activeScript;
    myParts = myPath.toString().split("/");
    myParts[(myParts.length - 1)] =  "WindowDefault" + app.version.slice(0,1) + ".txt";
    myNewPath = myParts.join("/");
    mySettingsFile = File(myNewPath);
    // Before proceeding, check that there is a front window
    // If not, offer user the chance to delete the current settings
    if (app.windows.length < 1) {
    beep();
    if (confirm("No window is open; would you like to delete the settings file?")) {
      // User said yes; check that it exists
      if(mySettingsFile.exists) {
       mySettingsFile.remove();
    } else {
    if (mySettingsFile.open("r")) {
      savedBounds = mySettingsFile.read();
      mySettingsFile.close();
      myBounds = savedBounds.split(",");
      for (i = 0; i<myBounds.length; i++) {
       myBounds[i] = Number(myBounds[i]);
      app.windows[0].bounds = myBounds;
    } else {
      beep();
      if (confirm("Settings file is missing. Use current front window to set default?")) {
       // User said: go to it.
       new File(mySettingsFile);
       mySettingsFile.open("w");
       mySettingsFile.write(app.windows[0].bounds);
       mySettingsFile.close();
    Before you run the script for the first time, position a window where you want this script to position all subsequent windows. It keeps the information in a text file in the same folder as the script. You can reset the position by editing the file (that's what I often do to fine tune the position) or by running the script again with no window open.
    Dave

  • How to set-up  Time Machine after Restore

    After having restored an entire system back from Time Machine, it looks to me as Time Machines wants to completely backup all data already held on the hard-disk. With this effect, the harddisk is not big enough. I do not want to buy another disk. Is there any way how to persuade Time Machine that it should use the existing data on the disk?

    Hi Aulia,
    I don't believe that you will be able to have Time Machine understand that you only want it to continue with the same data : once it has detected that a file changed, it makes another copy, even if you know that it's the same file : it's based on messages telling it that a file has changed, not on files comparison.
    I think that the "inprogress" file will be replaced by another one if you let TM do it's job : it won't make a third copy of your data. If there is enough space on the disk, you can let TM continue, and try to manage with the following trick, with patience and much care.
    Make sure that the "Action" menu is visible in a Finder's window (it is if you did not customize the toolbar to remove it), and dive into Time Machine. Select a item in the window : the Action menu now has an item that should read "delete all backups of this element" (or something like that : I'm translating my French version). Take care that "all" here really means ALL versions in the backup : the only copy left would be on your main disk.
    The next backup may not make a fresh copy unless you help it a little : after all, there was no message telling TM that the original was changed, since it was not ! Just do anything in the folder containing the item that you deleted from the backup (like creating and immediately deleting a folder there) : this will tell TM that something has happened there, the next backup will check the folder, detect the missing element and make a fresh copy.
    Having only one copy of a really important folder may not suit you, even if it's only for the short delay until the next backup. You can make a copy of it, and run TM to backup the copy (a right click on the icon in the dock shows a "backup now" item). You now have a backed up version, you can delete the original, and all the backup copies of the original with the previous method. But if you rename the copy back to it's original name, it will be saved again... just iterate one more time !
    I hope that this can help you, but please do not hesitate to try and validate your method on small copies before you delete something in your backup !
    PS : I just tested my proposals with my 33Gb iMovie Events folder : a new copy of an event folder is created in the backup each time you rename an event, and I gained more than 40 Gb by deleting all previous redundant versions.
    At least, it works for me !

  • To exit the command window after  weblogic app server startup

    Hi,
    The startWeblogic.cmd starts the weblogic V 10.0 server without exiting the prompt. Since our requirement wanted the startWeblogic script to exit the window after server startup, we set the parameter SET doExitFlag=true in startweblogic.cmd file , but the result was same as earlier the server started without exiting the window. Also we tried Redirecting the server starup output to a file , but even this did not exit the window.
    My query is
    1. What parameter options one should use to start the server so that it exits the command window in which it was started?
    2. Is there an alternate way to do the same,something like to start it as a background process in Windows?
    Any help in this regard would be great.
    Thanks in Advance.
    Best Regards,
    Preethi

    Not sure about parameters to startWeblogic.cmd, but from Windows you could
    try
    start /b startWebLogic.cmd > start.log 2 >& 1
    <Preethi Ghalke> wrote in message news:[email protected]..
    Hi,
    The startWeblogic.cmd starts the weblogic V 10.0 server without exiting the
    prompt. Since our requirement wanted the startWeblogic script to exit the
    window after server startup, we set the parameter SET doExitFlag=true in
    startweblogic.cmd file , but the result was same as earlier the server
    started without exiting the window. Also we tried Redirecting the server
    starup output to a file , but even this did not exit the window.
    My query is
    1. What parameter options one should use to start the server so that it
    exits the command window in which it was started?
    2. Is there an alternate way to do the same,something like to start it as a
    background process in Windows?
    Any help in this regard would be great.
    Thanks in Advance.
    Best Regards,
    Preethi

  • When i editing in the piano roll windows, after 10 at 20 editing steps my logic pro 9 crashed down. Every time. Is this a bug?

    When i editing in the piano roll windows, after 10 at 20 editing steps my logic pro 9 crashed down. Every time. Is this a bug?

    Maybe find a local who can translate for you. I don't know what to tell you for dealing in another country for service on your computer.
    I can offer you something you can do if you want to give it a try. You'll need a backup of your data in your Home folder because you need to erase the drive. You'll also need a solid, preferably fast, internet connection.
    Install or Reinstall Lion/Mountain Lion from Scratch
    Be sure you backup your files to an external drive or second internal drive because the following procedure will remove everything from the hard drive.
    Boot to the Recovery HD:
    Restart the computer and after the chime press and hold down the COMMAND and R keys until the menu screen appears. Alternatively, restart the computer and after the chime press and hold down the OPTION key until the boot manager screen appears. Select the Recovery HD and click on the downward pointing arrow button.
    Erase the hard drive:
      1. Select Disk Utility from the main menu and click on the Continue button.
      2. After DU loads select your startup volume (usually Macintosh HD) from the
          left side list. Click on the Erase tab in the DU main window.
      3. Set the format type to Mac OS Extended (Journaled.) Optionally, click on
            the Security button and set the Zero Data option to one-pass. Click on
          the Erase button and wait until the process has completed.
      4. Quit DU and return to the main menu.
    Reinstall Lion/Mountain Lion: Select Reinstall Lion/Mountain Lion and click on the Install button.
    Note: You will need an active Internet connection. I suggest using Ethernet if possible
                because it is three times faster than wireless.

  • Positioning form windows

    In Forms 6i, is it possible to control where a new window would open up to whether it be in relation to the whole screen or the window that opened it? I have a main window that opens an options box. That option box opens nicely down and to the right a little. I created that window and don't remember doing anything special to get it to do that. That option box can open another option box, however, that one opens in the top left corner of the screen. What can I do to have the second window pop-up in a better location? Thanks in advance.

    Thanks Francois for your response. Is there a Get_Window_Property so I could retrieve the position of the parent window to use when I'd go to set my child window's position?

  • Create after action on AD not fired

    This is to create exchange email box after the user is created. So a 'create after action, should be initiated on AD after creating
    a user.
    I added this field in 'Create User form' at the end.
    <Field name='accounts[AD].create after action'>
    <Expansion>
    <s>AfterCreate</s>
    </Expansion>
    </Field>
    Had a resource action object as:
    <?xml version='1.0' encoding='UTF-8'?>
    <!DOCTYPE Waveset PUBLIC 'waveset.dtd' 'waveset.dtd'>
    <Waveset>
    <ResourceAction name='AfterCreate'>
    <ResTypeAction restype='Windows Active Directory' timeout='75000'>
    <act>
    <!-- This is to test whether this is being fired .I supposed to call a batch file.-->
    echo create >> c:\%WSUSER_employeeID%.txt
    exit
    </act>
    </ResTypeAction>
    </ResourceAction>
    </Waveset>
    And Mapped in AD Schema as:
    <AccountAttributeType id='10' name='create after action' syntax='string' mapName='IGNORE_ATTR' mapType='string'>
    </AccountAttributeType>
    Basically, this action is not being fired at all.
    I am not sure if �create after action� was put in the wrong form in the �create user� workflow or the GW has any issues?
    Can anybody give me some pointers?
    Thanks.

    the code above works. the gateway service needs to be running as a user with sufficient permissions. initially, this change didn't seem to take on my win2003 server, but after a reboot it worked fine.
    Other than that I followed the resource ref doc, and I placed the field in the AD User Form, see below for a snippet showing the location I used.
    <Field name='accounts[$(RESOURCE_NAME)].Distinguished name'/>
    <Field name='accounts[$(RESOURCE_NAME)].Manager'/>
    <Field name='accounts[$(RESOURCE_NAME)].Mail Nick Name'/>
    </Field>
    <Field name='accounts[AD].create after action'>
    <Expansion>
    <s>ADAfterCreate</s>
    </Expansion>
    </Field>
    </Form>
    -----------------------------------------------------------

Maybe you are looking for

  • Xf86-video-intel 2.4.2-1 has "spontaneous" lockups

    I've been quite happy with my Arch installation on my Dell XPS M1330, which I purchased about a month ago.  I have used Arch quite a bit before for servers and virtual machines, but this is my first time using it as a "regular" desktop system. Anyway

  • Uninstall itunes 11 and go back to 10.7

    Hi, wanted to uninstall itunes 11 to itunes 10.7 because I cannot stand the new layout, how do I go about that safely? I have not put any new songs on it since it has been updated so thats not an issue. please help, I hate it.Mac book pro 13 inch. 10

  • What case works with the dock

    Hey, I'm looknig for a case that will work with the dock. Are there any out there? I really like using the dock to sync my phone and I'm not happy loosing that feature in order to use a case. I'm already aware that the iSee case will not work with th

  • TS4062 Invalid Response?

    So I simply cannot sync my iPod to the computer with USB or Wi-Fi. Only because I keep recieving an error that reads my ipod is getting an invalid response. I have tried everything for the last two days and dont know what to do. My iPod is 4th Genera

  • Onedrive asks for credentials, but only asks email address as office account. Nothing happens !!!

    My personal experience with OneDrive is still a nightmare.  Onedrive is asking for credentials, but it is only requesting the account, so there is no place for password. At the end, I can't provide the credential. If you think that the only solution