Variant network depending on the value of the characteristics.

Hi,
I want to create a project from a sales order for a configurable material. The problem is that the network should be slightly different depending on the value of the characteristics used in the configurable material. For example, it could happen that one operation should not be executed, or that this operation should take longer because of the characteristics.
How should I proceed?
Thanks in advance.
Regards,
Luis.

Thanks for your answers, but I needed a more specific answer. Anyway, in the end I found the solution:
- I had to create a configuration profile for the standard network (CU41), and then I had to assign the same class as the one assigned to the configuration profile of the configurable material.
- Then, I run t-code CN02, and I had to select one operation and then I clicked "Extras --> Object Dependencies --> Editor". And finally, I just chose the dependency type and filled it with its corresponding code.
Still, I have a problem:
- Is it possible to set the value of the Normal Duration (or any other parameter of the operation) depending on the value of one characteristic?
For example: The value of my characteristic A is 2, so I want to set Normal Duration = 10*(Value_of_A) = 20 for the first operation of the standard network. Is it possible in standard SAP???
Thanks!

Similar Messages

  • Shading part of a JTable Cell dependent upon the value of the cell

    Hi
    Was hoping some one woudl be able to provide some help with this. I'm trying to create a renderer that will "shade" part of a JTable cell's background depending upon the value in the cell as a percentage (E.g. if the cell contains 0.25 then a quarter of the cell background will be shaded)
    What I've got so far is a renderer which will draw a rectangle whose width is the relevant percentage of the cell's width. (i.e. the width of the column) based on something similar I found in the forum but the part I'm struggling with is getting it to draw this rectangle in any cell other than the first cell. I've tried using .getCellRect(...) to get the x and y position of the cell to draw the rectangle but I still can't make it work.
    The code for my renderer as it stands is:
    import java.awt.Component;
    import java.awt.Graphics;
    import java.awt.Graphics2D;
    import javax.swing.JLabel;
    import javax.swing.JTable;
    import javax.swing.table.TableCellRenderer;
    public class PercentageRepresentationRenderer extends JLabel implements TableCellRenderer{
         double percentageValue;
         double rectWidth;
         double rectHeight;
         JTable table;
         int row;
         int column;
         int x;
         int y;
         public Component getTableCellRendererComponent(JTable table, Object value, boolean isSelected, boolean hasFocus, int row, int column) {
              if (value instanceof Number)
                   this.table = table;
                   this.row = row;
                   this.column = column;
                   Number numValue = (Number)value;
                   percentageValue = numValue.doubleValue();
                   rectHeight = table.getRowHeight(row);
                   rectWidth = percentageValue * table.getColumnModel().getColumn(column).getWidth();
              return this;
         public void paintComponent(Graphics g) {
            x = table.getCellRect(row, column, false).x;
            y = table.getCellRect(row, column, false).y;
              setOpaque(false);
            Graphics2D g2d = (Graphics2D)g;
            g2d.fillRect(x,y, new Double(rectWidth).intValue(), new Double(rectHeight).intValue());
            super.paintComponent(g);
    }and the following code produces a runnable example:
    import javax.swing.JFrame;
    import javax.swing.JScrollPane;
    import javax.swing.JTable;
    import javax.swing.table.DefaultTableModel;
    public class PercentageTestTable extends JFrame {
         public PercentageTestTable()
              Object[] columnNames = new Object[]{"A","B"};
              Object[][] tableData = new Object[][]{{0.25,0.5},{0.75,1.0}};
              DefaultTableModel testModel = new DefaultTableModel(tableData,columnNames);
              JTable test = new JTable(testModel);
              test.setDefaultRenderer(Object.class, new PercentageRepresentationRenderer());
              JScrollPane scroll = new JScrollPane();
              scroll.getViewport().add(test);
              add(scroll);
         public static void main(String[] args)
              PercentageTestTable testTable = new PercentageTestTable();
              testTable.pack();
              testTable.setVisible(true);
              testTable.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
    }If anyone could help or point me in the right direction, I'd appreciate it.
    Ruanae

    This is an example I published some while ago -
    import java.awt.*;
    import javax.swing.*;
    import javax.swing.table.*;
    public class Fred120 extends JPanel
        static final Object[][] tableData =
            {1, new Double(10.0)},
            {2, new Double(20.0)},
            {3, new Double(50.0)},
            {4, new Double(10.0)},
            {5, new Double(95.0)},
            {6, new Double(60.0)},
        static final Object[] headers =
            "One",
            "Two",
        public Fred120() throws Exception
            super(new BorderLayout());
            final DefaultTableModel model = new DefaultTableModel(tableData, headers);
            final JTable table = new JTable(model);
            table.getColumnModel().getColumn(1).setCellRenderer( new LocalCellRenderer(120.0));
            add(table);
            add(table.getTableHeader(), BorderLayout.NORTH);
        public class LocalCellRenderer extends DefaultTableCellRenderer
            private double v = 0.0;
            private double maxV;
            private final JPanel renderer = new JPanel(new GridLayout(1,0))
                public void paintComponent(Graphics g)
                    super.paintComponent(g);
                    g.setColor(Color.CYAN);
                    int w = (int)(getWidth() * v / maxV + 0.5);
                    int h = getHeight();
                    g.fillRect(0, 0, w, h);
                    g.drawRect(0, 0, w, h);
            private LocalCellRenderer(double maxV)
                this.maxV = maxV;
                renderer.add(this);
                renderer.setOpaque(true);
                renderer.setBackground(Color.YELLOW);
                renderer.setBorder(null);
                setOpaque(false);
                setHorizontalAlignment(JLabel.CENTER);
            public Component getTableCellRendererComponent(JTable table, Object value, boolean isSelected, boolean hasFocus, int row, int col)
                final JLabel label = (JLabel) super.getTableCellRendererComponent(table, value, isSelected, hasFocus, row, col);
                if (value instanceof Double)
                    v = ((Double)value).doubleValue();
                return renderer;
        public static void main(String[] args) throws Exception
            final JFrame frame = new JFrame("Fred120");
            frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
            frame.setContentPane(new Fred120());
            frame.pack();
            frame.setLocationRelativeTo(null);
            frame.setVisible(true);
    }

  • ColumnChart color depending on the value of the column

    Hi,
    I'va been trying for 2 days to change the colors of columnseries in a columnchart and it is actually awful. I've tried to do it inline without custom itemRenderer but I quickly understood that it is impossible. I then looked on the internet, and found that it was maybe possible by creating a custom itemRenderer class, extending ProgrammticSkin and implementing IdataRenderer.
    I have tried but am not at all able to retrieve the value of the column inside the itemRenderer. Even more, the so called _chartItem is always null and never never carries anything from anyparent.
    I'm a bit exhausted of trying and getting this value, so if you have some idea, i'll be very grateful.
    Here is the code for my itemRenderer class:
    import flash.display.Graphics;
        import flash.geom.Rectangle;
        import mx.charts.ChartItem;
        import mx.charts.chartClasses.GraphicsUtilities;
        import mx.charts.series.items.ColumnSeriesItem;
        import mx.controls.Alert;
        import mx.core.IDataRenderer;
        import mx.graphics.IFill;
        import mx.graphics.IStroke;
        import mx.skins.ProgrammaticSkin;
        public class ColorRenderer extends ProgrammaticSkin implements IDataRenderer
            public function ColorRenderer():void
                super();
            private var _chartItem:ChartItem;
            public function get data():Object
                return _chartItem;
            public function set data(value:Object):void {
                _chartItem = value as ColumnSeriesItem;
                invalidateDisplayList();
            private static const fills:Array = [0xFF0000,0x00FF00,0x0000FF,
                0x00FFFF,0xFF00FF,0xFFFF00,
                0xAAFFAA,0xFFAAAA,0xAAAAFF];
            override protected function
                updateDisplayList(unscaledWidth:Number,unscaledHeight:Number):void {
                super.updateDisplayList(unscaledWidth, unscaledHeight);
                var g:Graphics = graphics;
                g.clear(); 
                g.beginFill(fills[(_chartItem == null)? 0:_chartItem.element.y]);
                Alert.show(_chartItem.index.toString());
                g.drawRect(0, 0, unscaledWidth, unscaledHeight);
                g.endFill();
        } // Close class.
    } // Close package.
    Thank you

    It worked, thanks
    Date: Wed, 21 Apr 2010 09:03:14 -0600
    From: [email protected]
    To: [email protected]
    Subject: Flex ColumnChart color depending on the value of the column
    Have you looked at doing per-item fills?
    http://help.adobe.com/en_US/Flex/4.0/UsingSDK/WS2db454920e96a9e51e63e3d11c0bf69084-7c3f.ht ml
    This feature lets you define a function that customizes chart item fills based on their values.
    >

  • Set the color of a row depending the value of the column in JTable?

    Hi All,
    I have a JTable that add rows when the user clicks on the button. In this way there can be any no. of rows in my table. My table contains five columns. When a new row is added , it is added with new data each time. Also the data of the rows keep on changing time to time.
    My problem is that when the data value for the third column comes out to be -ve then color of the row should be red and if its value is +ve then the color of the row should be green.
    I have tried for this in the way but it is not working properly.
    public Component prepareRenderer(TableCellRenderer renderer,int rowIndex, int vColIndex)
         Component c = super.prepareRenderer(renderer, rowIndex, vColIndex);
    if(change<0 && rowIndex<table.getRowCount() )
              c.setForeground(Color.red);
              c.setFont(new Font("TimesRoman",Font.PLAIN,11));
    else if(change>0&&rowIndex<table.getRowCount() )
    c.setForeground(new Color(20,220,20));
         c.setFont(new Font("TimesRoman",Font.PLAIN,11));
    return c;
    where change is the value of the third column.
    Any help is highly appreciated.
    Thanx in advance.
    Regards,
    Har Krishan

    Why do you have 3 postings on this topic all made within minutes of each other? (see [url http://forum.java.sun.com/thread.jspa?threadID=574547&tstart=0]here and [url http://forum.java.sun.com/thread.jspa?threadID=574543&tstart=0]here).
    If you created a post by mistake then make a comment in the posting so people don't waste there time attempting to answer an old post.
    where change is the value of the third column.How do you know "change" is the value of the third column? Did you use a System.out.println(...) to verify this.
    A better approach is to use:
    Object o = table.getModel().getValueAt(row, 2);
    Then convert the Object to an int value and do your testing. This way you are guaranteed to be testing against the correct value.

  • Job scheduling(passing the values to the child program)

    when i'm trying to schedule a background job(using job_open job_submit and job_close) i'm passing the values of the selection screen(parent program) to my child program using set parameter id. And trying to get the values using get parameter id in the cild program.
    But the values of the parent program are not being passed to the child program what may be the cause for it?

    rathan,
    Why con't you use
    SUBMIT... [VIA SELECTION-SCREEN]
    [USING SELECTION-SET <var>]
    [WITH <sel> <criterion>]
    [WITH FREE SELECTIONS <freesel>]
    [WITH SELECTION-TABLE <rspar>].
    When you start an executable program, the standard selection screen normally appears, containing the selection criteria and parameters of both the logical database connected to the program and of the program itself (see Direct Execution - Reports). When you start an executable program using SUBMIT, there are various additions that you can use to fill the input fields on the selection screen:
    SUBMIT... [VIA SELECTION-SCREEN]
    [USING SELECTION-SET <var>]
    [WITH <sel> <criterion>]
    [WITH FREE SELECTIONS <freesel>]
    [WITH SELECTION-TABLE <rspar>].
    These options have the following effects:
    VIA SELECTION-SCREEN
    The selection screen of the called executable program (report) appears. If you transfer values to the program using one or more of the other options, the corresponding input fields in the selections screen are filled. The user can change these values. By default, the system does not display a selection screen after SUBMIT.
    USING SELECTION-SET <var>
    This option tells the system to start the called program with the variant <var>.
    WITH <sel> <criterion>
    Use this option to fill individual elements <sel> of the selection screen (selection tables and parameters). Use one of the elements <criterion>:
    <op> <f> [SIGN <s>], for single value selection
    If <sel> is a selection criterion, use <op> to fill the OPTION field, <f> to fill the LOW field, and <s> to fill the SIGN field of the selection table <sel> in the called program.
    If <sel> is a parameter, you can use any operator for <op>. The parameter <sel> is always filled with <f>.
    [NOT] BETWEEN <f1> AND <f2> [SIGN <s>], for interval selection
    <f1> is transferred into the LOW field, <f2> into the HIGH field, and <s> into the SIGN field of the selection table <sel> in the called program. If you omit the NOT option, the system places the value BT into the OPTION field; if you use NOT, the system fills OPTION with NB.
    IN <seltab>, transferring a selection table
    This addition fills the selection table <sel> in the called program with the values of the table <seltab> in the calling program. Table <seltab> must have the structure of a selection table. Use the RANGES statement to create selection tables.
    WITH FREE SELECTION <freesel>, user dialog for dynamic selections
    To use this option, the called program must be connected to a logical database that supports dynamic selections. In the calling program, use the function modules FREE_SELECTIONS_INIT and FREE_SELECTIONS_DIALOG. They allow the user to enter dynamic selections on a selection screen. One export parameter of these function modules has structure RSDS_TEXPR from the RSDS type group. Transfer the values of this export parameter by means of the internal table <freesel> of the same structure to the called report.
    WITH SELECTION-TABLE <rspar>, dynamic transfer of values
    You need an internal table <rspar> with the Dictionary structure RSPARAMS. The table then consists of the following six fields:
    SELNAME (type C, length 8) for the name of the selection criterion or parameter
    KIND (type C, length 1) for the selection type (S for selection criterion, P for parameter)
    SIGN, OPTION, LOW, HIGH as in a normal selection table, except that LOW and HIGH both have type C and length 45.
    This table can be filled dynamically in the calling program with all of the required values for the selection screen of the called program. If the name of a selection criterion appears more than once, the system creates a multiple-line selection table for that criterion in the called program. If the name of a parameter appears more than once, the system uses the last value. Note that LOW and HIGH have type C, so that the system executes type conversions to the criteria of the called program. This is important for date fields, for example. Before your program is used in a live context, you should check it using the VIA SELECTION-SCREEN addition.
    Except for WITH SELECTION-TABLE, you can use any of the above options several times and in any combination within a SUBMIT statement. In particular, you can use the WITH <sel> option several times for one single criterion <sel>. In the called program, the system appends the corresponding lines to the selection tables used. For parameters, it uses the last value specified. The only combination possible for the WITH SELECTION-TABLE option is USING SELECTION-SET.
    If the input fields on the selection screen are linked to SPA/GPA parameters, you can also use this technique to pass values to the selection screen (see Passing Data Between Programs).
    The following executable program (report) creates a selection screen containing the parameter PARAMET and the selection criterion SELECTO:
    REPORT  demo_program_submit_rep1.
    DATA number TYPE i.
    PARAMETERS      paramet(14) TYPE c.
    SELECT-OPTIONS  selecto FOR number.
    The program DEMO_PROGRAM_SUBMIT_REP1 is called by the following program using various parameters:
    REPORT demo_program_submit_sel_screen NO STANDARD PAGE HEADING.
    DATA: int TYPE i,
          rspar TYPE TABLE OF rsparams,
          wa_rspar LIKE LINE OF rspar.
    RANGES seltab FOR int.
    WRITE: 'Select a Selection!',
    SKIP.
    FORMAT HOTSPOT COLOR 5 INVERSE ON.
    WRITE: 'Selection 1',
         / 'Selection 2'.
    AT LINE-SELECTION.
      CASE sy-lilli.
        WHEN 4.
          seltab-sign = 'I'. seltab-option = 'BT'.
          seltab-low  = 1.   seltab-high   = 5.
          APPEND seltab.
          SUBMIT demo_program_submit_rep1 VIA SELECTION-SCREEN
                          WITH paramet eq 'Selection 1'
                          WITH selecto IN seltab
                          WITH selecto ne 3
                          AND RETURN.
        WHEN 5.
          wa_rspar-selname = 'SELECTO'. wa_rspar-kind = 'S'.
          wa_rspar-sign = 'E'. wa_rspar-option = 'BT'.
          wa_rspar-low  = 14.  wa_rspar-high = 17.
          APPEND wa_rspar TO rspar.
          wa_rspar-selname = 'PARAMET'. wa_rspar-kind = 'P'.
          wa_rspar-low  = 'Selection 2'.
          APPEND wa_rspar TO rspar.
          wa_rspar-selname = 'SELECTO'. wa_rspar-kind = 'S'.
          wa_rspar-sign = 'I'. wa_rspar-option = 'GT'.
          wa_rspar-low  = 10.
          APPEND wa_rspar TO rspar.
          SUBMIT demo_program_submit_rep1 VIA SELECTION-SCREEN
                          WITH SELECTION-TABLE rspar
                          AND RETURN.
      ENDCASE.
    Pls. reward if useful...

  • How can i compare the values of the objects in a class?

    hi ,
    i am testing how to test the values of the two objects
    this is the code i have return below.....
    class Sample{
              String name;
              int age;
              Sample(String name,int age){
                   this.name=name;
                   this.age=age;
    public class sample2{
              public static void main (String []arg){
                   Sample one = new Sample("cat",20);
                   Sample two = new Sample("cat",20);
    how can i test that object one and two are equal.
    can anyone clarify me about this?

    hansbig wrote:
    Um, this part doesn't work, it will never return true.
      public boolean equals(Object obj) {
    if (obj == this) {
    return true;
    It will :) try for example objectOne.equals(objectOne); and add a System.out.println() at that part. It will return there.
    >
    but this part, woah dude, that's some pretty slick code you got here:
    I couldn't figure out how to do the compare inside the class, but I think I see how this works.
    Not sure how I would do it for an object with more than one value to check though.
        if (obj instanceof EqualsExample) {               //Not the best implementation considering possible subclasses but the easiest.
    EqualsExample temp = (EqualsExample) obj;
    return (this.name.equals(temp.name)); //Always use the equals function when comparing strings!
    } else {
    return false;
    You could add them in one massive return (this.something == temp.something && etc). Or you could split it in a series of if statements. It's really dependant on what kind of variables there are in your class.
    Maybe you have an ArrayList you need to compare but also an id. then it would make more sense to check the id first and then possibly loop through the arraylist.
    Hope it's a bit more clear :)
    Edited by: hms on Jan 16, 2008 11:25 AM

  • Does coherence cache the value from the cache?

    Hi, I have the question about if the coherence caches the value from the cache? I believe it does from my test, just want to get the confirmation.
    I like to use an example to describe my question. For example:
    If (key1, value1) are in the cache1, (value1 is an object),
    for the first time, if cache1.get(key1), coherence will deserialize value1 and return. But if in the same JVM, when cache1.get(key1) is invoked again, coherence will return value1, which I believe is cached by coherence in the current JVM, and return; instead of deserializing and return it. Is that right?
    I am asking this question because I found a problem in our project when use coherence. As the above example, if I use value1 = cache1.get(key1), and in our project, value1 object has a set method to change one of its internal attributes, and this method was indeed invoked after value1 get from cache1. Then in another class, value2 = cache1.get(key1) is called again, and I found out that value2's attribute will have the modified value, even cache1.put(key1, value1) is never invoked in the first place.
    Of course, this kind of behavior matches the java.util.Map. But coherence cache is a cluster/distributed environment. In the above example, if on another data node, value3 = cache1.get(key1) will get the original attribute value in value3, since the deserialize object will always get the original value, unless the new value is put in explicitly by cache1.put(key1, value1).
    In this case, should cache1.get(key1) always return a clone object make more sense?
    Thanks

    You observation is correct. More specifically for cache topologies which include an in-process cache Coherence may return the same object reference for repeated get requests on the same key. I say "may" because for any variety of reasons we may also have to retrieve a fresh copy from a remote cache server. When possible we will return existing objects for performance reasons avoiding costly things like network hops, and de-serialization. Any modifications made to an object returned from the cache will not be made automatically available to other cluster members. Additionally if these modifications are made concurrently with another thread performing a cache.put() on the same value could result in a corrupt cached value if your serialization methods are not thread-safe. Best practice dictates that unless you are sure that you are using a cache topology which does not include an in-process cache that you treat the values returned from the cache as immutable, and instead deep clone() it before making any modifications.
    The distributed-scheme and remote-scheme are the only types of caches which do not include in-process caching, and thus always return "mutation safe" values. The most common in-process cache topology is near-scheme, but others include replicated-scheme, optimistic-scheme, local-scheme, and the programatically created ContinuousQueryCache.
    thanks,
    mark

  • Controlling form appearance according to the values in the table.

    Hi,
    I want to control my form appearance foreground color,background color, font name, font size etc. at form startup. These values are kept in a table. Please tell me the best way.
    Thanks,
    Shafiq
    null

    Depend on the values; if the values are a given, i.e if the values only takes a certain combinations then create predefined visual attributes and at runtime apply thro the pre-form trigger.
    if the values are vary regularly then pick the values at runtime pass it thro parameters/global variables at the pre-form
    /when-new-form instance.
    null

  • Sending the Value to the database of the selected item in the radioButton

    I want to pass  the value to the database that I selected on the radioButton
    <?xml version="1.0" encoding="utf-8"?>
    <mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" layout="absolute">
         <mx:Text y="36" text="The Christian and Missionary Alliance Churches of the Philippines, Inc" width="581" fontWeight="bold" fontSize="15" horizontalCenter="46"/>
         <mx:Text y="59" text="( C A M A C O P)" fontWeight="bold" fontSize="12" horizontalCenter="8"/>
         <mx:Text y="77" text="MEMBERSHIP IDENTIFICATION FORM" width="502" fontSize="17" fontWeight="bold" textAlign="center" horizontalCenter="0"/>
         <mx:Text y="101" text="Date: " width="47" fontWeight="bold" textAlign="center" horizontalCenter="-71"/>
         <mx:DateField y="99" id="dateToday" horizontalCenter="18" editable="true" width="140" enabled="true"/>
         <mx:Label y="153" text="District:" fontWeight="bold" horizontalCenter="-418"/>
         <mx:TextInput y="151" maxChars="15" id="district" width="249" enabled="true" horizontalCenter="-260"/>
         <mx:Text y="179" text="Name of Local Church:" fontWeight="bold" horizontalCenter="-378"/>
         <mx:TextInput y="177" width="400" id="nameLocalChurch" maxChars="255" enabled="true" horizontalCenter="-104"/>
         <mx:Text y="205" text="Local Church Address:" fontWeight="bold" horizontalCenter="-378"/>
         <mx:TextInput y="203" width="401" id="addressLocalChurch" maxChars="255" enabled="true" horizontalCenter="-105"/>
         <mx:Text y="231" text="Name:" fontWeight="bold" horizontalCenter="-422"/>
         <mx:TextInput y="229" width="489" id="givenName" maxChars="255" enabled="true" horizontalCenter="-149"/>
         <mx:Text y="254" text="(Given Name/Middle Name/Family Name - CAPITALIZE)" fontStyle="italic" horizontalCenter="-158"/>
         <mx:Text y="284" text="Position in the Church: " fontWeight="bold" horizontalCenter="-376"/>
         <mx:TextInput y="276" width="401" id="posInChurch" maxChars="225" enabled="true" horizontalCenter="-105"/>
         <mx:Text y="310" text="Profession/Title:" fontWeight="bold" horizontalCenter="-393"/>
         <mx:TextInput y="306" width="434" id="professionTitle" maxChars="225" enabled="true" horizontalCenter="-121"/>
         <mx:Text y="333" text="Community Involvement/Work" fontWeight="bold" horizontalCenter="-351"/>
         <mx:Text y="355" text="Gift Skill:" fontWeight="bold" horizontalCenter="-415"/>
         <mx:TextInput y="353" width="475" enabled="true" horizontalCenter="-142" id="giftSkill" maxChars="225"/>
         <mx:Text y="381" text="Home Address:" fontWeight="bold" horizontalCenter="-397"/>
         <mx:TextInput y="379" width="448" id="homeAddress" enabled="true" horizontalCenter="-128" maxChars="225"/>
         <mx:Text y="406" text="Status:" fontWeight="bold" horizontalCenter="-420"/>
         <mx:Text y="432" text="Date of Marriage:" fontWeight="bold" horizontalCenter="-391"/>
         <mx:TextInput y="430" enabled="true" id="dateOfMarriage" horizontalCenter="-258" maxChars="225"/>
         <mx:Text y="432" text="(If Married)" fontWeight="normal" fontStyle="italic" horizontalCenter="-144"/>
         <mx:Text y="458" text="Tel./Cell Phone:" fontWeight="bold" horizontalCenter="-396"/>
         <mx:TextInput y="456" width="436" id="cell" enabled="true" horizontalCenter="-122" maxChars="225"/>
         <mx:Text y="484" text="SSS/GSIS No." fontWeight="bold" horizontalCenter="-402"/>
         <mx:TextInput y="482" width="215" id="sss" enabled="true" maxChars="15" horizontalCenter="-243"/>
         <mx:Label y="484" text="Blood Type" fontWeight="bold" horizontalCenter="-94"/>
         <mx:TextInput y="482" width="154" id="bloodType" enabled="true" maxChars="15" horizontalCenter="19"/>
         <mx:Text y="509" text="Height" fontWeight="bold" horizontalCenter="-421"/>
         <mx:Text y="510" text="Weight" fontWeight="bold" horizontalCenter="-279"/>
         <mx:TextInput y="508" id="weight" enabled="true" maxChars="15" horizontalCenter="-168"/>
         <mx:Text y="510" text="Birthday" fontWeight="bold" horizontalCenter="-53"/>
         <mx:Text y="536" text="TIN No." fontWeight="bold" horizontalCenter="-420"/>
         <mx:TextInput y="534" id="tin" enabled="true" horizontalCenter="-311" maxChars="225"/>
         <mx:Text y="536" text="Date of Baptism" fontWeight="bold" horizontalCenter="-174"/>
         <mx:Text y="536" text="(If Baptized)" fontStyle="italic" horizontalCenter="32"/>
         <mx:Text y="573" text="Annual Income:" fontWeight="bold" height="18" fontSize="13" horizontalCenter="-384"/>
         <mx:RadioButton y="563" label="Below 10K" id="first" enabled="true" horizontalCenter="-276" groupName="annualIncome"/>
         <mx:RadioButton y="593" label="76k-100k" id="fifth" enabled="true" horizontalCenter="-192" groupName="annualIncome"/>
         <mx:RadioButton y="563" label="11k-20k" id="second" enabled="true" horizontalCenter="-195" selected="false" groupName="annualIncome"/>
         <mx:RadioButton y="563" label="21k-40k" id="third" enabled="true" horizontalCenter="-116" selected="false" groupName="annualIncome"/>
         <mx:RadioButton y="593" label="101k-above" id="sixth" enabled="true" horizontalCenter="-106" groupName="annualIncome"/>
         <mx:RadioButton y="593" label="41k-75k" id="fourth" enabled="true" horizontalCenter="-280" groupName="annualIncome"/>
         <mx:Text y="589" text="(The &quot;k&quot; = thousand)" horizontalCenter="-383" fontStyle="italic"/>
         <mx:TextInput y="508" id="hayt" enabled="true" width="76" horizontalCenter="-356" maxChars="15"/>
         <mx:Text text="In case of Emergency Please Notify" fontSize="12" fontWeight="bold" horizontalCenter="-326" y="621"/>
         <mx:Text y="642" text="Name:" fontWeight="bold" horizontalCenter="-370"/>
         <mx:TextInput y="640" id="EName" enabled="true" width="446" horizontalCenter="-125" maxChars="225"/>
         <mx:Text y="668" text="Address:" fontWeight="bold" horizontalCenter="-363"/>
         <mx:TextInput y="666" width="434" id="EAddress" enabled="true" horizontalCenter="-117" maxChars="225"/>
         <mx:Text y="740" text="Endorsement/Signature of PASTOR" fontWeight="bold" fontSize="12" horizontalCenter="-298"/>
         <mx:Text y="740" text="Signature of Member" fontWeight="bold" fontSize="12" width="208" horizontalCenter="55"/>
         <mx:Text y="804" text="Endorsement/Signature of DMS" fontWeight="bold" fontSize="12" horizontalCenter="-310"/>
         <mx:Text y="806" text="Confirmation of the BISHOP/PRESIDENT" fontWeight="bold" fontSize="12" horizontalCenter="88"/>
         <mx:Text y="867.7" text="Reminders" fontSize="15" fontWeight="bold" horizontalCenter="-76"/>
         <mx:Text y="899.25" text="Pastor/CMT shall verify each filled up membership form." fontWeight="bold" textAlign="center" fontSize="12" horizontalCenter="-86"/>
         <mx:Text y="921.8" text="The pastor will endorse the forms to their respective DMS." fontWeight="bold" fontSize="12" textAlign="center" horizontalCenter="-78"/>
         <mx:Text y="942.35" text="The donation for I.D. is 50.00php." fontWeight="bold" textAlign="center" fontSize="12" horizontalCenter="-62"/>
         <mx:Text y="961.9" text="Get your receipts from the DMS as a whole." fontWeight="bold" textAlign="center" fontSize="12" horizontalCenter="-69"/>
         <mx:Text y="980.35" text="Check carefully the neatness of I.D. pictures." fontWeight="bold" fontSize="12" textAlign="center" horizontalCenter="-64"/>
         <mx:Text y="997.9" text="This form is to be completed by all CAMACOP members and workers." fontWeight="bold" fontSize="12" horizontalCenter="-83"/>
         <mx:Spacer x="47" y="9"/>
         <mx:Button y="1034" label="Submit" id="submit" enabled="true" horizontalCenter="-89" click = "sample1.send()"/>
         <mx:DateField y="508" id="birthday" enabled="true" horizontalCenter="35" width="122"/>
         <mx:DateField y="534" width="105" id="dateOfBaptism" enabled="true" horizontalCenter="-64"/>
         <mx:RadioButtonGroup id="work"/>
         <mx:RadioButton x="273" y="331" label="Private" groupName="work" width="80" id="prayvate" enabled="true"/>
         <mx:RadioButton x="416" y="331" label="NGO" groupName="work" enabled="true" id="NGO"/>
         <mx:RadioButton x="359" y="331" label="GO" groupName="work" enabled="true" id="GO"/>
         <mx:RadioButtonGroup id="status"/>
         <mx:RadioButton x="133" y="404" label="Married" groupName="status" id="Married"/>
         <mx:RadioButton x="207" y="404" label="Single" groupName="status" id="Single"/>
         <mx:RadioButton x="274" y="404" label="Widow" groupName="status" id="Widow"/>
         <mx:RadioButton x="342" y="404" label="Widower" groupName="status" id="Widower"/>
         <mx:HTTPService id="sample1" method="POST" url="http://localhost/frontPage-debug/add.php">
              <mx:request xmlns="">
                   <dateToday>
                        {dateToday.text}
                   </dateToday>
                   <district>
                        {district.text}
                   </district>
                   <nameLocalChurch>
                        {nameLocalChurch.text}
                   </nameLocalChurch>
                   <addressLocalChurch>
                        {addressLocalChurch.text}
                   </addressLocalChurch>
                   <givenName>
                        {givenName.text}
                   </givenName>
                   <posInChurch>
                   {posInChurch.text}
                   </posInChurch>
                   <professionTitle>
                   {professionTitle.text}
                   </professionTitle>
                   <work>
                        {work.text}
                   </work>
                   <giftSkill>
                        {giftSkill.text} <!--THIS IS WHERE THE ERROR HAPPENS-->
                   </giftSkill>
                   <homeAddress>
                        {homeAddress.text}
                   </homeAddress>
                   <status>
                        {status.text} <!--THIS IS WHERE THE ERROR HAPPENS-->
                   </status>
                   <dateOfMarriage>
                        {dateOfMarriage.text}
                   </dateOfMarriage>
                   <cell>
                        {cell.text}
                   </cell>
                   <bloodType>
                        {bloodType.text}
                   </bloodType>
                   <sss>
                        {sss.text}
                   </sss>
                   <weight>
                        {weight.text}
                   </weight>
                   <birthday>
                        {birthday.text}
                   </birthday>
                   <tin>
                        {tin.text}
                   </tin>
                   <dateOfBaptism>
                        {dateOfBaptism.text}
                   </dateOfBaptism>
                   <annualIncome>
                        {annualIncome.text}          
                   </annualIncome>
                   <EName>
                        {EName.text}
                   </EName>
                   <EAddress>
                        {EAddress.text}
                   </EAddress>
              </mx:request>     
         </mx:HTTPService>     
    </mx:Application>
    This is are the errors
    1119: Access of possibly undefined property text through a reference with static type mx.controls:RadioButtonGroup.  
    1120: Access of undefined property annualIncome.

    Hi,
    instead of
    {status.text}
    should be {status.selection.label} (status.selection is a RadioButton or null and after that you can get label property). It's better to set one of the variants in radioButtonGroup to selected and do not check null selection or selectedValue property.
    It seems that {giftSkill.text} is ok, but {work.text} above it has the same problem as I've described above.

  • How to upgrade the second dropdownbox when selecting the values of the first ?

    Hello everyone, I am new to programming. Tell me, please, how to automatically load the new values in the second dropdownbox, depending on the choice of the values in the first dropdownbox ?

    There is an example here...
    http://www.scriptsrus.talktalk.net/Run%20Action.htm

  • Not able to get the value in the next page

    Hi,
    I am newbee for JSF and this question may sound silly. I tried to search through this
    forum, google....but did not find a solution....I hope some one here could please help
    me :-(
    I have Page1 and Page2. Page1 has a h:inputText field and a submit button.
    On click of the "Submit" button in Page1, I have to pass this text value entered by
    the user to Page2. In Page2, I have <h:inputText readonly="true" /> field,
    which will display the value that the user entered in Page1. Also, Page2 has a "Submit"
    button. On click of Page2.Submit button, the value displayed in the Page2.textfield
    is not getting populated to the Page2 bean attribute.
    Here are the code that I am using
    1. Page1:
    <f:view>
    <h:form id="Page1">
         <h:inputText id="primaryKey" required="true" value="#{Page1.primaryKey}" />
         <h:commandButton id="command" value="Submit" action="Page1"/>
    </h:form>
    </f:view>
    2. Page2:
    <f:view>
    <h:form id="Page2">
         // Yes, Value attribute points to Page1.primaryKey to display user entered value in this page.
         <h:inputText id="test" value="#{Page1.primaryKey}" readonly="true" />
         <h:commandButton id="command" value="Submit" action="#{Page2.save()}"/>
    </h:form>
    </f:view>
    3. faces-config.xml
    <navigation-rule>
    <from-view-id>/Page1.jsp</from-view-id>
    <navigation-case>
    <from-outcome>Page1</from-outcome>
    <to-view-id>/Page2.jsp</to-view-id>
    </navigation-case>
    </navigation-rule>
    <managed-bean>
    <managed-bean-name>Page1</managed-bean-name>
    <managed-bean-class>com.Page1Bean</managed-bean-class>
    <managed-bean-scope>request</managed-bean-scope>
    </managed-bean>
    <navigation-rule>
    <from-view-id>/Page2.jsp</from-view-id>
    <navigation-case>
    <from-outcome>success</from-outcome>
    <to-view-id>/success.jsp</to-view-id>
    </navigation-case>
    </navigation-rule>
    <managed-bean>
    <managed-bean-name>Page2</managed-bean-name>
    <managed-bean-class>com.Page2Bean</managed-bean-class>
    <managed-bean-scope>request</managed-bean-scope>
    </managed-bean>
    4. com.Page1Bean.java
    public class Page1Bean {
         private String primaryKey;
         //getter and setter method below
    5. com.Page2Bean.java
    public class Page2Bean {
         private String test;
         //getter and setter method below
         public String save() {
    Now let me explain my issue, I enter a value in Page1 -> click on submit -> I see this value in the text field of
    Page2. But when I click on submit button of Page2, test attribute is still null. Could you please suggest me what
    am I suppose to do inorder to get this value in Page2Bean when I click on save button?
    Hope to listen from one of you,
    Thank you,
    VinodRamu

    Go here
    http://jsffaq.com/
    Many of your questions will be answered

  • Not Updating the Values in the JComboBox and JTable

    Hi Friends
    In my program i hava Two JComboBox and One JTable. I Update the ComboBox with different field on A Table. and then Display a list of record in the JTable.
    It is Displaying the Values in the Begining But when i try to Select the Next Item in the ComboBox it is not Updating the Records Eeither to JComboBox or JTable.
    MY CODE is this
    import java.awt.*;
    import java.awt.event.*;
    import javax.swing.*;
    import javax.swing.DefaultComboBoxModel.*;
    import javax.swing.table.*;
    import java.sql.*;
    import java.util.*;
    public class SearchBook extends JDialog implements ActionListener
         private JComboBox comboCategory,comboAuthor;
         private JSplitPane splitpane;
         private JTable table;
         private JToolBar toolBar;
         private JButton btnclose, btncancel;
         private JPanel panel1,panel2,panel3,panel4;
         private JLabel lblCategory,lblAuthor;
         private Container c;
         //DefaultTableModel model;
         Statement st;
         ResultSet rs;
         Vector v = new Vector();
         public SearchBook (Connection con)
              // Property for JDialog
              setTitle("Search Books");
              setLocation(40,110);
              setModal(true);
              setSize(750,450);
              // Creating ToolBar Button
              btnclose = new JButton(new ImageIcon("Images/export.gif"));
              btnclose.addActionListener(this);
              // Creating Tool Bar
              toolBar = new JToolBar();
              toolBar.add(btnclose);
              try
                   st=con.createStatement();
                   rs =st.executeQuery("SELECT BCat from Books Group By Books.BCat");
                   while(rs.next())
                        v.add(rs.getString(1));
              catch(SQLException ex)
                   System.out.println("Error");
              panel1= new JPanel();
              panel1.setLayout(new GridBagLayout());
              GridBagConstraints c = new GridBagConstraints();
              c.fill = GridBagConstraints.HORIZONTAL;
              lblCategory = new JLabel("Category:");
              lblCategory.setHorizontalAlignment (JTextField.CENTER);
              c.gridx=2;
              c.gridy=2;
              panel1.add(lblCategory,c);
              comboCategory = new JComboBox(v);
              comboCategory.addActionListener(this);
              c.ipadx=20;
              c.gridx=3;
              c.gridwidth=1;
              c.gridy=2;
              panel1.add(comboCategory,c);
              lblAuthor = new JLabel("Author/Publisher:");
              c.gridwidth=2;
              c.gridx=1;
              c.gridy=4;
              panel1.add(lblAuthor,c);
              lblAuthor.setHorizontalAlignment (JTextField.LEFT);
              comboAuthor = new JComboBox();
              comboAuthor.addActionListener(this);
              c.insets= new Insets(20,0,0,0);
              c.ipadx=20;
              c.gridx=3;
              c.gridy=4;
              panel1.add(comboAuthor,c);
              comboAuthor.setBounds (125, 165, 175, 25);
              table = new JTable();
              JScrollPane scrollpane = new JScrollPane(table);
              //panel2 = new JPanel();
              //panel2.add(scrollpane);
              splitpane = new JSplitPane(JSplitPane.HORIZONTAL_SPLIT,panel1,scrollpane);
              splitpane.setDividerSize(15);
              splitpane.setDividerLocation(190);
              getContentPane().add(toolBar,BorderLayout.NORTH);
              getContentPane().add(splitpane);
         public void actionPerformed(ActionEvent ae)
              Object obj= ae.getSource();
              if(obj==comboCategory)
                   String selecteditem = (String)comboCategory.getSelectedItem();
                   displayAuthor(selecteditem);
                   System.out.println("Selected Item"+selecteditem);
              else if(obj==btnclose)
                   setDefaultCloseOperation(JDialog.DISPOSE_ON_CLOSE);
              else if(obj==comboAuthor)
                   String selecteditem1 = (String)comboAuthor.getSelectedItem();
                   displayavailablity(selecteditem1);
                   //System.out.println("Selected Item"+selecteditem1);
                   System.out.println("Selected Author"+selecteditem1);
         private void displayAuthor(String selecteditem)
              try
              {     Vector data = new Vector();
                   rs= st.executeQuery("SELECT BAuthorandPublisher FROM Books where BCat='" + selecteditem + "' Group By Books.BAuthorandPublisher");
                   System.out.println("Executing");
                   while(rs.next())
                        data.add(rs.getString(1));
                   //((DefaultComboBoxModel)comboAuthor.getModel()).setVectorData(data);
                   comboAuthor.setModel(new DefaultComboBoxModel(data));
              catch(SQLException ex)
                   System.out.println("ERROR");
         private void displayavailablity(String selecteditem1)
                   try
                        Vector columnNames = new Vector();
                        Vector data1 = new Vector();
                        rs= st.executeQuery("SELECT * FROM Books where BAuthorandPublisher='" + selecteditem1 +"'");     
                        ResultSetMetaData md= rs.getMetaData();
                        int columns =md.getColumnCount();
                        String booktblheading[]={"Book ID","Book NAME","BOOK AUTHOR/PUBLISHER","REFRENCE","CATEGORY"};
                        for(int i=1; i<= booktblheading.length;i++)
                             columnNames.addElement(booktblheading[i-1]);
                        while(rs.next())
                             Vector row = new Vector(columns);
                             for(int i=1;i<=columns;i++)
                                  row.addElement(rs.getObject(i));
                             data1.addElement(row);
                             //System.out.println("data is:"+data);
                        ((DefaultTableModel)table.getModel()).setDataVector(data1,columnNames);
                        //DefaultTableModel model = new DefaultTableModel(data1,columnNames);
                        //table.setModel(model);
                        rs.close();
                        st.close();
                   catch(SQLException ex)
    }Please check my code and give me some Better Solution
    Thank you

    You already have a posting on this topic:
    http://forum.java.sun.com/thread.jspa?threadID=5143235

  • Capturing the Value in the Variable

    Dear Friends,
    There is a requirement to capture the value of the document date while the report is getting executed.  i.e., for each and every record in my report has different dates, my variable should get populated with the document date for every record.......How can i achieve the same.
    Thanks
    Prem

    Hi Prem,
    You need to crate a user exit varable in your query and  write a abap code to capture value and  fill it.
    Thanks,
    Ravi

  • How to assign the Value to the Particular field-Text field

    Hi all,
    My requirement is to call the Web service with input from the ADF page.
    Steps I have done:
    1. I have created a Web service data control based on the WSDL file.
    2. Just drag and drop the Process, It is automatically created the form with the Input fields and then the Process button
    3. When I entered the values and then process button it will pass the values corretly.the web service is invoked correctly with the values entered.
    4. But when I try to assign the value from the some other field that is not working.
    I am assigning the Value to the field by go to the properties of the Particular field value =”CREATE”
    When I do like this that value is showing in the screen. But it will not pass the value to the web service.
    I think the value is only displaying in the screen. Not stored at bindings level. Kindly guide me in this.
    Thanks in Advance
    C.Karukkuvel

    If you want to have the value that is returned displayed in a field that has binding to another item and not the WS result item then the way to do this would be to override the method that is invoked with the button that calls the web service - you then take the result and assign it to the item you want.
    See the way it is done here:
    http://blogs.oracle.com/shay/2009/07/java_class_data_control_and_ad.html
    While this sample uses a simple method it would be basically the same for a Web service.

  • How to get all the values in the Select-option.

    Hi,
    I got the select-option field so_week, for eg. If I give 200923 to 200926 (year and week)  in the selection screen and then I need to pass this value (200923) to the FM 'ZWEEK_GET_FIRST_DAY' to get the first day of the week.
    My question is how can i get all the values from the select option, (i.e) i need to get 200923, 200924,200925, 200926.
    Regards,
    Anbu.

    Hello,
    I will prefer Max's solution. But just for the sake of this req.
    i need to get 200923, 200924,200925, 200926
    i am proposing my soln:
    DATA: V_WEEK TYPE RSCALWEEK.
    SELECT-OPTIONS: S_WEEK FOR V_WEEK NO-EXTENSION OBLIGATORY.
    AT SELECTION-SCREEN.
      DATA:
      V_COUNT TYPE I,
      V_ADD   TYPE I,
      RT_WEEK TYPE RANGE OF RSCALWEEK,
      RS_WEEK LIKE LINE OF RT_WEEK.
      V_COUNT = ( S_WEEK-HIGH - S_WEEK-LOW ) + 1.
      DO V_COUNT TIMES.
        RS_WEEK-SIGN = 'I'.
        RS_WEEK-OPTION = 'EQ'.
        RS_WEEK-LOW = S_WEEK-LOW + V_ADD.
        APPEND RS_WEEK TO RT_WEEK. "RT_WEEK--> Will contain the week values
        CLEAR RS_WEEK.
        V_ADD = V_ADD + 1.
      ENDDO.
    @Max: I was stupid enough not to think of your solution. Need to leave office
    Cheers,
    Suhas

Maybe you are looking for

  • Bug: Copying and pasting a htmlText ignores embed font???

    - Adobe Flash Pro CS4 - Reproducible in Flash player 9 and 10 There seems to be a bug when copying a string value from a "htmlText" textfield and then pasting it in a standard "text" textField, and then adding that text back into the htmlText textFie

  • Task-flow exception only cought first time

    We're working on a larger scale application, that relies heavily on PL/SQL. Therefor we throw a lot of jboexceptions in our applciations. FK, UK and other validations throw an exception in the base, and are thrown as jboexceptions from the java level

  • Iphone facebook chat question

    I just bought the iphone 4 yesterday so i really dont know much about it. the question i have is with the facebook chat is there a way for the chat to save on there. cuz i was talkin to someone and than went to the main screen and went back in when t

  • Live Video on Express

    Is there a way to connect a camera to your mac to run live video without using firewire? Is it possible to use airport express and the USB connections? I want to be able to move away from my mac and firewire doesn't give the distance I need. I have a

  • When sharing a video on You Tube I am unable to enter text

    When sharing a video from You Tube to Facebook I am unable to enter text in the text box. The video does go onto Facebook, I just can't enter a comment. == This happened == Every time Firefox opened == Installed Firefox