Help on Lookup command

Hello,
I'm trying to use the lookup to copy a value from an application to another.
The source application has a dimension more than the destination application, the "Client" dimension.
Can someone explain me how it works exactly? I have tried several things but I can't manage to copy the value in the destination application.
The code I have written is:
*LOOKUP SALES
*DIM Category = "BUDGET"
*DIM LACC:Account = "SalesUnits"
*DIM MEASURES= "Periodic"
*DIM Client= "ALL"
*DIM Product = %SET%
*DIM Entity = %SET%
*ENDLOOKUP
*WHEN CATEGORY
*IS BUDGET
*REC(EXPRESSION = LOOKUP(LACC), Account = "SalesUnits" )
*ENDWHEN
*COMMIT
One additional question, can I skip the when/endwhen command and use only the REC command?
Thanks in advance and best regards,
Ana

Ana,
  Couple  of  things...
Once  you  validate  and  save  your  logic  , A  debugvalidation.log  gets created  in the privatepublication folder of  your  APPlication  under  your  username...which  has  the  required  SQL  generated  from  your  CODE.....This  code  can  be directly  used  in  your  SQL  server  management  studio  to  see  the  fruits of  your  code....
this  would  give  you a  fair  bit  of idea  where  things  are  getting  messed  up....
On  your  second  question: NO, you  cannot  skip the  WHen /ENDWHEN  and use  only REC.
REC  only  works  when  used  between  WHEN/ ENDWHEN.
ON copying  data..couple  of  other suggestions...
Have  you  tried    SELECT option  to  bring  in the  value  from the  source App  to  the  DEstination APP.?
Have  you  tried  DM  option to  copy the  same  data?
For  further  information  on  these  two  options  you  can  eiither  search SDN or  Administration Help  in your  BPC  installation.
hope  this  helps....

Similar Messages

  • Can anyone help with Double Command issues. This a specific keyboard question and they do not seem to know.

    Before I go into a lengthy explanation of the problem: Can anyone help with Double Command issues. This a specific keyboard question and they do not seem to know.
    Thanks much.
    Emile

    Choose Force Quit from the Apple menu and close Mail from there.
    (103661)

  • Query help in sql commands

    using apex 4.1 i'm entering the following query in the sql command window and I keep getting a pop-up for Entering Bind Variable. I'm not using bind variables though, anyone else see this issue before?
    SELECT A.FIRST,A.LAST,A.COMPANY AS CNAME,
    J.TOT_MAN_HOURS,
    J.ACREAGE,
    W.NUM_WORKERS,
    W.START_DT
    FROM EW_ACCOUNTS A, EW_WORK_ORDER W, EW_JOBS J
    WHERE A.ID = J.ACCT_ID
    AND J.JOB_ID = W.JOB_ID
    AND W.START_DT >= SYSDATE
    AND W.START_DT < SYSDATE+1
    ORDER BY W.START_DT

    I tried that and it didn't seem to help either.
    Funny though, if I write a new query against just one of the tables and write out each column name. it works. If I use the * instead of writing each column name, I have the same issue.
    This is in apex.appshosting.com free demo environment. I sent them an email asking about it and they told me it was a code issue and they don't support the demo environment.

  • Help needed - OS Command foe deleting a file from Appplication server.

    Hi,
    I have requirement, where in i need to delete a file from the application server. It has to be done automatically. I thought of using OS Command for achieving the same. Can anyone help me in achieving it. The OS of my application server system is UNIX.
    Thanks in advance!!
    P.S: Points will be rewarded.

    Hello Sudeep,
    If you define the command for each operating system using transactions SM69 (You can test it with SM49) and then call it using SXPG_COMMAND_EXECUTE which contains a parameter defining the operating system (SY-OPSYS)
    then it does not matter which operating system is running, the function module always calls the correct version of the command.
    So, for example you could define a command 'OS_COMMAND'
    which deleted a file. This would have one version for Dos
    which said 'del', and a second version for unix which said 'rm'.
    The correct command would be specified by the call to SXPG_COMMAND_EXECUTE because the operating system parameter differentiates between the two commands.
    [USING PROCESS CHAINS IN SAP BW|https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/e0a7cd90-0201-0010-49a1-d730a56895f4]
    SXPG_COMMAND_LIST_GET – Reads a list of external OS commands
    Thanks
    Chandran

  • In need of help for a command

    Hello again evryone,
    So far you guys have been of great help. Now I have another
    question. It is related to the command
    sprite(spriteNumber).intersects spriteNumber. In my last post I
    asked how to make a ball bounce realisticly, however this idea is
    now replaced by the platform at the bottom of the screen shooting
    the boxes above (Space Invaders sort of). For those who are not
    familiar with my previous post the game is: square shapes falling
    down from the top of the screen and the player has to shoot them
    all to advance with his ship at the bottom of the screen (ship is
    controlled left/right by the mouse, shoot - LMB). To detect if the
    bullet sprite has hit a box I use the command
    sprite(BulletBeingHere).intersects(BoxBeindHere). But with this
    command I do not get consistent results - it detects that the two
    sprites intersect whenever it feels like it. I cannot recorgnise a
    pattern, it is absolutely random (from my point of view). I will
    attach the piece of code I am using. Please if you can guide me
    into fixing this. I suspect I am doing something wrong with the
    sprites' properties, the sprites are bitmaps firs one is box,
    second one is oval-shaped object, both with Ink:Matte (from
    Property Inspector), so to 'merge' with background. In the code:
    custom handler detectHit, spNum is the number of the box sprite, 11
    and 12 are two bullets sprites, sprite(spNum).locV = -600 kicks out
    of the stage the box which has been hit by the bullet, sprite(11 or
    12 here).locV = 0 resets the bullets in their original position.
    P.S. I get this weird problem with Director not being able to
    publish/compile properly the project, everything is working just
    fine whilst in Director, and after publishing to exe file, either a
    critical error, or background is not displayed, or some sprite is
    not displayed. But I don't think that is related to the above
    problem.
    Thanks

    > Looks like you are not using the intersect function
    correctly (note: it does
    > not end with an "s"). It doesn't return a boolean. It
    returns a rectangle of
    > the overlap region. If they don't overlap it will give
    you a value of rect(0,
    > 0, 0, 0)
    There's nothing wrong with 'intersects()' - from the docs:
    sprite...intersects
    Usage
    -- Lingo syntax
    sprite(sprite1).intersects(sprite2)
    sprite sprite1 intersects sprite2
    Description
    Keyword; operator that compares the position of two sprites
    to determine
    whether the quad of sprite1 touches (TRUE) or does not touch
    (FALSE) the
    quad of sprite2.
    If both sprites have matte ink, their actual outlines, not
    the quads,
    are used. A sprite’s outline is defined by the nonwhite
    pixels that make
    up its border.
    This is a comparison operator with a precedence level of 5.

  • Help with PSexec command

    Hi everyone so I have this script that pulls a file from another machine and then unzips it.
    function Expand-ZIPFile($file, $destination)
    $shell = new-object -com shell.application
    $zip = $shell.NameSpace($file)
    foreach($item in $zip.items())
    $shell.Namespace($destination).copyhere($item)
    #Create directory
    New-Item -ItemType directory -Path "C:\Users\Public\Desktop\Android sdk" -Force
    #Move zip to directory
    Copy-Item "\\tsvc2552142x011\C`$\Users\cody-horton\Desktop\adt.7z" "C:\Users\Public\Desktop\Android sdk" `
    -Recurse -Force
    #Unzip file
    Expand-ZIPFile –File "C:\Users\Public\Desktop\Android sdk\adt.7z" `
    –Destination "C:\Users\Public\Desktop\Android sdk"
    #Delete zip folder
    Remove-Item "C:\Users\Public\Desktop\Android sdk\adt.7z" -Recurse
    So it works but I'm having trouble using the PSexec command. I can successfully open up the computers command prompt by using psexec  "computer name" cmd. Then if I try to run my script it doesn't work. 
    I'm not sure what I'm doing wrong or if there was a better way to do this. Thanks any help is appreciated.

    Hi thanks for the reply. I was using this command once I was using the other machines command prompt runas/user:UserName"ProgramNamePathToProgramFile"
     So I would put my user name which is an admin in AD then the path to the ps1 file I wanted to execute.

  • Help! Pressing Command and Q always launches Safari

    Hi,
    Today, out of nowhere, if I try to Quit an application other than Safari using the Command and Q keys on the keyboard, it doesn't work. What it does is launch Safari. I don't know how to get it to stop doing that.
    Does anyone know?
    Thanks in advance.
    -Dean

    Well this afternoon, I got in touch with Maxtor, because I wanted to know if there was a program that would prevent my 1TB hard drive from sleeping. The tech sent me a link to download an application that would work on a Mac Pro. Once I ran the application (Maxtor OneTouch Manager) and (SyncMyMac), I realized I couldn't find the setting to prevent the drive from sleeping.
    I again called Maxtor, and another tech said there's no such application for the Mac. So much for helping your customers and giving them the proper information.
    What I did was remove anything that had to do with installing the app's I mentioned above, so perhaps, something is preventing my keyboard from working properly.
    I'll check the start items list and see if there's anything out of the ordinary.
    Thank you again for your help.
    -Dean

  • Would like help with trap command in Terminal

    I'm learning about the trap command from my bash book. I tried out the little script they gave:
    Code: 
    trap "echo 'You hit control-C!' " INTwhile true; do     sleep 60done
    But when I type control-c, the script just stops and the message is not displayed. I checked trap -l and saw that control-c is intr, but the same thing happened whet I tried that. Can anyone tell me what I'm missing?
    I'm using terminal (BSD) in OS X Snow Leopard

    I'm assuming that you are typing these commands in the terminal window and not initiating them thru a shell script. I'd like to suggest that you avoid infinite loops. Since you are bound to orphan processes. I'm going the use the external sleep command in my examples because it affords us some time to type CONTROL-C.
    [bash-4.2.8]~ $ trap "echo '......You hit control-C'" INT; sleep 15
    ^C  
    [bash-4.2.8]~ $
    [bash-4.2.8]~ $ ^C......You hit control-C
    The trap is set but Bash does not intercept the trap because sleep is running in the foreground. The interrupt signal is sent to the command sleep.
    Let's try running sleep in the background ->
    [bash-4.2.8]~ $ trap 2 #Set SIGINT to it's default
    [bash-4.2.8]~ $ trap "echo '......You hit control-C'" INT; sleep 15&
    [1] 368
    [bash-4.2.8]~ $ ^C......You hit control-C
    [bash-4.2.8]~ $ ^C......You hit control-C
    [1]+  Done                    sleep 15
    [bash-4.2.8]~ $ ^C......You hit control-C
    It works! Well, almost. You can't send the interrupt signal to a background process. In order for Bash to intercept the trap it must stay in the foreground. This happens when you initiate a sub-shell via a shell script or by rapping a command in paretheses ( ) ->
    [bash-4.2.8]~ $ trap 2  #Set SIGINT to it's default
    [bash-4.2.8]~ $ (trap "echo '......You hit control-C'" INT; sleep 15) ^C......You hit control-C
    [bash-4.2.8]~ $
    [bash-4.2.8]~ $ ^C
    The trap works and the interrupt signal was sent to sleep. Notice, the trap is only set in the sub-shell.
    Bash behaves differently when you use the built-in commands since you are working within the shell. I'll use an example similar to one of yours, except that you can break out of the loop by typing the number 10 or higher.
    [bash-4.2.8]~ $ trap "echo '.......You hit control-C'" INT ; x=0; while (( $x < 10 )); do echo "Enter a number"; read x; done
    Enter a number
    3
    Enter a number
    ^C.......You hit control-C
    3
    Enter a number
    10
    [bash-4.2.8]~ $
    [bash-4.2.8]~ $ ^C......You hit control-C
    [bash-4.2.8]~ $ trap 2  #Set SIGINT to it's default
    As you can see the trap works. I'm going to let you sort out what happens after I typed  CONTROL -C in the last example.....:-)  Hope this helps.
    Message was edited by: Mark Jalbert

  • Help: Browse, Open command buttons

    I have a textbox in a form, i would like to have three command buttons:
    (Browse, open, Remove).
    when a user click the Brouse button, it should open the c:/directory allowing for choosing a file and when a user choos a file, a bath should be
    stored in that textbox and into that field in my DB.
    Also when a user click the open button, it should open the file.
    Also, when a user click the remove button, it should remove the bath.
    I really appreciate your help.

    I still don't know how to solve the problem that i explained in the previous message.
    Is it possible to do that in Forms Developer, if so how??

  • Need help with Telnet command in JSP

    Here is the code I have been working on but it will not display the buffer to the page..
    String [] cmd1 = {"cmd.exe","/c","telnet hqsun1.xx.xxxxx.com"};
              Process n;
              String T = "" ;
              n = Runtime.getRuntime().exec(cmd1);
              BufferedReader in1 =
              new BufferedReader(new InputStreamReader(
              n.getInputStream()));
              while((T=in1.readLine()) != null)
              out.println(T+"");
    Maybe someone has done this before? I am trying to acomplish a telnet net session to the screen with some exicuted commands, because this tool is going to be used to help determine system status when the help desk needs to check on something.
    Thanks

    I don't want to be discouraging, but I'm not quite sure you've thought the problem through. You say that you'd like to create a web page capable of providing various pieces of information to the help desk, and you suggest ping and the output of various canned telnet commands as examples.
    What is preventing the help desk from just executing those commands at the command prompt?
    I realize that the people working the help desk are (ahem) there for a reason, but it is really much faster for me to just simply type "ping www.mpalfrey.com" at the prompt, then it is for me to fire up the web browser and wait for a response that way. You will likewise find that it is a lot more convenient to perform diagnosis on remote machines directly from the command prompt.
    Uh, it's kind of like giving someone a screwdriver, then saying, "oh wait a second" and making them wear an oven mitt in order to use the screwdriver.
    But, if you really want to do it this way, the best thing to do is create a wrapper class that directly calls the system command and captures the output to a stringbuffer. Then your JSP page simply has to clone that wrapper via a new() command and trigger it if you go the singleton route. The code would look something like this...
    <%@ import page="com.mpalfrey.shellcommands.ping" %>
    <%
       myPing foo = new myPing( request.getParameter( "victim" ) );
       foo.trigger();
    %>
    Ping results:
    <%=foo.results()%>JSP can do a lot of wonderful things, but that doesn't mean you have to do it that way. :)

  • Need help!---lookup connectionFactory failed after restart j2ee server!

    hi,
    I wonder anyone could help me to solve this context lookup problem described as bellows.i should say 'thanks' in advance!!!
    At the end of the message i post the code used to lookup administered objects then create connection.
    i use sun's default jms implementation (j2sdkee1.3.1) and jdk1.4 as environment.
    The jms client will try to establish a new connection if the j2ee server restarts (perhaps due to remote j2ee server shutdown or network trouble) , but it fails to lookup topicConnectionFactory in the JNDI this time. An namingException will be caught :
    "javax.naming.CommunicationException: java.rmi.MarshalException: CORBA COMM_FAILURE 1398079689 No; nested exception is:
         org.omg.CORBA.COMM_FAILURE: vmcid: SUN minor code: 201 completed: No
         at com.sun.corba.ee.internal.iiop.ShutdownUtilDelegate.mapSystemException(ShutdownUtilDelegate.java:92)
         at javax.rmi.CORBA.Util.mapSystemException(Util.java:65)
         at org.omg.stub.com.sun.enterprise.naming._SerialContextProvider_Stub.lookup(Unknown Source)
         at com.sun.enterprise.naming.SerialContext.lookup(SerialContext.java:120)
         at javax.naming.InitialContext.lookup(InitialContext.java:347)
    Caused by: org.omg.CORBA.COMM_FAILURE: vmcid: SUN minor code: 201 completed: No
         at com.sun.corba.ee.internal.iiop.ConnectionTable.getConnection(ConnectionTable.java:176)
         at com.sun.corba.ee.internal.iiop.ConnectionTable.getConnection(ConnectionTable.java:68)
         at com.sun.corba.ee.internal.iiop.GIOPImpl.getConnection(GIOPImpl.java:70)
         at com.sun.corba.ee.internal.corba.ClientDelegate.createRequest(ClientDelegate.java:641)
         at com.sun.corba.ee.internal.corba.ClientDelegate.createRequest(ClientDelegate.java:583)
         at com.sun.corba.ee.internal.corba.ClientDelegate.request(ClientDelegate.java:875)
         at org.omg.CORBA.portable.ObjectImpl._request(ObjectImpl.java:431)
         at org.omg.stub.com.sun.enterprise.naming._SerialContextProvider_Stub.lookup(Unknown Source)
         ... 6 more
    Some code in the establish() method:
    try {
    TopicConnectionFactory topicConnectionFactory = null;
    InitialContext ctx = null;
    ctx = new InitialContext();
    System.out.println("ctx:" + ctx);
    topicConnectionFactory =
    (TopicConnectionFactory) ctx.lookup ("connectionfactory");
    System.out.println("topicConnectionFactory:" + topicConnectionFactory);
    while (connection == null)
    try{
    connection = topicConnectionFactory.createTopicConnection();
    } catch (javax.jms.JMSException jmse)
    System.out.print("Cannot connect to message server...");
    System.out.println("Pausing " +
    CONNECTION_RETRY_PERIOD / 1000 + " seconds before retry.");
    try
    Thread.sleep(CONNECTION_RETRY_PERIOD);
    } catch (java.lang.InterruptedException ie) {ie.printStackTrace();}
    continue;
    System.out.println("\nConnection established");
    session =
    connection.createTopicSession(false,Session.AUTO_ACKNOWLEDGE);
    topic = (Topic) ctx.lookup ("subscribeTopic");
    connection.setExceptionListener( (javax.jms.ExceptionListener) this);
    catch (javax.naming.NamingException jne){
    System.err.println("[MessageSubscriber] - NamingException!");
    //jne.printStackTrace( );
    Best Regards,
    -bawanglongqiqi

    Hi!
    I've encountered a similar problem with looking up the Home-interface
    of an EJB from a client through the InitialContext object after a
    restart of the application server.
    Try to set an additional property before creating your InitialContext
    object that clears the JNDI cache (the property name seems to differ
    between context factories - e.g. I'm using a WebSphere one and had to
    set a WebSphere specific property name).
    I'm sure you will find further info when you do a web search on "clear
    JNDI cache" for your specific JNDI provider.
    Kind regards,
    Markus

  • Need help about get-command

    hi friends
    i know via Get-command *adapter*, we can list all commands which contain the word "adapter"
    but how to get the list of all commands which contain the word "net" or the word "adapter" or contain both?
    thanks

    Hi John,
    yes, that's possible. I posted my example primarily to show off Select -Unique
    Get-Command | Where { ($_.Name -like "*Adapter*") -or ($_.Name -like "*net*") }
    Another aspect to consider with this kind of structure:
    Your Get-Cmdlet retrieves all entries and you filter only afterwards. With
    Get-Command that's not an issue, but with Wmi, SQL or other queries that either do remote calls or process massive amounts of data, this may result in very inefficient commands.
    Cheers,
    Fred
    There's no place like 127.0.0.1
    Special thanks, really helped.
    best regards ;-)

  • Need help with IOS commands to see wireless printer

    Seems that I'm not asking the question correctly, or providing the right information.
    The problem:
    I've purchased a wireless printer, (an HP 6500a) and I can not see / ping / use the printer on the wireless network.
    Environment:
    Cisco 891 ISR in standalone. Single office - Home-office environment. Nothing spectacular. WLAN connected and operational to the internet.
    The printer is configured to use a static IP of 10.0.0.3 and reports that it is connected to the AP. However, when I ping FROM the command line at the AP, I DO NOT see the printer. (I did previously, but we lost power last night due to a storm and I'm still trying to reconfigure it...) DHCP is configured on the router to exclude the range 10.0.0.1 through 10.0.0.99
    How do I configure the wireless router to allow any connected client to share files / printers etc? Seems that the Cisco router has this shut off
    by default and I've found nothing in the user manual or by asking for help on here how to reverse this so that I can share printers / files on the LAN.
    Please, I'm not stupid, but I'm only casually familiar with IOS and Cisco's networking terms.
    Thanks in advance,
    -Mike
    =============== Begin Wiresless AP config (running-config) ==============
    Current configuration : 3122 bytes
    version 12.4
    no service pad
    service timestamps debug datetime msec
    service timestamps log datetime msec
    no service password-encryption
    hostname (Remnoved)
    enable secret 5 (Removed)
    no aaa new-model
    dot11 syslog
    dot11 ssid (Removed)
       vlan 1
       authentication open
       authentication key-management wpa
       mbssid guest-mode
       wpa-psk ascii 0 (Removed)
    username (removed)
    username (Removed)
    bridge irb
    interface Dot11Radio0
    no ip address
    no ip route-cache
    encryption vlan 1 mode ciphers tkip
    broadcast-key vlan 1 change 30
    ssid (Removed)
    antenna gain 0
    station-role root
    interface Dot11Radio0.1
    encapsulation dot1Q 1 native
    no ip route-cache
    bridge-group 1
    bridge-group 1 subscriber-loop-control
    bridge-group 1 block-unknown-source
    no bridge-group 1 source-learning
    no bridge-group 1 unicast-flooding
    bridge-group 1 spanning-disabled
    interface Dot11Radio1
    no ip address
    no ip route-cache
    encryption vlan 1 mode ciphers tkip
    broadcast-key vlan 1 change 30
    ssid (Removed)
    antenna gain 0
    dfs band 3 block
    channel dfs
    station-role root
    interface Dot11Radio1.1
    encapsulation dot1Q 1 native
    no ip route-cache
    bridge-group 1
    bridge-group 1 subscriber-loop-control
    bridge-group 1 block-unknown-source
    no bridge-group 1 source-learning
    no bridge-group 1 unicast-flooding
    bridge-group 1 spanning-disabled
    interface GigabitEthernet0
    description the embedded AP GigabitEthernet 0 is an internal interface connecting AP with the host router
    no ip address
    no ip route-cache
    interface GigabitEthernet0.1
    encapsulation dot1Q 1 native
    no ip route-cache
    bridge-group 1
    no bridge-group 1 source-learning
    bridge-group 1 spanning-disabled
    interface BVI1
    ip address dhcp client-id GigabitEthernet0
    no ip route-cache
    ip http server
    no ip http secure-server
    ip http help-path http://www.cisco.com/warp/public/779/smbiz/prodconfig/help/eag
    access-list 110 permit icmp any any echo
    access-list 110 permit icmp any any echo-reply
    access-list 110 permit icmp any any source-quench
    access-list 110 permit icmp any any packet-too-big
    access-list 110 permit icmp any any time-exceeded
    bridge 1 route ip
    banner login ^CC
    % Password change notice.
    Default username/password setup on AP is cisco/cisco with privilege level 15.
    It is strongly suggested that you create a new username with privilege level
    15 using the following command for console security.
    username <myuser> privilege 15 secret 0 <mypassword>
    no username cisco
    Replace <myuser> and <mypassword> with the username and password you want to
    use. After you change your username/password you can turn off this message
    by configuring  "no banner login" and "no banner exec" in privileged mode.
    ^C
    line con 0
    privilege level 15
    login local
    no activation-character
    line vty 0 4
    login local
    cns dhcp
    end

    Wireless clients can get on w/o issue. Nobody can ping anyone else or see them.
    No file sharing, no printer.
    Tried using the web-based config which works for some items, but wont access the advanced config.
    I'm on my way into town, so can't post the router config, but it is posted in my earlier question
    of last week. I can login later if you otherwise need it here.
    Thanks,
    -Mike

  • Help with a Command script

    Hello,
    Awhile back someone wrote the following script for me. The
    idea was to make a comman that would allow me to reduce an image
    down to 400 pixel width without loss of scale. I want to have a
    similiar command that will reduce a large image down to 400 pilel
    height without loss of scale. I fiddled with the command for width
    but can't get it to work for height. Can I get some help rewriting
    the following command to work for 400 pixel height? Thanks.
    // User Variables
    var width = 400;
    // Command
    var dom = fw.getDocumentDOM();
    var scale = width/dom.width;
    var height = dom.height * scale;
    dom.setDocumentImageSize({left:dom.left, top:dom.top,
    right:dom.left+width, bottom:dom.top+height},
    {pixelsPerUnit:dom.resolution, units:dom.resolutionUnits});

    Tom Hersh wrote:
    > I did try it that way. But I could not get it to work.
    The word "scale" is critical, but I switching did not help.
    Just switch the variables word for word. Height for width and
    width for
    height.
    // User Variables
    var width = 400;
    // Command
    var dom = fw.getDocumentDOM();
    var scale = width/dom.width;
    var height = dom.height * scale;
    dom.setDocumentImageSize({left:dom.left, top:dom.top,
    right:dom.left+width,
    bottom:dom.top+height}, {pixelsPerUnit:dom.resolution,
    units:dom.resolutionUnits});
    // User Variables
    var height = 400;
    // Command
    var dom = fw.getDocumentDOM();
    var scale = height/dom.height;
    var width = dom.width * scale;
    dom.setDocumentImageSize({left:dom.left, top:dom.top,
    right:dom.left+width,
    bottom:dom.top+height}, {pixelsPerUnit:dom.resolution,
    units:dom.resolutionUnits});
    Once you see this script, it's not hard to see what it is
    doing.
    This is the Fireworks generated script scaling just the
    height of an
    image to 400 px from 640x480 px.
    fw.getDocumentDOM()
    .scaleSelection(0.83281248807907104, 0.83333333333333337,
    "autoTrimImages transformAttributes");
    This works on all 640x480 images. Throw in a 700x480 and it
    won't.
    I'm assuming, very few people in here (myself included),
    would be able
    to transform this into something that would account for
    varying widths
    as senocular did.
    SKB

  • In help, symbol before command symbol...

    I am switching from PC to Mac...
    When looking at the on screen instructions (in this case for zoom in/out in universal access), there is a symbol before the command symbol that looks something like this \-. So (\-) (command symbol) = changes the zoom. This always shows up before the command symbol. What is it?
    Thanks
    bob

    If you look at it closely the option symbol looks a little like a railroad switch.
    If you want to see a complete list, then go to:
    Finder -> Help -> Symbols for special keys

Maybe you are looking for

  • Retraction problem, key figure mapping

    Hello guys: I am using the retraction function to retract activity data from BPS to R/3. I have created the sender structure and now I am creating the mapping rules. For the characteristics, there is no problem, but for the key figures, if I input a

  • APP-SQLAP-10252: You cannot Confirm a payment batch

    Dear all: IN ORACLE EBS 11.5.9 , When I click the button "Action 1" in "Payment --> Entry --> Payment Batch" and choose the "Confirm the payment Batch" will show the error: *"APP-SQLAP-10252: You cannot Confirm a payment batch that does not have any

  • Edge Inspect works great except localhost pages being blocked by firewall

    Hi, I switch the Windows 7 firewall off and the localhost pages show up on the Edge Inspect app on the iphone4, so then I tried to re-configure the firewall, namely allow Edge Inspect, Bonjour, and Mobile Device related rules all allowed, but the loc

  • Output in one line

    Hi all, I have a table T of the kind: N a a a b b b c c I want the result as: a  b    c 3   3   2 For that i have writtena query select decode(n,'a',count)a,decode(n,'b',count)b,decode(n,'c',count)c from(select n,count(*)count from t group by n); But

  • Combo drop down list

    I am creating a combo drop down list that has two values, var 1 and va2. When you select var 1 it should automatically link to its unique var 2 such as in the example below New York  ->  U.S.A. Moscow -> Russia How can I script this? Thanks.