Help with a 2d dynamic graph question

Post Author: eseidel
CA Forum: Other
I have a subreport that I'm having a lot of difficulty with and I dont know if I've hit the limitations of CR or I just don't know how to do it.  I need to set the subreport graph parameters on the fly and I can't figure out how to do this.  Here is the situation:
My report prints a vendor report card, one vendor per report page.  For each vendor, I need to access a table and pull all parts that the vendor supplies our company with.  Then, I need to create a seperate 2D bar graph for each part that is listed under the vendor.  Since this is a subreport and would run for each vendor, and each vendor can have 1 to n-number of different parts, I need to create these graphs on the fly. Is this possible?  Any suggestions.  The furthest I have gotten was I can create a OLE DB(ADO) command that retrieves the parts for each vendor. 
But from there I am stuck.  Once I have these parts per vendor, how can I iterate through them and create a new 2d bar graph for each one?  The graph itself would display on the x axis all of our vendors that supply us with a part, ranking them.  So if a vendor supplies us with Rubber Hoses, magnesium and Aluminum then I would need three graphs, one for each, Rubber Hoses, Mag, Al that would list the vendor on the x axis and points on the y axis pertaining to that specific part.  Understand?  Is this possible?  Help please.  Thank you.
Eric

Faster than an if statement, if you are up to learning it, is the use of the ternary operator.
It's syntax is like this:
condition ? value1 : value2
where condition is a boolean expression, value1 is the expression to be evaluated and returned if and only if condition is true, and value2 is the expression to be evaluated and returned if and only if the condition is false.
Your line of code would be something like:
System.out.print(maze[i][j] == 0 ? "*" : " ");Edit: I am not assuming people are newbies when they are, I realize this.
Message was edited by:
Aken_Bosch

Similar Messages

  • Can anyone help with a dynamic graph question?

    Post Author: eseidel
    CA Forum: .NET
    I have a subreport that I'm having a lot of difficulty with and I dont know if I've hit the limitations of CR or I just don't know how to do it.  I need to set the subreport graph parameters on the fly and I can't figure out how to do this.  Here is the situation:
    My report prints a vendor report card, one vendor per report page.  For each vendor, I need to access a table and pull all parts that the vendor supplies our company with.  Then, I need to create a seperate 2D bar graph for each part that is listed under the vendor.  Since this is a subreport and would run for each vendor, and each vendor can have 1 to n-number of different parts, I need to create these graphs on the fly. Is this possible?  Any suggestions.  The furthest I have gotten was I can create a OLE DB(ADO) command that retrieves the parts for each vendor. 
    But from there I am stuck.  Once I have these parts per vendor, how can I iterate through them and create a new 2d bar graph for each one?  The graph itself would display on the x axis all of our vendors that supply us with a part, ranking them.  So if a vendor supplies us with Rubber Hoses, magnesium and Aluminum then I would need three graphs, one for each, Rubber Hoses, Mag, Al that would list the vendor on the x axis and points on the y axis pertaining to that specific part.  Understand?  Is this possible?  Help please.  Thank you.
    Eric

    Post Author: quafto
    CA Forum: .NET
    The CR for .NET SDK doesn't have the ability to create graphs on the fly. I suggest that you design your report in Crystal Reports and get it working the way you want there. Work as much with parameters and formulas as you can. The .NET SDK will allow you to pass parameters and modify formulas at runtime.

  • Using Search Help with ALV and Dynamic context node

    The topic subject already describes my situation.
    I have to create, populate and remove context nodes at runtime, and bind them to an ALV, to let user display the data or modify the data. The nodes I create are always typed with a table name, but the table name is of course, dynamic.
    This is all working: what's not working is help for entries inside the ALV; since the table has foreign keys and domains with check tables or fixed values, I expected that search helps were detected and managed by the framework.
    Instead, no help search is displayed except the input help based on data-type of the one "Date" input fields.
    I think I have to work on the dynamic node creation, and not on the ALV itself, since the latter only takes the node/attributes information, but i could be wrong. I tried with both the two following codings:
      CALL METHOD lo_nd_info_root->add_new_child_node
        EXPORTING
          static_element_type          = vs_tabname
          name                         = 'SAMPLE_NODE_NAME'
    *    is_mandatory                 = abap_false
    *    is_mandatory_selection       = abap_false
         is_multiple                  = abap_true
         is_multiple_selection        = abap_false
    *    is_singleton                 = abap_false
          is_initialize_lead_selection = abap_false
          is_static                    = abap_false
        RECEIVING
          child_node_info              = lo_nd_info_data .
    cl_wd_dynamic_tool=>create_nodeinfo_from_struct(
          parent_info = lo_nd_info_root
          node_name = 'SAMPLE_NODE_NAME'
          structure_name = vs_tabname
          is_multiple = abap_true ).
    The result is the same...is there any way to let the ALV know what search helps it has to use, and doesn't force me to manually build a VALUE_SET to be bound on the single attributes? There are many tables, with many fields, and maintaining this solution would be very costly.

    I have checked with method GET_ATTRIBUTE_VALUEHELP_TYPE of interface IF_WD_CONTEXT_NODE_INFO, on an attribute which i know to have a search help (Foreign key of a check table).
    The method returns 'N', that is the constant IF_WD_VALUE_HELP_HANDLER~CO_VH_TYPE_NO_HELP. So, the framework was not able to find a suitable search help.
    Using method GET_ATTRIBUTE_VALUE_HELP of the same interface, on the same attribute, returns me '111', which is constant C_VALUE_HELP_MODE-AUTOMATIC.
    Therefore, the WD framework knows it has to automatically detect a value help, but fails to find one.
    Also, this means in my opinion that the ALV and the dynamic external mapping are not the culprits: since node creation, no help is detected for any attribute but the date. Honestly, I don't have a clue on what's happening.

  • Need help with Java, have a few questions about my Applet

    Purpose of the program: To create a mortgage calculator that will allow the user to input the loan principal then select 1 of 3 choices from a combo-box (7 years @ 5.35%, 15 years @ 5.50%, 30 years @ 5.75%).
    Problem: My program was working properly (so I thought). I can get the program to properly compile and run through TextPad. However, I noticed that when the user clicks the calculate more than once (with the same input), it slightly alters the output calculations. So that is my first question, Why is it doing that?  How can I get it only calculate that information once unless the user changes it etc?
    My next question is regarding my exit button. I was told by my instructor (who has already stated he won't help any of us) that my exit button does not work for an applet and only for an application. So, how can I create an exit button that will work with an applet? I thought I did it right but I can't find any resources online for this.
    Next question, why isn't my program properly validating invalid input? My program should only allow numeric input and nothing more.
    And last question, when invalid input is entered and the user clicks calculate, why isn't my JOptionPane window for error messages not displaying?
    I know my code is a little long so I have to post this in two messages. Please don't criticize me for what I am doing, that is why I am learning and have come to this forum for help. Thanks
    import java.applet.Applet;
    import java.awt.*;
    import java.awt.event.ActionEvent;
    import java.awt.event.ActionListener;
    import javax.swing.*;
    import java.text.NumberFormat;
    import java.text.DecimalFormat;
    // Creating the main class
    public class test extends JApplet implements ActionListener
         // Defining of format information
         JLabel heading = new JLabel("McBride Financial Services Mortgage Calculator");
         Font newFontOne = new Font("TimesRoman", Font.BOLD, 20);
         Font newFontTwo = new Font("TimesRoman", Font.ITALIC, 16);
         Font newFontThree = new Font("TimesRoman", Font.BOLD, 16);
         Font newFontFour = new Font("TimesRoman", Font.BOLD, 14);
         JButton calculate = new JButton("Calculate");
         JButton exitButton = new JButton("Quit");
         JButton clearButton = new JButton("Clear");
         JLabel instructions = new JLabel("Please Enter the Principal Amount Below");
         JLabel instructions2 = new JLabel("and Select a Loan Type from the Menu");
         // Declaration of variables
         private double principalAmount;
         private JLabel principalLabel = new JLabel("Principal Amount");
         private NumberFormat principalFormat;
         private JTextField enterPrincipal = new JTextField(10);
         private double finalPayment;
         private JLabel monthlyPaymentLabel = new JLabel("  Monthly Payment    \t         Interest Paid    \t \t            Loan Balance");
         private NumberFormat finalPaymentFormat;
         private JTextField displayMonthlyPayment = new JTextField(10);
         private JTextField displayInterestPaid = new JTextField(10);
         private JTextField displayBalance = new JTextField(10);
         // Creation of the String of arrays for the ComboBox
         String [] list = {"7 Years @ 5.35%", "15 Years @ 5.50%", "30 Years @ 5.75%"};
         JComboBox selections = new JComboBox(list);
         // Creation of the textArea that will display the output
         private TextArea txtArea = new TextArea(5, 10);
         StringBuffer buff = null;
              Edited by: LoveMyAJ on Jan 19, 2009 1:49 AM

    // Initializing the interface
         public void init()
              // Creation of the panel design and fonts
              JPanel upper = new JPanel(new BorderLayout());
              JPanel middle = new JPanel(new BorderLayout());
              JPanel lower = new JPanel(new BorderLayout());
              JPanel areaOne = new JPanel(new BorderLayout());
              JPanel areaTwo = new JPanel(new BorderLayout());
              JPanel areaThree = new JPanel(new BorderLayout());
              JPanel areaFour = new JPanel(new BorderLayout());
              JPanel areaFive = new JPanel(new BorderLayout());
              JPanel areaSix = new JPanel(new BorderLayout());
              Container con = getContentPane();
              getContentPane().add(upper, BorderLayout.NORTH);
              getContentPane().add(middle, BorderLayout.CENTER);
              getContentPane().add(lower, BorderLayout.SOUTH);
              upper.add(areaOne, BorderLayout.NORTH);
              middle.add(areaTwo, BorderLayout.NORTH);
              middle.add(areaThree, BorderLayout.CENTER);
              middle.add(areaFour, BorderLayout.SOUTH);
              lower.add(areaFive, BorderLayout.NORTH);
              lower.add(areaSix, BorderLayout.SOUTH);
              heading.setFont(newFontOne);
              instructions.setFont(newFontTwo);
              instructions2.setFont(newFontTwo);
              principalLabel.setFont(newFontThree);
              monthlyPaymentLabel.setFont(newFontFour);
              displayInterestPaid.setFont(newFontFour);
              displayBalance.setFont(newFontFour);
              areaOne.add(heading, BorderLayout.NORTH);
              areaOne.add(instructions, BorderLayout.CENTER);
              areaOne.add(instructions2, BorderLayout.SOUTH);
              areaTwo.add(principalLabel, BorderLayout.WEST);
              areaTwo.add(enterPrincipal, BorderLayout.EAST);
              areaThree.add(selections, BorderLayout.NORTH);
              areaFour.add(calculate, BorderLayout.CENTER);
              areaFour.add(exitButton, BorderLayout.EAST);
              areaFour.add(clearButton, BorderLayout.WEST);
              areaFive.add(monthlyPaymentLabel, BorderLayout.CENTER);
              areaSix.add(txtArea, BorderLayout.CENTER);
              // Using the ActionListener to determine when each button is clicked
              calculate.addActionListener(this);
              exitButton.addActionListener(this);
              clearButton.addActionListener(this);
              enterPrincipal.requestFocus();
              selections.addActionListener(this);
         // The method that will perform specific actions defined below
         public void actionPerformed(ActionEvent e)
              Object source = e.getSource();
              buff = new StringBuffer();
              // Outcome of pressing the calculate button
              if (source == calculate)
                   // Used to call upon the user chosen selection
                   int selection = selections.getSelectedIndex();
                   // If statement to call upon Loan One's Method
                   if (selection == 0)
                        Double data = (Double)calculateLoanOne();
                        String sourceInput = data.toString();
                        displayMonthlyPayment.setText(sourceInput);
                        txtArea.setText(buff.toString());
                   // If statement to call upon Loan Two's Method
                   else if (selection == 1)
                        Double data = (Double)calculateLoanTwo();
                        String sourceInput = data.toString();
                        displayMonthlyPayment.setText(sourceInput);
                        txtArea.setText(buff.toString());
                   // If statement to call upon Loan Three's Method
                   else if (selection == 2)
                        Double data = (Double)calculateLoanThree();
                        String sourceInput = data.toString();
                        displayMonthlyPayment.setText(sourceInput);
                        txtArea.setText(buff.toString());
                   // Outcome of pressing the clear button
                   else if (source == clearButton)
                        enterPrincipal.setText("");
                        displayMonthlyPayment.setText("");
                        selections.setSelectedIndex(0);
                        txtArea.setText("");
                   // Outcome of pressing the quit button
                   else if (source == exitButton)
                        System.exit(1);
         // Method used to validate user input
         private static boolean validate(JTextField in)
              String inText = in.getText();
              char[] charInput = inText.toCharArray();
              for(int i = 0; i < charInput.length; i++)
                   int asciiVal = (int)charInput;
              if((asciiVal >= 48 && asciiVal <= 57) || asciiVal == 46)
              else
                   JOptionPane.showMessageDialog(null, "Invalid Character, Please Use Numeric Values Only");
                   return false;
                   return true;

  • Help with sql for dial graph

    Hi
    I have the following SQL query
    select (count(select status from tbl_issues where status = 'Open' or status ='On-Hold') - count(select status from tbl_issues where status = 'Closed')) value , 100 max_value
    from tbl_issues
    when I save changes it comes up with the following errors
    1 error has occurred
    Failed to parse SQL query:
    select (count(select status from tbl_helpdesk_calls where status = 'Open' or status ='On-Hold') - count(select status from tbl_helpdesk_calls where status = 'Closed')) value , 100 max_value from TBL_HELPDESK_CALLS
    ORA-00936: missing expression
    Certain queries can only be executed when running your application, if your query appears syntactically correct, you can save your query without validation (see options below query source).
    what I want to do is display on the dial chart whether the performance of a helpdesk is poor or bad using the dials.
    thanks for your help

    Hi,
    I did wonder about the "100 MAX_VALUE" setting!
    For our help desk system (not in ApEx), they have statistics by month. There is also a graph showing how long it took them to resolve calls. You might consider something like that instead?
    Regards
    Andy

  • Help with Running Averages and Graphs on Ipad3

    I am new to Mac, slowly learning but quickly falling in love with it.
    I need to keep track of our basketball teams free throw percentages for 5 team and for each kid. The coaches are asking for, made shots, missed shots, total attempts and their percentages and then an running average of their percentages.
    I created a spreadsheet for each team and seperate tabs for each kid (attached image) in Numbers on the ipad which will allow me to add their made and missed shots (=sumB2+C2). It then gives me the total of attempts and then gives me that percentage (=B2/D2) all good here.
    This is now what I am trying to see if I can do, I want to be able to just fill in the blank fields day to day or as they shoot and then have it just update the running average on the bottom without me having to adjust the cells to re-calculate.
    If I select cells E2 to E25 the error comes up Cell "E4" contains an error. I know it is cause no figures are entered in the row yet. Is there away around doing the percentage formula so it just shows blank in the row without the error show it will do the running total or a way to have it calculate the running total even with the error?
    Can I take the overall averages from each kids sheet and creat a graph on a seperate sheet just showing the overall averages?
    If so, will the graph automatically update as I update my numbers or will it have to be created again each time?
    Thanks for all the help.

    1) Welcome
    2) Empty cells return 0 (zero)
    3) anything divided by zero is infinite (and not legal, mathematically speaking)
    so you should wrap your formula in an iferror() function to screen errors out.  For the "Percentage" column you should do something like:
    E2=iferror(B2/D2, "")
    As long as B2/D2 is a valid result the iferror() passes the answer.  If, however, D2 = 0, then iferror() will "catch" the error and return "" this is an empty string.
    Charts do automatically update in Numbers.  I don't actuall have Numbers for an iOS device (you posted to the forum dedicated to Numbers on Mac OS X).
    The iWork for iOS forum is located here:
    https://discussions.apple.com/community/app_store/iwork_for_ios

  • Help with iPhone 3 pic saving question!

    I have a seriously old iPhone3 and will be getting a new iPhone5.  This may be a dumb questions but will they be able to transfer all of my pictures from the 3 to the 5 with my phone being so old?  I don't want to lose 6 years of pictures.
    Secondly, what should I use to back up my pictures onto?  iCloud or something else?
    Please help I'm not super tech savy I guess

    How to backup http://support.apple.com/kb/HT1766  pictures in your camera roll are part of the backup.
    Secondly you should be importing your pics to your computer http://support.apple.com/kb/HT4083

  • Need a help with Struts Tiles dynamic menu

    Hello,
    I am started few days ago with Tiles, try to develop web application.
    Can anybody sugest very simple example with Tiles and menu.
    So my definition looks like this:
    tiles-def.xml
    <tiles-definitions>
    <definition name="MainDefinition" path="/layouts/myLayout.jsp">
    <put name="title" value="This is the title." />
    <put name="header" value="/tiles/header.jsp" />
    <put name="menu" value="/tiles/menu.jsp" />
    <put name="body" value="/tiles/body.jsp" />
    <put name="footer" value="This is the footer." />
    </definition>
    I am simple layout.
    I need to on menu click change body content, now i am doing it like this:
    index.jsp
    <%@ page language="java" %>
    <%@ taglib uri="/WEB-INF/struts-tiles.tld" prefix="tiles" %>
    <%@ taglib uri="/WEB-INF/struts-html.tld" prefix="html" %>
    <%@ taglib uri="/WEB-INF/struts-bean.tld" prefix="bean" %>
    <%String body = request.getParameter("body");%>
    <tiles:insert definition="MainDefinition" flush="true">
    <tiles:put name="body" type="string"> <%= body %> </tiles:put>
    </tiles:insert>
    But now body is a string how to make it open url?
    Maybe somebody have link to menu Tiles good examples.
    Thanks

    But here's some useful advice :P
    I'm going to assume that the other two people involved in this have a bit more experience, have them do most of the designing. Have them leave most of the easy stuff for you. You can then spend your time learning the minimum of what you need to know. And if you have problems, or don't understand things, ask your partners for help.
    And you'll want to set some spare time for you to all get together and do something fun so that you don't kill each other because of the stress :P
    I've had a lot of bad project experiences, fortunatly they where all just at school :P I blame myself, mainly because I didn't do the whole thing myself (mostly because I listened to people when they said that I shouldn't or couldn't do everything myself.) I'd like to say that it's mostly because of poor communication, and disorganization, but an awful lot of it had to do with the fact that I tend to be the only person with any work ethic what so ever.
    But whinning and repressed memories aside, good communication and organization help a lot. Come up with a good system with your team mates. And don't be afraid to ask questions. And don't worry about dividing up the work load equally. Just make sure you put in a good amount of effort, if not frightening amounts.
    If all of you are clueless, divide up the learning stuff between yourselves too.
    I have no experience with Struts. I've done a bit of stuff with XML, but nothing too complicated. The XML by itself tends to be extremely easy. What you plan on doing with it can vary (I don't like XML incidentally :P)
    Other then that, good luck.

  • Help with ecomerce and dynamic table link

    I am new to dynamic pages. I am trying to build or use a
    template to display my tables.
    Here is an example of what I want to do.
    http://www.snaz75.com/ if you
    click on any of the links on the left side, it brings up the
    products on the right. I know this is done through tables. I have
    the website built and the tables built, but don't know how to get
    the product to display dynamically without manually adding each
    item.
    I am using yahoo e-commerce and have downloaded their table
    formats. I have all the tables created and uploaded to my hosting.
    I am trying to use these tables to display my product in a simple
    way. Yahoo has a site builder where you can build tables and upload
    them and your product is displayed, but I am extremely limited on
    the actual design of their website builder. I want to use my
    website, but do essentially the same thing. How can I get the built
    tables display my products. I have 1000's of products and I know
    there must be a way display the item through a table using
    template.. I can't imagine someone adding one item at a time to
    their website. Any idea's where to start.

    I have checked with method GET_ATTRIBUTE_VALUEHELP_TYPE of interface IF_WD_CONTEXT_NODE_INFO, on an attribute which i know to have a search help (Foreign key of a check table).
    The method returns 'N', that is the constant IF_WD_VALUE_HELP_HANDLER~CO_VH_TYPE_NO_HELP. So, the framework was not able to find a suitable search help.
    Using method GET_ATTRIBUTE_VALUE_HELP of the same interface, on the same attribute, returns me '111', which is constant C_VALUE_HELP_MODE-AUTOMATIC.
    Therefore, the WD framework knows it has to automatically detect a value help, but fails to find one.
    Also, this means in my opinion that the ALV and the dynamic external mapping are not the culprits: since node creation, no help is detected for any attribute but the date. Honestly, I don't have a clue on what's happening.

  • Help with alignment of dynamic menu

    Hi.
    I can't for the life of me get the main meny (a bc dynamic menu) to align center on this site http://www.eaglerockfarm.com.au/home.htm. At the moment I've fudged it with a 350px left margin, but that only looks ok on smaller screens, larger ones, It's to the left and smaller, i.e an ipad, it's to the right.
    I have a div id in the css "nav2" with text-align:center, but when I inspect the element (q) in Firefox, it crosses out that line. I also tried putting in the text-align:center inline, but nothing seems to work...I am not a developer, but have an average understanding of css and html...
    Can anyone assist please?
    Thanks.

    Hello justasking506,
    To bring your main menu to center just change the div#nav2 to:
    div#nav2 {
        font-size: 14px;    height: 20px;
        margin: 0 auto;
        padding-bottom: 10px;
        padding-top: 10px;
        width: 633px;
    Here you can see that I've changed the margin to "0 auto", that will put auto margin on the left and right of the div. Now the width needed to be a little bigger to center the div.
    I would also suggest not using the default dynamic menu type. This is using tables to output your navigation. Instead I would suggest using the CSS(HTML Only) menu type, this will use an unordered list and will allow you to use your own css to position the navigation. I go over how the dynamic menus work in this video:
    http://bcgurus.com/tutorial/how-to-create-business-catalyst-dynamic-menus
    Hope this helps,
    Chad Smith | http://bcgurus.com/Business-Catalyst-Templates for only $7

  • Help with plotting on XY Graph.

    Hi attached is a jpg image of a part of my vi. In my vi I'm receiving data from the port in the form of x,y coordinates which I'm displaying on the XY graph.
    But problem with this is everytime the position is updated, last position is lost which is obvious too.
    But I want to retain the last point marked on the graph also along with the current point.
    Since I wanna see some pattern in the data, I need some kind of trail in my graph of previous points?
    Is that possible...
    Lookig for help...
    Attachments:
    untitled1.JPG ‏41 KB

    I don't know how else to put this but: STOP POSTING MULTIPLE COPIES OF THE SAME PROBLEM! Every time you do this it's like kicking mud in the face of the people on the other thread that are trying to help you. You have been told about this behavior before. It is just a matter of common courtesy.
    Mike...
    PS: To top it off: there is no problem, the code is working exactly the way it was designed to...
    Certified Professional Instructor
    Certified LabVIEW Architect
    LabVIEW Champion
    "... after all, He's not a tame lion..."
    Be thinking ahead and mark your dance card for NI Week 2015 now: TS 6139 - Object Oriented First Steps

  • Help with creating a FORM Newbie Question

    Hi,
    I have created a FORM which is inserted into the database. I am a little bit confused to acquire the data from database when a user clicks on search button to check if this profile is already in the database.
    Please let me know if there is any TUTORIAL which can help me with this project.
    Thanks in advance to everyone.
    Regards,
    Venkatesha

    Venkatesha,
    I'm not sure I can give you too much help based on this limited information.
    I assume you created an Insert Record form with the Devloper Toolbox's Insert Record Form Wizard. I'm not sure if you are wanting a separeate search page where the user can check if a profile is already there before they try to fill out the form or if you want the page with the form on it to check and see if a user with that profile exists before it inserts the form info into the database.
    If you want a separate search page for checking profiles, you would need to hand code that page with a form to allow the person to check the profile by entering a value and then your code would query the database to see if there was a match. You could probably use the Custom Form Wizard to do some of that.
    If you want the page with the form on it to check and see if a user with that profile exists before it inserts the form info into the database, you would need to create a Custom Trigger on the Insert Record page. This Custom Trigger would need to be set to execute BEFORE the Insert operation. You would need to hand code the Custom Trigger to check the database for matching profiles and throw an error if it finds a matching one.
    Unfortunately, both these options require some hand PHP coding. For info on how to add Custom Triggers with ADDT, read the documentation provided with the ADDT software. Search the forums and tutorial pages for more detailed help.
    Shane

  • Flex 3 need help with panels in dynamic tabs

    I am building an app where the user can add tabs as needed.  Each tab will have 4 panels inside
    it.  I can't get my for loop to build the panels.  It keeps erroring out.
    So question is  1) How do I create these with a loop and 2) I am wanting to put data from a data provider in here.  How can I reference the panel in the vbox in the tab control in the future?  Thanks in advance.
    PS...any reason why I can't get newPanel.width="100%" to work? Tried multiple ways. Thanks.
    private  
    function addNewTab():void{ 
    if(labelText.text!=""){ 
    var newVbox:VBox=new VBox(); 
    var newLabel:Label = new Label(); 
    var newPanel:Panel=new Panel() 
    newVbox.label=labelText.text;
    dbtabs.numChildren+1
    numChild = dbtabs.numChildren + 1;
    var i:int 
    for(i=0;i<4;i++){
    newPanel.title=
    "Panel";newPanel.layout=
    "absolute"; 
    //newPanel.width="100%";
    newVbox.addChild(newPanel)
    newVbox.addChild(newPanel)
    newwLabel.text =
    "Content here";newVbox.addChild(newLabel);
    dbtabs.addChild(newVbox);
    labelText.text=
    else{Alert.show(
    "You must enter a tab name") 
    // validate labelText

    NewPanel.percentWidth=100

  • Help With SUBSTR in dynamic SQL statement

    Following is the dynamic SQL statement.
    EXECUTE IMMEDIATE 'UPDATE table_name pml
    SET pml.'|| con_fields.field ||' = SUBSTR(pml.'||con_fields.field||' ||'' ''||
    (SELECT pml1.'||con_fields.field||'
    FROM table_name pml1
    WHERE pml1.grp_id = '||los_concats.grp_id ||'
    AND pml1.row_id = '||los_concats.row_id||'
    AND pml1.loser_flg = ''Y''),1, '||con_fields.max_length||')
    WHERE pml.grp_id = '||los_concats.grp_id ||'
    AND pml.loser_flg IS NULL ';
    what it does is that it updates a particular field. This field is concatenated by a field of a similar record.
    My problem is with SUBSTR function. Since I am concatenating fields I do not want the field to be updated greater than max_length on that field, the reason why I use SUBSTR. the select query inside SUBSTR works alright with one of the AND condition in a WHERE clause not present. When I add that additional condition it gives me this error.
    ORA-00907: missing right parenthesis.
    Is there any way to get around this problem. Does SQL has other than SUBSTR function which can limit the character length.
    Appreciate it.

    The other alternative I thought about was to do this first
    EXECUTE IMMEDIATE 'SELECT pml.'||con_fields.field||'
    FROM table_name pml
    WHERE pml.grp_id = '||los_concats.grp_id||'
    AND pml.row_id = '||los_concats.row_id||'
    AND pml.loser_flg = ''Y''
    ' INTO v_concat_field;
    write into the variable v_concat_field and then use it into the previous script.
    But on this I get SQL Command not properly terminated, I don't get it Why?
    Donald I tried with your suggested script. It works fine with one of the conditions eliminated. I don't understand what the error trying to say?
    Thanks

  • Help with a simple but crazymaking question!

    hi there, would anyone here mind looking at my test site and
    telling me what I am doing wrong?
    http://presentations.patrickmeyers.com/
    I am VERY new at anything web related, and trying to learn
    some Dreamweaver, html, and css. Basically I want ALL my content
    (which for now is just images) to stay flush left with each other
    no matter what the user does with their web browser window. But
    when I expand my web broswer window, two of my images (one of which
    is a rollover image that I need to add a hyperlink to) bump over to
    the right and up. I don't want them to do that! I want them to stay
    flush left at all times.
    I also want to center everything so that no matter what a
    person does with their browser, the page stays in the center of the
    window (i.e. the Yahoo homepage) but all the content remains left
    aligned relative to the top.
    I've tried every concievable setting in Dreamweaver I can
    think of and nothing works. The button and bottom banner still move
    over to the right and up.
    Any tips? Thank you in advance!!!!!
    p

    <p><img src="banner.jpg" width="792" height="336"
    align="left" /><a href="#"
    onmouseout="MM_swapImgRestore()"
    onmouseover="MM_swapImage('Image3','','click-button-yellow.jpg',1)"><img
    src="click-button-purple.jpg" name="Image3" width="180"
    height="46"
    hspace="16" vspace="15" border="0" align="left" id="Image3"
    /></a></p>
    <p><img src="lowerbanner.jpg" width="792"
    height="41" vspace="30"
    align="left" /></p>
    </body>
    You have two elements horizontally adjacent (the banner image
    at 792px
    width, and the anchor tag at 180px width). Their combined
    width is
    792+180+32px = 1004px (the 32px comes from the hspace="16"
    attribute). When
    the browser viewport is less than 972px wide, the anchor tag
    and its
    associated image will just drop below the banner image (since
    they are
    contained in a <p> that has no explicit width).
    Change this -
    <p><img src="banner.jpg" width="792" height="336"
    align="left" /><a href="#"
    onmouseout="MM_swapImgRestore()"
    onmouseover="MM_swapImage('Image3','','click-button-yellow.jpg',1)"><img
    src="click-button-purple.jpg" name="Image3" width="180"
    height="46"
    hspace="16" vspace="15" border="0" align="left" id="Image3"
    /></a></p>
    to this -
    <p style="width:1004px;"><img src="banner.jpg"
    width="792" height="336"
    align="left" /><a href="#"
    onmouseout="MM_swapImgRestore()"
    onmouseover="MM_swapImage('Image3','','click-button-yellow.jpg',1)"><img
    src="click-button-purple.jpg" name="Image3" width="180"
    height="46"
    hspace="16" vspace="15" border="0" align="left" id="Image3"
    /></a></p>
    and see what happens.
    > I also want to center everything so that no matter what
    a person does with
    > their browser, the page stays in the center of the
    window (i.e. the Yahoo
    > homepage) but all the content remains left aligned
    relative to the top.
    It depends on whether you are using absolute positioning on
    the page, as to
    which method might be best, but in either event, this will
    work -
    Change this -
    </head>
    to this -
    <style type="text/css">
    #wrapper { width:1004px; margin:0 auto;position:relative; }
    /* 760px will display on an 800px screen maximized browser
    window without */
    /* horizontal scrollbars. 1004px is pretty wide, and will
    display horizontal
    scrollbars on 1024 screens.*/
    </style>
    </head>
    change this -
    <body
    onload="MM_preloadImages('click-button-yellow.jpg')">
    (the ellipsis represents any other attributes that might be
    mentioned in the
    body tag, and SHOULD NOT BE INCLUDED EXPLICITLY!)
    to this -
    <body
    onload="MM_preloadImages('click-button-yellow.jpg')">
    <div id="wrapper">
    and this -
    </body>
    to this -
    <!-- /wrapper -->
    </div>
    </body>
    and see if that helps.
    Murray --- ICQ 71997575
    Adobe Community Expert
    (If you *MUST* email me, don't LAUGH when you do so!)
    ==================
    http://www.projectseven.com/go
    - DW FAQs, Tutorials & Resources
    http://www.dwfaq.com - DW FAQs,
    Tutorials & Resources
    ==================
    "patrickpmm" <[email protected]> wrote in
    message
    news:[email protected]...
    > hi there, would anyone here mind looking at my test site
    and telling me
    > what I
    > am doing wrong?
    >
    http://presentations.patrickmeyers.com/
    >
    > I am VERY new at anything web related, and trying to
    learn some
    > Dreamweaver,
    > html, and css. Basically I want ALL my content (which
    for now is just
    > images)
    > to stay flush left with each other no matter what the
    user does with their
    > web
    > browser window. But when I expand my web broswer window,
    two of my images
    > (one
    > of which is a rollover image that I need to add a
    hyperlink to) bump over
    > to
    > the right and up. I don't want them to do that! I want
    them to stay flush
    > left
    > at all times.
    >
    > I also want to center everything so that no matter what
    a person does with
    > their browser, the page stays in the center of the
    window (i.e. the Yahoo
    > homepage) but all the content remains left aligned
    relative to the top.
    >
    > I've tried every concievable setting in Dreamweaver I
    can think of and
    > nothing
    > works. The button and bottom banner still move over to
    the right and up.
    >
    > Any tips? Thank you in advance!!!!!
    > p
    >

Maybe you are looking for

  • I can't view a pdf file in Safari 5.1.7 (windows)

    I'm using Safar 5.1.7 on a computer running Windows XP and I can't seem to open a pdf file. And I'm not able to get to the Safari extensions page - I get an error message that Safari can't establish a secure connection to the server "extensions.apple

  • Inconsistent domain logon times

    I have logon times that vary from 5 to 90 seconds for a domain login. If the user logs on for the first time it takes about 90 seconds; this appears fair due to the work that is do with preparing the desktop and copying profiles... etc. The next time

  • Oracle Text Query of abbreviated word / name

    I'm new to Oracle Text so please excuse the (probably) simple question. I want to be able to create a search that excludes (includes?) special characters and/or spaces between an abbreviated name. I'm not sure if it's possible but I would like to be

  • My library folder is 40gb in size, is this normal?

    As title

  • Infopackages missing in BI content

    I am installing BI content for BIW 7.0. Many times I get a list of errors saying that 0PAK************* infopackage object not available. Or some times I get an error saying process variant not found. What do I do? should I go ahead with installation