Easy Syntax Question

I have a JavaScript asp page. On that page I have the
following line displayed...
<th scope="col"><A HREF="AddToCart2.asp?<%=
Server.HTMLEncode(MM_keepURL) + ((MM_keepURL!="")?"&":"") +
"ID=" + rsMasterCardList.Fields.Item("ID").Value
%>">Withdraw</A></th>
I only want the "Withdraw" hypertext to be displayed if the
variable rsMasterCardList.Fields.Item("Quantity").Value is > 0.
Java is killing me with all the brackets, parenthesis, and
semicolons. I just can't seem to figure out what goes where. Thanks
in advance for all the help.

"MrJCG1" <[email protected]> wrote in
message
news:ekoamj$n61$[email protected]..
> Oh my. Thank you. That worked. Sorry it took so long to
respond. I
> looked
> at your post and I thought all that code looked a little
bit insane for
> something so simple. But I went and plugged it in and it
worked
> perfectly.
>
> Why so much code for something so simple? Why couldn't I
just have a
> "server
> side" IF statement checking the value and if it = 0 then
don't execute
> the
> "client side" code posting on the web page?
That's exactly what you have. I used Response.Write to keep
everything
enclosed, but you could have just as easily left the HTML
outside the server
block.
JScript:
<th scope="col">
<%
if((rsMasterCardList.Fields.Item("Quantity").Value) > 0) {
%>
<A
HREF="AddToCart2.asp?<%=Server.HTMLEncode(MM_keepURL) +
((MM_keepURL !=
"")?"&":"") + "ID=" +
rsMasterCardList.Fields.Item("ID").Value%>">Withdraw</A>
<%
%>
</th>
VBScript:
<th scope="col">
<%
If rsMasterCardList.Fields.Item("Quantity").Value > 0 Then
%>
<A
HREF="AddToCart2.asp?<%=Server.HTMLEncode(MM_keepURL))%><%
If MM_keepURL <> "" Then
Response.Write("&")
End If
Response.Write("ID=" &
rsMasterCardList.Fields.Item("ID").Value)%>">Withdraw</A>")
End If
%>
</th>
> Anyway, thank you. I feel like sending you a tip ($).
Make me understand
> why
> I can't do what I mentioned above and I just might.
>
There's no need for a client-side function. Your data is on
the server; the
HTML is generated on the server; you output what you need
using only
server-side code. The reason there's so much up there is
because of your
need to preserve the query string. If you were only
presenting a link for
ID with no need to keep the query string, it would look much
simpler:
<th scope="col">
<%If rsMasterCardList.Fields.Item("Quantity").Value > 0
Then%>
<A
HREF="AddToCart2.asp?ID=<%=rsMasterCardList.Fields.Item("ID").Value%>">Withdraw</A>
<%End If%>
</th>

Similar Messages

  • Havent a clue! Please help! Easy ABAP Question!

    Helly Gurus
    I am loading from a dso to a cube and doing a lookup on a second dso.
    eg
    'Name' is in the DSO1
    I lookup 'Address' from DSO2
    Then load to the cube.
    The problem is there may be more than one address so although I have coded the lookup to
    find all addresses, I do know how to get these into my results.
    Only the first address it finds is there.
    loop at DATA_PACKAGE.
        select * from DSO1 where
        NAME = DATA_PACKAGE-NAME.
        if sy-subrc = 0.
          move-corresponding DSO2 to itab1. collect itab1.
        endif.
        endselect.
      endloop.
    What do I need to do to get all of the results?
    I am in 3.5 so do not have the use of an End Routine.
    Thanks
    Tom Tom

    you need to do several treatments in fact you need to add records on the data_package (by the way it is not an easy ABAP question as you mentioned !)
    So
    Treatment 1: select all the records from ods2 table of adresses outside the loop
        select names adresses
        from ods2
        into table g_itab_ods2
          for all entries in data_package
          where name eq data_package-name.
    Treatment 2: delete double records of the internal table.
        delete adjacent duplicates from g_itab_ods2 comparing names adresses.
    Treatment 3: loop over the data_package. Within this loop read the internal ods2 table and loop over it to assign the corresponding adresses. Then append the results to the temporary data_package_tmp and move all the records to the initial data_package.
    loop at data_package assigning <data_fields>.
       read table g_itab_ods2 into l_g_itab_ods2
          with key name = <data_fields>-name.
          if sy-subrc eq 0.
            loop at g_itab_ods2 assigning <adresses>
            where name                = <data_fields>-name.
              <data_fields>-adresses= <adresses>-adresses.
              append <data_fields> to lt_data_package_tmp.
            endloop.
          endif.
        endloop.
        data_package[] = lt_data_package_tmp[].
    free lt_data_package_tmp.
    this should do what you want to do. hope this could help you out.

  • Quick, Easy RMAN syntax question

    Hi all,
    Have been struggling with the syntax to list / backup a section of archivelogs on a RAC database
    Basically I want to list / backup a group in the middle of the total
    I tried >list archivelog from sequence 3333 thread 2 until sequence 4444 thread 2;
    It doesn't like it
    This is Oracle RAC 10g 10.2.0.4
    Thanks guys
    Sandy

    just a syntax error
    RMAN> list archivelog from sequence 44253 thread 2 until sequence 44494 thread 2;
    RMAN-00571: ===========================================================
    RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
    RMAN-00571: ===========================================================
    RMAN-00558: error encountered while parsing input commands
    RMAN-01009: syntax error: found "until": expecting one of: "all, backed, completed, device, like, recoverable, ;, tag"
    RMAN-01007: at line 1 column 46 file: standard input
    RMAN>

  • Please help with an ICM script editor syntax question.

    I need to modify a set variable node.  What I have now is Call.PeripheralVariable8+".wav" and this works.  What I need it to say is Call.PeripheralVariable8+anything+".wav" but when I insert an * for the anything it's seen as a multiplier.  What's the syntax to do this?  The anything I need to add is _9xxx where xxx are other numbers, but the _9 will be in all, if that helps any.  Thanks in advance !!

    You can use the concatenate() function to build up your string, as you no doubt know.
    As far as the wildcard goes ... your intention must be to try to SET the call variable and later on test the call variable with an IF node. Is that right?
    You would be able to test parts of the string using the substr() function - which is based on character position. If that is a fixed value that you know, it's easy. If it's not, you can first use the find() function to locate something (like the "_9"), returning the position, and then use the substr() function to pull it off.
    Can you write some pseudo-code here to define exactly your intention? You can set up a dummy script and send a dummy call through using Call Tracer and watch the output to see how your code is working.
    Regards,
    Geoff

  • Can't edit multiple tracks - plus 2 easy audio questions

    I have a sequence with 1 video track and 6 stereo audio tracks. I set an in and an out point. The area on the clips in the timeline between the two edit points highlights, I hit delete. Normally, the tracks between the points should disappear as the two segments come together and form one great edit.
    But all the tracks do not highlight and edit. The video track and stereo audio tracks 3+4 and 5+6 highlight and LIFT off. But audio tracks 1+2 do not highlight or edit. And the whole sequence doesn't close together where the edit should be.
    Only way I have been able to overcome this is to use the razor blade tool, cut each track individually. Highlight them all, and then hit delete.
    This didn't use to be the way. FCP used to edit through one track, 3 tracks or all tracks, no problem.
    Two audio questions. How do you stop the waveforms from drawing onto the clips in the timeline, in order to speed up FCP?
    How do you get the audio in captured clips to be a Stereo Pair, from the outset?
    Thanks to all you who help!

    Is it usual for FCP to bog down on a 4 minute piece when audio wave forms are turned on??
    <
    No. Should run fine. You get up into 6-12 audio tracks, FCP gets all moody and pouty.
    But it depends on your system's capabilities and how well you have chosen your sequence settings.
    Audio waveforms n FCP are a cruel joke compared to many other NLEs. Often easier to leave them off in the timeline, use the waveform in the Viewer and set markers for hooks in the audio tracks.
    bogiesan

  • A syntaxic question...

    Hi guys,
    I've posted about this on this very forum before, but I can't find my own question... and the answers that you people provided, so I'll do it again: what's wrong with the following, knowing that I have Developer Tools installed and that I clearly remember writing a script along those lines a long time ago, when I was still using Tiger?
    Here goes:
    "move mouse
    720, 450 {from left, from top}"
    Where the goal is to move the mouse pointer center screen on startup (don't bother about compiling and saving as an app, just about the right syntax). Something's missing, but I can't put my finger on it...

    The app developer once told me that the delay in activating the mouse was built-in, because it took the Trackpad some time (usually no more than a second or two) to fully activate. So I guess I can't get anything better than what I already have: at least I don't accidentally trigger the Apple menu by trying to move my mouse pointer to screen center...
    Well, trying to stress my brain to figure out an impossible solution.
    FWIW, here's the code, before modification:
    move mouse {720, 450} -- {from left, from top}
    click mouse
    delay 0.1
    click mouse
    delay 0.1
    move mouse {730, 460} -- {from left, from top}
    I'm going to add a two-second delay between the two mouse clicks, just in case. I'll keep you posted. As for the compliment, it's amply deserved, and I'm not the only one on this forum who says so...
    I you are trying to simulate a double click, you need to make the delay closer to what a human would do. Two seconds will most likely turn the double click into two single click.
    2
    All this is probably not need since you fessed up to it being a driver problem.
    Cheers!
    Thanks again for your rewarding comments.

  • 11g pivot query syntax question

    I searched the forums and I have seen questions similiar to the one I am asking, but its not the exact same issue.
    I need 3 fields in my 'for' clause. I get 'column ambiguously defined. I think I get this error for a different reason that other people asking the question.
    The others seem to be doing more than 1 function in the pivot clause and those need an alias. I give an alias with my 1 function and still get an error.
    ORA-00918: column ambiguously defined
    I used aliases like the recommendation in other posts and I still get the same error. I think I need 3 columns in the for clause.
    --note that this is just a test table. These are not real names going into production
    create table pivot_tab (
    pk1 number,
    pk2 number,
    myElement varchar2(30),
    myElementDate date);
    pk1,pk2 are the unique key.
    I need this to return as: the vlaues after pk2, can be any alias. This is just an example.
    pk1  pk2  MY1_DATE, MY2_DATE, MY3_DATE
    select *
         from pivot_tab
        PIVOT ( max(myElementDate) for myElement
                in (''MY1','MY2','MY3'))
    I saw a couple of references to this syntax, but I get syntax errors.
    ora--00906: missing parentheses. So I dont think this syntax works.
    select *
         from pivot_tab
        PIVOT ( max(myElementDate) for (pk1,pk2,myElement)
                in (''MY1','MY2','MY3'))Edited by: Guess2 on May 6, 2013 6:50 AM

    don't have any sample data or expected results to test this with maybe
    SELECT *
      FROM (SELECT pk1,
                   pk2,
                   myelement,
                   myelementdate
              FROM pivot_tab) PIVOT (MAX (myElementDate)
                              FOR myElement
                              IN ('MY1' AS MY1, 'MY2' AS MY2, 'MY3' AS MY3));or maybe you are trying to pivot by the first part of the pk?
    with pivot_tab as (select 1 pk1, 2 pk2, 'MY1' myelement, sysdate myelementdate from dual union all
                       select  1 pk1, 3 pk2, 'MY2' myelement, add_months(sysdate,2) myelementdate from dual union all
                       select  1 pk1, 4 pk2, 'MY3' myelement, add_months(sysdate,3) myelementdate from dual union all
                       select 2 pk1, 5 pk2, 'MY1' myelement, sysdate myelementdate from dual union all
                       select  2 pk1, 6 pk2, 'MY2' myelement, add_months(sysdate,6) myelementdate from dual union all
                       select  2 pk1, 7 pk2, 'MY3' myelement, add_months(sysdate,7) myelementdate from dual )
    SELECT *
      FROM (SELECT pk1,
                   myelement,
                   myelementdate
              FROM pivot_tab) PIVOT (MAX (myElementDate)
                              FOR myElement
                              IN ('MY1' AS MY1, 'MY2' AS MY2, 'MY3' AS MY3));
    PK1     MY1     MY2     MY3
    1     5/6/2013 10:07:40 AM     7/6/2013 10:07:40 AM     8/6/2013 10:07:40 AM
    2     5/6/2013 10:07:40 AM     11/6/2013 10:07:40 AM     12/6/2013 10:07:40 AMEdited by: pollywog on May 6, 2013 10:08 AM

  • More syntax questions about nested symbols

    I have a symbol timeline that does everything I need it to do except to access a function within the stage symbol. I would have thought that calling the function in the stage symbol from a nested symbol (which is loaded dynamically, if that makes any difference) would be something along the lines of:
    sym.getComposition().getStage().gotoNextSlide("slide5");
    but no luck. I can alert the stage itself as [Object Object], which brings up another question. Is there an always-available property of objects that one can alert or trace to make sure the correct object is being targeted? I've had no luck with the symbol's id, name, or symbolName.

    Sure. You've seen one form of the project I'm working on, though I'm at the next speedbump. Here's an excerpt of the involved parts.
    I have the stage symbol and within that symbol, I have a function:
    function gotoSlide(slideName){
              fadeTo(slideName);
    function fadeTo(slideName){
         /// this all works fine, when called from the main timeline
    In the composition, I'm loading slides from the library and on the timeline of one of those slides is the following.
    navHidden = true;
    var trueButton = sym.getSymbol("answers").$("true");
    trueButton.bind('click',goNext);
    function goNext(){
              sym.getComposition().getStage().gotoSlide("slide_05");
    I know there are other syntaxes I could use but refactoring is in the future. The console log I get is:
    Object [object Object] has no method 'gotoSlide'
    It's slide 5 in these:

  • Fixing this Scalar Variable Syntax question

    Please help me to correct this syntax for this practice question below.
    /* Create and set a Variable equal the number of Flights that were late.*/
    DECLARE @FlightsLate varchar(50)
    SET @FlightsLate = (SELECT* FROM
    Flights WHERE Ontime = 0)
    SELECT @FlightsLate

    If you want to get the total numbers that are late you need to do this
    DECLARE
    @FlightsLate varchar(50)
    SET
    @FlightsLate = (SELECT count(*) FROM
    Flights WHERE
    Ontime = 0)
    SELECT
    @FlightsLate
    Assuming that Ontime =0 means Late
    Javier Villegas |
    @javier_vill | http://sql-javier-villegas.blogspot.com/
    Please click "Propose As Answer" if a post solves your problem or "Vote As Helpful" if a post has been useful to you

  • Easy swing question for Java friends

    Hi could somebody test this short application and tell me why the "DRAW LINE" button doesnt draw a line as I expected?
    thank you very much!
    Circuitos.java:
    import javax.swing.*;
    import java.awt.*;
    import java.awt.event.*;
    import java.net.URL;
    import java.awt.geom.*;
    public class Circuitos extends JApplet {
         protected JButton btnRect;
         protected Terreno terreno;
         private boolean inAnApplet = true;
         //Hack to avoid ugly message about system event access check.
         public Circuitos() {
              this(true);
         public Circuitos(boolean inAnApplet) {
            this.inAnApplet = inAnApplet;
              if (inAnApplet) {
                   getRootPane().putClientProperty("defeatSystemEventQueueCheck",Boolean.TRUE);
         public void init() {
              setContentPane(makeContentPane());
         public Container makeContentPane() {
              btnRect = new JButton("DRAW LINE");
          btnRect.addActionListener(new ActionListener() {
             public void actionPerformed(ActionEvent e) {
                terreno.pintarTramo();
              terreno = new Terreno();
              JPanel panel = new JPanel();
              panel.setLayout(new BorderLayout());
              panel.add("North",btnRect);
              panel.add("Center",terreno);
              return panel;
         public static void main(String[] args) {
            JFrame frame = new JFrame("Dise�o de Circuitos");
              frame.addWindowListener(new WindowAdapter() {
                   public void windowClosing(WindowEvent e) {
                        System.exit(0);
              Circuitos applet = new Circuitos(false);
              frame.setContentPane(applet.makeContentPane());
              frame.pack();
              frame.setVisible(true);
    }Terreno.java:
    import java.awt.*;
    import javax.swing.*;
    import java.awt.geom.*;
    public class Terreno extends JPanel {
         Graphics2D g2;
         public Terreno() {
              setBackground(Color.red);
              setPreferredSize(new Dimension(500,500));
         public void paintComponent(Graphics g) {
              super.paintComponent(g);
          g2 = (Graphics2D) g;
          g2.setRenderingHint(RenderingHints.KEY_ANTIALIASING, RenderingHints.VALUE_ANTIALIAS_ON);    
         public void pintarTramo () {     
              Point2D.Double start   = new Point2D.Double(250,250);
              Point2D.Double end     = new Point2D.Double(250,285);
              g2.draw(new Line2D.Double(start,end));            
    }

    I don't think the date I became a member has anything to do with it. Yes, I signed up a year ago to ask a question or two when I didn't know anything. It wasn't until recently have I started to use this forum again, only to try and help people as well as ask my questions. It took me a year to get to this point to where I can actually answer questions instead of just asking. So don't be silly and judge a person based on their profile.
    Secondly, I agree with you, the search utility is great. I use it all the time and usually I'll find my answers, but if I don't is it such a pain in the butt for you to see the same problem posted again?? I know how much you want people to use the resources available before wasting forum space with duplicate questions, but it's not going to happen. Some people are not as patient and you being a butt about it won't stop it.
    My point in general is that there are nice ways to help people and even rude ways, and your comments at times come across rude to me, even condescending. You have a lot of knowledge, therefore certain things seem trivial to you... but try to understand where some of the new people are coming from. The Swing tutorial is extremely helpful but if you don't understand the concept of programming or java that well... then it can be overwhelming and you don't know where to start. It's a huge tutorial and when people are stuck they just want an answer to their one question. Most figure it's easier to ask someone who already knows instead of reading an entire tutorial to get their answer.
    I've learned by both methods, by taking the time to research it myself and by asking a lot of questions. I have the time. Some don't. Please realize that not everyone is like you and they will continue to ask whether you like it or not. You have a choice, either help them or not.

  • Easy Slide Question for Website

    Easy question for u guys.
    What is the easiest way to create slider header such as these websites ->
    http://www.pclsolutions.com/
    http://www.alivre.com/
    What is the easies way of doing it???
    Dreamweaver has so many options, and I have very limited time so I was wondering if anybody could give me the easy answer here so I can proceed further.
    Thank you in advance guys.

    Log-in to the Adobe Widget Exchange and grab Spry Content Slideshow
    http://labs.adobe.com/technologies/widgetbrowser/
    WOW slider
    http://wowslider.com/
    NIVO slider
    http://nivo.dev7studios.com/
    just to name a few...
    Nancy O.
    Alt-Web Design & Publishing
    Web | Graphics | Print | Media  Specialists 
    http://alt-web.com/
    http://twitter.com/altweb
    http://alt-web.blogspot.com/

  • Easy runtime question

    So I bind a variable in an ActionScript and store a value at
    compile time. Now I want to update that var at runtime, say
    calculate a meal.

    I had the following Java versions listed on one computer and one of them would not uninstall, so I am wondering how much of a problem that might be for the end user.
    Java 2 Runtime Environment, SE v1.4.2_03
    Java(TM) 6 Update 3
    J2SE Runtime Environment 5.0 Update 6
    Java 2 Runtime Environment Standard Edition v1.3.1_15 (this one is "stuck" within "Add/Remove Programs" listing)
    After removing all of the above Programs and rebooting the computer I installed "jre-6u7-windows-i586-p.exe" which translates as "Java(TM) 6 Update 7" (137.00 MB) for us simple humans to read.
    Suggestions:
    It would be great if the naming conventions of these programs made a little more sense or if the Downloads area of the Java web site had a Frequently Asked Question (FAQ) prominently featured at the top of the page explaining the history of these versions. I have been supporting the installation of these Plug-ins or Programs for several years and feel it has not gotten any easier with regards to names.
    It might even be nice to see a Timeline of versions showing:
    Java(TM) 6 Update 3, Released January 2008
    Java(TM) 6 Update 7, Released October 2008
    This would allow people using specific pieces of older software, as mentioned above, to have some idea of whether the version of Java they find on their machine is the appropriate version for some in-house application that was written and released in December 2007 (for example).
    If a web-based office application I use was written in February of 2008 then I might feel confident "Java(TM) 6 Update 3" is the right version for me!
    If this is confusing for me as an I.T. support professional, I can only imagine how the End Users view these cryptic file names!
    ~
    Edited by: Klaatu01 on Mar 9, 2009 9:49 AM
    Edited by: Klaatu01 on Mar 9, 2009 9:53 AM

  • ??? a launchd syntax question

    When running cron jobs, I think (somebody please correct me if I'm wrong or verify if I'm right) that if a person wants to schedule a job to run monthly, but rather than on a specific date of the month (e.g., 1st, 2nd, etc.), it is desired to have the job run on, say, the second Saturday of the month, (s)he would make a crontab entry that looked something like this:
    #minute hour    mday    month    wday   who     command
    36          02       8-14         *          6       root     periodic monthly
    If I got this down right, this would run "monthly" on Saturday, so long as the date of Saturday was between the 8th and the 14th, inclusive, i.e., the second Saturday of the month.
    If this is a correct assumption on my part (to include my assumption on syntax), then comes the question du jour:
    How might one modify the /System/Library/LaunchDaemons/com.apple.periodic-monthly.plist file to do the same thing?
    Thanx in advance
    2001 Quicksilver G4   Mac OS X (10.4.5)  
    2001 Quicksilver G4   Mac OS X (10.4.5)  

    I don't believe you can.
    The launchd.plist((5) files don't take ranges for dates, or at least aren't documented to.
    One other thing to note with periodic launchd(8) events - there's long been an issue in the kqueue(2) call that drives launchd(8) such that event timers don't really work the way the launchd.plist(5) man page says they do. Instead of firing when a machine awakens from sleep if an event occurred while the machine was asleep, events instead only accumulate time while the machine is up and running.
    So say, for example, you told launchd(8) you wanted to run a script at 6:00 AM tomorrow morning. You continue using your Mac, but it goes to sleep at midnight and you awaken it from sleep at 8:00 AM.
    The launchd.plist(5) man page says the event will be run when the system awakens, but it will not; rather the six hours of system uptime the machine was asleep must elapse first, meaning your "6:00 AM" script will actually run at 8+6 = 14:00, or 2:00 PM.
    While this is better than cron(8) which would just ignore the event that occurred while the machine was asleep, it's certainly not the behavior that launchd.plist(5) documents, either…
    Dual 2 GHz G5 (Quad on order!)   Mac OS X (10.4.5)  

  • Simple Task - Syntax Question (how do you pass variables from one component to another component - databinding)?

    Hi all,
    I'm trying to pass some width/height/URLs from a Video Player component to a Social Bookmarking component's embed text input field. (for people to grab and share videos).
    I know this is a simple task, but it's the end of the day and I seem to be having a brain failure... What's the syntax to achieve this? Do I have to import the video player component? These widths/heights/URLs are all being dynamically generated from an XML... should I be pulling it from the XML or just reuse the variables that already exist in the Video Player component?
    Here's my code...
    Video Player:
    [Bindable]
    public var source:String = "";
    [Bindable]
    public var autoPlay:Boolean = false;
    [Bindable]
    public var fullScreenMode:Boolean = false;
    [Bindable]
    public var clipTag:String = "_movie";
    [Bindable]
    public var iag_code:String = "";
    [Bindable]
    public var officialURL:String = "http://www.movies.com/";
    [Bindable]
    public var referer:String = "unknown";
    [Bindable]
    public var gID:String;
    [Bindable]
    public var starterImageURL:String = 'http://www.movies.com/jazzmaster/images/default_starter_image.
    [Bindable]
    public var oldWidth:Number;
    [Bindable]
    public var oldHeight:Number;
    Sharing Component:
    <mx:HBox
      height="10%"
      horizontalCenter="-25"
      verticalCenter="0"
      paddingBottom="5">
      <mx:Text text="Embed Code:" paddingTop="1" color="#FFFFFF" fontSize="12"/>
      <mx:TextInput  text="{oldWidth}"/>
    </mx:HBox>
    The code above throws an error... "Attempted access of inaccessible property oldWidth through a reference with a static type com:SharingBookmarks."
    Thanks all!
    DK

    Try this..
    create a new flex project and add a folder called "src"
    create a new MXML component named "VideoComp.mxml" and copy/paste
    <?xml version="1.0" encoding="utf-8"?>
    <mx:VBox xmlns:mx="http://www.adobe.com/2006/mxml" width="400" height="300">
    <mx:Script>
    <![CDATA[
    [Bindable]
    public var videoWidth:int = 300;
    [Bindable]
    public var videoHeight:int = 300;
    ]]>
    </mx:Script>
    <mx:Label text="Vidoe" />
    <mx:TextInput text="{videoWidth}" id="w" change="this.videoWidth = int(w.text);" />
    <mx:TextInput text="{videoHeight}" id="h" change="this.videoHeight = int(h.text);" />
    </mx:VBox>
    create a new MXML component named, "SharingComp.mxml" add copy/paste this..
    <?xml version="1.0" encoding="utf-8"?>
    <mx:VBox xmlns:mx="http://www.adobe.com/2006/mxml" width="400" height="300">
    <mx:Script>
    <![CDATA[
    [Bindable]
    public var videoWidth:int;
    [Bindable]
    public var videoHeight:int;
    ]]>
    </mx:Script>
    <mx:Label text="Sharing Comp." />
    <mx:Label text="{videoWidth}" />
    <mx:Label text="{videoHeight}" />
    </mx:VBox>
    and here is the main.mxml file
    <?xml version="1.0" encoding="utf-8"?>
    <mx:Application xmlns:mx="http://www.adobe.com/2006/mxml"
    xmlns:src="src.*">
        <mx:Script>
            <![CDATA[
                private function doSomething():void
                 sharingComp.videoHeight = videoComp.videoHeight;
                 sharingComp.videoWidth = videoComp.videoWidth;
            ]]>
        </mx:Script>
       <src:VideoComp id="videoComp" />
       <mx:Button click="doSomething()" label="copy" />
       <src:SharingComp id="sharingComp" />
    </mx:Application>
    Hope this helps,
    BaBo,

  • Import ASO MAXL syntax question

    I have a maxl script I use to load an ASO database. I realize that I need to have not only the load rule set to append data but the import statement as well. I took the syntax straight from the Essbase documentation but I'm still getting an error. Here's my script:
    alter database App.DB initialize load_buffer with buffer_id 1;
    import database App.DB data from data_file '0947Brand.txt' using server rules_file 'RetailB.rul' to load_buffer with buffer_id 1 on error write to 'RetailB1.err';
    import database App.DB data from load_buffer with buffer_id 1 add values;
    alter database App.DB initialize load_buffer with buffer_id 1;
    import database App.DB data from data_file '0947Generic.txt' using server rules_file 'RetailB.rul' to load_buffer with buffer_id 1 on error write to 'RetailB2.err';
    import database App.DB data from load_buffer with buffer_id 1 add values;
    My error file shows this as an error:
    essmsh error: Parse error near add
    Any ideas?

    Jeanette R. wrote:
    I have a maxl script I use to load an ASO database. I realize that I need to have not only the load rule set to append data but the import statement as well. I took the syntax straight from the Essbase documentation but I'm still getting an error. Here's my script:
    alter database App.DB initialize load_buffer with buffer_id 1;
    import database App.DB data from data_file '0947Brand.txt' using server rules_file 'RetailB.rul' to load_buffer with buffer_id 1 on error write to 'RetailB1.err';
    import database App.DB data from load_buffer with buffer_id 1 add values;
    alter database App.DB initialize load_buffer with buffer_id 1;
    import database App.DB data from data_file '0947Generic.txt' using server rules_file 'RetailB.rul' to load_buffer with buffer_id 1 on error write to 'RetailB2.err';
    import database App.DB data from load_buffer with buffer_id 1 add values;
    My error file shows this as an error:
    essmsh error: Parse error near add
    Any ideas?Not sure of the error, but you are not really using buffers efficiently. You should have a single
    alter database App.DB initialize load_buffer with buffer_id 1;
    then your two import statements
    and finally the
    import database App.DB data from load_buffer with buffer_id 1; statement
    Your actual import statements should have the add values
    When you load multiple files into a buffer at once, it takes and adds the intersections together automatically. you only need the add values if you want to add the values to existing values in the cube.

Maybe you are looking for

  • Query help needed for querybuilder to use with lcm cli

    Hi, I had set up several queries to run with the lcm cli in order to back up personal folders, inboxes, etc. to lcmbiar files to use as backups.  I have seen a few posts that are similar, but I have a specific question/concern. I just recently had to

  • Dynamic selction in logical databse using LDB_PROCESS method

    dear friends,                      can anybode tell me how to pass dynamic selection to the logical database when i m using LDB_PROCESS

  • Images with transparent backgrounds in MDM

    I've got several images in MDM with transparent backgrounds, yet when i look at these in image manager (or thumbnails in data manager) they look terrible. The transparency is black for example, among other issues. These images are all okay in photosh

  • GZIP compression xml document in bpel

    Dear All Any idea about compressing xml message by using gzip before sending thru http binding. Regards Aamir

  • Outputting ProRes causes brightness shift

    Hi, got a curious problem when exporting to regular ProRes 422 PAL from FCP 6.0.6. Wherever there was a point where I had to render my sequences in FCP (transitions, lower-thirds, etc.) in the output files, the brightness of the video jumps up for th